Commit 1bd7c528 authored by Bartek Górny's avatar Bartek Górny

system changes, some logs

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11442 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c81129c9
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Cache import CachingMethod\n <value> <string>from Products.ERP5Type.Cache import CachingMethod\n
\n context.log(value_list)\n
def cached_DMSGetItemList(base_category):\n def cached_DMSGetItemList(base_category):\n
basecatobject=context.portal_categories.resolveCategory(base_category)\n basecatobject=context.portal_categories.resolveCategory(base_category)\n
#return [(context.Base_trimPathName(x,100),y) for x,y in basecatobject.getCategoryChildLogicalPathItemList()]\n #return [(context.Base_trimPathName(x,100),y) for x,y in basecatobject.getCategoryChildLogicalPathItemList()]\n
...@@ -156,6 +156,8 @@ return sub_field_dict.values()\n ...@@ -156,6 +156,8 @@ return sub_field_dict.values()\n
<string>is_right_display</string> <string>is_right_display</string>
<string>Products.ERP5Type.Cache</string> <string>Products.ERP5Type.Cache</string>
<string>CachingMethod</string> <string>CachingMethod</string>
<string>_getattr_</string>
<string>context</string>
<string>cached_DMSGetItemList</string> <string>cached_DMSGetItemList</string>
<string>None</string> <string>None</string>
<string>sub_field_dict</string> <string>sub_field_dict</string>
...@@ -163,8 +165,6 @@ return sub_field_dict.values()\n ...@@ -163,8 +165,6 @@ return sub_field_dict.values()\n
<string>_write_</string> <string>_write_</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>base_category</string> <string>base_category</string>
<string>_getattr_</string>
<string>context</string>
<string>basecatobject</string> <string>basecatobject</string>
<string>sub_field_property_dict</string> <string>sub_field_property_dict</string>
</tuple> </tuple>
......
...@@ -78,8 +78,9 @@ if data is None:\n ...@@ -78,8 +78,9 @@ if data is None:\n
else:\n else:\n
if hasattr(context,\'data\'):\n if hasattr(context,\'data\'):\n
data=data\n data=data\n
\n
#if data is not None:\n #if data is not None:\n
# context.setPropertyListFromContent(data)\n #context.setPropertyListFromContent()\n
\n \n
if fname is None:\n if fname is None:\n
fname=context.getSourceReference()\n fname=context.getSourceReference()\n
......
...@@ -123,10 +123,10 @@ for base_category in category_order:\n ...@@ -123,10 +123,10 @@ for base_category in category_order:\n
\n \n
# Return a list of users or a single group\n # Return a list of users or a single group\n
if user_list:\n if user_list:\n
context.log(user_list)\n #context.log(user_list)\n
return user_list\n return user_list\n
r=\'_\'.join(code_list)\n r=\'_\'.join(code_list)\n
context.log(category_order,r)\n #context.log(category_order,r)\n
return r\n return r\n
</string> </value> </string> </value>
</item> </item>
......
...@@ -112,7 +112,7 @@ for assignment in person_object.contentValues(filter={\'portal_type\': \'Assignm ...@@ -112,7 +112,7 @@ for assignment in person_object.contentValues(filter={\'portal_type\': \'Assignm
else:\n else:\n
raise RuntimeError, "Error: \'%s\' property is required in order to update person security group" % (base_category)\n raise RuntimeError, "Error: \'%s\' property is required in order to update person security group" % (base_category)\n
category_list.append(category_dict)\n category_list.append(category_dict)\n
context.log(category_list)\n #context.log(category_list)\n
return category_list\n return category_list\n
......
...@@ -106,7 +106,7 @@ for base_category in base_category_list:\n ...@@ -106,7 +106,7 @@ for base_category in base_category_list:\n
else:\n else:\n
raise RuntimeError, "Error: \'%s\' property is required in order to update person security group" % (base_category)\n raise RuntimeError, "Error: \'%s\' property is required in order to update person security group" % (base_category)\n
category_list.append(category_dict)\n category_list.append(category_dict)\n
context.log(category_list)\n #context.log(category_list)\n
return category_list\n return category_list\n
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>context.log(\'---\')\n <value> <string>#context.log(\'---\')\n
return (\n return (\n
(\'ERP5Type_getSecurityCategoryFromAssignment\', [\'function\'] ),\n (\'ERP5Type_getSecurityCategoryFromAssignment\', [\'function\'] ),\n
(\'ERP5Type_getSecurityCategoryFromAssignment\', [\'source_project\'] ),\n (\'ERP5Type_getSecurityCategoryFromAssignment\', [\'source_project\'] ),\n
...@@ -122,10 +122,7 @@ return (\n ...@@ -122,10 +122,7 @@ return (\n
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple/>
<string>_getattr_</string>
<string>context</string>
</tuple>
</value> </value>
</item> </item>
</dictionary> </dictionary>
......
...@@ -110,14 +110,14 @@ for assignment in person_object.contentValues(filter={\'portal_type\': \'Assignm ...@@ -110,14 +110,14 @@ for assignment in person_object.contentValues(filter={\'portal_type\': \'Assignm
category_value=assignment.getDestinationProject()\n category_value=assignment.getDestinationProject()\n
else:\n else:\n
category_value = assignment.getProperty(base_category)\n category_value = assignment.getProperty(base_category)\n
context.log(category_value)\n #context.log(category_value)\n
if category_value not in (None, \'\'):\n if category_value not in (None, \'\'):\n
category_value=category_value.split(\'/\')[0]\n category_value=category_value.split(\'/\')[0]\n
category_dict[base_category] = category_value\n category_dict[base_category] = category_value\n
else:\n else:\n
raise RuntimeError, "Error: \'%s\' property is required in order to update person security group" % (base_category)\n raise RuntimeError, "Error: \'%s\' property is required in order to update person security group" % (base_category)\n
category_list.append(category_dict)\n category_list.append(category_dict)\n
context.log(category_list)\n #context.log(category_list)\n
return category_list\n return category_list\n
......
344 346
\ No newline at end of file \ 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