> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
out.
-Jim Washington
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
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
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
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
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
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
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
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
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
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
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
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
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
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
34 matches
Mail list logo