[Zope-Checkins] SVN: Zope/trunk/ The Finder class is now used for the complete lib/python tree and has a blacklist instead of a whitelist for file extensions.
Log message for revision 30319: The Finder class is now used for the complete lib/python tree and has a blacklist instead of a whitelist for file extensions. So there should no longer be a need to update setup.py if modules or files are added or removed in lib/python. http://www.zope.org/Collectors/Zope/1776 Changed: U Zope/trunk/doc/CHANGES.txt U Zope/trunk/setup.py -=- Modified: Zope/trunk/doc/CHANGES.txt === --- Zope/trunk/doc/CHANGES.txt 2005-05-10 07:29:43 UTC (rev 30318) +++ Zope/trunk/doc/CHANGES.txt 2005-05-10 15:31:34 UTC (rev 30319) @@ -30,7 +30,13 @@ - Included BTreeFolder2 Bugs fixed - + + - Collector #1776: Improved setup.py. +The Finder class is now used for the complete lib/python tree and has +a blacklist instead of a whitelist for file extensions. So there +should no longer be a need to update setup.py if modules or files are +added or removed in lib/python. + - Collector #1751: Improved error reporting reporting during the startup phase Modified: Zope/trunk/setup.py === --- Zope/trunk/setup.py 2005-05-10 07:29:43 UTC (rev 30318) +++ Zope/trunk/setup.py 2005-05-10 15:31:34 UTC (rev 30319) @@ -41,21 +41,7 @@ import sys import distutils.core -from distutils.core import Extension -# This function collects setup information for one massive distutils -# run to be done at the end of the script. If you're making a setup.py -# to use modules from Zope separately, you should be able to cut-and-paste -# the individual setup calls out into your own setup.py and it should -# Just Work(tm). - -setup_info = {} -def setup(name=None, author=None, cmdclass=None, **kwargs): -for keyword in kwargs.keys(): -if not setup_info.has_key(keyword): -setup_info[keyword] = [] -setup_info[keyword] += kwargs[keyword] - # Override install_data to install into module directories, and to support # globbing on data_files. @@ -176,965 +162,9 @@ PACKAGES_ROOT = os.path.join(BASE_DIR, 'lib', 'python') os.chdir(PACKAGES_ROOT) -EXTENSIONCLASS_INCLUDEDIRS = ['ExtensionClass'] +# Most of this is ripped from the Zope 3 setup.py. -# AccessControl -setup( -name='AccessControl', -author=AUTHOR, - -packages=['AccessControl', - 'AccessControl.tests', 'AccessControl.tests.mixed_module', - 'AccessControl.tests.mixed_module.submodule', - 'AccessControl.tests.private_module', - 'AccessControl.tests.private_module.submodule', - 'AccessControl.tests.public_module', - 'AccessControl.tests.public_module.submodule'], -data_files=[['AccessControl', ['AccessControl/*.txt']], -['AccessControl/dtml', ['AccessControl/dtml/*']], -['AccessControl/securitySuite', -['AccessControl/securitySuite/README', - 'AccessControl/securitySuite/*.py']], -['AccessControl/www', ['AccessControl/www/*']]], -ext_modules=[ -Extension(name='AccessControl.cAccessControl', - include_dirs=EXTENSIONCLASS_INCLUDEDIRS+['Acquisition'], - sources=['AccessControl/cAccessControl.c'], - depends=['ExtensionClass/ExtensionClass.h', - 'ExtensionClass/pickle/pickle.c', - 'Acquisition/Acquisition.h'], - )] -) - -# App -setup( -name='App', -author=AUTHOR, - -packages=['App', 'App.tests'], -data_files=[['App/dtml', ['App/dtml/*']], -['App/www', ['App/www/*']]], -) - -# BTrees -setup( -name='BTrees', -author=AUTHOR, - -packages=['BTrees', 'BTrees.tests'], -ext_modules=[ -Extension(name='BTrees._OOBTree', - include_dirs=EXTENSIONCLASS_INCLUDEDIRS + ['persistent'], - sources=['BTrees/_OOBTree.c']), -Extension(name='BTrees._OIBTree', - include_dirs=EXTENSIONCLASS_INCLUDEDIRS + ['persistent'], - sources=['BTrees/_OIBTree.c']), -Extension(name='BTrees._IIBTree', - include_dirs=EXTENSIONCLASS_INCLUDEDIRS + ['persistent'], - define_macros=[('EXCLUDE_INTSET_SUPPORT', None)], - sources=['BTrees/_IIBTree.c']), -Extension(name='BTrees._IOBTree', - include_dirs=EXTENSIONCLASS_INCLUDEDIRS + ['persistent'], - define_macros=[('EXCLUDE_INTSET_SUPPORT', None)], - sources=['BTrees/_IOBTree.c']), -Extension(name='BTrees._IFBTree', - include_dirs=EXTENSIONCLASS_INCLUDEDIRS + ['persistent'], - define_macros=[('EXCLUDE_INTSET_SUPPORT', None)], - sources=['BTrees/_IFBTree.c']), -Extension(name='BTrees._fsBTree', -
[Zope-dev] Online test tool
Is there a zope product that will allow me to create an online test tool? Thanks! RT ___ 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] Online test tool
On May 10, 2005, at 12:06, Zope User wrote: Is there a zope product that will allow me to create an online test tool? Thanks! RT Hi Zope User, online test tool is a very meaningless description. I suggest you describe in more detail what you're looking for. jens ___ 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] SMTP socket error
Hello I am trying to send mail using python.I tried the command import smtplib s=smtplib.SMTP(localhost) I get the following error socket.error: (10053, 'Software caused connection abort') could someone please help.. Thanks Shilpa ___ Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony ___ 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] ZEO and session variables.
I am hoping someone with more experience that I with multi-headed Zope/ZEO installations can point out my problem. I am using with Zope 2.7.6-final and Python 2.4.1. Yes, I know I am jumping the gun with 2.4.1 but I expect that it is not the source of the problem. Hardware is an Athlon dual processor CPU running Linux (RH 7.3). I am trying to configure multiple Zope heads with a ZEO with shared session variables. This means that the session variables need to be in a temporary folder associated with the ZEO instance rather than the Zope instance. The logs seem to indicate both ZEO and the ZEO temporary storage is properly hooked up. My setup dies with an unhandled exception during startup with a ConnectionStateError. Since it appeared when I moved temporary storage from Zope to ZEO, I suspect the problem is somewhere in that space. The traceback appended below is truncated for some reason. I was running the zope instance with the ``runzope`` program with output appended to the controlling terminal. The relevant part of the zope.conf the configuration file is: # ZEO client storage: # zodb_db main mount-point / # ZODB cache, in number of objects cache-size 5000 zeoclient server 192.168.0.92:8301 storage 1 var $INSTANCE/var # ZEO client cache, in bytes cache-size 20MB # Uncomment to have a persistent disk cache client zeo1 /zeoclient /zodb_db # # ZEO temporary storage # zodb_db temporary zeoclient server 192.168.0.92:8301 storage temp name zeostorage var $INSTANCE/var /zeoclient mount-point /temp_folder container-class Products.TemporaryFolder.TemporaryContainer /zodb_db And the relevant portion of the zeo.conf configuration file is: zeo address 192.168.0.92:8301 read-only false invalidation-queue-size 100 pid-filename $INSTANCE/var/ZEO.pid # monitor-address PORT # transaction-timeout SECONDS /zeo filestorage 1 path $INSTANCE/var/Data.fs /filestorage # temporary storage has to be ZEO side %import tempstorage temporarystorage temp name temporary storage for sessioning /temporarystorage Running with this configuration, dies with an exception: 2005-05-09T23:01:43 INFO(0) ZCS:10522 ClientStorage (pid=10522) created RW/normal for storage: '1' -- 2005-05-09T23:01:43 INFO(0) ZEC:/opt2/zope/zinstances/leibnitz/var/c1-zeo1-0.zec ClientCache: storage='1', size=20971520; file[0]='/opt2/zope/zinstances/leibnitz/var/c1-zeo1-0.zec' -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Testing connection ManagedClientConnection ('192.168.0.92', 8301) -- 2005-05-09T23:01:43 INFO(0) zrpc-conn(C):192.168.0.92:8301 received handshake 'Z201' -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Server authentication protocol None -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Connected to storage: ('x-epaul', 8301) -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Verifying cache -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Waiting for cache verification to finish -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Waiting for cache verification to finish -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 endVerify finishing -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 endVerify finished -- 2005-05-09T23:01:43 INFO(0) ZODB Opening database for mounting: '1087156928_1109278350.209647' -- 2005-05-09T23:01:43 INFO(0) ZODB Mounted database '1087156928_1109278350.209647' at /temp_folder -- 2005-05-09T23:01:43 INFO(0) Zope Ready to handle requests Unhandled exception in thread started by class ZServer.PubCore.ZServerPublisher.ZServerPublisher at 0x40467d4c Traceback (most recent call last): File /usr/local/src/zope/Zope2.7/lib/python/ZServer/PubCore/ZServerPublisher.py, line 23, in __init__ response=response) File /opt2/zope/zproducts/standard/ZopeProfiler/MonkeyPatcher.py, line 35, in __call__ return self._function(*args,**kw) File /opt2/zope/zproducts/standard/ZopeProfiler/ZopeProfiler.py, line 335, in _profilePublishModule _hookApplicationManager() File /opt2/zope/zproducts/standard/ZopeProfiler/ZopeProfiler.py, line 383, in _hookApplicationManager R._p_jar.close() File /usr/local/src/zope/Zope2.7/lib/python/Products/ZODBMountPoint/Mount.py, line 210, in close self._real_close() File /usr/local/src/zope/Zope2.7/lib/python/ZODB/Connection.py, line 306, in close raise ConnectionStateError(Cannot close a connection joined to ZODB.POSException.ConnectionStateError: Cannot close a connection joined to a transaction While the ZEO log shows 2005-05-09T22:46:35 INFO(0) ZD:10284 daemonizing the process -- 2005-05-09T22:46:35 INFO(0) ZD:10284 set current directory: '/opt2/zope/zeoinstances/leibnitz' -- 2005-05-09T22:46:35 INFO(0) ZD:10284 daemon manager started -- 2005-05-09T22:46:35 INFO(0) ZD:10284 spawned process pid=10285 -- 2005-05-09T22:46:36 INFO(0) RUNSVR created PID file '/opt2/zope/zeoinstances/leibnitz/var/ZEO.pid' --
[Zope] Re: formatting tuple to feed to mysql
David Siedband wrote: I'm have a tuple that I want to pass to a zSQL query to so I can based on items in the tuple. I get the sequence from a zSQL query that selects a single field, and I'm postprocessing it with the following: dtml-let SelectedIDs=[ai[0] for ai in queries.selectDOdocIDs().tuples()] Which puts the sequence in brackets like this: [211, 873, 515, 516, 589] but mysql seems to want them in parenthesis... because when I try this select ThemeWords.* from DocThemes, ThemeWords where DocThemes.DocID in dtml-var SelectedIDs and DocThemes.ThemeID = ThemeWords.ID I get a KeyError. Also, is it possible to pass a list using dtml-sqlvar? thanks -- David Use dtml-sqltest with the attribute multiple: http://www.plope.com/Books/2_7Edition/RelationalDatabases.stx#2-67 HTH, Wolfram ___ 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] asyncore.py exception
Thanks. Pascal -Message d'origine- De : Dieter Maurer [mailto:[EMAIL PROTECTED] Envoyé : lundi 9 mai 2005 19:25 À : Pascal Peregrina Cc : 'zope@zope.org' Objet : Re: [Zope] asyncore.py exception Pascal Peregrina wrote at 2005-5-9 13:54 +0200: Does anyone know what can cause this type of error : ERROR(200) ZServer uncaptured python exception, closing channel ZServer.HTTPServer.zhttp_channel connected 10.168.77.5:38607 at 0x3ed2006c channel#: 1546210 requests: (socket.error:(32, 'Broken pipe') The client closed the connection while the server was writing to it. Nothing to worry about... -- Dieter ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.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] Re: DreamWeaver files - ZPTs: How?
On Mon, 9 May 2005, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken Winter wrote: Is there any way to configure Zope so that a *.htm file newly created in DW, when uploaded for the first time to Zope, would be created as a ZPT instead of as a DTML document? I know you can do it by naming the file in DW with the *.pt extension. But the trouble with this is, subsequently DreamWeaver doesn't recognize it as anything that it can edit. To get Dreamweaver to recognise other file extensions, see the TechNote: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16410 Steven ___ 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] Re: Refcounts, ZODB Cache and memory leaks?
Peter Bengtsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dylan Jay me at dylanjay.com writes: If anyone has experience with finding these kind of rouge references I'd really appreciate any tips. I have no idea how to patch tings with LeakFinder to find your problems because LeakFinder, albeit a great piece of code, attempts an incredibly difficult task. Most likely, your memory leaks is due to an assignment of really large lists on complex objects (eg. more complex than strings or numbers). Can you expound on this a little as this sounds very interesting? Why do assignments to a list normally result in leaks? Do you mean lists of complex objects or complex objects that have lists? Look for any constructs where you extract large lists and do operations on them. Once you have, if you ever, contain these, return to the mailing list and we can try to solve it together. I certainly do operations on lists, partucularly LazyMap etc. I do operations with catalog results and map them to lazily to custom objects which are joined by aquisition to catalog brains. I'm new to memory leak debugging in python but have done it before in java. From what I understand garbage collection happens differently in java. In java you have to avoid circular references, is the same true in python? ___ 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 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] (no subject)
Dieter, I get the following error at startup (Zope 2.7.6-final, Python 2.3.4, ZopeProfiler 1.1 in a multi-headed Zope/ZEO configuration with shared session variables. My hypothesis is that the culprit is the ZopeProfiler and that I need to move to Version 1.4. Are there any problems using it in a Zope/ZEO environment? --- Unhandled exception in thread started by class ZServer.PubCore.ZServerPublisher.ZServerPublisher at 0x40467d1c Traceback (most recent call last): File /usr/local/src/zope/Zope2.7/lib/python/ZServer/PubCore/ZServerPublisher.py, line 23, in __init__ response=response) File /opt2/zope/zproducts/standard/ZopeProfiler/MonkeyPatcher.py, line 35, in __call__ return self._function(*args,**kw) File /opt2/zope/zproducts/standard/ZopeProfiler/ZopeProfiler.py, line 335, in _profilePublishModule _hookApplicationManager() File /opt2/zope/zproducts/standard/ZopeProfiler/ZopeProfiler.py, line 383, in _hookApplicationManager R._p_jar.close() File /usr/local/src/zope/Zope2.7/lib/python/Products/ZODBMountPoint/Mount.py, line 210, in close self._real_close() File /usr/local/src/zope/Zope2.7/lib/python/ZODB/Connection.py, line 306, in close raise ConnectionStateError(Cannot close a connection joined to ZODB.POSException.ConnectionStateError: Cannot close a connection joined to a transaction ___ 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] ZEO and session variables.
It appears that something in the ZopeProfiler product is unhappy with your configuration. Does it work if you remove this product? On Mon, 2005-05-09 at 23:37 -0700, Dennis Allison wrote: I am hoping someone with more experience that I with multi-headed Zope/ZEO installations can point out my problem. I am using with Zope 2.7.6-final and Python 2.4.1. Yes, I know I am jumping the gun with 2.4.1 but I expect that it is not the source of the problem. Hardware is an Athlon dual processor CPU running Linux (RH 7.3). I am trying to configure multiple Zope heads with a ZEO with shared session variables. This means that the session variables need to be in a temporary folder associated with the ZEO instance rather than the Zope instance. The logs seem to indicate both ZEO and the ZEO temporary storage is properly hooked up. My setup dies with an unhandled exception during startup with a ConnectionStateError. Since it appeared when I moved temporary storage from Zope to ZEO, I suspect the problem is somewhere in that space. The traceback appended below is truncated for some reason. I was running the zope instance with the ``runzope`` program with output appended to the controlling terminal. The relevant part of the zope.conf the configuration file is: # ZEO client storage: # zodb_db main mount-point / # ZODB cache, in number of objects cache-size 5000 zeoclient server 192.168.0.92:8301 storage 1 var $INSTANCE/var # ZEO client cache, in bytes cache-size 20MB # Uncomment to have a persistent disk cache client zeo1 /zeoclient /zodb_db # # ZEO temporary storage # zodb_db temporary zeoclient server 192.168.0.92:8301 storage temp name zeostorage var $INSTANCE/var /zeoclient mount-point /temp_folder container-class Products.TemporaryFolder.TemporaryContainer /zodb_db And the relevant portion of the zeo.conf configuration file is: zeo address 192.168.0.92:8301 read-only false invalidation-queue-size 100 pid-filename $INSTANCE/var/ZEO.pid # monitor-address PORT # transaction-timeout SECONDS /zeo filestorage 1 path $INSTANCE/var/Data.fs /filestorage # temporary storage has to be ZEO side %import tempstorage temporarystorage temp name temporary storage for sessioning /temporarystorage Running with this configuration, dies with an exception: 2005-05-09T23:01:43 INFO(0) ZCS:10522 ClientStorage (pid=10522) created RW/normal for storage: '1' -- 2005-05-09T23:01:43 INFO(0) ZEC:/opt2/zope/zinstances/leibnitz/var/c1-zeo1-0.zec ClientCache: storage='1', size=20971520; file[0]='/opt2/zope/zinstances/leibnitz/var/c1-zeo1-0.zec' -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Testing connection ManagedClientConnection ('192.168.0.92', 8301) -- 2005-05-09T23:01:43 INFO(0) zrpc-conn(C):192.168.0.92:8301 received handshake 'Z201' -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Server authentication protocol None -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Connected to storage: ('x-epaul', 8301) -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Verifying cache -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Waiting for cache verification to finish -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Waiting for cache verification to finish -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 endVerify finishing -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 endVerify finished -- 2005-05-09T23:01:43 INFO(0) ZODB Opening database for mounting: '1087156928_1109278350.209647' -- 2005-05-09T23:01:43 INFO(0) ZODB Mounted database '1087156928_1109278350.209647' at /temp_folder -- 2005-05-09T23:01:43 INFO(0) Zope Ready to handle requests Unhandled exception in thread started by class ZServer.PubCore.ZServerPublisher.ZServerPublisher at 0x40467d4c Traceback (most recent call last): File /usr/local/src/zope/Zope2.7/lib/python/ZServer/PubCore/ZServerPublisher.py, line 23, in __init__ response=response) File /opt2/zope/zproducts/standard/ZopeProfiler/MonkeyPatcher.py, line 35, in __call__ return self._function(*args,**kw) File /opt2/zope/zproducts/standard/ZopeProfiler/ZopeProfiler.py, line 335, in _profilePublishModule _hookApplicationManager() File /opt2/zope/zproducts/standard/ZopeProfiler/ZopeProfiler.py, line 383, in _hookApplicationManager R._p_jar.close() File /usr/local/src/zope/Zope2.7/lib/python/Products/ZODBMountPoint/Mount.py, line 210, in close self._real_close() File /usr/local/src/zope/Zope2.7/lib/python/ZODB/Connection.py, line 306, in close raise ConnectionStateError(Cannot close a connection joined to ZODB.POSException.ConnectionStateError: Cannot close a connection joined to a transaction While the ZEO log shows 2005-05-09T22:46:35 INFO(0) ZD:10284 daemonizing the process -- 2005-05-09T22:46:35
Re: [Zope] ZEO and session variables.
That seems to have been the problem. The ZopeProfiler version I was using does not work with Zope2.7 although Dieter has a version (1.4) that works with Zope2.7.3, I was not using it. I also suspect there may be a problem with multiheaded Zope/ZEO configurations. On Tue, 10 May 2005, Chris McDonough wrote: It appears that something in the ZopeProfiler product is unhappy with your configuration. Does it work if you remove this product? On Mon, 2005-05-09 at 23:37 -0700, Dennis Allison wrote: I am hoping someone with more experience that I with multi-headed Zope/ZEO installations can point out my problem. I am using with Zope 2.7.6-final and Python 2.4.1. Yes, I know I am jumping the gun with 2.4.1 but I expect that it is not the source of the problem. Hardware is an Athlon dual processor CPU running Linux (RH 7.3). I am trying to configure multiple Zope heads with a ZEO with shared session variables. This means that the session variables need to be in a temporary folder associated with the ZEO instance rather than the Zope instance. The logs seem to indicate both ZEO and the ZEO temporary storage is properly hooked up. My setup dies with an unhandled exception during startup with a ConnectionStateError. Since it appeared when I moved temporary storage from Zope to ZEO, I suspect the problem is somewhere in that space. The traceback appended below is truncated for some reason. I was running the zope instance with the ``runzope`` program with output appended to the controlling terminal. The relevant part of the zope.conf the configuration file is: # ZEO client storage: # zodb_db main mount-point / # ZODB cache, in number of objects cache-size 5000 zeoclient server 192.168.0.92:8301 storage 1 var $INSTANCE/var # ZEO client cache, in bytes cache-size 20MB # Uncomment to have a persistent disk cache client zeo1 /zeoclient /zodb_db # # ZEO temporary storage # zodb_db temporary zeoclient server 192.168.0.92:8301 storage temp name zeostorage var $INSTANCE/var /zeoclient mount-point /temp_folder container-class Products.TemporaryFolder.TemporaryContainer /zodb_db And the relevant portion of the zeo.conf configuration file is: zeo address 192.168.0.92:8301 read-only false invalidation-queue-size 100 pid-filename $INSTANCE/var/ZEO.pid # monitor-address PORT # transaction-timeout SECONDS /zeo filestorage 1 path $INSTANCE/var/Data.fs /filestorage # temporary storage has to be ZEO side %import tempstorage temporarystorage temp name temporary storage for sessioning /temporarystorage Running with this configuration, dies with an exception: 2005-05-09T23:01:43 INFO(0) ZCS:10522 ClientStorage (pid=10522) created RW/normal for storage: '1' -- 2005-05-09T23:01:43 INFO(0) ZEC:/opt2/zope/zinstances/leibnitz/var/c1-zeo1-0.zec ClientCache: storage='1', size=20971520; file[0]='/opt2/zope/zinstances/leibnitz/var/c1-zeo1-0.zec' -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Testing connection ManagedClientConnection ('192.168.0.92', 8301) -- 2005-05-09T23:01:43 INFO(0) zrpc-conn(C):192.168.0.92:8301 received handshake 'Z201' -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Server authentication protocol None -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Connected to storage: ('x-epaul', 8301) -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Verifying cache -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Waiting for cache verification to finish -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 Waiting for cache verification to finish -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 endVerify finishing -- 2005-05-09T23:01:43 INFO(0) ZCS:10522 endVerify finished -- 2005-05-09T23:01:43 INFO(0) ZODB Opening database for mounting: '1087156928_1109278350.209647' -- 2005-05-09T23:01:43 INFO(0) ZODB Mounted database '1087156928_1109278350.209647' at /temp_folder -- 2005-05-09T23:01:43 INFO(0) Zope Ready to handle requests Unhandled exception in thread started by class ZServer.PubCore.ZServerPublisher.ZServerPublisher at 0x40467d4c Traceback (most recent call last): File /usr/local/src/zope/Zope2.7/lib/python/ZServer/PubCore/ZServerPublisher.py, line 23, in __init__ response=response) File /opt2/zope/zproducts/standard/ZopeProfiler/MonkeyPatcher.py, line 35, in __call__ return self._function(*args,**kw) File /opt2/zope/zproducts/standard/ZopeProfiler/ZopeProfiler.py, line 335, in _profilePublishModule _hookApplicationManager() File /opt2/zope/zproducts/standard/ZopeProfiler/ZopeProfiler.py, line 383, in _hookApplicationManager R._p_jar.close() File
[Zope] Re: Zope Digest, Vol 12, Issue 10 (No Long works at NZX : from 10 May 2005)
___ 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] what are the dtml for logout and deleting a existing user??
what are the dtml for logout of an account and deleting a existing user?? Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone.___ 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] [ZopeProfiler] upgrade needed for Zope 2.7.6 (was: empty subject)
Dennis Allison wrote at 2005-5-10 08:25 -0700: ... My hypothesis is that the culprit is the ZopeProfiler and that I need to move to Version 1.4. Indeed is the problem you report fixed in version 1.4. Are there any problems using it in a Zope/ZEO environment? Not that I know of. ... _hookApplicationManager() File /opt2/zope/zproducts/standard/ZopeProfiler/ZopeProfiler.py, line 383, in _hookApplicationManager R._p_jar.close() File /usr/local/src/zope/Zope2.7/lib/python/Products/ZODBMountPoint/Mount.py, line 210, in close self._real_close() File /usr/local/src/zope/Zope2.7/lib/python/ZODB/Connection.py, line 306, in close raise ConnectionStateError(Cannot close a connection joined to ZODB.POSException.ConnectionStateError: Cannot close a connection joined to a transaction -- 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] Zope Sybase database connection keeps closing
My zope Sybase database connections keep closing for no apparent reason. When I try to reopen the connections they sometimes give me the following error: *Invalid connection string: *|database: , password: access, server: SYBTIGR, transactional: Y, user: access When I make a copy of the connection object that is giving this error, the original connection reopens automatically. This behavior seems really bizarre and is causing our Zope website to remain unavailable. Abhilasha ___ 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] container and context for folderish objects
I created a very simple folderish product. Everything works fine. But I was surprised that context and container seem to behave differently for folderish object than for normal Folder. Here's the problem: my product's instance a contains a DTML Document doc and some photos img1, img2. A simple ZPT lst queries object ids: pli tal:repeat=item python:here.objectIds() tal:content=item/p pli tal:repeat=item python:container.objectIds() tal:content=item/p I need to call this ZPT as follows: /a/doc/lst and I expect to get a list of objects contained in a. The problem is that lst does not provide that. The first line shows nothing, and the second line shows content of the parent Folder! I would have expected that container is the a, the folderish object. Why does it not work? I \know that I can get my list by calling /a/lst, but unfortunately I cannot do that. -- Milos Prudek ___ 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] Exporting Plone objects to Zope CMF
Title: RE: [Zope] Exporting Plone objects to Zope CMF Thanks jcc. I didn't consider FTP at all. I FTP-ed the CMF site to my laptop, reorganized and pruned things filesystem-wise (where grep and friends helped out), then FTP-ed the sanitized tree up to my local Zope instance. With two browsers, gvim, ExternalEditor, and good old copy/paste, it didn't take long to get into a rhythm. One thing to note is that when the files on the filesystem were FTP-ed up to Zope, some got lost when I uploaded them directly into a CMF folder. I gave them their own folder in the top of the ZMI and everything of substance wound up as a file or a DTML document. Aloha, Priam Kanealii, Priam Mr KRS wrote: Dear Zope-list, Running with Zope 2.7.5 Plone 2.0.5.. What nice method exists, if any, to export CMF-ish things like documents, events, and news items from Plone to ZopeCMF? (Or, what search terms may have escaped me?) Ideally, I'd like to be able to export folders in Plone and import them to Zope CMF such that Plone-ized CMF items were magically de-Ploned (and allow for sufficiently Plone-ized things to remain broken). Unfortunately, importing folders or most other objects raises a Copy Error:: Object *broken* does not support this operation. I'm just wondering if there are options to porting content by hand ..which will be less than a day's work in this case (we're just getting started). In absence of a nice method, I'm curious what methods others may have applied in a similar situation. I don't think that's a very common task. Plone over-rides most (or all) of the basic CMF types, and so you wouldn't be able to import them in a site without the Plone software installed. Though, perhaps, you can use FTP to download from one and upload to the other. May lose workflow state and maybe other metadata that way, though. If that's a problem, see CMFSetup and CMFSetupExtensions, which will allow you to export/import your site in XML, retaining metadata. You might have to go and edit the type fields in the XML, though. Though if doing it by hand will only take a day, I might not bother. --jcc ___ 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] ValueError: I/O operation on closed file
Hi all, Relative newbie to Zope, trying to install Plone on FreeBSD. Have run into the following problem: - I have followed the instructions as per the guide at http://www.netvironments.org/laurazWiki/InstallingPlone - After copying the directories into the lib/python/Products directory, I restart Zope, and it doesn't throw any errors. However, on visitingmy website installation (which had been working fine up to the file copy and subsequent restart), I get the message: Sorry, a site error occurred. Traceback (innermost last): Module ZPublisher.Publish, line 150, in publish_module Module ZPublisher.Publish, line 114, in publish Module Zope.App.startup, line 175, in zpublisher_exception_hook Module ZODB.ZApplication, line 61, in __bobo_traverse__ Module ZODB.Connection, line 532, in root Module ZODB.Connection, line 140, in __getitemtraceback_info__: Module ZODB.FileStorage, line 645, in load Module ZODB.FileStorage, line 620, in _load ValueError: I/O operation on closed file My setup is as follows: OS - FreeBSD 4.7-RELEASE-p28 (Virtual Private Server setup) Python - 2.3.4 Zope - 2.6.3 Any help would be greatly appreciated, Brian ___ 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-DB] Python Script / ZSQL
--On Dienstag, 10. Mai 2005 18:24 Uhr -0700 Infor Gates [EMAIL PROTECTED] wrote: dtml-call insertZSQL tal:def define=dummy python: context.somemethod(arg1=..., arg2=...) / (which is documented in the Zope Book 2.7 edition - RDBMS chapter) -aj pgpGEM6zFQaUv.pgp Description: PGP signature ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db