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

tahoe-lafs trac at tahoe-lafs.org
Sat Mar 15 15:05:25 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 daira):

 The idea behind the branch is to first perform a refactoring that means we
 still use Nevow, but we import its code indirectly via
 {{{allmydata.web.common}}}.

 I also added a dummy {{{@renderer}}} decorator that will be needed for
 {{{twisted.web}}} (see
 [http://twistedmatrix.com/documents/current/api/twisted.web.template.renderer.html
 this doc]), but currently does nothing.

 Once it's been made to work that way, we can switch the imports in
 {{{allmydata.web.common}}} to the equivalent {{{twisted.web.template}}}
 ones in cases where Twisted has a direct equivalent, and add new classes
 that inherit from or delegate to the Twisted ones to replace any Nevow-
 specific functionality.

 The current state of the branch is that most of the imports in non-test
 code have been changed, and the {{{@renderer}}} decorator has been added
 in ''some'' of the cases where {{{twisted.web}}} would need it.

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


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