[Zope-PTK] Ability to create Portal-Folder,-Files,-Documents
松田 俊夫
matsuda-toshio@fujielectric.co.jp
Wed, 19 Jul 2000 20:20:06 +0900 (JST)
Hi,
>>>>> Date: Wed, 19 Jul 2000 12:04:39 +0100
>>>>> Subject: [Zope-PTK] Ability to create Portal-Folder,-Files,-Documents
>>>>> MsgId: <0F2E1374A03AD3119A650004120226E985AB2F@mail01.stawa.de>
>>>>> wolfgang.detke@stawa.de(DETKE WOLFGANG) said:
>
> What rights, permisson or else must I set to get the ability to create many
> portal-folder under teach member-folders.
I hacked to make the member's folder hierarchical. Please try the
following patch:
-------------------------- cut here ----------------------------------
--- PortalFolder.py.orig Fri Apr 7 05:27:57 2000
+++ PortalFolder.py Mon Jun 12 20:26:59 2000
@@ -14,7 +14,7 @@
('Owner','Manager')),
('Delete objects', ('portal_delete',), ('Owner','Manager')),
('Add Portal Folders',
- ('manage_addPortalFolder',),
+ ('manage_addPortalFolder','manage_addPortalFolderForm'),
('Owner','Manager')),
)
@@ -22,8 +22,9 @@
meta_types = (
{'name': 'Portal Folder',
'action': 'manage_addPortalFolderForm',
- 'permission': 'Add Folders'},
+ 'permission': 'Add Portal Folders'},
)
+ meta_type = 'Portal Folder'
manage_addPortalFolderForm=HTMLFile('dtml/folderAdd', globals())
--- folderAdd.dtml.orig Fri Mar 10 01:37:20 2000
+++ folderAdd.dtml Tue May 30 17:44:12 2000
@@ -7,7 +7,7 @@
web objects in to logical groups.
</P>
-<FORM ACTION="manage_addFolder" METHOD="POST">
+<FORM ACTION="manage_addPortalFolder" METHOD="POST">
<TABLE CELLSPACING="2">
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
-------------------------- cut here ----------------------------------
--
Toshio Matsuda