[Erp5-report] r8724 - in /erp5/trunk/bt5/erp5_dms: ExtensionTemplateItem/ PathTemplateItem/...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jul 24 19:30:31 CEST 2006
Author: bartek
Date: Mon Jul 24 19:29:55 2006
New Revision: 8724
URL: http://svn.erp5.org?rev=8724&view=rev
Log:
2006-07-24
* made all the security system work (!!! required a change to ERP5Type.py and to destination_project base cat., not in svn yet)
Added:
erp5/trunk/bt5/erp5_dms/ExtensionTemplateItem/
erp5/trunk/bt5/erp5_dms/ExtensionTemplateItem/asSecurityGroupId.py
erp5/trunk/bt5/erp5_dms/ExtensionTemplateItem/asSecurityGroupIdList.py
erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/ERP5Type_asSecurityGroupId.xml
erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/ERP5Type_asSecurityGroupIdList.xml
Modified:
erp5/trunk/bt5/erp5_dms/PathTemplateItem/portal_categories/function/project.xml
erp5/trunk/bt5/erp5_dms/PathTemplateItem/portal_categories/function/project/director.xml
erp5/trunk/bt5/erp5_dms/PortalTypeRolesTemplateItem/Presentation.xml
erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/OOoDocument_view/my_function.xml
erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/OOoDocument_view/my_group.xml
erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/OOoDocument_view/my_site.xml
erp5/trunk/bt5/erp5_dms/bt/change_log
erp5/trunk/bt5/erp5_dms/bt/copyright_list
erp5/trunk/bt5/erp5_dms/bt/dependency_list
erp5/trunk/bt5/erp5_dms/bt/maintainer_list
erp5/trunk/bt5/erp5_dms/bt/template_extension_id_list
erp5/trunk/bt5/erp5_dms/bt/version
Added: erp5/trunk/bt5/erp5_dms/ExtensionTemplateItem/asSecurityGroupId.py
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/ExtensionTemplateItem/asSecurityGroupId.py?rev=8724&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_dms/ExtensionTemplateItem/asSecurityGroupId.py (added)
+++ erp5/trunk/bt5/erp5_dms/ExtensionTemplateItem/asSecurityGroupId.py Mon Jul 24 19:29:55 2006
@@ -1,0 +1,65 @@
+def asSecurityGroupId(self,**kw):
+ ## Script (Python) "xERP5Type_asSecurityGroupId"
+ ##bind container=container
+ ##bind self=self
+ ##bind namespace=
+ ##bind script=script
+ ##bind subpath=traverse_subpath
+ ##parameters=category_order, **kw
+ ##title=
+ ##
+ # category_order : list of base_categories we want to use to generate the group id
+ # kw : keys should be base categories,
+ # values should be value of corresponding relative urls (obtained by getBaseCategory())
+ #
+ # Example call : self.ERP5TypeSecurity_asGroupId(category_order=('site', 'group', 'function'),
+ # site='france/lille', group='nexedi', function='accounting/accountant')
+ # This will generate a string like 'LIL_NXD_ACT' where "LIL", "NXD" and "ACT" are the codification
+ # of respecively "france/lille", "nexedi" and "accounting/accountant" categories
+ #
+ # ERP5Type_asSecurityGroupId can also return a list of users whenever a category points
+ # to a Person instance. This is useful to implement user based local role assignments
+
+
+ code_list = []
+ user_list = []
+
+ # sort the category list lexicographically
+ # this prevents us to choose the exact order we want,
+ # but also prevents some human mistake to break everything by creating site_function instead of function_site
+ category_order=kw.get('category_order',None)
+ if category_order not in (None, ''):
+ category_order = list(category_order)
+ category_order.sort()
+ else:
+ category_order = []
+
+ for base_category in category_order:
+ if kw.has_key(base_category):
+ category_list = kw[base_category]
+ if type(category_list)==type(''):
+ category_list = [category_list]
+ for category in category_list:
+ category_path = '%s/%s' % (base_category, category)
+ category_object = self.portal_categories.getCategoryValue(category_path)
+ if category_object in (None, ''):
+ raise "SecurityRoleDefinitionError", "Category '%s' doesn't exist" % (category_path)
+ if category_object.getPortalType() == 'Person':
+ # We define a person here
+ user_name = category_object.getReference()
+ if user_name is not None: user_list.append(user_name)
+ elif category_object.getPortalType() == 'Project':
+ # We use the project reference as a group
+ category_code = category_object.getReference(category_object.getTitle())
+ code_list.append(category_code)
+ else:
+ # We define a group item here
+ category_code = category_object.getCodification() or category_object.getId()
+ code_list.append(category_code)
+
+ # Return a list of users or a single group
+ if user_list:
+ self.log('user_list',user_list)
+ return user_list
+ self.log('code_list',code_list)
+ return '_'.join(code_list)
Added: erp5/trunk/bt5/erp5_dms/ExtensionTemplateItem/asSecurityGroupIdList.py
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/ExtensionTemplateItem/asSecurityGroupIdList.py?rev=8724&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_dms/ExtensionTemplateItem/asSecurityGroupIdList.py (added)
+++ erp5/trunk/bt5/erp5_dms/ExtensionTemplateItem/asSecurityGroupIdList.py Mon Jul 24 19:29:55 2006
@@ -1,0 +1,86 @@
+from Products.ERP5Type.Utils import cartesianProduct
+
+def asSecurityGroupIdList(self, category_order=None, **kw):
+ # category_order : list of base_categories we want to use to generate the group id
+ # kw : keys should be base categories,
+ # values should be value of corresponding relative urls (obtained by getBaseCategory())
+ #
+ # Example call : self.ERP5TypeSecurity_asGroupId(category_order=('site', 'group', 'function'),
+ # site='france/lille', group='nexedi', function='accounting/accountant')
+ # This will generate a string like 'LIL_NXD_ACT' where "LIL", "NXD" and "ACT" are the codification
+ # of respecively "france/lille", "nexedi" and "accounting/accountant" categories
+ #
+ # ERP5Type_asSecurityGroupId can also return a list of users whenever a category points
+ # to a Person instance. This is useful to implement user based local role assignments
+ code_list = []
+ user_list = []
+
+ # sort the category list lexicographically
+ # this prevents us to choose the exact order we want,
+ # but also prevents some human mistake to break everything by creating site_function instead of function_site
+ if category_order not in (None, ''):
+ category_order = list(category_order)
+ category_order.sort()
+ else:
+ category_order = []
+
+ code_dict = {}
+ for base_category in category_order:
+ code_dict[base_category] = []
+ category_list = kw[base_category]
+ if isinstance(category_list, str):
+ category_list = [category_list]
+ for category in category_list:
+ category_path = '%s/%s' % (base_category, category)
+ category_object = self.portal_categories.getCategoryValue(category_path)
+ if category_object in (None, ''):
+ raise RuntimeError, "Category '%s' doesn't exist" % (category_path)
+ if category_object.getPortalType() == 'Person':
+ # We define a person here
+ user_name = category_object.getReference()
+ if user_name is not None: user_list.append(user_name)
+ else:
+ # We define a group item here
+ try:
+ category_code = category_object.getCodification()
+ except AttributeError:
+ category_code = category_object.getReference()
+ if category_code not in code_dict[base_category]:
+ code_dict[base_category].append(category_code)
+ if base_category=='site':
+ category_object = category_object.getParentValue()
+ while category_object.getPortalType()!='Base Category':
+ # LOG('checking category_object:',0,category_object.getRelativeUrl())
+ category_code = category_object.getCodification()
+ if category_code is not None and category_code not in code_dict[base_category]:
+ code_dict[base_category].append(category_code)
+ category_object = category_object.getParentValue()
+ #code_list.append(category_code)
+
+ # Return a list of users or a single group
+ #LOG('asSecurityGroupIdList, user_list',0,user_list)
+ if user_list: return user_list
+
+ # LOG('asSecurityGroupIdList, code_dict',0,code_dict)
+ def getCombinationList(item_list):
+ if len(item_list):
+ result = getCombinationList(item_list[1:])
+ return [item_list[:1] + x for x in result] + result
+ return [[]]
+
+ code_list_of_list = []
+ for base_category in category_order:
+ code_list_of_list.append(code_dict[base_category])
+ full_code_list = []
+ for code_list in cartesianProduct(code_list_of_list):
+ for x in getCombinationList(code_list):
+ if len(x):
+ # we have to sort it to match these in object local roles
+ x.sort()
+ full_code_list.extend(['_'.join(x) ])
+
+ #LOG('asSecurityGroupIdList, result',0,['_'.join(x) for x in getCombinationList(code_list) if len(x)])
+ #return ['_'.join(x) for x in getCombinationList(code_list) if len(x)]
+ #LOG('asSecurityGroupIdList', 0, 'return full_code_list = %s' %(full_code_list,))
+ self.log('full_code_list',full_code_list)
+ return full_code_list
Modified: erp5/trunk/bt5/erp5_dms/PathTemplateItem/portal_categories/function/project.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/PathTemplateItem/portal_categories/function/project.xml?rev=8724&r1=8723&r2=8724&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/PathTemplateItem/portal_categories/function/project.xml (original)
+++ erp5/trunk/bt5/erp5_dms/PathTemplateItem/portal_categories/function/project.xml Mon Jul 24 19:29:55 2006
@@ -45,6 +45,10 @@
</value>
</item>
<item>
+ <key> <string>codification</string> </key>
+ <value> <string>PROJ</string> </value>
+ </item>
+ <item>
<key> <string>description</string> </key>
<value>
<none/>
@@ -53,6 +57,12 @@
<item>
<key> <string>id</string> </key>
<value> <string>project</string> </value>
+ </item>
+ <item>
+ <key> <string>int_index</string> </key>
+ <value>
+ <none/>
+ </value>
</item>
<item>
<key> <string>last_id</string> </key>
@@ -124,14 +134,17 @@
<record id="5" aka="AAAAAAAAAAU=">
<pickle>
<tuple>
- <global name="PersistentMapping" module="Persistence"/>
- <tuple/>
+ <tuple>
+ <string>Persistence</string>
+ <string>PersistentMapping</string>
+ </tuple>
+ <none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
- <key> <string>data</string> </key>
+ <key> <string>_container</string> </key>
<value>
<dictionary>
<item>
@@ -374,6 +387,240 @@
</value>
</item>
</dictionary>
+ <dictionary>
+ <item>
+ <key> <string>action</string> </key>
+ <value> <string>edit</string> </value>
+ </item>
+ <item>
+ <key> <string>actor</string> </key>
+ <value> <string>zope</string> </value>
+ </item>
+ <item>
+ <key> <string>comment</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>state</string> </key>
+ <value> <string>current</string> </value>
+ </item>
+ <item>
+ <key> <string>time</string> </key>
+ <value>
+ <object>
+ <klass> <reference id="5.1"/> </klass>
+ <tuple>
+ <none/>
+ </tuple>
+ <state>
+ <dictionary>
+ <item>
+ <key> <string>_aday</string> </key>
+ <value> <string>Mon</string> </value>
+ </item>
+ <item>
+ <key> <string>_amon</string> </key>
+ <value> <string>Jul</string> </value>
+ </item>
+ <item>
+ <key> <string>_d</string> </key>
+ <value> <float>38555.6167197</float> </value>
+ </item>
+ <item>
+ <key> <string>_day</string> </key>
+ <value> <int>24</int> </value>
+ </item>
+ <item>
+ <key> <string>_dayoffset</string> </key>
+ <value> <int>1</int> </value>
+ </item>
+ <item>
+ <key> <string>_fday</string> </key>
+ <value> <string>Monday</string> </value>
+ </item>
+ <item>
+ <key> <string>_fmon</string> </key>
+ <value> <string>July</string> </value>
+ </item>
+ <item>
+ <key> <string>_hour</string> </key>
+ <value> <int>16</int> </value>
+ </item>
+ <item>
+ <key> <string>_millis</string> </key>
+ <value> <long>1153752484585</long> </value>
+ </item>
+ <item>
+ <key> <string>_minute</string> </key>
+ <value> <int>48</int> </value>
+ </item>
+ <item>
+ <key> <string>_month</string> </key>
+ <value> <int>7</int> </value>
+ </item>
+ <item>
+ <key> <string>_nearsec</string> </key>
+ <value> <float>4.0</float> </value>
+ </item>
+ <item>
+ <key> <string>_pday</string> </key>
+ <value> <string>Mon.</string> </value>
+ </item>
+ <item>
+ <key> <string>_pm</string> </key>
+ <value> <string>pm</string> </value>
+ </item>
+ <item>
+ <key> <string>_pmhour</string> </key>
+ <value> <int>4</int> </value>
+ </item>
+ <item>
+ <key> <string>_pmon</string> </key>
+ <value> <string>July</string> </value>
+ </item>
+ <item>
+ <key> <string>_second</string> </key>
+ <value> <float>4.585</float> </value>
+ </item>
+ <item>
+ <key> <string>_t</string> </key>
+ <value> <float>1153752484.59</float> </value>
+ </item>
+ <item>
+ <key> <string>_tz</string> </key>
+ <value> <string>GMT+2</string> </value>
+ </item>
+ <item>
+ <key> <string>_year</string> </key>
+ <value> <int>2006</int> </value>
+ </item>
+ <item>
+ <key> <string>time</string> </key>
+ <value> <float>0.6167197338</float> </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ </dictionary>
+ <dictionary>
+ <item>
+ <key> <string>action</string> </key>
+ <value> <string>edit</string> </value>
+ </item>
+ <item>
+ <key> <string>actor</string> </key>
+ <value> <string>zope</string> </value>
+ </item>
+ <item>
+ <key> <string>comment</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>state</string> </key>
+ <value> <string>current</string> </value>
+ </item>
+ <item>
+ <key> <string>time</string> </key>
+ <value>
+ <object>
+ <klass> <reference id="5.1"/> </klass>
+ <tuple>
+ <none/>
+ </tuple>
+ <state>
+ <dictionary>
+ <item>
+ <key> <string>_aday</string> </key>
+ <value> <string>Mon</string> </value>
+ </item>
+ <item>
+ <key> <string>_amon</string> </key>
+ <value> <string>Jul</string> </value>
+ </item>
+ <item>
+ <key> <string>_d</string> </key>
+ <value> <float>38555.6282651</float> </value>
+ </item>
+ <item>
+ <key> <string>_day</string> </key>
+ <value> <int>24</int> </value>
+ </item>
+ <item>
+ <key> <string>_dayoffset</string> </key>
+ <value> <int>1</int> </value>
+ </item>
+ <item>
+ <key> <string>_fday</string> </key>
+ <value> <string>Monday</string> </value>
+ </item>
+ <item>
+ <key> <string>_fmon</string> </key>
+ <value> <string>July</string> </value>
+ </item>
+ <item>
+ <key> <string>_hour</string> </key>
+ <value> <int>17</int> </value>
+ </item>
+ <item>
+ <key> <string>_millis</string> </key>
+ <value> <long>1153753482108</long> </value>
+ </item>
+ <item>
+ <key> <string>_minute</string> </key>
+ <value> <int>4</int> </value>
+ </item>
+ <item>
+ <key> <string>_month</string> </key>
+ <value> <int>7</int> </value>
+ </item>
+ <item>
+ <key> <string>_nearsec</string> </key>
+ <value> <float>42.0</float> </value>
+ </item>
+ <item>
+ <key> <string>_pday</string> </key>
+ <value> <string>Mon.</string> </value>
+ </item>
+ <item>
+ <key> <string>_pm</string> </key>
+ <value> <string>pm</string> </value>
+ </item>
+ <item>
+ <key> <string>_pmhour</string> </key>
+ <value> <int>5</int> </value>
+ </item>
+ <item>
+ <key> <string>_pmon</string> </key>
+ <value> <string>July</string> </value>
+ </item>
+ <item>
+ <key> <string>_second</string> </key>
+ <value> <float>42.108</float> </value>
+ </item>
+ <item>
+ <key> <string>_t</string> </key>
+ <value> <float>1153753482.11</float> </value>
+ </item>
+ <item>
+ <key> <string>_tz</string> </key>
+ <value> <string>GMT+2</string> </value>
+ </item>
+ <item>
+ <key> <string>_year</string> </key>
+ <value> <int>2006</int> </value>
+ </item>
+ <item>
+ <key> <string>time</string> </key>
+ <value> <float>0.62826513889</float> </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ </dictionary>
</tuple>
</value>
</item>
Modified: erp5/trunk/bt5/erp5_dms/PathTemplateItem/portal_categories/function/project/director.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/PathTemplateItem/portal_categories/function/project/director.xml?rev=8724&r1=8723&r2=8724&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/PathTemplateItem/portal_categories/function/project/director.xml (original)
+++ erp5/trunk/bt5/erp5_dms/PathTemplateItem/portal_categories/function/project/director.xml Mon Jul 24 19:29:55 2006
@@ -45,6 +45,10 @@
</value>
</item>
<item>
+ <key> <string>codification</string> </key>
+ <value> <string>PROJDIR</string> </value>
+ </item>
+ <item>
<key> <string>description</string> </key>
<value>
<none/>
@@ -53,6 +57,12 @@
<item>
<key> <string>id</string> </key>
<value> <string>director</string> </value>
+ </item>
+ <item>
+ <key> <string>int_index</string> </key>
+ <value>
+ <none/>
+ </value>
</item>
<item>
<key> <string>portal_type</string> </key>
@@ -102,14 +112,17 @@
<record id="5" aka="AAAAAAAAAAU=">
<pickle>
<tuple>
- <global name="PersistentMapping" module="Persistence"/>
- <tuple/>
+ <tuple>
+ <string>Persistence</string>
+ <string>PersistentMapping</string>
+ </tuple>
+ <none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
- <key> <string>data</string> </key>
+ <key> <string>_container</string> </key>
<value>
<dictionary>
<item>
@@ -352,6 +365,240 @@
</value>
</item>
</dictionary>
+ <dictionary>
+ <item>
+ <key> <string>action</string> </key>
+ <value> <string>edit</string> </value>
+ </item>
+ <item>
+ <key> <string>actor</string> </key>
+ <value> <string>zope</string> </value>
+ </item>
+ <item>
+ <key> <string>comment</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>state</string> </key>
+ <value> <string>current</string> </value>
+ </item>
+ <item>
+ <key> <string>time</string> </key>
+ <value>
+ <object>
+ <klass> <reference id="5.1"/> </klass>
+ <tuple>
+ <none/>
+ </tuple>
+ <state>
+ <dictionary>
+ <item>
+ <key> <string>_aday</string> </key>
+ <value> <string>Mon</string> </value>
+ </item>
+ <item>
+ <key> <string>_amon</string> </key>
+ <value> <string>Jul</string> </value>
+ </item>
+ <item>
+ <key> <string>_d</string> </key>
+ <value> <float>38555.616719</float> </value>
+ </item>
+ <item>
+ <key> <string>_day</string> </key>
+ <value> <int>24</int> </value>
+ </item>
+ <item>
+ <key> <string>_dayoffset</string> </key>
+ <value> <int>1</int> </value>
+ </item>
+ <item>
+ <key> <string>_fday</string> </key>
+ <value> <string>Monday</string> </value>
+ </item>
+ <item>
+ <key> <string>_fmon</string> </key>
+ <value> <string>July</string> </value>
+ </item>
+ <item>
+ <key> <string>_hour</string> </key>
+ <value> <int>16</int> </value>
+ </item>
+ <item>
+ <key> <string>_millis</string> </key>
+ <value> <long>1153752484524</long> </value>
+ </item>
+ <item>
+ <key> <string>_minute</string> </key>
+ <value> <int>48</int> </value>
+ </item>
+ <item>
+ <key> <string>_month</string> </key>
+ <value> <int>7</int> </value>
+ </item>
+ <item>
+ <key> <string>_nearsec</string> </key>
+ <value> <float>4.0</float> </value>
+ </item>
+ <item>
+ <key> <string>_pday</string> </key>
+ <value> <string>Mon.</string> </value>
+ </item>
+ <item>
+ <key> <string>_pm</string> </key>
+ <value> <string>pm</string> </value>
+ </item>
+ <item>
+ <key> <string>_pmhour</string> </key>
+ <value> <int>4</int> </value>
+ </item>
+ <item>
+ <key> <string>_pmon</string> </key>
+ <value> <string>July</string> </value>
+ </item>
+ <item>
+ <key> <string>_second</string> </key>
+ <value> <float>4.524</float> </value>
+ </item>
+ <item>
+ <key> <string>_t</string> </key>
+ <value> <float>1153752484.52</float> </value>
+ </item>
+ <item>
+ <key> <string>_tz</string> </key>
+ <value> <string>GMT+2</string> </value>
+ </item>
+ <item>
+ <key> <string>_year</string> </key>
+ <value> <int>2006</int> </value>
+ </item>
+ <item>
+ <key> <string>time</string> </key>
+ <value> <float>0.616719027777</float> </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ </dictionary>
+ <dictionary>
+ <item>
+ <key> <string>action</string> </key>
+ <value> <string>edit</string> </value>
+ </item>
+ <item>
+ <key> <string>actor</string> </key>
+ <value> <string>zope</string> </value>
+ </item>
+ <item>
+ <key> <string>comment</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>state</string> </key>
+ <value> <string>current</string> </value>
+ </item>
+ <item>
+ <key> <string>time</string> </key>
+ <value>
+ <object>
+ <klass> <reference id="5.1"/> </klass>
+ <tuple>
+ <none/>
+ </tuple>
+ <state>
+ <dictionary>
+ <item>
+ <key> <string>_aday</string> </key>
+ <value> <string>Mon</string> </value>
+ </item>
+ <item>
+ <key> <string>_amon</string> </key>
+ <value> <string>Jul</string> </value>
+ </item>
+ <item>
+ <key> <string>_d</string> </key>
+ <value> <float>38555.6282647</float> </value>
+ </item>
+ <item>
+ <key> <string>_day</string> </key>
+ <value> <int>24</int> </value>
+ </item>
+ <item>
+ <key> <string>_dayoffset</string> </key>
+ <value> <int>1</int> </value>
+ </item>
+ <item>
+ <key> <string>_fday</string> </key>
+ <value> <string>Monday</string> </value>
+ </item>
+ <item>
+ <key> <string>_fmon</string> </key>
+ <value> <string>July</string> </value>
+ </item>
+ <item>
+ <key> <string>_hour</string> </key>
+ <value> <int>17</int> </value>
+ </item>
+ <item>
+ <key> <string>_millis</string> </key>
+ <value> <long>1153753482067</long> </value>
+ </item>
+ <item>
+ <key> <string>_minute</string> </key>
+ <value> <int>4</int> </value>
+ </item>
+ <item>
+ <key> <string>_month</string> </key>
+ <value> <int>7</int> </value>
+ </item>
+ <item>
+ <key> <string>_nearsec</string> </key>
+ <value> <float>42.0</float> </value>
+ </item>
+ <item>
+ <key> <string>_pday</string> </key>
+ <value> <string>Mon.</string> </value>
+ </item>
+ <item>
+ <key> <string>_pm</string> </key>
+ <value> <string>pm</string> </value>
+ </item>
+ <item>
+ <key> <string>_pmhour</string> </key>
+ <value> <int>5</int> </value>
+ </item>
+ <item>
+ <key> <string>_pmon</string> </key>
+ <value> <string>July</string> </value>
+ </item>
+ <item>
+ <key> <string>_second</string> </key>
+ <value> <float>42.067</float> </value>
+ </item>
+ <item>
+ <key> <string>_t</string> </key>
+ <value> <float>1153753482.07</float> </value>
+ </item>
+ <item>
+ <key> <string>_tz</string> </key>
+ <value> <string>GMT+2</string> </value>
+ </item>
+ <item>
+ <key> <string>_year</string> </key>
+ <value> <int>2006</int> </value>
+ </item>
+ <item>
+ <key> <string>time</string> </key>
+ <value> <float>0.628264664352</float> </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ </dictionary>
</tuple>
</value>
</item>
Modified: erp5/trunk/bt5/erp5_dms/PortalTypeRolesTemplateItem/Presentation.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/PortalTypeRolesTemplateItem/Presentation.xml?rev=8724&r1=8723&r2=8724&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/PortalTypeRolesTemplateItem/Presentation.xml (original)
+++ erp5/trunk/bt5/erp5_dms/PortalTypeRolesTemplateItem/Presentation.xml Mon Jul 24 19:29:55 2006
@@ -1,6 +1,6 @@
<type_roles>
<role id='Assignor'>
- <property id='title'>Team Reviewer</property>
+ <property id='title'>Team Assignor</property>
<property id='description'>The head of the team who is in charge of reviewing documents published by his team. He is granted special rights on documents produced by his team.</property>
<property id='condition'>python:not object.getSourceProject()</property>
<property id='priority'>10</property>
@@ -27,7 +27,7 @@
<multi_property id='category'></multi_property>
<multi_property id='base_category'>source_project</multi_property>
</role>
- <role id='Assignor'>
+ <role id='Reviewer'>
<property id='title'>Project Reviewer</property>
<property id='description'>The head of the project who is in charge of reviewing documents produced by the project before release or publication.</property>
<property id='condition'>python:object.getSourceProject()</property>
@@ -36,8 +36,8 @@
<multi_property id='category'>function/project/director</multi_property>
<multi_property id='base_category'>source_project</multi_property>
</role>
- <role id='Associate'>
- <property id='title'>Team Associates</property>
+ <role id='Anonymous'>
+ <property id='title'>Team Ass</property>
<property id='description'>All team members have a right to access non restricted documents before their release or publication.</property>
<property id='condition'>python:not object.isMemberOf('classification/personnal/restricted')</property>
<property id='priority'>10</property>
Modified: erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/OOoDocument_view/my_function.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/OOoDocument_view/my_function.xml?rev=8724&r1=8723&r2=8724&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/OOoDocument_view/my_function.xml (original)
+++ erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/OOoDocument_view/my_function.xml Mon Jul 24 19:29:55 2006
@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
- <global name="ListField" module="Products.Formulator.StandardFields"/>
- <tuple/>
+ <tuple>
+ <string>Products.Formulator.StandardFields</string>
+ <string>ListField</string>
+ </tuple>
+ <none/>
</tuple>
</pickle>
<pickle>
@@ -280,7 +283,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
- <value> <string>python:not here.getAgent()</string> </value>
+ <value> <string>python:1#not here.getAgent()</string> </value>
</item>
</dictionary>
</pickle>
Modified: erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/OOoDocument_view/my_group.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/OOoDocument_view/my_group.xml?rev=8724&r1=8723&r2=8724&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/OOoDocument_view/my_group.xml (original)
+++ erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/OOoDocument_view/my_group.xml Mon Jul 24 19:29:55 2006
@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
- <global name="ListField" module="Products.Formulator.StandardFields"/>
- <tuple/>
+ <tuple>
+ <string>Products.Formulator.StandardFields</string>
+ <string>ListField</string>
+ </tuple>
+ <none/>
</tuple>
</pickle>
<pickle>
@@ -280,7 +283,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
- <value> <string>python:not here.getAgent()</string> </value>
+ <value> <string>python:1#not here.getAgent()</string> </value>
</item>
</dictionary>
</pickle>
Modified: erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/OOoDocument_view/my_site.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/OOoDocument_view/my_site.xml?rev=8724&r1=8723&r2=8724&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/OOoDocument_view/my_site.xml (original)
+++ erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/OOoDocument_view/my_site.xml Mon Jul 24 19:29:55 2006
@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
- <global name="ListField" module="Products.Formulator.StandardFields"/>
- <tuple/>
+ <tuple>
+ <string>Products.Formulator.StandardFields</string>
+ <string>ListField</string>
+ </tuple>
+ <none/>
</tuple>
</pickle>
<pickle>
@@ -280,7 +283,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
- <value> <string>python:not here.getAgent()</string> </value>
+ <value> <string>python:1 #not here.getAgent()</string> </value>
</item>
</dictionary>
</pickle>
Added: erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/ERP5Type_asSecurityGroupId.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/ERP5Type_asSecurityGroupId.xml?rev=8724&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/ERP5Type_asSecurityGroupId.xml (added)
+++ erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/ERP5Type_asSecurityGroupId.xml Mon Jul 24 19:29:55 2006
@@ -1,0 +1,40 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.ExternalMethod.ExternalMethod</string>
+ <string>ExternalMethod</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_function</string> </key>
+ <value> <string>asSecurityGroupId</string> </value>
+ </item>
+ <item>
+ <key> <string>_module</string> </key>
+ <value> <string>asSecurityGroupId</string> </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>ERP5Type_asSecurityGroupId</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/ERP5Type_asSecurityGroupIdList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/ERP5Type_asSecurityGroupIdList.xml?rev=8724&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/ERP5Type_asSecurityGroupIdList.xml (added)
+++ erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_patch/ERP5Type_asSecurityGroupIdList.xml Mon Jul 24 19:29:55 2006
@@ -1,0 +1,40 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.ExternalMethod.ExternalMethod</string>
+ <string>ExternalMethod</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_function</string> </key>
+ <value> <string>asSecurityGroupIdList</string> </value>
+ </item>
+ <item>
+ <key> <string>_module</string> </key>
+ <value> <string>asSecurityGroupIdList</string> </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>ERP5Type_asSecurityGroupIdList</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_dms/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/bt/change_log?rev=8724&r1=8723&r2=8724&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/bt/change_log (original)
+++ erp5/trunk/bt5/erp5_dms/bt/change_log Mon Jul 24 19:29:55 2006
@@ -1,3 +1,6 @@
+2006-07-24
+* made all the security system work (!!! required a change to ERP5Type.py and to destination_project base cat., not in svn yet)
+
2006-02-22 BG
* finished (and renamed) local roles interaction workflow
* assigned portal types to appropriate workflows
Modified: erp5/trunk/bt5/erp5_dms/bt/copyright_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/bt/copyright_list?rev=8724&r1=8723&r2=8724&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/bt/copyright_list (original)
+++ erp5/trunk/bt5/erp5_dms/bt/copyright_list Mon Jul 24 19:29:55 2006
@@ -1,0 +1,1 @@
+Nexedi
Modified: erp5/trunk/bt5/erp5_dms/bt/dependency_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/bt/dependency_list?rev=8724&r1=8723&r2=8724&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/bt/dependency_list (original)
+++ erp5/trunk/bt5/erp5_dms/bt/dependency_list Mon Jul 24 19:29:55 2006
@@ -1,0 +1,1 @@
+erp5_project
Modified: erp5/trunk/bt5/erp5_dms/bt/maintainer_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/bt/maintainer_list?rev=8724&r1=8723&r2=8724&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/bt/maintainer_list (original)
+++ erp5/trunk/bt5/erp5_dms/bt/maintainer_list Mon Jul 24 19:29:55 2006
@@ -1,0 +1,3 @@
+jp
+kevin
+bartek
Modified: erp5/trunk/bt5/erp5_dms/bt/template_extension_id_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/bt/template_extension_id_list?rev=8724&r1=8723&r2=8724&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/bt/template_extension_id_list (original)
+++ erp5/trunk/bt5/erp5_dms/bt/template_extension_id_list Mon Jul 24 19:29:55 2006
@@ -1,0 +1,2 @@
+asSecurityGroupIdList
+asSecurityGroupId
Modified: erp5/trunk/bt5/erp5_dms/bt/version
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/bt/version?rev=8724&r1=8723&r2=8724&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/bt/version (original)
+++ erp5/trunk/bt5/erp5_dms/bt/version Mon Jul 24 19:29:55 2006
@@ -1,1 +1,1 @@
-0.61
+0.62
More information about the Erp5-report
mailing list