What version of Python Methods - no - Scripts for 2.2.4?
Quesrion(s): Is the recommended install of Python Scripts for Zope 2.24 this? http://www.zope.org/Members/4am/PythonMethod even though it appears to be exactly one year old today (13-Dec)? This is also the date in the CHANGES.txt file in 2.3_a1 PythonScripts directory. Can I just copy the PythonScripts product from my 2.3_a1 Products directory to the appropriate location on a 2.24 server or should I use the PythonMethod from above? Are there implications for upgrades from Methods to Scripts? Am I missing something(s)? (probably) Please advise. Sorry to be so confused. Thank you. ron...
From: Ronald L. Roeber <rroeber1@unl.edu>
Is the recommended install of Python Scripts for Zope 2.24 this?
http://www.zope.org/Members/4am/PythonMethod
even though it appears to be exactly one year old today (13-Dec)?
Wow, I didn't realize today was its anniversary :-) No, this isn't the recommended install of Python Scripts, but it is the closest thing currently released.
Can I just copy the PythonScripts product from my 2.3_a1 Products directory to the appropriate location on a 2.24 server or should I use the PythonMethod from above? Are there implications for upgrades from Methods to Scripts? Am I missing something(s)? (probably) Please advise.
PythonMethod and PythonScripts are independent Products, providing objects with different meta-types. They can be installed side-by-side perfectly safely, and both Python Methods and Python Scripts can be used at the same time, and even together. I haven't tried installing PythonScripts in a pre-2.3 Zope, but I have no reason to expect that it would fail, except in one feature: Since pre-2.3 Zopes don't support the __render_with_namespace__ protocol, you would always have to pass parameters explicitly when calling from DTML, and wouldn't be able to bind the caller's namespace. If you want to give it a shot, the worst thing that I would expect it to do is fail and produce error messages when you try to create or use Python Scripts. Want to write a Howto? ;-) Cheers, Evan @ digicool & 4-am
From: Evan Simpson <evan@4-am.com>
I haven't tried installing PythonScripts in a pre-2.3 Zope, but I have no reason to expect that it would fail, except in one feature: Since pre-2.3 Zopes don't support the __render_with_namespace__ protocol, you would always have to pass parameters explicitly when calling from DTML, and wouldn't be able to bind the caller's namespace.
After a little experimentation, I was able to get it to run with Zope 2.0.0. It required small changes to __init__.py and Guarded.py, which are available through cvs.zope.org. Cheers, Evan @ digicool & 4-am
From: Evan Simpson <evan@4-am.com>
After a little experimentation, I was able to get it to run with Zope 2.0.0. It required small changes to __init__.py and Guarded.py, which are available through cvs.zope.org.
P.P.S. That's "2.2.0", not "2.0.0", and as of three hours ago you would also need to backport (or stub out) OFS.Cache :-( Sorry, Evan @ digicool & 4-am
I got PythonScripts running on 2.2.4 after doing the following: 1) Install PythonScripts from CVS just like any other Product. 2) Add these lines to lib/python/AccessControl/__init__.py: from SecurityInfo import ClassSecurityInfo, ModuleSecurityInfo from SecurityInfo import ACCESS_PRIVATE from SecurityInfo import ACCESS_PUBLIC from SecurityInfo import ACCESS_NONE from SecurityInfo import secureModule 3) Add the CVS version of SecurityInfo.py to lib/python/AccessControl/ It works in my limited testing, but I have no idea if something is badly broken that just hasn't shown itself yet. _______________________ Ron Bickers Logic Etc, Inc. rbickers@logicetc.com
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Evan Simpson Sent: Wednesday, December 13, 2000 2:52 PM To: Ronald L. Roeber; zope@zope.org Subject: Re: [Zope] What version of Python Methods - no - Scripts for 2.2.4?
From: Evan Simpson <evan@4-am.com>
After a little experimentation, I was able to get it to run with Zope 2.0.0. It required small changes to __init__.py and Guarded.py, which are available through cvs.zope.org.
P.P.S.
That's "2.2.0", not "2.0.0", and as of three hours ago you would also need to backport (or stub out) OFS.Cache :-(
Sorry,
Evan @ digicool & 4-am
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Evan Simpson -
Ron Bickers -
Ronald L. Roeber