Hello,
I am having trouble using pyramid_formalchemy with my default RootFactory because I am using object ACL.
I get the following error:
File "/home/mat/myproject/lib/python2.6/site-packages/pyramid-1.3-py2.6.egg/pyramid/authorization.py", line 84, in permits
for ace in acl:
TypeError: 'property' object is not iterable
I defined my RootFactory this way:
from pyramid_formalchemy.resources import Models
class RootFactory(Models):
__acl__ = [
(Allow, 'g:admins', ALL_PERMISSIONS),
(Allow, 'g:verified', ('registered', 'verified')),]
And each models look like this:
class User(Base):
@property
def __acl__(self):
return [
(Allow,
self.id, 'edit'),
(Deny, Everyone, 'edit'),
]
Any help you be appreciated! :)
regards,
Mat