Commit 337b66bd authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* add security configurations

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26472 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 259e5839
No related merge requests found
<local_roles_item>
<local_roles>
<role id='ERP5TypeTestCase'>
<item>Owner</item>
</role>
<role id='web'>
<item>Assignor</item>
</role>
</local_roles>
<group_local_roles>
</group_local_roles>
</local_roles_item>
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Category" module="Products.ERP5Type.Document.Category"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_folders_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Copy_or_Move_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>group/web</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>web</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Category</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Web</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<type_roles>
<role id='Assignor'>
<property id='title'>Web Master</property>
<property id='priority'>10.0</property>
<multi_property id='category'>group/web</multi_property>
</role>
</type_roles>
\ No newline at end of file
<type_roles>
<role id='Assignor'>
<property id='title'>Web Master</property>
<property id='priority'>10.0</property>
<multi_property id='category'>group/web</multi_property>
</role>
</type_roles>
\ No newline at end of file
...@@ -67,15 +67,19 @@ if context.has_key(\'test_web_site_2\'):\n ...@@ -67,15 +67,19 @@ if context.has_key(\'test_web_site_2\'):\n
\n \n
# Create new users\n # Create new users\n
if not context.person_module.has_key(\'test_webmaster\'):\n if not context.person_module.has_key(\'test_webmaster\'):\n
context.person_module.newContent(id=\'test_webmaster\', portal_type=\'Person\')\n person = context.person_module.newContent(id=\'test_webmaster\', portal_type=\'Person\')\n
\n else:\n
person = context.person_module.test_webmaster\n person = context.person_module.test_webmaster\n
person.edit(first_name=\'Test\', last_name=\'Webmaster\',\n person.edit(first_name=\'Test\', last_name=\'Webmaster\',\n
reference=\'test_webmaster\', password=\'test_webmaster\')\n reference=\'test_webmaster\', password=\'test_webmaster\')\n
person.setRole(\'internal\')\n person.setRole(\'internal\')\n
assignment = person.newContent(portal_type=\'Assignment\')\n if not len(person.objectValues(portal_type=\'Assignment\')):\n
assignment.open()\n assignment = person.newContent(portal_type=\'Assignment\')\n
\n assignment.edit(group=\'web\',\n
start_date=DateTime(\'2000/01/01\'),\n
stop_date=DateTime(\'2990/12/31\'))\n
if assignment.getValidationState() != \'open\':\n
assignment.open()\n
if person.getValidationState() != \'validated\':\n if person.getValidationState() != \'validated\':\n
person.validate()\n person.validate()\n
\n \n
...@@ -127,7 +131,9 @@ return \'Reset Successfully.\'\n ...@@ -127,7 +131,9 @@ return \'Reset Successfully.\'\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>person</string> <string>person</string>
<string>len</string>
<string>assignment</string> <string>assignment</string>
<string>DateTime</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
2009-04-17 Kazuhiko
* add security configurations
2007-02-13 jps 2007-02-13 jps
Initial version Initial version
\ No newline at end of file
16 17
\ No newline at end of file \ No newline at end of file
web_site_module
\ No newline at end of file
portal_categories/group/web
portal_tests/erp5_web_zuite portal_tests/erp5_web_zuite
portal_tests/erp5_web_zuite/** portal_tests/erp5_web_zuite/**
\ No newline at end of file
Web Site
Web Site Module
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment