Newbie: Ownership confusion
Hello All, Here is what my directory structure looks like: Root Folder - acl_users (contains the following users: admin (has manager role)) - myportal - acl_users (contains the following users: manager (manager role), owner(owner role), member(member role)) - topfolder -- folderA -- lots of subfolders -- folderB --my scripts/forms/html documents etc While being logged into the management screens as admin, I have created a form in root/myportal/topfolder/folderB that will loop through each subfolder in folderA and create a radio button for it. (see example code below) <table tal:define="myhere root/myportal/topfolder/folderA"> <tr valign="top" align="left" tal:repeat="folders python:myhere.objectValues('Folder')"> <td><input type="radio" name="release" value="folders" tal:attributes ="value folders/title"></td> </tr> I run into problems depending on who owns the subfolders in folderA. If admin created the folderA/subfolder, the form will display a radio button for the folder. If anyone else (i.e. manager, owner, member) creates the subfolder, it will not be displayed. Am I doing something goofy with my permissions? Also, is there a way to add a string to the description field of a folder? Any advice or pointers to relevant documentation would greatly be appreciated!! Thanks!
Rebecca.R.Hepper@seagate.com wrote:
<table tal:define="myhere root/myportal/topfolder/folderA"> <tr valign="top" align="left" tal:repeat="folders python:myhere.objectValues('Folder')"> <td><input type="radio" name="release" value="folders" tal:attributes ="value folders/title"></td> </tr>
I run into problems depending on who owns the subfolders in folderA. If admin created the folderA/subfolder, the form will display a radio button for the folder. If anyone else (i.e. manager, owner, member) creates the subfolder, it will not be displayed.
Are you sure your code is exactly as above? I can't see hwo any permission-based filtering would be taking place. If there were permission problems, I'd expected the basci auth dialog box to pop up. What type of user folder are you using?
Also, is there a way to add a string to the description field of a folder?
What do you mean by 'description field'? cheers, Chris
Rebecca.R.Hepper@seagate.com writes:
... <table tal:define="myhere root/myportal/topfolder/folderA"> <tr valign="top" align="left" tal:repeat="folders python:myhere.objectValues('Folder')"> <td><input type="radio" name="release" value="folders" tal:attributes ="value folders/title"></td> </tr>
I run into problems depending on who owns the subfolders in folderA. If admin created the folderA/subfolder, the form will display a radio button for the folder. If anyone else (i.e. manager, owner, member) creates the subfolder, it will not be displayed. Am I doing something goofy with my permissions? What precisely happens, when it is not displayed?
* do you see all folders owned by "admin" and the others are missing? This seems unbelievable, given the code above. * do you see nothing but get an "Unauthorized" exception (browser login screen). This would indicate a permission problem. It probably is caused by the attempt to access something non-public outside of "myportal".
Also, is there a way to add a string to the description field of a folder? You do not tell us, what the "description field" is. I expect, it is a property. In this case, you use "manage_changeProperties" to change its value (documented in: embedded Zope Online help -> Zope Help -> API Documentation -> PropertyManager).
Dieter
participants (3)
-
Chris Withers -
Dieter Maurer -
Rebecca.R.Hepper@seagate.com