RE: [Zope] What version of Python Methods - no - Scripts for 2.2.4?

2000-12-14 Thread Ron Bickers


 -Original Message-
 From: Itai Tavor [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 14, 2000 7:55 PM
 To: [EMAIL PROTECTED]
 Cc: Ron Bickers
 Subject: RE: [Zope] What version of Python Methods - no - Scripts for
 2.2.4?

 I also had to add OFS/Cache.py from the CVS for this to work.

That's interesting.  I don't have OFS/Cache.py and it seems to be working
fine.  Maybe there was a recent change that now requires it?
___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] What version of Python Methods - no - Scripts for 2.2.4?

2000-12-13 Thread Evan Simpson

From: Ronald L. Roeber [EMAIL PROTECTED]
 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


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] What version of Python Methods - no - Scripts for 2.2.4?

2000-12-13 Thread Ron Bickers

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.
[EMAIL PROTECTED]

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Evan
 Simpson
 Sent: Wednesday, December 13, 2000 2:52 PM
 To: Ronald L. Roeber; [EMAIL PROTECTED]
 Subject: Re: [Zope] What version of Python Methods - no - Scripts for
 2.2.4?


 From: Evan Simpson [EMAIL PROTECTED]
  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  -  [EMAIL PROTECTED]
 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 )




___
Zope maillist  -  [EMAIL PROTECTED]
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 )