Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results
Brandon Craig Rhodes wrote: I'm encouraged by the fact that this time it looks like people with time are interested enough to actually begin producing code? At the time that I made the 2007 proposal I was still very new to the code base and never got the courage up (or time available) to start making changes... The changes we're talking about are only really syntactic sugar so not really that scary. I'm left wondering where to put the tests, since while I know zope.component relies on zope.interface, is the reverse true? I guess it must be, since calling an interface already does some adaptation. Can anyone else confirm this and give me a hint as to where the tests and code should go? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: Brandon Craig Rhodes wrote: I'm encouraged by the fact that this time it looks like people with time are interested enough to actually begin producing code? At the time that I made the 2007 proposal I was still very new to the code base and never got the courage up (or time available) to start making changes... The changes we're talking about are only really syntactic sugar so not really that scary. I'm left wondering where to put the tests, since while I know zope.component relies on zope.interface, is the reverse true? I guess it must be, since calling an interface already does some adaptation. No, there is no dependency: zope.interface defines a hook point that zope.component uses. In the absence of zope.component, zope.interface uses a default implementation. Can anyone else confirm this and give me a hint as to where the tests and code should go? Tests likely belong in 'zope.interface.tests.test_adapter'. Tres. - -- === Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI4j4l+gerLs4ltQ4RAiiEAJ0Vp4RP1HeEdwu7YUyaY+Vsa6DAjwCdGeuO eHQbGlp8geoKGPoC4IKniYc= =amZR -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results
Chris Withers wrote at 2008-9-22 19:41 +0100: Shane Hathaway wrote: +1 from me as well on IFoo.adapt() with the signature Chris suggested. zope.component.getMultiAdapter() is only easy to remember if you're a die-hard Zope coder, while IFoo.adapt() seems more useful to the larger Python community. So if we're all in agreement, what happens next? We find a volunteer to work on this. For some time still, I will be very busy with gardening and have not much time for programming. Thus, I will not be a volunteer (in the near future). But, I have seen that you started work already :-) -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Sphinx extension for zope.interface?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Has anybody packaged up an extension to allow extracting APIs / docstrings cleanly from Zope interfaces in Sphinx? I found Chris McDonough's patch from back in April, but it no longer applies cleanly, and besides, as he notes, it should really be done as a standalone extension. Tres. - -- === Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI4tYX+gerLs4ltQ4RAhtiAJ9++cN/gwiXcI566tiFC6p/Y9MnXQCfaB8E aRaEnUBa07Pri23kUTIDraA= =IMQn -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope] delete a variable from REQUEST
Hi, thanks for ur reply. My problem is, my code is like if REQUEST['usr_msg']: On Mon, Sep 29, 2008 at 1:36 PM, Tino Wildenhain [EMAIL PROTECTED] wrote: Hi, indrajit926 indra wrote: Hi All, Iam relatively new to zope. I want to delete a variable and it value from REQUEST.I used python pop() and __delattr__() ,but getting attribute error. Actually you can't. (Not without writing a product in filesystem and getting deep into zope). Why would you? What you could do is to update one of the requests namespace to give the variable a new value. Regards Tino ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] delete a variable from REQUEST
Hi, thanks for ur reply. My problem is, my code is like #code code code if REQUEST['usr_msg']: do some operations. #some code related to project my program control loops with above if condition. REQUEST is in same context. so once REQUEST stores 'usr_msg ' every time when it goes to if condition , it performs that do some operations Due to above reason i want to delete that usr_msg variable from REQUEST also i cannot put restriction on usr_msg ,because it comes from user input, and user can give any text to that variable. thanks, Indrajit. On Mon, Sep 29, 2008 at 1:36 PM, Tino Wildenhain [EMAIL PROTECTED] wrote: Hi, indrajit926 indra wrote: Hi All, Iam relatively new to zope. I want to delete a variable and it value from REQUEST.I used python pop() and __delattr__() ,but getting attribute error. Actually you can't. (Not without writing a product in filesystem and getting deep into zope). Why would you? What you could do is to update one of the requests namespace to give the variable a new value. Regards Tino ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] delete a variable from REQUEST
Just set it to None. if REQUEST['usr_msg']: do_something() REQUEST.set('usr_msg', None) Then, the next time the condition will be false. 2008/9/30 indrajit926 indra [EMAIL PROTECTED]: Hi, thanks for ur reply. My problem is, my code is like #code code code if REQUEST['usr_msg']: do some operations. #some code related to project my program control loops with above if condition. REQUEST is in same context. so once REQUEST stores 'usr_msg ' every time when it goes to if condition , it performs that do some operations Due to above reason i want to delete that usr_msg variable from REQUEST also i cannot put restriction on usr_msg ,because it comes from user input, and user can give any text to that variable. thanks, Indrajit. On Mon, Sep 29, 2008 at 1:36 PM, Tino Wildenhain [EMAIL PROTECTED] wrote: Hi, indrajit926 indra wrote: Hi All, Iam relatively new to zope. I want to delete a variable and it value from REQUEST.I used python pop() and __delattr__() ,but getting attribute error. Actually you can't. (Not without writing a product in filesystem and getting deep into zope). Why would you? What you could do is to update one of the requests namespace to give the variable a new value. Regards Tino ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] delete a variable from REQUEST
Hi, indrajit926 indra wrote: Hi, thanks for ur reply. My problem is, my code is like #code code code if REQUEST['usr_msg']: do some operations. #some code related to project my program control loops with above if condition. REQUEST is in same context. so once REQUEST stores 'usr_msg ' every time when it goes to if condition , it performs that do some operations Due to above reason i want to delete that usr_msg variable from REQUEST But if you would really manage to delete this from REQUEST, you would get an exception when trying to use it in the way above. So, see Peters solution to your problem. also i cannot put restriction on usr_msg ,because it comes from user input, and user can give any text to that variable. If thats some kind of filter chain you probably want to change it to some private name space within request as you would be comfortably getting by REQUEST.set('allmystuff',dict()) at the very beginning. You can actually look up form values from REQUEST.form to distinguish between user input and data from your program. If you just ask REQUEST, you get some kind of stacking layers of name spaces where values get looked up. Please see the Zope book (online) for description of the API. Regards Tino thanks, Indrajit. On Mon, Sep 29, 2008 at 1:36 PM, Tino Wildenhain [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, indrajit926 indra wrote: Hi All, Iam relatively new to zope. I want to delete a variable and it value from REQUEST.I used python pop() and __delattr__() ,but getting attribute error. Actually you can't. (Not without writing a product in filesystem and getting deep into zope). Why would you? What you could do is to update one of the requests namespace to give the variable a new value. Regards Tino ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) smime.p7s Description: S/MIME Cryptographic Signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope hangs
Hi there in the last days my Zope server seems to hang and the CPU is almost every time at 100 %. I installed DeadlockDebugger and see a lot of these entries: - File /usr/local/Zope-2.10.5/lib/python/OFS/Traversable.py, line 288, in unrestrictedTraverse return obj File /usr/local/Zope-2.10.5/lib/python/ZODB/Connection.py, line 767, in setstate raise File /usr/local/Zope-2.10.5/lib/python/ZODB/Connection.py, line 820, in _setstate obj._p_serial = serial File /usr/local/Zope-2.10.5/lib/python/ZODB/serialize.py, line 605, in setGhostState obj.__setstate__(state) File /usr/local/Zope-2.10.5/lib/python/ZODB/serialize.py, line 597, in getState return unpickler.load() File /usr/local/Zope-2.10.5/lib/python/ZODB/serialize.py, line 471, in _persistent_load return self.load_oid(reference) File /usr/local/Zope-2.10.5/lib/python/ZODB/serialize.py, line 537, in load_oid return self._conn.get(oid) File /usr/local/Zope-2.10.5/lib/python/ZODB/Connection.py, line 225, in get return obj File /usr/local/Zope-2.10.5/lib/python/ZODB/FileStorage/FileStorage.py, line 562, in load self._lock_release() File /usr/local/lib/python2.4/threading.py, line 109, in acquire return rc - I am wondering what the last line File /usr/local/lib/python2.4/threading.py, line 109, in acquire return rc does exactly mean. Are the threads blocked? My configuration: -Zope 2.10.5 running with 8 threads on a 2-CPU machine with 8 GB of RAM -Python 2.4.4 -LDAPUserfolder -Silva CMS 2.0.8 -ZODB size: ~6 Gbyte -Only 6-10 people work in the CMS and no public access (spy bots, crawlers) access the Zope server Regards Nico ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope hangs
Yes, and you can use the Control_Panel/DebugInfo as well and scroll down to the Connections table. Out of the 8 threads most of them should be vacant (ie. None) and if there are some requests logged there they should in the range of 1 sec. If any of them are longer than 1 sec they are either stuck or doing something is supposed to take a long time (e.g. render a complex report, do a big upload, etc.) I once had a similar problem and I hacked the LDAPUserFolder to do a timing of the connections and found that connecting to the LDAP server was super slow and thus each connection cost too much time and it subsequently blocked the threads. Peter 2008/9/30 Nico Grubert [EMAIL PROTECTED]: Hi there in the last days my Zope server seems to hang and the CPU is almost every time at 100 %. I installed DeadlockDebugger and see a lot of these entries: - File /usr/local/Zope-2.10.5/lib/python/OFS/Traversable.py, line 288, in unrestrictedTraverse return obj File /usr/local/Zope-2.10.5/lib/python/ZODB/Connection.py, line 767, in setstate raise File /usr/local/Zope-2.10.5/lib/python/ZODB/Connection.py, line 820, in _setstate obj._p_serial = serial File /usr/local/Zope-2.10.5/lib/python/ZODB/serialize.py, line 605, in setGhostState obj.__setstate__(state) File /usr/local/Zope-2.10.5/lib/python/ZODB/serialize.py, line 597, in getState return unpickler.load() File /usr/local/Zope-2.10.5/lib/python/ZODB/serialize.py, line 471, in _persistent_load return self.load_oid(reference) File /usr/local/Zope-2.10.5/lib/python/ZODB/serialize.py, line 537, in load_oid return self._conn.get(oid) File /usr/local/Zope-2.10.5/lib/python/ZODB/Connection.py, line 225, in get return obj File /usr/local/Zope-2.10.5/lib/python/ZODB/FileStorage/FileStorage.py, line 562, in load self._lock_release() File /usr/local/lib/python2.4/threading.py, line 109, in acquire return rc - I am wondering what the last line File /usr/local/lib/python2.4/threading.py, line 109, in acquire return rc does exactly mean. Are the threads blocked? My configuration: -Zope 2.10.5 running with 8 threads on a 2-CPU machine with 8 GB of RAM -Python 2.4.4 -LDAPUserfolder -Silva CMS 2.0.8 -ZODB size: ~6 Gbyte -Only 6-10 people work in the CMS and no public access (spy bots, crawlers) access the Zope server Regards Nico ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope hangs
Yes, and you can use the Control_Panel/DebugInfo as well and scroll down to the Connections table. Out of the 8 threads most of them should be vacant (ie. None) and if there are some requests logged there they should in the range of 1 sec. If any of them are longer than 1 sec they are either stuck or doing something is supposed to take a long time (e.g. render a complex report, do a big upload, etc.) I once had a similar problem and I hacked the LDAPUserFolder to do a timing of the connections and found that connecting to the LDAP server was super slow and thus each connection cost too much time and it subsequently blocked the threads. Hi Peter thanks for your reply. At Control_Panel/DebugInfo I see --- None (44921) Tue Sep 30 13:24:18 2008 (0.37s)(... 'ACTUAL_URL': 'http://fog:8086/Control_Panel/DebugInfo/manage_main'}) (641) None(57523) None(69795) None(47637) Tue Sep 30 13:24:17 2008 (1.18s)(... path/to/any/doc')}) (48335) --- I sometimes see a LDAP call in the DeadlockProfiler output so it could be the reason. Do you still have the LDAP patch around? I'd like to do a timing of the connections, too. Regards Nico ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] anyone seen these errors with Zope 2.11.1?
Hi All, I recently ugpraded to Zope 2.11.1 and now get the following errors every so often: Module Products.PageTemplates.ZopePageTemplate, line 330, in _exec Module Products.PageTemplates.ZopePageTemplate, line 427, in pt_render Module Products.PageTemplates.PageTemplate, line 96, in pt_render Module zope.pagetemplate.pagetemplate, line 115, in pt_render - Warning: Macro expansion failed - Warning: zope.tal.taldefs.METALError: macro nesting limit (100) exceeded by u'template/macros/showbullet' Module zope.tal.talinterpreter, line 271, in __call__ Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 534, in do_optTag_tal Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 745, in do_insertStructure_tal Module Products.PageTemplates.Expressions, line 200, in evaluateStructure Module Products.PageTemplates.Expressions, line 232, in _handleText Module Products.PageTemplates.unicodeconflictresolver, line 69, in resolve Module zope.publisher.http, line 931, in getPreferredCharsets ValueError: too many values to unpack There appear to be two contradictory errors going on here: 1. - Warning: Macro expansion failed - Warning: zope.tal.taldefs.METALError: macro nesting limit (100) exceeded by u'template/macros/showbullet' 2. Module zope.publisher.http, line 931, in getPreferredCharsets ValueError: too many values to unpack Has anyone seen either? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope hangs
2008/9/30 Nico Grubert [EMAIL PROTECTED]: Yes, and you can use the Control_Panel/DebugInfo as well and scroll down to the Connections table. Out of the 8 threads most of them should be vacant (ie. None) and if there are some requests logged there they should in the range of 1 sec. If any of them are longer than 1 sec they are either stuck or doing something is supposed to take a long time (e.g. render a complex report, do a big upload, etc.) I once had a similar problem and I hacked the LDAPUserFolder to do a timing of the connections and found that connecting to the LDAP server was super slow and thus each connection cost too much time and it subsequently blocked the threads. Hi Peter thanks for your reply. At Control_Panel/DebugInfo I see --- None (44921) Tue Sep 30 13:24:18 2008 (0.37s)(... 'ACTUAL_URL': 'http://fog:8086/Control_Panel/DebugInfo/manage_main'}) (641) None(57523) None(69795) None(47637) Tue Sep 30 13:24:17 2008 (1.18s)(... path/to/any/doc')}) (48335) --- I sometimes see a LDAP call in the DeadlockProfiler output so it could be the reason. Do you still have the LDAP patch around? I'd like to do a timing of the connections, too. It was work on at a client's site. But I think you should look for somehing like this: conn.simple_bind_s(user_dn, user_pwd) in LDAPDelegate.py so it looks something like this: import time T0 = time.time() conn.simple_bind_s(user_dn, user_pwd) T1 = time.time() open('/tmp/timings.log','a').write('%s\n' % (T1-T0)) Regards Nico ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] concerns with nfs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Since I have started using vmware ESX as a hosting platform for zope, I've been mostly happy. However, I am wondering if I should have any concerns with storing the zodb on nfs. All our file systems on ESX are nfs mounted and lately we have had some interesting issues with the LAN that nfs runs on. So I'm am wondering if I should be concerned about storing the zodb on nfs mounted filesystems. - -- -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFI4lSfcjLlygO2EbARAne3AJ9qQg6SZQ9yMQOKnPu38Yg6B/NbggCggnVi 5P0tQ/wxNg7wBZBhAyiuVKQ= =SD8c -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] A question about __setstate__ in Shared/DC/ZRDB/Connection.py
Marco Bizzarri wrote at 2008-9-20 08:41 +0200: ... I'm working right now with Zope 2.8, which I don't think is running on that version of ZODB; is is possible to backport such patch to Zope 2.8? I'm not asking to do the work, I'm just asking if, in theory, it is possible to do it, or if it relies on something which has been introduced in new releases of ZODB. Sure. The proposal is age old -- and we are using the implementation since years -- also in Zope 2.8. It is a bit more difficult for me to provide a clean patch for the feature against a stock Zope 2.8 -- as beside this, we have many other modications/improvements and it is not easy to separate them. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Strange redirect problem -- can someone assist?
Dennis Allison wrote at 2008-9-28 22:56 -0700: ... My problem: In one form for one submit button, the redirect appears to fail. The action is performed but the page to which the action redirects upon completion is never displayed. Other actions from the same form work fine. We have been trying to isolate the problem, but have not been successful--everything looks correct, but we still see the one failure. Nearly identical code in other parts of the system works fine. Use a TCP-logger (e.g. tcpwatch, wireshark, etherreal, ...) to precisely understand what happens between client (browser) and server and see the detailed information about the failing redirect. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope hangs
Nico Grubert wrote at 2008-9-30 11:49 +0200: in the last days my Zope server seems to hang and the CPU is almost every time at 100 %. When your CPU is almost at 100 % over an extended period, then you do not have a typical hanging problem but rather something like a busy loop. I installed DeadlockDebugger and see a lot of these entries: ... File /usr/local/Zope-2.10.5/lib/python/ZODB/FileStorage/FileStorage.py, line 562, in load self._lock_release() File /usr/local/lib/python2.4/threading.py, line 109, in acquire return rc These entries should not be the one that cause your problems (they are not computationally expensive). Do you see other entries as well? - I am wondering what the last line File /usr/local/lib/python2.4/threading.py, line 109, in acquire return rc does exactly mean. Are the threads blocked? It is indeed strange that a _lock_release should end in an acquire. Delete all *.pyc and *.pyo files and see whether these peculiarity disappear. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] anyone seen these errors with Zope 2.11.1?
Chris Withers wrote at 2008-9-30 13:45 +0100: I recently ugpraded to Zope 2.11.1 and now get the following errors every so often: ... Module Products.PageTemplates.unicodeconflictresolver, line 69, in resolve Module zope.publisher.http, line 931, in getPreferredCharsets ValueError: too many values to unpack Read https://bugs.launchpad.net/zope2/+bug/254570; to learn about more reasons to get rid of the PreferedCharsetUnicodeConflictResolver. https://bugs.launchpad.net/zope2/+bug/160968; is another bug indicating that it is best to avoid the getPreferredCharset altogether. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Moving zope data.fs
Hi everybody, I have two Data.fs files and the Products directory from a server that was running two Plone websites (don't know anything more about Zope or Plone versions than it was Plone 2.5.x) that I'm trying to get up and running on the new server with no access to the old installation (we re-installed the server) but I can't get it to work in any way I have tried. I can't get Zope to read the database or it will not start at all. When I tried with the universal installer for Plone 2.5.3 (I think it was this version I got the longest with) I got it to read the database files but then I get program errors on almost every page in the ZMI so I can't go on with the installation. Anybody got a clue on how to get the pages up and running again or do I have to start over and add all information manually in two new Plone pages? I'm posting it here because I see it as a Zope error because I don't get near Plone before it fails. //jakob ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Moving zope data.fs
What's the error? -- Jeffrey D Peterson Webmaster Crary Industries, Inc. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jakob Carlsson Sent: Tuesday, September 30, 2008 2:39 PM To: zope@zope.org Subject: [Zope] Moving zope data.fs Hi everybody, I have two Data.fs files and the Products directory from a server that was running two Plone websites (don't know anything more about Zope or Plone versions than it was Plone 2.5.x) that I'm trying to get up and running on the new server with no access to the old installation (we re-installed the server) but I can't get it to work in any way I have tried. I can't get Zope to read the database or it will not start at all. When I tried with the universal installer for Plone 2.5.3 (I think it was this version I got the longest with) I got it to read the database files but then I get program errors on almost every page in the ZMI so I can't go on with the installation. Anybody got a clue on how to get the pages up and running again or do I have to start over and add all information manually in two new Plone pages? I'm posting it here because I see it as a Zope error because I don't get near Plone before it fails. //jakob ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )