Re: [Zope] Newbie: Ownership confusion
Yep, the code is as shown below. If admin creates the folder in the management screen, 'folder' gets chosen from the 'Select Type To Add' drop down box. If other users add a folder, I go to the 'folder contents' area then choose 'New' and add a folder. Here is what I mean by description field. If I again go to the 'folder contents' area then choose 'New' and add a 'folder', I need to fill in an ID for that folder and click the 'add' button. On the next screen, the user can fill in the 'title' and 'description' for that folder. This is the description field I am talking about. Thanks! Chris Withers <chrisw@niplt To: Rebecca.R.Hepper@seagate.com d.com> cc: zope@zope.org Sent by: Subject: Re: [Zope] Newbie: Ownership confusion zope-admin@zo pe.org No Phone Info Available 07/09/2002 06:02 AM 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 _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Rebecca.R.Hepper@seagate.com wrote:
Yep, the code is as shown below. If admin creates the folder in the management screen, 'folder' gets chosen from the 'Select Type To Add' drop down box. If other users add a folder, I go to the 'folder contents' area then choose 'New' and add a folder.
Ah, okay, you didn't mention you were using the CMF ;-) That makes things a lot more understandable...
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.
That's because you're creating different types of object ;-) When you go in as admin (through the management interface, I'm guessing?), you're creating 'Folder' objects. When you go in through the folder_contents intefrace, you're creating 'Portal Folder' objects. Soooo.... What you actually want is: 1. Always create your folders through the folder_contents interace, even if you're admin. 2. change your code above to: <table tal:define="myhere root/myportal/topfolder/folderA"> <tr valign="top" align="left" tal:repeat="folders python:myhere.contentValues(filter={'Type': 'Folder'})"> <td><input type="radio" name="release" value="folders" tal:attributes="value folders/title"></td> </tr> cheers, Chris
participants (2)
-
Chris Withers -
Rebecca.R.Hepper@seagate.com