[Zope-dev] Weird message from Python Scripts
Zope 2.4.0b2 ZEO client (ZEO 1.0b3) I get lots of these when I first hit /manage: -- 2001-07-03T09:03:31 PROBLEM(100) Script (Python) Object script name n eeds to be recompiled. 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] CST patches for Zope 2.4.0b2
Chris Withers wrote: Any ideas? Yup, and the patches are attached... cheers, Chris --- SessionIDManager.py.originalTue Apr 10 16:33:00 2001 +++ SessionIDManager.py Tue Jul 03 10:52:44 2001 @@ -174,7 +174,7 @@ __replaceable__ = UNIQUE # singleton for now -__implements__ = SessionIdManagerInterface +__implements__ = (SessionIdManagerInterface,) icon = 'misc_/CoreSessionTracking/idmgr.gif' --- SessionDataManager.py.original Tue Apr 10 16:33:00 2001 +++ SessionDataManager.py Tue Jul 03 10:51:30 2001 @@ -168,7 +168,7 @@ __allow_access_to_unprotected_subobjects__ = 0 -__implements__ = SessionDataManagerInterface +__implements__ = (SessionDataManagerInterface,) manage_sessiondatamgr = HTMLFile('manageDataManager', globals()) --- SessionDataContainer.py.originalTue Apr 10 16:33:00 2001 +++ SessionDataContainer.py Tue Jul 03 10:50:20 2001 @@ -150,7 +150,7 @@ icon='misc_/CoreSessionTracking/datacontainer.gif' -__implements__ = SessionDataContainerInterface +__implements__ = (SessionDataContainerInterface,) manage_options=( {'label': 'Manage', 'action':'manage_container'}, --- SessionData.py.original Tue Apr 10 16:33:00 2001 +++ SessionData.py Tue Jul 03 10:49:20 2001 @@ -109,7 +109,7 @@ __allow_access_to_unprotected_subobjects__ = 1 -__implements__ = SessionDataInterface +__implements__ = (SessionDataInterface,) def __init__(self, id, onstart=None, onend=None, datamgr=None, time=time.time):
[Zope-dev] Formatted Document
Title: Formatted Document Is the code for the Formatted Document object type used in the Zope.org Members area available anywhere? I would like to use it as the basis for something I am working on. If not I'll just roll my own STXDocument and STXMethod types. -- Adrian Hungate Manager, European I.S. Acucorp UK Limited A Perl script is correct if it gets the job done before your boss fires you. - Programming Perl, Introduction http://www.zopezen.org/Zope/Quotes
Re: [Zope-dev] question on ZCatalog
Cheery, could you please be a bit more detailed for us to understand your problem ? Andreas - Original Message - From: Cherry Jeanette Ebue [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 8:04 AM Subject: [Zope-dev] question on ZCatalog question on ZCatalog... how come indexes of type date or text are not covered/searched when queried? i'd really appreciate some help :-) Cherry ___ 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 )
Re: [Zope-dev] question on ZCatalog
Hey Andreas, I have articles with the following attributes: author, search_meta, title and publication date All attributes are included in the meta data list. When I search my Catalog (of articles), only attributes of type string are returned in the search result. Publication date (of type date) and search_meta (of type text) do not get covered in the search. Thanks, Cherry -Original Message- From: Andreas Jung [EMAIL PROTECTED] To: Cherry Jeanette Ebue [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Tuesday, July 03, 2001 8:07 PM Subject: Re: [Zope-dev] question on ZCatalog Cheery, could you please be a bit more detailed for us to understand your problem ? Andreas - Original Message - From: Cherry Jeanette Ebue [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 8:04 AM Subject: [Zope-dev] question on ZCatalog question on ZCatalog... how come indexes of type date or text are not covered/searched when queried? i'd really appreciate some help :-) Cherry ___ 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 )
Re: [Zope-dev] question on ZCatalog
Do you have created the corresponding indexes for the attributes ? Andreas - Original Message - From: Cherry Jeanette Ebue [EMAIL PROTECTED] To: Andreas Jung [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 8:40 AM Subject: Re: [Zope-dev] question on ZCatalog Hey Andreas, I have articles with the following attributes: author, search_meta, title and publication date All attributes are included in the meta data list. When I search my Catalog (of articles), only attributes of type string are returned in the search result. Publication date (of type date) and search_meta (of type text) do not get covered in the search. Thanks, Cherry -Original Message- From: Andreas Jung [EMAIL PROTECTED] To: Cherry Jeanette Ebue [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Tuesday, July 03, 2001 8:07 PM Subject: Re: [Zope-dev] question on ZCatalog Cheery, could you please be a bit more detailed for us to understand your problem ? Andreas - Original Message - From: Cherry Jeanette Ebue [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 8:04 AM Subject: [Zope-dev] question on ZCatalog question on ZCatalog... how come indexes of type date or text are not covered/searched when queried? i'd really appreciate some help :-) Cherry ___ 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 )
Re: [Zope-dev] Core Session Tracking doesn't like Zope 2.4.0b2
The right fix for this is this diff: Index: SessioningInterfaces.py === RCS file: /cvs-repository/Packages/Products/CoreSessionTracking/SessioningInteraces.py ,v retrieving revision 1.4 diff -r1.4 SessioningInterfaces.py 101d100 id = 'session_id_mgr' In other words, just remove id = 'session_id_manager' from the SessionIdManagerInterface class. :-( The rest of the patches should be unnecessary. I may change the Interfaces packagage to prevent this problem in the future (but I may not). I'll need to make a new CST release in either case. - C - Original Message - From: Chris Withers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 5:31 AM Subject: [Zope-dev] Core Session Tracking doesn't like Zope 2.4.0b2 I get this: 2001-07-03T09:17:00 ERROR(200) Zope Couldn't install CoreSessionTracking Traceback (innermost last): File E:\Zope\24C37D~1.0B2\lib\python\OFS\Application.py, line 657, in install_ product (Object: ApplicationDefaultPermissions) (Info: CoreSessionTracking) File E:\Zope\sdclient\Products\CoreSessionTracking\__init__.py, line 97, in in itialize File E:\Zope\24C37D~1.0B2\lib\python\App\ProductContext.py, line 233, in regis terClass File E:\Zope\24C37D~1.0B2\lib\python\Interface\Util.py, line 66, in instancesO fObjectImplements (Object: SessionIdManager) File E:\Zope\24C37D~1.0B2\lib\python\Interface\Util.py, line 72, in _wi (Object: SessionIdManagerInterface) TypeError: loop over non-sequence Any ideas? 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 )
Re: [Zope-dev] experiments bugs with data.fs 2GB
From: Chris McDonough [EMAIL PROTECTED] 1. Trying the same thing with 2.4.0b2 and reporting the results Yikes... I need CMF! So far it's not recommended with 2.4! Are there plans to fix this in the 2.3 branch? ___ 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] experiments bugs with data.fs 2GB
Well, if we can figure out where the problem is, we sure can fix it on the 2.3 branch. Also, FWIW, CMF works with 2.4 (although it's not recommended, I'm using it just fine). - C - Original Message - From: marc lindahl [EMAIL PROTECTED] To: Chris McDonough [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 12:44 PM Subject: Re: [Zope-dev] experiments bugs with data.fs 2GB From: Chris McDonough [EMAIL PROTECTED] 1. Trying the same thing with 2.4.0b2 and reporting the results Yikes... I need CMF! So far it's not recommended with 2.4! Are there plans to fix this in the 2.3 branch? ___ 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 )
Re: [Zope-dev] question on ZCatalog
Zope-dev isn't the apropriate mailing list for this kind of question. You should ask your question on the [EMAIL PROTECTED] mailing list. This list is for developers. Have you read the Catalog documentation? http://www.zope.org/Members/michel/ZB/SearchingZCatalog.dtml -Michel On Tue, 3 Jul 2001, Cherry Jeanette Ebue wrote: Yes, I have. -Original Message- From: Andreas Jung [EMAIL PROTECTED] To: Cherry Jeanette Ebue [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Tuesday, July 03, 2001 8:37 PM Subject: Re: [Zope-dev] question on ZCatalog Do you have created the corresponding indexes for the attributes ? Andreas - Original Message - From: Cherry Jeanette Ebue [EMAIL PROTECTED] To: Andreas Jung [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 8:40 AM Subject: Re: [Zope-dev] question on ZCatalog Hey Andreas, I have articles with the following attributes: author, search_meta, title and publication date All attributes are included in the meta data list. When I search my Catalog (of articles), only attributes of type string are returned in the search result. Publication date (of type date) and search_meta (of type text) do not get covered in the search. Thanks, Cherry -Original Message- From: Andreas Jung [EMAIL PROTECTED] To: Cherry Jeanette Ebue [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Tuesday, July 03, 2001 8:07 PM Subject: Re: [Zope-dev] question on ZCatalog Cheery, could you please be a bit more detailed for us to understand your problem ? Andreas - Original Message - From: Cherry Jeanette Ebue [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 8:04 AM Subject: [Zope-dev] question on ZCatalog question on ZCatalog... how come indexes of type date or text are not covered/searched when queried? i'd really appreciate some help :-) Cherry ___ 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 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] experiments bugs with data.fs 2GB
marc lindahl wrote: From: Chris McDonough [EMAIL PROTECTED] 1. Trying the same thing with 2.4.0b2 and reporting the results Yikes... I need CMF! So far it's not recommended with 2.4! Are there plans to fix this in the 2.3 branch? Actually, it was only not recommended that you use Zope 2.4.0a1. The other Zope 2.4.x releases are good. (Some features were slipped in at the very last moment for 2.4.0a1 without adequate testing.) Shane ___ 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] experiments bugs with data.fs 2GB
marc lindahl wrote: I've recently been testing a new setup with XFS (http://oss.sgi.com/projects/xfs/1.0_release.html) and decided to try to bloat data.fs before using this system for production. The computer is set up with zope 2.3.3 installed from source (the old fashioned way, with everything in one directory), with a separate 18GB disk as /usr/local/zope. I uploaded a couple of files -- seawolf disk one ISO image (about 650MB) and SGI's XFS install ISO (about 300MB). Both from another computer via ZMI via a 10 baseT network. (interestingly both loaded up OK, but the seawolf image gave a client side 'page failed to load' error, while the other worked fine. So I suppose 600MB is the hairy edge of filesize you can upload via ZMI) Then proceeded to copy the two files and paste. First time worked fine, pushing data.fs to about 1.9GB. Second time, I copied all 4, which should push data.fs to about 4GB. It seemed to reach about 2.29GB (perhaps copying the first XFS ISO image), then gave this error: -- Zope Error Zope has encountered an error while publishing this resource. Error Type: OverflowError Error Value: long int too long to convert Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/Zope-2.3.3/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_pasteObjects) File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_pasteObjects) File /usr/local/zope/Zope-2.3.3/lib/python/OFS/CopySupport.py, line 229, in manage_pasteObjects (Object: Traversable) File /usr/local/zope/Zope-2.3.3/lib/python/OFS/CopySupport.py, line 469, in _getCopy (Object: copy_of_RH7.1-SGI-XFS-1.0.iso) File /usr/local/zope/Zope-2.3.3/lib/python/ZODB/ExportImport.py, line 218, in importFile File /usr/local/zope/Zope-2.3.3/lib/python/ZODB/FileStorage.py, line 745, in tpc_vote (Object: /usr/local/zope/Zope-2.3.3/var/Data.fs) OverflowError: (see above) -- Lines 744 and 745 are: pos=self._pos file.seek(pos) it looks like file.seek doesn't like the long int? Also, when going to the UNDO tab get this error: --- Zope Error Zope has encountered an error while publishing this resource. Error Type: OverflowError Error Value: long int too long to convert Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/Zope-2.3.3/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_UndoForm) File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_UndoForm) File /usr/local/zope/Zope-2.3.3/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: manage_UndoForm) File /usr/local/zope/Zope-2.3.3/lib/python/Shared/DC/Scripts/Bindings.py, line 354, in _bindAndExec (Object: manage_UndoForm) File /usr/local/zope/Zope-2.3.3/lib/python/App/special_dtml.py, line 236, in _exec (Object:
Re: [Zope-dev] experiments bugs with data.fs 2GB
[sorry for the first reply containing only the quote of marc's nail... Seems that I'm getting too tired...] marc lindahl wrote: I've recently been testing a new setup with XFS (http://oss.sgi.com/projects/xfs/1.0_release.html) and decided to try to bloat data.fs before using this system for production. The computer is set up with zope 2.3.3 installed from source (the old fashioned way, with everything in one directory), with a separate 18GB disk as /usr/local/zope. [...] File /usr/local/zope/Zope-2.3.3/lib/python/ZODB/FileStorage.py, line 745, in tpc_vote (Object: /usr/local/zope/Zope-2.3.3/var/Data.fs) OverflowError: (see above) -- Lines 744 and 745 are: pos=self._pos file.seek(pos) it looks like file.seek doesn't like the long int? [...] I found one reference to large file support in Python: http://www.python.org/doc/current/lib/posix-large-files.html Could it be just that the default install script in the release needs to enable large file support? Or??? Hi, I had similar problems when I tried to install Python on a Linux box with large file support. I haven't yet time enough to test Zops with a data base 2GB, but a tiny test program bailed out quite the same way. In my case, it turned out that it was not enough to set the environment variable CC, as described on the page on the Python site you mentioned. (to be precise, I used CFLAGS intead of CC as recommended in a comment in config.h) Eventually, the following worked for me: export CFLAGS=-DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ./configure - checked config.h: Does it contains the the lines #define #define HAVE_FTELLO 1 (HAVE_FTELL64 instead of HAVE_FTELLO might work too) - add the following two lines at the top of config.h: #define LARGEFILE_SOURC #define _FILE_OFFSET_BITS=64 make make install Without the additional #defines, the glibc header files seem to forget about large file support. HTH Abel ___ 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] Data.fs ZEO
Hi I have installed Zope version 2.3.3 ZEO1.0. I would like to copy the Data.fs from my previous zope installation which is 2.2.4 to the new one. I copied the Data.fs, Data.fs.lock, Data.fs.tmp Data.fs.old from the old Zope to the var directory in the Instance_home directory. I start Zope from the Instance_home by invoking zctl.py. After I copied the Data.fs files to the new Zope, I get the following error. File /export/usr/local/Zope3/Zope_software_home/lib/python/ZEO/ClientCache.py, l ine 325, in update File /export/usr/local/Zope3/Zope_software_home/lib/python/ZEO/ClientCache.py, l ine 401, in _store TypeError: __add__ nor __radd__ defined for these operands -- 2001-07-04T04:01:45 INFO(0) ZEO Server Close 136753056 -- 2001-07-04T04:01:45 PROBLEM(100) zdaemon zdaemon: Wed Jul 4 06:01:45 2001: The ki d, 75464, died on me. Can anyone please tell me what could be the problem? I am using python version1.5.2. Thanks for any help. Priya ___ 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 )