[z3-five] objects, security,etc
kevin7kal
plone at kevinkal.com
Tue Jul 18 20:33:58 CEST 2006
I am attempting to bring a new object class into zope five and having
some issues that hopefully someone can help with.
Here is a simple example of my situation.
I have class.py,zclass.py
class.py
class1(object):
'''a simple class''''
attribute1='a string''
attribute2='another string'
class2(object):
def __init__(self,value1,value2):
def method1():
print somemethod
def method2():
returnobject = class1()
return returnobject
zclass.py
import class
zclass2(SimpleItem,class.class2):
""""doctstring""""
implements(Izclass2)
def __init__(self,,tmpID='',tmpTITLE='')
return
I have all of the interface things done and the all classes in class.py
are five traversable.
I can use class2.method1 with no problems, but class2.method2 returns a
class1 object. The problem is when I try to access any methods or
attributes on the class1 object that is returned, I have permission
denied. How can I make it so the methods and attributes of this object
are accessable?
More information about the z3-five
mailing list