[Twisted-Python] Twisted.web and adbapi example?

Thomas Raschbacher lordvan at lordvan.com
Sun Jun 22 11:58:44 EDT 2003

sorry really forgot about that .. here it comes ;)

P.S.: how the db looks like is left as an exercise to the user grin

<quote who="Morrow, Paul">
> I've been pouring through the docs and examples, but can't find an
> example of a .rpy that generates a page containing the results of a
> database query.  How would such a thing be properly architected?
> Clearly the adbapi would be involved, but then how do I get the query
> results into the string returned by my resource?  Or would I use a
> deferred instead?
> Would someone please share a little code snippet (or point me at
> one)illustrating how that would best be accomplished?
> Thanks.
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

GCS/CC/E/M/MU/S d- s: a--- C++++(++) UL++++ P+ L++++ E W+++ N+++ o-- K w-- O
M-- V- PS+ PE-- Y++ PGP+++ t+++ 5+ X- R tv b++++ DI- D+ G++ e-->+++++ h-- !r

This email was sent using SquirrelMail.
   "Webmail for nuts!"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbtest.py
Type: application/octet-stream
Size: 988 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20030622/02f911e7/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbtest.xhtml
Type: application/xhtml+xml
Size: 317 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20030622/02f911e7/attachment.xhtml 

More information about the Twisted-Python mailing list