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,6 +93,9 @@ for assignment in person_object.contentValues(filter={\'portal_type\': \'Assignm
if assignment.getValidationState() == \'open\':\n
category_dict = {}\n
for base_category in base_category_list:\n
### Here is the filter patch waiting bug #124 to be corrected ###\n
if base_category.find("_btsave") == -1:\n
### end of filter patch ###\n
category_value = assignment.getProperty(base_category)\n
if category_value not in (None, \'\'):\n
category_dict[base_category] = category_value\n
......@@ -100,48 +103,38 @@ for assignment in person_object.contentValues(filter={\'portal_type\': \'Assignm
raise RuntimeError, "Error: \'%s\' property is required in order to update person security group" % (base_category)\n
category_list.append(category_dict)\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
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jBAAAABQAAAAVAAAAQwAA
AHN8AQAAZwAAfQQAdAEAdAEAdAEAdAIAZAEAgwIAZAIAgwIAgwAAZAMAgwIAZAQAgwEAfQcAdAQA
fAcAfAEAdAYAgwMAfQoAfAoAdAYAaggAbwgAAWcAAFNuAQABeMUAdAgAdAEAfAoAZAUAgwIAZAYA
aAAABGQHAGQIAAM8gwABgwEARF2cAH0MAHQBAHwMAGQJAIMCAIMAAGQKAGoCAG99AAFoAAB9DQB4
XQB0CAB8AACDAQBEXU8AfQ4AdAEAfAwAZAsAgwIAfA4AgwEAfQ8AfA8AdAYAZAwAZgIAagcAbxQA
AXwPAHQOAHwNAIMBAHwOADxxsQABdA8AZA0AfA4AFoICAHGxAFd0AQB8BABkDgCDAgB8DQCD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wAAAGNvbnRleHRzDQAAAHBlcnNvbl9tb2R1bGVzBwAA
AGdldGF0dHJzBAAAAE5vbmVzDQAAAHBlcnNvbl9vYmplY3RzCQAAAF9nZXRpdGVyX3MKAAAAYXNz
aWdubWVudHMNAAAAY2F0ZWdvcnlfZGljdHMNAAAAYmFzZV9jYXRlZ29yeXMOAAAAY2F0ZWdvcnlf
dmFsdWVzBwAAAF93cml0ZV9zDAAAAFJ1bnRpbWVFcnJvcigAAAAAKAAAAABzDwAAAFNjcmlwdCAo
UHl0aG9uKXMqAAAARVJQNVR5cGVfZ2V0U2VjdXJpdHlDYXRlZ29yeUZyb21Bc3NpZ25tZW50AQAA
AHMkAAAAAAsGAioBEgUNAQgDKAAGARkBBgENAAYCHQIVARMBFAIYARgCKAEAAABzKgAAAEVSUDVU
eXBlX2dldFNlY3VyaXR5Q2F0ZWdvcnlGcm9tQXNzaWdubWVudCgBAAAAcyoAAABFUlA1VHlwZV9n
ZXRTZWN1cml0eUNhdGVnb3J5RnJvbUFzc2lnbm1lbnQoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5
dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
</item>
<item>
<key> <string>_filepath</string> </key>
......@@ -207,8 +200,6 @@ CAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
<string>category_value</string>
<string>_write_</string>
<string>RuntimeError</string>
<string>clean_list</string>
<string>cat</string>
</tuple>
</value>
</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