[tahoe-lafs-trac-stream] [tahoe-lafs] #1963: replace nevow with twisted.web.template

tahoe-lafs trac at tahoe-lafs.org
Mon Mar 17 21:00:34 UTC 2014


#1963: replace nevow with twisted.web.template
-----------------------------------+-----------------------------
     Reporter:  zooko              |      Owner:  remyroy
         Type:  enhancement        |     Status:  assigned
     Priority:  normal             |  Milestone:  eventually
    Component:  code-frontend-web  |    Version:  1.10.0
   Resolution:                     |   Keywords:  nevow templates
Launchpad Bug:                     |
-----------------------------------+-----------------------------

Comment (by remyroy):

 From my understanding, Nevow is more than just templating. Replacing Nevow
 with twisted.web.template is not going to work if the goal is to totally
 remove Nevow. It would not make much sense to replace just the templating
 part of Nevow and keep the rest of it.

 The big question is what part of Nevow are we using that is not templating
 and can twisted.web fulfill this in an easy and straightforward way?

 This is what we are using from Nevow that is not templating related:

 * nevow.appserver
 * nevow.appserver.NevowRequest
 * nevow.appserver.NevowSite
 * nevow.resource_filename

 and whatever is under those including idioms and conventions from Nevow.
 There seems to be a lot of Nevow code under those from my quick reading of
 Nevow source code.

 I've been reading the twisted.web documentation and it feels quite
 different from how it's done with Nevow. twisted.web.template might have
 been inspired by the templating system from Nevow but the rest of
 twisted.web not so much. I also feels like twisted.web is a third world
 "web framework" coming from something like Flask.

 If we are to replace Nevow with something quite different, I would feel
 uncomfortable to replace it with twisted.web . I'd prefer to use a battle
 tested modern minimalist WSGI based "web framework" with
 twisted.web.wsgi.WSGIResource . I like Flask but I know there are also
 some nice alternatives. We could still keep using the twisted.web.template
 to minimize the amount of changes with templates if it makes sense.

 I'll keep investigating how twisted.web can be *plugged in* and check out
 if there are other *big projects* who made the switch from Nevow.

 Some feedback on this would be appreciated.

 Sorry for the long comment.

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1963#comment:15>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list