[Zope-dev] TAL/ZPT expand-macros on when FTP get?
One thing I'd like to see in METAL/TAL is to have it always expand macros when an FTP get is performed. I'm using HTML-KIT now to do almost all of my Zope work, and it's wonderful (too bad its only FTP based, not WebDav). Anyway, if the macros where always expanded I'd be thrilled. Just a wish for the next release Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] another Zope hanging..
just for general information: Apache was not the problem.. PCGI also shows the problem.. a Zope binary release did not help it too bad.. ;-) -- christian On Fri, May 18, 2001 at 05:36:47PM +0200, Christian Scholz wrote: > Hi! > > Another test without apache inbetween is still running now.. > Could apache and it's proxypass be the problem? > > I am simply using ProxyPass and ProxyPassReverse in front > of Zope in a simple virtual site environment.. > > Apache version is 1.3.19 > > Where is the bug then? In Zope or in Apache? > I also have other servers running like that for ages > without problems though it's another host and thus another > apache version. > > cheers, > Christian > > > -- > COM.lounge http://comlounge.net/ > communication & design [EMAIL PROTECTED] > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) -- COM.lounge http://comlounge.net/ communication & design [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZCatalog/TextIndex: searching for the exact phrase "word1 word2"
You should be able to do this with quotes around the words, but that feature is sort of only half-wired-up at this point (it was *never* implemented... when I investigated this, I was amazed to see that there were hooks for it and everything within the query code, some marshalling code, some other stuff... and guess what it all led to... a method that didn't exist, and no actual way to do phrase searching!). Currently, quotes around word do the same thing as parens around words (word1 NEAR word2). Sigh. - C - Original Message - From: "Erik Enge" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 18, 2001 12:25 PM Subject: [Zope-dev] ZCatalog/TextIndex: searching for the exact phrase "word1 word2" > Hiya, > > it basically says it in the subject. How can I search for "word1 > word2" without ZCatalog/TextIndex interpreting it as "word1" or/and > "word2"? > > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) > ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZCatalog/TextIndex: searching for the exact phrase "word1 word2"
Hiya, it basically says it in the subject. How can I search for "word1 word2" without ZCatalog/TextIndex interpreting it as "word1" or/and "word2"? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] another Zope hanging..
Could be, this is a big clue... I'd encourage you to continue diagnosis and see if you can categorically determine that this doesn't happen with ZServer only. I will not be able to try to replicate your problem until next week.. - Original Message - From: "Christian Scholz" <[EMAIL PROTECTED]> To: "Chris McDonough" <[EMAIL PROTECTED]> Cc: "Christian Scholz" <[EMAIL PROTECTED]>; "Tino Wildenhain" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, May 18, 2001 11:36 AM Subject: Re: [Zope-dev] another Zope hanging.. > Hi! > > Another test without apache inbetween is still running now.. > Could apache and it's proxypass be the problem? > > I am simply using ProxyPass and ProxyPassReverse in front > of Zope in a simple virtual site environment.. > > Apache version is 1.3.19 > > Where is the bug then? In Zope or in Apache? > I also have other servers running like that for ages > without problems though it's another host and thus another > apache version. > > cheers, > Christian > > > -- > COM.lounge http://comlounge.net/ > communication & design [EMAIL PROTECTED] > ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] another Zope hanging..
Hi! Another test without apache inbetween is still running now.. Could apache and it's proxypass be the problem? I am simply using ProxyPass and ProxyPassReverse in front of Zope in a simple virtual site environment.. Apache version is 1.3.19 Where is the bug then? In Zope or in Apache? I also have other servers running like that for ages without problems though it's another host and thus another apache version. cheers, Christian -- COM.lounge http://comlounge.net/ communication & design [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] another Zope hanging..
> -- > 2001-05-18T14:59:49 PANIC(300) z2 Startup exception > Traceback (innermost last): > File /opt/zopeneu/z2.py, line 566, in ? > File , line 1, in ? > File /opt/zopeneu/lib/python/Zope/__init__.py, line 94, in ? > File /opt/zopeneu/lib/python/ZODB/__init__.py, line 85, in ? > ImportError: undefined symbol: PyObject_Init > > So what does this want to tell me? ;-) It's telling you that you're running a Zope compiled with Python 2.X under Python 1.5.2.. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] another Zope hanging..
> Hi! > > > Is there any evidence of any sort of relationship between the broken pipe > > error and the hang? Do they happen at the same time? Or do they have no > > discernable relationship with one another? How about memory utilization? > > Is the process leaking memory? > > yes, they happen at the same time.. Excellent! Now we just need to be able to repeat it here if you're able to repeat it well enough, and you're running Zope on Windows or Linux, and you're willing to do so, please archive your whole Zope dir and send it to me (if feasible, I don't want a 200MB Data.fs ;-) - C ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] another Zope hanging..
Hi! Hm, another strange thing.. I've now tried to start Zope via the normal ./start script. (I've done it via some own script with INSTANCE_HOME set). What I've got was: bash-2.04# ./start -- 2001-05-18T14:59:49 PANIC(300) z2 Startup exception Traceback (innermost last): File /opt/zopeneu/z2.py, line 566, in ? File , line 1, in ? File /opt/zopeneu/lib/python/Zope/__init__.py, line 94, in ? File /opt/zopeneu/lib/python/ZODB/__init__.py, line 85, in ? ImportError: undefined symbol: PyObject_Init So what does this want to tell me? ;-) I've also done the following before that: - delete Data.fs in my instance home - create a new user - create a folder - put an image (test.gif) into that folder - started the test on that image => hang I've also removed any products I don't need which still have been installed.. -- christian On Fri, May 18, 2001 at 10:49:23AM -0400, Chris McDonough wrote: > Is there any evidence of any sort of relationship between the broken pipe > error and the hang? Do they happen at the same time? Or do they have no > discernable relationship with one another? How about memory utilization? > Is the process leaking memory? > > - Original Message - > From: "Christian Scholz" <[EMAIL PROTECTED]> > To: "Chris McDonough" <[EMAIL PROTECTED]> > Cc: "Christian Scholz" <[EMAIL PROTECTED]>; "Tino Wildenhain" > <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, May 18, 2001 10:13 AM > Subject: Re: [Zope-dev] another Zope hanging.. > > > > Hi! > > > > Just FYI: The server still hangs once a day and another one is doing > > the same.. > > It even does this when simply accessing one page or image over and over > > again. > > More precisely I've started the server and did > > > > ab -n 10 -c 10 http://foo.bar/we/pics/someimg.gif > > > > (ab being the apache benchmarking utility) > > > > and after a while I get the broken pipe error. > > > > I've also changed my python version to 2.0 and tested it with this > > but still the same effect. Also changing the server (and thus > > hardware and system) did not help it. > > I've also removed the mysqlda from the zope installation but also this > > did not help.. > > I will try now to create the smallest version of the site that still > hangs.. > > > > Dunno if anybody has some idea, I actually have none.. > > > > I'll keep you informed.. > > > > -- christian > > > > PS: strangely it works on the development server but also here I am doing > > some tests with ab right now.. and this one is still 1.5.2 > > > > > > On Thu, May 03, 2001 at 02:16:30PM -0400, Chris McDonough wrote: > > > > Well, my problem might be that in my case most sql statement are done > > > inside > > > > some attribute provider of ZPatterns.. This is using ZSQL methods > > > internally > > > > but actually those then won't show up I guess.. > > > > > > Even if you weren't using ZPatterns, the error probably wouldn't jump > out > > > and say "here I am!" So I don't think there's much difference between > using > > > ZPatterns and not using ZPatterns. The process of detecting when > something > > > hangs is just like any other troubleshooting process, it's a matter of > > > exclusion. If you notice that the request named "foobargorf/fleafang" > > > *always* hangs, you investigate what it does, and try to reproduce it. > If > > > it's incidental, so be it, and move on to the next theory. > > > > > > > > > > > I've also seen that some more recent version of the mysql stuff is > around > > > > and I am using this now.. > > > > > > > > The problem's also that I just have a few methods to invoke from the > > > outside > > > > which do lots of things by calling other object. Thus I might not > really > > > see > > > > what's really causing the problem.. I hope though that my upgrade will > > > show some > > > > benefit.. > > > > > > The -M log perhaps won't show you the actual operation that's causing > the > > > hang, but it will show you the entry point into a routine which causes > the > > > hang. It's your job from there to track down the cause. This is just > like > > > debugging a program. You get an error somewhere, and you need to track > it > > > back to its root, which may be six levels up the call stack buried in > some > > > godforsaken regex. ;-) > > > > > > > > > > > > > -- > > COM.lounge http://comlounge.net/ > > communication & design [EMAIL PROTECTED] > > > -- COM.lounge http://comlounge.net/ communication & design [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] another Zope hanging..
Hi! > Is there any evidence of any sort of relationship between the broken pipe > error and the hang? Do they happen at the same time? Or do they have no > discernable relationship with one another? How about memory utilization? > Is the process leaking memory? yes, they happen at the same time.. I've also stripped it down and removed evertyhing and put some test.gif up there.. Then running ab against it created again a broken pipe (quite soon). looking via top the memory utilization seems ok.. -- christian PS: with this test.gif it seems to hang very quickly.. PPS: ab tests on my development host are still running without problems.. strange.. > > - Original Message - > From: "Christian Scholz" <[EMAIL PROTECTED]> > To: "Chris McDonough" <[EMAIL PROTECTED]> > Cc: "Christian Scholz" <[EMAIL PROTECTED]>; "Tino Wildenhain" > <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, May 18, 2001 10:13 AM > Subject: Re: [Zope-dev] another Zope hanging.. > > > > Hi! > > > > Just FYI: The server still hangs once a day and another one is doing > > the same.. > > It even does this when simply accessing one page or image over and over > > again. > > More precisely I've started the server and did > > > > ab -n 10 -c 10 http://foo.bar/we/pics/someimg.gif > > > > (ab being the apache benchmarking utility) > > > > and after a while I get the broken pipe error. > > > > I've also changed my python version to 2.0 and tested it with this > > but still the same effect. Also changing the server (and thus > > hardware and system) did not help it. > > I've also removed the mysqlda from the zope installation but also this > > did not help.. > > I will try now to create the smallest version of the site that still > hangs.. > > > > Dunno if anybody has some idea, I actually have none.. > > > > I'll keep you informed.. > > > > -- christian > > > > PS: strangely it works on the development server but also here I am doing > > some tests with ab right now.. and this one is still 1.5.2 > > > > > > On Thu, May 03, 2001 at 02:16:30PM -0400, Chris McDonough wrote: > > > > Well, my problem might be that in my case most sql statement are done > > > inside > > > > some attribute provider of ZPatterns.. This is using ZSQL methods > > > internally > > > > but actually those then won't show up I guess.. > > > > > > Even if you weren't using ZPatterns, the error probably wouldn't jump > out > > > and say "here I am!" So I don't think there's much difference between > using > > > ZPatterns and not using ZPatterns. The process of detecting when > something > > > hangs is just like any other troubleshooting process, it's a matter of > > > exclusion. If you notice that the request named "foobargorf/fleafang" > > > *always* hangs, you investigate what it does, and try to reproduce it. > If > > > it's incidental, so be it, and move on to the next theory. > > > > > > > > > > > I've also seen that some more recent version of the mysql stuff is > around > > > > and I am using this now.. > > > > > > > > The problem's also that I just have a few methods to invoke from the > > > outside > > > > which do lots of things by calling other object. Thus I might not > really > > > see > > > > what's really causing the problem.. I hope though that my upgrade will > > > show some > > > > benefit.. > > > > > > The -M log perhaps won't show you the actual operation that's causing > the > > > hang, but it will show you the entry point into a routine which causes > the > > > hang. It's your job from there to track down the cause. This is just > like > > > debugging a program. You get an error somewhere, and you need to track > it > > > back to its root, which may be six levels up the call stack buried in > some > > > godforsaken regex. ;-) > > > > > > > > > > > > > -- > > COM.lounge http://comlounge.net/ > > communication & design [EMAIL PROTECTED] > > > -- COM.lounge http://comlounge.net/ communication & design [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] another Zope hanging..
Is there any evidence of any sort of relationship between the broken pipe error and the hang? Do they happen at the same time? Or do they have no discernable relationship with one another? How about memory utilization? Is the process leaking memory? - Original Message - From: "Christian Scholz" <[EMAIL PROTECTED]> To: "Chris McDonough" <[EMAIL PROTECTED]> Cc: "Christian Scholz" <[EMAIL PROTECTED]>; "Tino Wildenhain" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, May 18, 2001 10:13 AM Subject: Re: [Zope-dev] another Zope hanging.. > Hi! > > Just FYI: The server still hangs once a day and another one is doing > the same.. > It even does this when simply accessing one page or image over and over > again. > More precisely I've started the server and did > > ab -n 10 -c 10 http://foo.bar/we/pics/someimg.gif > > (ab being the apache benchmarking utility) > > and after a while I get the broken pipe error. > > I've also changed my python version to 2.0 and tested it with this > but still the same effect. Also changing the server (and thus > hardware and system) did not help it. > I've also removed the mysqlda from the zope installation but also this > did not help.. > I will try now to create the smallest version of the site that still hangs.. > > Dunno if anybody has some idea, I actually have none.. > > I'll keep you informed.. > > -- christian > > PS: strangely it works on the development server but also here I am doing > some tests with ab right now.. and this one is still 1.5.2 > > > On Thu, May 03, 2001 at 02:16:30PM -0400, Chris McDonough wrote: > > > Well, my problem might be that in my case most sql statement are done > > inside > > > some attribute provider of ZPatterns.. This is using ZSQL methods > > internally > > > but actually those then won't show up I guess.. > > > > Even if you weren't using ZPatterns, the error probably wouldn't jump out > > and say "here I am!" So I don't think there's much difference between using > > ZPatterns and not using ZPatterns. The process of detecting when something > > hangs is just like any other troubleshooting process, it's a matter of > > exclusion. If you notice that the request named "foobargorf/fleafang" > > *always* hangs, you investigate what it does, and try to reproduce it. If > > it's incidental, so be it, and move on to the next theory. > > > > > > > > I've also seen that some more recent version of the mysql stuff is around > > > and I am using this now.. > > > > > > The problem's also that I just have a few methods to invoke from the > > outside > > > which do lots of things by calling other object. Thus I might not really > > see > > > what's really causing the problem.. I hope though that my upgrade will > > show some > > > benefit.. > > > > The -M log perhaps won't show you the actual operation that's causing the > > hang, but it will show you the entry point into a routine which causes the > > hang. It's your job from there to track down the cause. This is just like > > debugging a program. You get an error somewhere, and you need to track it > > back to its root, which may be six levels up the call stack buried in some > > godforsaken regex. ;-) > > > > > > > > -- > COM.lounge http://comlounge.net/ > communication & design [EMAIL PROTECTED] > ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] RE: [Zope] xmlrpc slowness
I've been collecting XMLRPC links too! :-) Here's my list, please excuse any duplications, I've just copied it from my Favorites - http://www.zope.org/Members/teyc/howtoXMLRPCDateTime http://www.byte.com/column/BYT19991021S0014 http://www.zope.org/Members/MacGregor/Client_Server http://www.zope.org/Members/teyc/howxmlrpc http://musi-cal.mojam.com/~skip/python/gzip-xmlrpc.txt http://www.zope.org/Members/itamar/load_site http://www.onlamp.com/pub/a/python/2000/11/22/xmlrpcclient.html http://www.onlamp.com/pub/a/python/2001/01/17/xmlrpcserver.html http://ose.sourceforge.net/ http://sourceforge.net/projects/py-xmlrpc http://www.zopezen.org/ZopeZen/SDot/987520531 http://zopefish.weblogs.com/manageZopeDocs http://www.squishdot.org/989623316/index_html http://www.pythonware.com/products/xmlrpc/ http://www.zope.org/Members/Amos/XML-RPC http://www.zope.org/Members/dshaw/XMLRPCProxy http://www.xml-rpc.com/spec http://www.xml.com/pub/a/2000/01/xmlrpc/index.html http://www.zope.org/Members/teyc/howtoXMLRPC2 http://www.zope.org/Members/teyc/pipermailXMLRPCWoes http://www.yoursurfice.com/Content/XMLRPCCOM/XMLRPCCOM.htm http://groups.yahoo.com/group/xml-rpc/message/1409 http://lists.zope.org/pipermail/zope/2001-May/089457.html Hope there's a few in there that help and that you didn't already have! :-) Cheers, Jon ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] another Zope hanging..
Hi! Just FYI: The server still hangs once a day and another one is doing the same.. It even does this when simply accessing one page or image over and over again. More precisely I've started the server and did ab -n 10 -c 10 http://foo.bar/we/pics/someimg.gif (ab being the apache benchmarking utility) and after a while I get the broken pipe error. I've also changed my python version to 2.0 and tested it with this but still the same effect. Also changing the server (and thus hardware and system) did not help it. I've also removed the mysqlda from the zope installation but also this did not help.. I will try now to create the smallest version of the site that still hangs.. Dunno if anybody has some idea, I actually have none.. I'll keep you informed.. -- christian PS: strangely it works on the development server but also here I am doing some tests with ab right now.. and this one is still 1.5.2 On Thu, May 03, 2001 at 02:16:30PM -0400, Chris McDonough wrote: > > Well, my problem might be that in my case most sql statement are done > inside > > some attribute provider of ZPatterns.. This is using ZSQL methods > internally > > but actually those then won't show up I guess.. > > Even if you weren't using ZPatterns, the error probably wouldn't jump out > and say "here I am!" So I don't think there's much difference between using > ZPatterns and not using ZPatterns. The process of detecting when something > hangs is just like any other troubleshooting process, it's a matter of > exclusion. If you notice that the request named "foobargorf/fleafang" > *always* hangs, you investigate what it does, and try to reproduce it. If > it's incidental, so be it, and move on to the next theory. > > > > > I've also seen that some more recent version of the mysql stuff is around > > and I am using this now.. > > > > The problem's also that I just have a few methods to invoke from the > outside > > which do lots of things by calling other object. Thus I might not really > see > > what's really causing the problem.. I hope though that my upgrade will > show some > > benefit.. > > The -M log perhaps won't show you the actual operation that's causing the > hang, but it will show you the entry point into a routine which causes the > hang. It's your job from there to track down the cause. This is just like > debugging a program. You get an error somewhere, and you need to track it > back to its root, which may be six levels up the call stack buried in some > godforsaken regex. ;-) > > > -- COM.lounge http://comlounge.net/ communication & design [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] RE: [Zope] xmlrpc slowness
[Shilad] The new release is up on sourceforge. It should be compatible with the Zope client/server it was tested against. It is at: http://www.sourceforge.net/projects/py-xmlrpc Let me know how it goes. I'm curious to see what kind of speed increase you see. My guess is that the implementation at the other xmlrpc end will be the bottle-neck pretty soon. [Albert] Thanks *very* much for this!!! 1000 xml-rpc calls per second with commodity hardware sounds pretty attractive! I've had to just pass it on to a friend to checkout at the moment, but will try to get back to you soon with speed results, as I'm sure the other 3 CCs will. I've added the Zope list back to the addresses as there may be others there interested in trying it out now that Phil Harris has confirmed the new version interworks correctly with the Zope implementation. Also added [Zope-dev] list as Zope developers should be more interested and Matt Hamilton as issues below may be closely related to his posting "[Zope-dev] Asyncore in an external method". http://lists.zope.org/pipermail/zope-dev/2001-May/011274.html In a previous email CC you said: "I'm really excited that zope people may be using this. Let me know if you have any questions/concerns/requests." As you've also done binary releases for Windows and the various unixen that Zope does releases for, it should be suitable for actually integrating into Zope rather than just as an add-on "Product" or it's present form as just a separate python process talking to Zope rather than implementing Zope's xml-rpc itself. So here goes with some questions/concerns/requests... In the README you mention: "Some time I should document everything better, especially the nonblocking aspects of the server and client." and " * Non-Blocking IO: This becomes important when you have critical applications (especially servers) that CANNOT be held up because a client is trickling a request in or is reading a response at 1 byte per second. * Event based: This goes hand in hand with non-blocking IO. It lets you use an event based model for your client/server application, where the main body is basically the select loop on the file descriptors you are interested in. The work is done by registering callbacks for different events you received on file descriptors. This can be very nice. There is some work to be done here, but all the hooks are in place. See TO DO for a list of the features that have yet to be incorporated." (BTW there is currently no "TO DO" file.) These aspects are a very big advantage. For Zope as a client, I suspect that the trickling issue may also be very important since it could be blocking an expensive Zope thread while waiting for a response from a slow remote server to pass on some information in response to relayed request (ie http/xmlrpc relay mode or even straight xmlrpc/xmlrpc proxy mode). As you also mentioned, "the implementation at the other xmlrpc end will be the bottle-neck pretty soon". Sorry I'm not very familiar with how to do this stuff myself, so I have 3 questions which maybe you could answer when you get around to doing those docs (or even better by also providing implementations in the next release ;-) or perhaps someone else on CC list knows the answers or is planning to do something about it? 1) I'm not sure if I've got it right, but my understanding is that despite being based on a Medusa Reactor design that can handle many web hits with a single thread, Zope also maintains a small pool of threads to allow for (brief) blocking on calls to the file system for ZODB and for (also brief) external connections. I suspect these threads are "expensive" because they each end up keeping separate copies of cached web pages etc (to avoid slow python thread switching). So simply increasing the number of such threads is not recommended for improving Zope performance - performance relies on the non-blocking async Medusa Reactor design of Zserver, not on the threading, which just seems to be a sort of extra workaround. If that is correct, then a few concurrent external calls to slow external xmlrpc servers (eg for credit card authorization taking 30 seconds or more) could easily tie up a lot of Zope resources. The non-blocking py-xmlrpc client could presumably surrender it's turn in the main event loop for it's thread until a response is received and then be woken up by the response, thus improving things greatly. Unfortunately I have no idea how to do this - whether it would just happen automatically or there are built in facilities for doing that sort of thing easily in Zope already, or whether it is difficult to do. I am just guessing that there would be some special tricks needed to wake up a channel when a response comes back (eg using the stuff in Zserver/medusa/select_trigger.py and Zserver/PubCore/. which I don't fully understand, but looks relevant). Maybe I have misunderstood, but it looks to me like existing use of xmlrpc clients *from* Zope to
Re: [Zope-dev] 'None' object has no attribute 'load'
Chris McDonough wrote: > > > Chris McDonough wrote: > > It is unfortunately one of the things lowering certain parts of NIP's > opinions > > of Zope :-S > > Ah I love FUD. Well, opine away. It has no actual effect on the system > that I can detect. Deinstalling CST will make it go away as well. Easier said than done... That said, I think I can convince the people involved now ;-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] 'None' object has no attribute 'load'
> Chris McDonough wrote: > It is unfortunately one of the things lowering certain parts of NIP's opinions > of Zope :-S Ah I love FUD. Well, opine away. It has no actual effect on the system that I can detect. Deinstalling CST will make it go away as well. > But, I think I now have confidence to say there's nothing behind this that > actually matters, which I couldn't before :-) It needs to be tracked down and fixed, but I believe it's harmless. - C ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] 'None' object has no attribute 'load'
Chris McDonough wrote: > > I suspect this has something to do with the _p_jar attribute of the > mounted storage object becoming None at some point after a commit. That > said, I'm in over my head, and I'm going to need some help from others > at DC. Since this error rarely gets raised at the user level, it hasn't > been a priority, and probably still won't be for some time, at least > until we get the steam up to put CST into Zope in some fashion. Is it > causing you problems other than the error in the log? It is unfortunately one of the things lowering certain parts of NIP's opinions of Zope :-S But, I think I now have confidence to say there's nothing behind this that actually matters, which I couldn't before :-) thanks for your help :-) Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] 'None' object has no attribute 'load'
I actually expected all along that it was mounted storage objects causing the error (this happens with any mounted storage, not just the one defined in CST).At least now we know it's the case. I'm surprised no one thought of doing this earlier. ;-) I suspect this has something to do with the _p_jar attribute of the mounted storage object becoming None at some point after a commit. That said, I'm in over my head, and I'm going to need some help from others at DC. Since this error rarely gets raised at the user level, it hasn't been a priority, and probably still won't be for some time, at least until we get the steam up to put CST into Zope in some fashion. Is it causing you problems other than the error in the log? - C Chris Withers wrote: > > Chris McDonough wrote: > > > > python > > import Zope > > app = Zope.app() > > ob = app._p_jar['\000\000\000\000\000(\347\026'] > > print ob.id > > print ob.__class__ > > Thanks, that worked, and sorry Chris, but I'm about to ruin your day :-S > > >>> app = Zope.app() > >>> ob = app._p_jar['\000\000\000\000\000(\347\026'] > >>> print ob.id > Traceback (innermost last): > File "", line 1, in ? > AttributeError: id > >>> print ob.__class__ > Products.CoreSessionTracking.SessionDataContainer.SessionDataContainerMount at > 00BBDE10> > >>> > > So it seems that even though I'm not actually using any CST stuff right now, > it's still causing these errors... > > Any ideas? > > cheers, > > Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] 'None' object has no attribute 'load'
Chris McDonough wrote: > > python > import Zope > app = Zope.app() > ob = app._p_jar['\000\000\000\000\000(\347\026'] > print ob.id > print ob.__class__ Thanks, that worked, and sorry Chris, but I'm about to ruin your day :-S >>> app = Zope.app() >>> ob = app._p_jar['\000\000\000\000\000(\347\026'] >>> print ob.id Traceback (innermost last): File "", line 1, in ? AttributeError: id >>> print ob.__class__ >>> So it seems that even though I'm not actually using any CST stuff right now, it's still causing these errors... Any ideas? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Asyncore in an external method
Dear All, I have just written a parallel whois lookup as an external method. It uses Asyncore to handle the parallelism. It works fine from the command line, but I am now trying to use it within Zope with not much luck the request just hangs the server. I have just wondered, can this actually be done? I know Medusa uses asyncore -- can a method within Zope also use it? -Matt -- Matt Hamilton [EMAIL PROTECTED] Netsight Internet Solutions, Ltd. Business Vision on the Internet http://www.netsight.co.uk +44 (0)117 9090901 Web Hosting | Web Design | Domain Names | Co-location | DB Integration ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] 'None' object has no attribute 'load'
python import Zope app = Zope.app() ob = app._p_jar['\000\000\000\000\000(\347\026'] print ob.id print ob.__class__ ... etc. Chris Withers wrote: > > Hi, > > Another data point on these errors. > > -- > 2001-05-18T11:01:44 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\00 > 0(\347\026' > Traceback (innermost last): > File E:\Zope\2379B4~1.2\lib\python\ZODB\Connection.py, line 508, in setstate > AttributeError: 'None' object has no attribute 'load' > > I get the quite often when playing with Squishdot. > I don't remember getting them ages ago, but I have no idea what could be causing > it. > > How would I go about finding the id/path of the objects the ZODB couldn't load > state for? > I suspect this may not have a nice answer... > > cheers, > > Chris > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] 'None' object has no attribute 'load'
Hi, Another data point on these errors. -- 2001-05-18T11:01:44 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\00 0(\347\026' Traceback (innermost last): File E:\Zope\2379B4~1.2\lib\python\ZODB\Connection.py, line 508, in setstate AttributeError: 'None' object has no attribute 'load' I get the quite often when playing with Squishdot. I don't remember getting them ages ago, but I have no idea what could be causing it. How would I go about finding the id/path of the objects the ZODB couldn't load state for? I suspect this may not have a nice answer... cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )