[Twisted-Python] [patch] mktap web --resource
Hi, all! Attached is a short patch to add a --resource option to "mktap web", here is the --help for it: -r, --resource= <class> is the name (including module) of a subclass of twisted.web.resource.Resource to publish. So you can have any subclass of t.w.r.Resource be the 'root' of your web-server. I have also been working on a few other things: - an async Pytho-only PostgreSQL interface (not t.e.adbapi compatible, since I am not usre I like it's interface and need to play a bit before I figure out how I would like an async SQL-database interface to behave.) - a SQLResultWidget, very dull right now but I will probably hack some BoboDTML support into it. first-post-but-not-like-/.-ly yrs, -- Sune Kirkeby | /* we're still looking for the end of the | * server's header ... (does that make header | * parsing an "out of body experience" ? */ | -- jcc.c in junkex source-code
[ Sune Kirkeby ]
I have also been working on a few other things:
Which reminds me: Is there no anonymous CVS access to the twisted repository? It would be nice to have. talking-with-myself'ly -- Sune Kirkeby | Hailstorms tend to be distructive. And one should not need | to use a passport in one's own country. | -- David Sugar on arch@dotgnu.org
On Wed, 2002-01-02 at 11:07, Sune Kirkeby wrote:
Which reminds me: Is there no anonymous CVS access to the twisted repository? It would be nice to have.
You can chalk this up to random neurotic behavior on my part. I'm a bit paranoid. However, somewhat more sane Twisted developers than I are working on rectifying the problem. -- ______ you are in a maze of twisted little applications, all | |_\ remarkably consistent. | | -- glyph lefkowitz, glyph @ twisted matrix . com |_____| http://www.twistedmatrix.com/
Sune Kirkeby wrote:
- an async Pytho-only PostgreSQL interface (not t.e.adbapi compatible, since I am not usre I like it's interface and need to play a bit before I figure out how I would like an async SQL-database interface to behave.)
Very cool! There's pypgsql's libpq wrapper which does async, but it's C, and the API is basically the same as the C. Any chance for async large object support as well?
[ Itamar Shtull-Trauring ]
Any chance for async large object support as well?
Yup, as time permits I hope to implement it. For now I guess I will spend more time experimenting with async DB-access in generel, though. -- Sune Kirkeby | Teori er når vi har forstået alting, men intet virker. Praksis | er når alting virker, men ingen forstår hvorfor. Hos os | er de to ting forenet: Intet virker og ingen forstår hvorfor!
Sune Kirkeby wrote:
[ Itamar Shtull-Trauring ]
Any chance for async large object support as well?
Yup, as time permits I hope to implement it. For now I guess I will spend more time experimenting with async DB-access in generel, though.
Any more news on this front? (Not that I need large objects ... just interested in async db-access in general. ;^) BTW, I kind of like some things about psycopg (which is not async, of course), but I couldn't get t.e.adbapi.py to work with it. Cheers, -- Steve. Stephen C. Waterbury http://misspiggy.gsfc.nasa.gov/people/waterbug.html
On Thu, Aug 01, 2002 at 04:43:50PM -0400, Steve Waterbury wrote:
Sune Kirkeby wrote:
[ Itamar Shtull-Trauring ]
Any chance for async large object support as well?
Yup, as time permits I hope to implement it. For now I guess I will spend more time experimenting with async DB-access in generel, though.
Any more news on this front? (Not that I need large objects ... just interested in async db-access in general. ;^) BTW, I kind of like some things about psycopg (which is not async, of course), but I couldn't get t.e.adbapi.py to work with it.
What errors did psycopg with adbapi give? I know that for the mxODBC Windows stuff, it doesn't *quite* conform to DB-API 2.0, you need to manually do import mx.ODBC.Windows mx.ODBC.Windows.threadsafety = 1 to make Twisted like it. -Andrew.
Andrew Bennetts wrote:
On Thu, Aug 01, 2002 at 04:43:50PM -0400, Steve Waterbury wrote:
Sune Kirkeby wrote:
[ Itamar Shtull-Trauring ]
Any chance for async large object support as well?
Yup, as time permits I hope to implement it. For now I guess I will spend more time experimenting with async DB-access in generel, though.
Any more news on this front? (Not that I need large objects ... just interested in async db-access in general. ;^) BTW, I kind of like some things about psycopg (which is not async, of course), but I couldn't get t.e.adbapi.py to work with it.
What errors did psycopg with adbapi give?
Er, none actually! Oops ... *blush* ... sorry for the FUD. I had originally tried it back in May, when I was still in a Twisted larval phase ... so now I went back and fixed my little test script and ... it works! Gee, that's cool! I'll try it out along with pypgsql as I'm developing my app and report back if I see any interesting differences. Thanks for asking what errors it gave ... trying to duplicate my experiment was enlightening. (Well, yes, you might think I would have tried that before asking ... *sigh* ... :P -- Steve. Stephen C. Waterbury http://misspiggy.gsfc.nasa.gov/people/waterbug.html
[ Steve Waterbury ]
Sune Kirkeby wrote:
[ Itamar Shtull-Trauring ]
Any chance for async large object support as well?
Yup, as time permits I hope to implement it. For now I guess I will spend more time experimenting with async DB-access in generel, though.
Any more news on this front?
None at all. I've been busy with other things, but if anyone feels like picking up where I left off (working, incomplete PostgreSQL protocol implementation; asyncdb-api that I am not really happy with), I can post my work. -- Sune Kirkeby | MESKIMEN'S LAW -- There's never time to do it right, | but always time to do it over.
Sune Kirkeby wrote:
[ Steve Waterbury ]
Sune Kirkeby wrote:
[ Itamar Shtull-Trauring ]
Any chance for async large object support as well?
Yup, as time permits I hope to implement it. For now I guess I will spend more time experimenting with async DB-access in generel, though.
Any more news on this front?
None at all. I've been busy with other things, but if anyone feels like picking up where I left off (working, incomplete PostgreSQL protocol implementation; asyncdb-api that I am not really happy with), I can post my work.
Thanks, but I'm still a larva. I still need to learn how to use what's already there in twisted before I try to extend or contribute anything. Cheers, -- Steve. Stephen C. Waterbury http://misspiggy.gsfc.nasa.gov/people/waterbug.html
On Wed, Jan 02, 2002 at 05:49:10PM +0100, Sune Kirkeby wrote:
Hi, all!
Attached is a short patch to add a --resource option to "mktap web", here is the --help for it:
-r, --resource= <class> is the name (including module) of a subclass of twisted.web.resource.Resource to publish.
So you can have any subclass of t.w.r.Resource be the 'root' of your web-server.
I implemented this a long time ago with the '-m' option, which took a python filename and a classname, but itamar shwacked it because no one was using it. I'm not sure if it should be brought back or not, but you may want to look into using plugins. How's that config interface coming, which should obsolete all of this? ;-) bugging-people-about-code-but-doing-none-myself-ly yours, radix
participants (8)
-
Andrew Bennetts
-
Chris Armstrong
-
Glyph Lefkowitz
-
Itamar Shtull-Trauring
-
Steve Waterbury
-
Steve Waterbury
-
Sune Kirkeby
-
Sune Kirkeby