Re: [Zope] all_meta_types confusion

2007-01-09 Thread Garth B.
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

Re: [Zope] all_meta_types confusion

2007-01-09 Thread Dieter Maurer
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

Re: [Zope] all_meta_types confusion

2007-01-09 Thread Gabriel Genellina
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

Re: [Zope] all_meta_types confusion

2007-01-07 Thread Dieter Maurer
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

Re: [Zope] all_meta_types confusion

2007-01-06 Thread Maciej Wisniowski
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

[Zope] all_meta_types confusion

2007-01-05 Thread Garth B.
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