Hello Dieter,
This is my all_meta_types function:
def all_meta_types(self):
return (
{
'name' : 'Web Page',
'action': 'manage_addProduct/DWT/WebPage_add',
'permission': 'Add Web Page',
},
)
I haven't followed Maciej's suggestion yet to use
Garth B. wrote at 2007-1-9 10:57 -0500:
def all_meta_types(self):
return (
{
'name' : 'Web Page',
'action': 'manage_addProduct/DWT/WebPage_add',
'permission': 'Add Web Page',
},
)
I haven't followed Maciej's suggestion yet to use pdb to
At Tuesday 9/1/2007 12:57, Garth B. wrote:
def all_meta_types(self):
return (
{
'name' : 'Web Page',
'action': 'manage_addProduct/DWT/WebPage_add',
'permission': 'Add Web Page',
},
)
Make sure you use *exactly* the same string to
Garth B. wrote at 2007-1-5 23:06 -0500:
I'm trying to filter the objects that appear in the Add drop down, and I'm
having odd results. There are two scenarios.
In the first scenario, the active user is a Manager and my folderish object
does not have a defined all_meta_types function. Everything
For the same type of object, and when logged in as an Editor, the call to
user.has_permission() (around line 254) in filtered_meta_types() in
ObjectManager.py, returns false when all_meta_types is defined, and returns
true when it isn't. I don't know why the user would not have permission to
Hey everyone,
Zope 2.9.6
I'm trying to filter the objects that appear in the Add drop down, and I'm
having odd results. There are two scenarios.
In the first scenario, the active user is a Manager and my folderish object
does not have a defined all_meta_types function. Everything shows up in