Re: [Zope3-dev] Re: revisiting IResult (for in-Zope pipelining)

2007-04-16 Thread Jim Washington
> I'm more concretely +1 on (a) now that I've spelled out these > options. Since no one has given a true -1 on it, I will proceed with > that, unless we get further discussion. Thanks, Gary I am looking forward to using some of thi

Re: [Zope3-dev] Re: Re-revisiting IResult (for in-Zope pipelining)

2007-07-13 Thread Jim Washington
kely in the BrowserPublication, > because there you have access to the context as well as the published > object typically (being a view class). > Doesn't the published object, being a view class, have context and request as instance variables? object.context and object.requ

[Zope3-dev] JSON

2005-05-26 Thread Jim Washington
evel code in zope.app.pub*. Would it be possible to do this as a product? Presuming it is bad form to monkey-patch zope.app.publication.httpfactory, is there a more component-ish way to do the same thing? Or would it be best to set-up a collaboration and put it in t

[Zope3-dev] Re: JSON

2005-05-31 Thread Jim Washington
3.1. > Hi, Philipp I got JSON-RPC working this weekend with Stephan's instructions and a bit of additional spelunking in the main source. I will, however, take a look at davuseragent to see if you did anything more elegantly. :) Thanks, -Jim Washington

[Zope3-dev] rdb: Disappearing Connection

2005-12-13 Thread Jim Washington
urn up anything, so I'll submit a collector issue if I see consensus that zope.app.rdb is the place to remedy this. -Jim Washington ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] rdb: Disappearing Connection

2005-12-13 Thread Jim Washington
r is about idleness, so I would think it unlikely that one would be resuming an 8-hour-old transaction. Could that happen? -Jim Washington ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

[Zope3-dev] Re: rdb: Disappearing Connection

2005-12-13 Thread Jim Washington
Florent Guillaume wrote: Jim Washington wrote: Spelunking a bit in the code, zope.app.rdb.ZopeDatabaseAdapter.isConnected() looks at whether _v_connection is present, not whether the connection is actually alive. If we fix this here, isConnected() perhaps should handle the case where the

Re: [Zope3-dev] Re: rdb: Disappearing Connection

2005-12-13 Thread Jim Washington
Jim Washington wrote: Florent Guillaume wrote: Jim Washington wrote: Spelunking a bit in the code, zope.app.rdb.ZopeDatabaseAdapter.isConnected() looks at whether _v_connection is present, not whether the connection is actually alive. If we fix this here, isConnected() perhaps should

Re: [Zope3-dev] rdb: Disappearing Connection

2005-12-13 Thread Jim Washington
Christian Theune wrote: Am Dienstag, den 13.12.2005, 16:32 -0500 schrieb Jim Washington: Christian Theune wrote: Well. First, the error would be something like an OperationalError (or similar). Hmm. Not too distinguishable. Ideally we could: - differentiate this kind of

Re: [Zope3-dev] Re: rdb: Disappearing Connection

2005-12-14 Thread Jim Washington
jürgen Kartnaller wrote: Without going much deeper into the way zope uses database connections. Wouldn't MySQL:Ping solve the reconnect Problem. That's what I used in my old C++ projects. Some kind of "ensureConnected" at the right place. Jürgen Thanks! I'll look

Re: [Zope3-dev] Re: rdb: Disappearing Connection

2005-12-16 Thread Jim Washington
Dieter Maurer wrote: Jim Washington wrote at 2005-12-13 21:40 -0500: ... Now, looking closer at the code, a ping like this might be not too bad, because isConnected() is only called when a connection is requested, not for every SQL statement executed. So, it might not be so onerous as

Re: [Zope3-dev] problem with multiple instances of zope3 as daemon via init script on gentoo

2006-01-11 Thread Jim Washington
Manager in $INSTANCE_HOME" su - $ZOPE_USER -c "$INSTANCE_HOME/bin/zopectl help" eend $? } Does this script put a zdsock file in /etc/init.d? I have noticed that the zdsock file is created in the directory where zopectl is called. If th

Re: [Zope3-dev] Twisted? We lost the username in the access.log

2006-01-12 Thread Jim Washington
nly interested in getting x-forwarded-for in the log (my machines are all behind pound, and 127.0.0.1 as ip address is pretty useless), but I found the XXX about user while I was spelunking there. -Jim Washington ___ Zope3-dev mailing list Zope3

Re: [Zope3-dev] Twisted? We lost the username in the access.log

2006-01-13 Thread Jim Washington
Jim Washington wrote: Any word on this? This afternoon, I put together a hack that involves pushing the response's authuser in a header (zope.publisher.http.HTTPResponse.getHeaders) to twisted's response, then using that in the logger (twisted.web2.log.BaseCommonAccessLoggingObserver

[Zope3-dev] xmlrpc:view (and jsonrpc:view)

2006-01-26 Thread Jim Washington
them by explaining the added simplicity it brings. -Jim Washington it-seemed-to-be-the-right-thing-to-do-at-the-moment ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] Re: xmlrpc:view (and jsonrpc:view)

2006-01-30 Thread Jim Washington
the distinction between a jsonrpc request and a direct browser request can be a bit blurred. Such a method would have a URL and would be ordinarily traversable in a direct browser request. -Jim Washington ___ Zope3-dev mailing list Zope3-dev@zope.org Un

[Zope3-dev] Additional address(es) in access.log

