Commit d5964edc authored by Nicolas Delaby's avatar Nicolas Delaby

Initial import of erp5_syncml by fabien

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15546 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ff15467e
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>OFS.Folder</string>
<string>Folder</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>erp5_syncml</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>vcard_string_list = []\n
first_name = context.getFirstName()\n
last_name = context.getLastName()\n
tel = context.getDefaultTelephoneTelephoneNumber()\n
\n
if same_type(first_name, u\'a\'):\n
first_name = first_name.encode(\'utf-8\')\n
if same_type(last_name, u\'a\'):\n
last_name = last_name.encode(\'utf-8\')\n
if same_type(tel, u\'a\') :\n
tel = tel.encode(\'utf-8\')\n
\n
parameters_FN = \'\'\n
parameters_N = \'\'\n
\n
try:\n
first_name.encode(\'utf-8\')\n
except:\n
parameters_FN = \';ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8\'\n
\n
try:\n
last_name.encode(\'utf-8\')\n
except:\n
parameters_N = \';ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8\'\n
\n
append = vcard_string_list.append\n
append(\'BEGIN:VCARD\\n\')\n
append(\'VERSION:2.1\\n\')\n
if first_name not in (None, \'\'):\n
append(\'FN%s:%s\\n\' % (parameters_FN, first_name))\n
if last_name not in (None, \'\'):\n
if parameters_N == \'\':\n
parameters = parameters_FN\n
else:\n
parameters = parameters_N\n
append(\'N%s:%s;%s;;;\\n\' % (parameters, last_name, first_name))\n
else:\n
append(\'N%s:;%s;;;\\n\' % (parameters_N, first_name)) #if there is no last name, we put first name another time\n
if tel not in (None, \'\'):\n
append(\'TEL:%s\\n\' % tel)\n
append(\'END:VCARD\')\n
\n
return "".join(vcard_string_list)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></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>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>vcard_string_list</string>
<string>_getattr_</string>
<string>context</string>
<string>first_name</string>
<string>last_name</string>
<string>tel</string>
<string>same_type</string>
<string>parameters_FN</string>
<string>parameters_N</string>
<string>append</string>
<string>None</string>
<string>parameters</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>Person_exportAsVCard</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
None
\ No newline at end of file
GPL
\ No newline at end of file
None
\ No newline at end of file
2
\ No newline at end of file
None
\ No newline at end of file
erp5_syncml
\ No newline at end of file
0
\ No newline at end of file
erp5_syncml
\ No newline at end of file
0.1
\ 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