hi there, folks:
I'd really like to release 0.7.0 but I would like it to be at least a
little bit tested before I do so. Could those of you with CVS trees check
everything out and see if it performs as advertised? Deeper bugs than
that will have to wait for the next release, but I'd at least like to know
if it works for someone other than me.
______ __ __ _____ _ _
| ____ | \_/ |_____] |_____|
|_____| |_____ | | | |
@ t w i s t e d m a t r i x . c o m
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
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.
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
I've got an arrangement where the obvious way to do things is with a
def view_setMessage(self, who, what):
self._store[who.identityName] = what
def setMyMessage(self, what):
only, it turns out that some of the "who"s don't really need to be in a
seperate process from the Viewable; storageView is actually a reference
to a ViewPoint instead of a *remote* reference to a ViewPoint, and
ViewPoints don't have callRemote (because, well, they're not remote).
I don't know, maybe PB just isn't quite as transparent as I desire it to
be. I did so much like the idea of writing this code to communicate
locally now, and just being able to drop in remote objects instead
I could of course do
def setMyMessage(self, what):
but that doesn't look nearly as elegant, and I'll have to make duplicate
code with a callRemote if storageView ever becomes remote.
The moon is waning gibbous, 86.0% illuminated, 18.4 days old.
I experimented briefly with twisted several months ago. After banging
my head against the Zope wall for a while, I am back to twisted. One
ray of hope in the Zope confusion was Zope Page Templates (ZPT).
According to http://www.zopelabs.com/cookbook/998065931, ZPT can be
used outside of Zope. I can kind of envision this, but I am not yet
twisted enough. Is anyone already working on using Page Templates
within a twisted web?
I also saw some mention of using WebWare as a presentation layer. Are
there any examples of using WebWare with twisted web.
4. TOC and OSCAR real server testing - make fake accounts on AIM and ICQ
servers and then test all functionality - sending messages. logon messages,
6. Make sure transports close connection after loseConnection:
- immediately if no data is in buffer
- after they send all buffered data if there is some
- after producer finishes if a producer is registered
7. Test producers with transports.
8. More tests for everything else (e.g. NNTP and news)
9. Automated CGI and distrib tests for twisted.web - moving tests from
acceptests into twisted.tests.
10. There are probably lots of other untested things in twisted.web - test them.
11. Tests for all methods of twisted.protocols.http.Request.
Want an email yourname(a)sikrit.info? Want a subdomain yourname.sikrit.info?
I am now offering both, under the following terms - you must write 10
tests a month for Twisted as rent. These tests can't be the same as
those you may use to get other domains with similar agreements. In
return, you will get an email address and subdomain forwarded to an IP
of your choice, or URL forwarding.
Offers to write documentation instead of tests are also accepted.
Imagine, you(a)fakeroot.org! i.never.fakeroot.org! Yes, ~!@ Vanity @!~
email addresses and 31337 subdomains can be yours. How is such an
outragiously great offer possible? Shouldn't an opprotunity like this
You too are eligable for a vanity subdomain by simple working on
twisted.names and twisted.mail until their functionality is complete
What are you waiting for? Start coding for your own subdomain now!
*cough* moshez *cough* squish.fakeroot.org *cough*
Gavin Cooper / skreech
Various thoughts - if someone ever implements this stuff or refactors
FTP server, talk to me first.
1. WebDAV, FTP, sftp, HTTP for file serving - they're all basically
using three interfaces (only WebDAV makes this explicit.)
ICollection - collection of IEntities (a "directory")
IEntity - an entity that stores data (a "file")
IProperyManager - set and get properties (implemented by ICollections
So, we define the interfaces, and then write at least one implemntation,
a filesystem backed one. FTP, WebDAV and twisted.web.static would all
depend on these interfaces, and given a FS-backed implementation could
2. WebDAV does *not* depend on twisted.web - it's a separate HTTP-based
protocol. Note that WebDAV has its own port (e.g. because it breaks with
certain web proxies) and in general the concept of twisted.web's
Resource doesn't map to WebDAV, since WebDAV isn't supposed to be
*doing* stuff, it's for *editing* entities.
On Fri, 2002-04-26 at 15:04, Glyph Lefkowitz wrote:
> If I'm reading this right, the main server has used 1 minute of CPU
> time; yours has used 5. The CPU leak in Twisted has been resolved as
> far as I know... does yours have something to do with fresher?
> (Itamar's server, by contrast, has used 3 CPU seconds and radix's has
> used 0)
Yeah, I guess the leak in Twisted has been resolved, or the other
processes would be racking up more time too. I don't know, maybe I have
a timeout mis-specified somewhere?
The moon is full, 99.7% illuminated, 14.2 days old.