RE: [Zope] Python Scripts in 2.2.x

2001-01-09 Thread Mayers, Philip J

Oops, ignore that - copied the wrong error from the window (from an earlier
attempt). The *real* error was that I was running zpasswd as root with a
umask of 077, which of course meant the webserver and Zope couldn't read the
resulting file.

So, the LoginManager product appears to work, but the problem now is when I
try to add a LoginManager to a folder, I get a NameError for 'path', with a
traceback:

Traceback (innermost last):
  File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/Zope23/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
  File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/Zope23/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: addLoginManager)
  File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: addLoginManager)
  File /usr/local/Zope23/lib/python/App/special_dtml.py, line 120, in
__call__
(Object: addLoginManager)
(Info:
/usr/local/Zope23/lib/python/Products/LoginManager/addLoginManager.dtml)
  File /usr/local/Zope23/lib/python/DocumentTemplate/DT_String.py, line 528,
in __call__
(Object: addLoginManager)
  File /usr/local/Zope23/lib/python/DocumentTemplate/DT_In.py, line 633, in
renderwob
(Object: UserSourcesMetaTypes(this()))
  File /usr/local/Zope23/lib/python/DocumentTemplate/DT_Util.py, line 331,
in eval
(Object: UserSourcesMetaTypes(this()))
(Info: UserSourcesMetaTypes)
  File /usr/local/Zope23/lib/python/ZPublisher/HTTPRequest.py, line 772, in
__getitem__
NameError: (see above)


Regards,
Phil

+--+
| Phil Mayers, Network Support |
| Centre for Computing Services|
| Imperial College |
+--+  

-Original Message-
From: Mayers, Philip J 
Sent: 09 January 2001 10:01
To: 'Bill Anderson'
Subject: RE: [Zope] Python Scripts in 2.2.x


No, I'm afraid not:

Traceback (innermost last):
  File "/usr/local/Zope23/lib/python/OFS/Application.py", line 405, in
import_products
product=__import__(pname, global_dict, global_dict, silly)
  File "/usr/local/Zope23/lib/python/Products/LoginManager/__init__.py",
line 1, in ?
import LoginManager, LoginMethods, UserSources
  File "/usr/local/Zope23/lib/python/Products/LoginManager/LoginManager.py",
line 8, in ?
from Products.ZPatterns.Specialists import Specialist
  File "/usr/local/Zope23/lib/python/Products/ZPatterns/__init__.py", line
1, in ?
import Rack, Specialists, Customizers, AttributeProviders,
SheetProviders
  File "/usr/local/Zope23/lib/python/Products/ZPatterns/Rack.py", line 9, in
?
from DataSkins import DataSkin
  File "/usr/local/Zope23/lib/python/Products/ZPatterns/DataSkins.py", line
1, in ?
from DynPersist import DynPersist
ImportError: No module named DynPersist

Regards,
Phil

+--+
| Phil Mayers, Network Support |
| Centre for Computing Services|
| Imperial College |
+--+  

-Original Message-
From: Bill Anderson [mailto:[EMAIL PROTECTED]]
Sent: 09 January 2001 04:42
To: Mayers, Philip J
Subject: Re: [Zope] Python Scripts in 2.2.x


Mayers, Philip J wrote:

> I need to use LoginManager, which doesn't seem to work with 2.3, 

It does after a minor modification...
http://www.egroups.com/message/zope/47172

Bill Anderson


___
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] Python Scripts in 2.2.x

2001-01-08 Thread Ron Bickers

I'm running PythonScripts with 2.2.4 and, with one exception, they seem to
be working just fine.  The exception is that DTML namespace binding does not
work under 2.2.  You can, however, pass the namespace explicitly to get the
same effect.  Here is what you need to do to get it working.  Note that
PythonScripts under 2.2 is not supported by DC, so if this blows up, you're
out of luck.

1) Install PythonScripts from CVS (Zope2/lib/python/Products/PythonScripts)
just like any other Python Product.

2) Add these lines to lib/python/AccessControl/__init__.py in your Zope
installation:

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 AccessControl/SecurityInfo.py to the AccessControl
directory.

4) Add the CVS version of OFS/Cache.py to the OFS directory.

5) Restart Zope

Other than the exception above, I haven't found anything to not function as
expected.
___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Mayers, Philip J
> Sent: Monday, January 08, 2001 10:40 AM
> To: '[EMAIL PROTECTED]'
> Subject: [Zope] Python Scripts in 2.2.x
>
>
> I need to use LoginManager, which doesn't seem to work with 2.3,
> and I need
> to use Python Scripts, which are not available (?) for 2.2.x - any ideas?
>


___
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 )