[Twisted-Python] Woven: access to submodels

Moshe Zadka m at moshez.org
Sun Jul 13 00:36:13 EDT 2003


On Sun, 13 Jul 2003, Mary <mary-twisted at puzzling.org> wrote:

>     def getDynamicChild(self, name, request):
>         return IndividualPage(amodel=self.getSubmodel('authors')[name]))

Rar! You are very evil.
Please do not reinvent SQL in Python: write *another* select query, that
only selects posts from this author.
 
-- 
Moshe Zadka -- http://moshez.org/
Buffy: I don't like you hanging out with someone that... short.
Riley: Yeah, a lot of young people nowadays are experimenting with shortness.
Agile Programming Language -- http://www.python.org/




More information about the Twisted-Python mailing list