[Twisted-Python] Twisted.web and adbapi example?
Thomas Raschbacher
lordvan at lordvan.com
Sun Jun 22 09:58:44 MDT 2003
sorry really forgot about that .. here it comes ;)
regards
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
--
-----BEGIN GEEK CODE BLOCK-----
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
z-
------END GEEK CODE BLOCK------
-----------------------------------------
This email was sent using SquirrelMail.
"Webmail for nuts!"
http://squirrelmail.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbtest.py
Type: application/octet-stream
Size: 989 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20030622/02f911e7/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbtest.xhtml
Type: application/xhtml+xml
Size: 317 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20030622/02f911e7/attachment-0002.xhtml>
More information about the Twisted-Python
mailing list