[Zope] How to upgrade Python in older Zope?
Folks, I desperately need support for large filesystem so the data.fs file can exceed 2 GB. I can only make minimal changes to the existing set-up, which consists of Zope 2.5.1 (binary release, with Python 2.1.3) on Windows Server 2003 and NTFS. From what I've read, the issue is with the old Python not having LFS enabled, so I thought I'd just upgrade it to 2.2.3 which has LFS enabled. The question is, how do I do that? Windows installer for Python doesn't know what to upgrade in the Zope install, so I'm thinking to copy the right files from the extracted Python 2.2.3 in Zope folders. What goes where? I appreciate your patience and spoonfeeding. :-) Thanks in advance! Titel ___ 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] How to upgrade Python in older Zope?
Paul, Thank you for the quick reply! I'm aware of the risk, but it seemed the easiest way to circumvent a limitation. I guess it would be even easier to find Python 2.1.3 built with LFS enabled for Windows. :-) The reason I'm reluctant to touch anything is that I use Zope for OpenFlow, and I depend on its requirements. Currently it's OpenFlow 0.7 IIRC, while the development stopped at 1.3 and the upgrade of that application is a pain I'm trying to avoid. Also, I'm looking for the easiest possible way out, because in a month or two the entire application will be replaced with another solution. If there is no other way than take Zope through a few updates, then I'll give that a shot when I get some time to tinker with this. Thanks again, keep the ideas coming! Titel - Original Message From: Paul Winkler [EMAIL PROTECTED] To: zope@zope.org Sent: Tuesday, September 11, 2007 6:30:12 PM Subject: Re: [Zope] How to upgrade Python in older Zope? On Tue, Sep 11, 2007 at 07:36:18AM -0700, Tit-Liviu Leontin wrote: Folks, I desperately need support for large filesystem so the data.fs file can exceed 2 GB. I can only make minimal changes to the existing set-up, which consists of Zope 2.5.1 (binary release, with Python 2.1.3) on Windows Server 2003 and NTFS. From what I've read, the issue is with the old Python not having LFS enabled, so I thought I'd just upgrade it to 2.2.3 which has LFS enabled. The question is, how do I do that? Windows installer for Python doesn't know what to upgrade in the Zope install, so I'm thinking to copy the right files from the extracted Python 2.2.3 in Zope folders. That sounds like a really bad idea. From the Zope 2.5.1 release notes: * Zope requires Python 2.1 (Python 2.2 is currently *not* supported) You should NOT assume that warning was put there for no reason :-) Also, there's not a whole lot of expertise in this community on building for Windows; we seem to be a linux/unix-heavy crowd. You'd better stick to the binary releases and not mess with them, unless you can find a bona-fide expert to help you. Anyone? :-) Meanwhile you might try migrating a *copy* of your Data.fs to Zope first to Zope 2.6.4 (still uses Python 2.1.x) and then to Zope 2.7.7 (uses Python 2.3.x). FWIW I recall 2.5 to 2.6 being a painless upgrade. I think 2.7 was a little more involved. The most likely problem to watch out for is security-related issues: your code might accidentally rely on a security weakness that was subsequently tightened, so you get permission denied at unexpected times until your code and/or configuration is fixed. Install and turn on VerboseSecurity, it's a big help with things like that. -- Paul Winkler http://www.slinkp.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 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] Parameter generating an exception?
Hi everyone, I'm using Zope with OpenFlow for a workflow. The problem I'm encountering now seems to be entirely related to Zope; actually, a particular value for a parameter generates the error, so I'm guessing there's something wrong with the data, not the script. There's a browse file defined in the workflow, with the following first lines: htmlbody html body tal:define=results here/Catalog; qq request/QUERY_STRING; qs python:container.stripStart(qq); start request/start|python:0; batch python:modules['ZTUtils'].Batch(results, size=20, start=start); previous python:batch.previous; next python:batch.next Now, if I call this script with no parameters in the URL, it shows all documents. If I append a ?issuer=john.d parameter to the URL, only documents issued by john.d will be displayed. This works even for fictive names, displaying a blank table as a result. However, for a particular user (and only that one), I'm getting this error: Error Type: TALESError Error Value: exceptions.KeyError on -1882874846 in PythonExpr modules['ZTUtils'].Batch(results, size=20, start=start), at line 3, column 3 In the page source, this is the detailed debug information: !-- Traceback (innermost last): File D:\Data\Zope\lib\python\ZPublisher\Publish.py, line 150, in publish_module File D:\Data\Zope\lib\python\ZPublisher\Publish.py, line 114, in publish File D:\Data\Zope\lib\python\Zope\__init__.py, line 159, in zpublisher_exception_hook (Object: Docs) File D:\Data\Zope\lib\python\ZPublisher\Publish.py, line 98, in publish File D:\Data\Zope\lib\python\ZPublisher\mapply.py, line 88, in mapply (Object: browse) File D:\Data\Zope\lib\python\ZPublisher\Publish.py, line 39, in call_object (Object: browse) File D:\Data\Zope\lib\python\Shared\DC\Scripts\Bindings.py, line 252, in __call__ (Object: browse) File D:\Data\Zope\lib\python\Shared\DC\Scripts\Bindings.py, line 283, in _bindAndExec (Object: browse) File D:\Data\Zope\lib\python\Products\PageTemplates\ZopePageTemplate.py, line 210, in _exec (Object: browse) File D:\Data\Zope\lib\python\Products\PageTemplates\PageTemplate.py, line 86, in pt_render (Object: browse) File D:\Data\Zope\lib\python\TAL\TALInterpreter.py, line 158, in __call__ File D:\Data\Zope\lib\python\TAL\TALInterpreter.py, line 191, in interpret File D:\Data\Zope\lib\python\TAL\TALInterpreter.py, line 402, in do_setLocal_tal File D:\Data\Zope\lib\python\Products\PageTemplates\TALES.py, line 247, in evaluate File D:\Data\Zope\lib\python\Products\PageTemplates\ZRPythonExpr.py, line 49, in __call__ (Info: modules['ZTUtils'].Batch(results, size=20, start=start)) File Python expression quot;modules['ZTUtils'].Batch(results, size=20, start=start)quot;, line 2, in f File D:\Data\Zope\lib\python\ZTUtils\Zope.py, line 147, in __init__ File D:\Data\Zope\lib\python\ZTUtils\Batch.py, line 68, in __init__ File D:\Data\Zope\lib\python\ZTUtils\Batch.py, line 110, in opt File D:\Data\Zope\lib\python\ZTUtils\Zope.py, line 71, in __getitem__ File D:\Data\Zope\lib\python\AccessControl\ZopeGuards.py, line 90, in guarded_getitem File D:\Data\Zope\lib\python\Products\ZCatalog\Lazy.py, line 151, in __getitem__ File D:\Data\Zope\lib\python\Products\ZCatalog\Catalog.py, line 146, in __getitem__ TALESError: (see above) -- Unfortunately, all this is worse than Chinese to me. Any clue where the error may be, and what to do to fix it, please? Many thanks in advance! Titel ___ 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] Parameter generating an exception?
Thanks for the quick reply, Andreas. Please don't laugh now -- but how do I recatalog everything? :) I told you it's Chinese to me. Many thanks again, Titel - Original Message From: Andreas Jung [EMAIL PROTECTED] To: Tit-Liviu Leontin [EMAIL PROTECTED]; zope@zope.org Sent: Wednesday, August 16, 2006 5:20:02 PM Subject: Re: [Zope] Parameter generating an exception? --On 16. August 2006 15:14:54 +0100 Tit-Liviu Leontin [EMAIL PROTECTED] wrote: Error Type: TALESError Error Value: exceptions.KeyError on -1882874846 in PythonExpr modules['ZTUtils'].Batch(results, size=20, start=start), at line 3, column 3 D:\Data\Zope\lib\python\AccessControl\ZopeGuards.py, line 90, in guarded_getitem File D:\Data\Zope\lib\python\Products\ZCatalog\Lazy.py, line 151, in __getitem__ File D:\Data\Zope\lib\python\Products\ZCatalog\Catalog.py, line 146, in __getitem__ TALESError: (see above) The KeyError looks like an inconsistent catalog. Try to recatalog everything. -aj ___ 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] Renamed user account and OpenFlow
Hello everyone, I'm currently taking over the administration of a running instance of Zope and OpenFlow. These have been used to create a workflow for a decision making process. The users are authenticated via LDAP. The problem is, one of the workflow users got married and the username has been changed to reflect the new last name. Instances already in the workflow are assigned to the old username, and the person cannot log in to interact with them. I can assign the new username to the correct role, but what about the old instances? Is there an easy way of migrating the instances assigned to the old username to the new one, or maybe creating a local user with the old username? Any step-by-step suggestion is welcome, as I'm barely getting familiar with the admin interface. Thanks in advance, Titel ___ 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 )