[Twisted-web] fragments with child lookup
Valentino Volonghi aka Dialtone
dialtone at divmod.com
Mon Sep 25 05:22:12 CDT 2006
On Mon, 25 Sep 2006 12:01:12 +0200, Markus Schiltknecht <markus at bluegap.ch> wrote:
>Okay, thanks. But now... how can I remove the hard-coded 'level' number? I
>would like to write 'components' or Fragments which don't care on what level
>they are used.
Use -1 as an index. It will take the last segment each time.
>Another thing that bugs me is the duplicate definition of the children: I
>have to set the child_XY attribute as well as the fragment dictionary. But
>that can easily be avoided, I think.
Build those dictionary dynamically at startup time.
More information about the Twisted-web
mailing list