Commit 5d8de261 authored by Kevin Deldycke's avatar Kevin Deldycke

Third commit: it's time to sleep...


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4546 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 084f8a04
...@@ -93,55 +93,48 @@ for assignment in person_object.contentValues(filter={\'portal_type\': \'Assignm ...@@ -93,55 +93,48 @@ for assignment in person_object.contentValues(filter={\'portal_type\': \'Assignm
if assignment.getValidationState() == \'open\':\n if assignment.getValidationState() == \'open\':\n
category_dict = {}\n category_dict = {}\n
for base_category in base_category_list:\n for base_category in base_category_list:\n
category_value = assignment.getProperty(base_category)\n ### Here is the filter patch waiting bug #124 to be corrected ###\n
if category_value not in (None, \'\'):\n if base_category.find("_btsave") == -1:\n
category_dict[base_category] = category_value\n ### end of filter patch ###\n
else:\n category_value = assignment.getProperty(base_category)\n
raise RuntimeError, "Error: \'%s\' property is required in order to update person security group" % (base_category)\n if category_value not in (None, \'\'):\n
category_dict[base_category] = category_value\n
else:\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
\n \n
### Here is the filter patch waiting bug #124 to be corrected ###\n
clean_list = []\n
for cat in category_list:\n
if cat.find("_btsave") == -1:\n
clean_list.append(cat)\n
return clean_list\n
### end of filter patch ###\n
\n
return category_list\n return category_list\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jBAAAABQAAAAVAAAAQwAA <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jBAAAABIAAAAXAAAAQwAA
AHN8AQAAZwAAfQQAdAEAdAEAdAEAdAIAZAEAgwIAZAIAgwIAgwAAZAMAgwIAZAQAgwEAfQcAdAQA AHNIAQAAZwAAfQQAdAEAd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DAAAAFJ1bnRpbWVFcnJvcnMKAAAA UHl0aG9uKXMqAAAARVJQNVR5cGVfZ2V0U2VjdXJpdHlDYXRlZ29yeUZyb21Bc3NpZ25tZW50AQAA
Y2xlYW5fbGlzdHMDAAAAY2F0KAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcyoAAABFUlA1 AHMkAAAAAAsGAioBEgUNAQgDKAAGARkBBgENAAYCHQIVARMBFAIYARgCKAEAAABzKgAAAEVSUDVU
VHlwZV9nZXRTZWN1cml0eUNhdGVnb3J5RnJvbUFzc2lnbm1lbnQBAAAAcy4AAAAACwYCKgESBQ0B eXBlX2dldFNlY3VyaXR5Q2F0ZWdvcnlGcm9tQXNzaWdubWVudCgBAAAAcyoAAABFUlA1VHlwZV9n
CAMoAAYBGQEGAQ0ABgEVARMBFAIUARgDBgENAAYBIAEYAQQDKAEAAABzKgAAAEVSUDVUeXBlX2dl ZXRTZWN1cml0eUNhdGVnb3J5RnJvbUFzc2lnbm1lbnQoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5
dFNlY3VyaXR5Q2F0ZWdvcnlGcm9tQXNzaWdubWVudCgBAAAAcyoAAABFUlA1VHlwZV9nZXRTZWN1 dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
cml0eUNhdGVnb3J5RnJvbUFzc2lnbm1lbnQoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilz
CAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
...@@ -207,8 +200,6 @@ CAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value> ...@@ -207,8 +200,6 @@ CAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
<string>category_value</string> <string>category_value</string>
<string>_write_</string> <string>_write_</string>
<string>RuntimeError</string> <string>RuntimeError</string>
<string>clean_list</string>
<string>cat</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
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