[Zope3-Users] Access attributes of content object from view

John Smith jsmith030416 at yahoo.co.uk
Sat Jan 7 09:01:06 EST 2006


Dear All,

I have a containerish content object, subclassed from
BTreeContainer.

I have a view class which lists some of the contents.

The view class receives a security proxied version of
the content object but when I try
len(self.context.values()) if get Forbidden Attribute
: ('__len__', <OOBTreeItems object at ....> )

I have tried altering the zcml content/require
permissions but they are all set for "zope.View",
including the IReadContainer interface.

Is it to do with the fact that the object is
subclassed from BTreeContainer?

Any pointers gratefully received,

Thanks,

John


	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com


More information about the Zope3-users mailing list