[Zope] Problems copying Zclass instance

Farrell, Troy troy.farrell@wilcom.com
Thu, 1 Mar 2001 11:57:02 -0600


Paolo,
You need to change the permissions for the ZClass under the tab 'Define
Permissions'.  Unfortunately, if you are using 2.3.0, there is a bug that
prevents the form from working.
You can either upgrade to 2.3.1beta1 or try to modify the python Script
below.  I have inserted #newline comments because my mailer (MS Outlook)
likes to add random linefeeds.
Troy


## Script (Python) "temp"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=
##
class_permissions=['', '', '', '', '', '', '', 'Add NetShowLogFiles',
'View', '']
#newline
permission_names=['Access contents information', 'Change Database Methods',
'Change permissions', 'Delete objects', 'Manage properties', 'Take
ownership', 'Undo changes', 'Use Database Methods', 'View', 'View management
screens']
#newline
context.Control_Panel.Products.StreamingEvent.StreamingEvent._['sqlStreamIns
ertIntoNetShowRaw '].manage_setPermissionMapping(permission_names,
class_permissions)
#newline
return "done"



-----Original Message-----
From: Paolo Bizzarri [mailto:p.bizzarri@icube.it]
Sent: Thursday, March 01, 2001 8:08 AM
To: zope@zope.org
Subject: [Zope] Problems copying Zclass instance


Hi everyone,

I have found a really strange problem.

I have a Zclass instance that cannot be copied and/or imported. Scanning 
through the code, this seems to be a permission related problem (i.e., the 
Zclass do not have the correct permission set).

However, there is little help in the documentation.

Someone can help ?

Many thanks

Paolo
-- 
Paolo Bizzarri
Icube S.r.l.

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