2006-01-31 Thread Jim Washington
e trustable, but it is much more informative than '192.168.1.1' for every address if you run z3 behind a proxy like pound. Please pardon if the patch is not-quite-right. I did not read the directions. -Jim Washington *** log.py Sat Jan 28 19:20:33 2006 --- /usr/lib/zope-3.2.0/lib/p

[Zope3-dev] httpgz in zope.conf?

2006-03-20 Thread Jim Washington
hooks in zope.conf? Or would that be a bad idea? -Jim Washington ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] Re: httpgz in zope.conf?

2006-03-20 Thread Jim Washington
s to be updated first. I'll maybe look into that when I have time. -Jim Washington ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] httpgz in zope.conf?

2006-03-21 Thread Jim Washington
Gary Poster wrote: On Mar 20, 2006, at 9:39 AM, Stephan Richter wrote: On Monday 20 March 2006 09:35, Jim Washington wrote: [...] BTW, I would be glad to see a proposal to add this to the core. I think httpgz is general very interesting to a lot of people. +1 If it goes into the core

Re: [Zope3-dev] zc.datetimewidget and ITZInfo request adapter

2006-04-02 Thread Jim Washington
out. -Jim Washington ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

[Zope3-dev] Preview - gzipping (improved) as wsgi middleware

2006-05-04 Thread Jim Washington
exclude any content-types you want from gzipping At the same URL, I'm also previewing a similar package to minimize javascript. As usual, installation and configuration instructions are in the README (http://zif.hill-street.net/gzipper/README.txt). development status: "works for

Re: [Zope3-dev] Preview - gzipping (improved) as wsgi middleware

2006-05-04 Thread Jim Washington
I'm really excited about the possibilities this is a small example of. I recall Gary saying something about zc.resourcelibrary possibly being wsgi-middleware-able, and that would be really cool! And with wsgi-friendly zope2, (does zope.paste work in Five?), well, I c

Re: [Zope3-dev] Zope 3 lacks Ajax capability?

2006-05-15 Thread Jim Washington
h time data becomes available to send to the client but that > approach still needs some element that does computation within the > server and then signals it has data ready to send to the client. > In my recent experiments with wsgi middleware, the twisted publisher in Zope 3 will do "ch

[Zope3-dev] Content-types in ResourceDirectory

2006-06-17 Thread Jim Washington
rning: guessed from content). Unfortunately, that is a problem, because the client looks at content-type to decide how to parse. If I set the content-type to text/html, it works OK. So, is this a Dojo bug or a Zope3 bug? I've done a wsgi filter trick to get around this for now. -Jim

Re: [Zope3-dev] Content-types in ResourceDirectory

2006-06-20 Thread Jim Washington
Jim Washington wrote: > Still playing with Dojo. Very Nice! :) > > I'm having a problem with content-type for items served from a > resourceDirectory. > > In particular, one piece of dojo, a file with a .html extension begins > with . The DOCTYPE says XHTML 1.0 > St

Re: [Zope3-dev] Content-types in ResourceDirectory

2006-06-20 Thread Jim Washington
t working properly. I think this falls properly under unforeseen use. -Jim Washington ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] Re: [SpringCleaning07]

2006-12-20 Thread Jim Washington
right up until serialization. Of course, those with better lxml knowledge are encouraged to point out issues with the implementation. -Jim Washington ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] Re: [SpringCleaning07]

2006-12-20 Thread Jim Washington
Martijn Faassen wrote: Jim Washington wrote: Martijn Faassen wrote: http://genshi.edgewall.org Inspired by Kid (in turn among others inspired by ZPT), the main template language of TurboGears, written by the people who also created Trac, and it seems to be getting traction. TurboGears among

Re: [Zope3-dev] Re: [SpringCleaning07]

2006-12-20 Thread Jim Washington
t YAFML. I think it may be just a matter of throwing a switch on SF, so it is certainly doable. For the moment, the Zif Collective is all "alpha" and experimental on SourceForge. Nothing released. Nothing to be alarmed about. Nothing decide

Re: [ZODB-Dev] Re: [Zope3-dev] Re: Community opinion about search+filter

2007-03-27 Thread Jim Washington
ctoradic. I have not done any tests to see whether unpacking a factoradic is significantly less expensive than re-sorting. Intuitively, it should be. In practice, I am not so sure. Anyway, this is FWIW. :) -Jim Washington ___ Zope3-dev mailing list

Re: [ZODB-Dev] Re: [Zope3-dev] Re: Community opinion about search+filter

2007-03-27 Thread Jim Washington
Dieter Maurer wrote: > Jim Washington wrote at 2007-3-27 08:24 -0400: > >> ... >> If you see a sort order as one permutation of a list, the factoradic >> technique provides a key to that permutation. So, in theory, one would >> sort the list, and store the factora

Re: [ZODB-Dev] Re: [Zope3-dev] Re: Community opinion about search+filter

2007-03-27 Thread Jim Washington
Paul Winkler wrote: > On Tue, Mar 27, 2007 at 03:25:00PM -0400, Jim Washington wrote: > >> A factoradic index is representable as a long integer. Given that >> integer and the canonical list, you can regenerate the permutation >> represented by that integer. So, inste

Re: [ZODB-Dev] Re: [Zope3-dev] Re: Community opinion about search+filter

2007-03-30 Thread Jim Washington
Dieter Maurer wrote: > Jim Washington wrote at 2007-3-27 16:28 -0400: > >> ... >> Yes, I think so, at least in the implementation/algorithm I am using. >> There may be other implementations that do not need this. Note, >> however, that the canonical list does