When I log into my portal and go to the page with the snippet of code shown below, I only see the folders owned by 'admin'. All other folders are missing. I do not see an unauthorized exception. When I say "description field", this is what I mean. If I log into the portal and go to 'Folder Contents' then click the 'New' button and add a 'Folder', I get prompted for an ID and a description. This is the description field I am interested in automatically putting data into. I can enter data into the description field of the current folder using context.setDescription("My description goes here"). Now, I guess I just need to find a way to use that on folders other than the current one. Thanks! Dieter Maurer <dieter@hands To: Rebecca.R.Hepper@seagate.com hake.de> cc: zope@zope.org No Phone Info Subject: Re: [Zope] Newbie: Ownership confusion Available 07/09/2002 11:57 AM 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