Commit 5df989df authored by Sebastien Robin's avatar Sebastien Robin

2010-09-14 Seb

* add another filter diff

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38336 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c51f969
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.ERP5Type.Document.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value> <string encoding="base64">0fINCg==</string> </value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
if len(old_line_list) == 2 and len(new_line_list) == 1 and \\\n
old_line_list[0] == \'<string>append</string>\' and \\\n
old_line_list[1] == \'<string>$append0</string>\' and \\\n
new_line_list[0] ==\'<string>$list0</string>\':\n
return True\n
\n
return False\n
]]></string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAAAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAgAAAAYAAAAJAAAAAwAA
AHN4AAAAdAAAfAAAgwEAZAEAagIAb1IAAXQAAHwBAIMBAGQCAGoCAG8/AAF0AwB8AABkAwCDAgBk
BABqAgBvKQABdAMAfAAAZAIAgwIAZAUAagIAbxMAAXQDAHwBAGQDAIMCAGQGAGoCAG8IAAF0BABT
bgEAAXQFAFNkAABTKAcAAABOaQIAAABpAQAAAGkAAAAAcxcAAAA8c3RyaW5nPmFwcGVuZDwvc3Ry
aW5nPnMZAAAAPHN0cmluZz4kYXBwZW5kMDwvc3RyaW5nPnMXAAAAPHN0cmluZz4kbGlzdDA8L3N0
cmluZz4oBgAAAHQDAAAAbGVudA0AAABvbGRfbGluZV9saXN0dA0AAABuZXdfbGluZV9saXN0dAkA
AABfZ2V0aXRlbV90BAAAAFRydWV0BQAAAEZhbHNlKAYAAABSAQAAAFICAAAAUgAAAABSAwAAAFIE
AAAAUgUAAAAoAAAAACgAAAAAcxIAAABFUlA1IFB5dGhvbiBTY3JpcHR0IwAAAFRlbXBsYXRlVG9v
bF9maWx0ZXJBcHBlbmRUb0xpc3REaWZmAQAAAHMKAAAAKQEWARYBEwEIAigBAAAAUgYAAAAoAQAA
AFIGAAAAKAAAAAAoAAAAAHMSAAAARVJQNSBQeXRob24gU2NyaXB0cwgAAAA8bW9kdWxlPgEAAAB0
AAAAAA==</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>old_line_list, new_line_list</string> </value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>callable_type/script/diff_filter</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string encoding="cdata"><![CDATA[
This script filter this kind of xml changes :\n
- <string>append</string>\n
- <string>$append0</string>\n
+ <string>$list0</string>\n
]]></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>old_line_list</string>
<string>new_line_list</string>
<string>len</string>
<string>_getitem_</string>
<string>True</string>
<string>False</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>TemplateTool_filterAppendToListDiff</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Python Script</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
1709
\ No newline at end of file
1712
\ 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