[Erp5-report] r18988 - in /erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glo...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Feb 1 17:40:28 CET 2008
Author: yusei
Date: Fri Feb 1 17:40:26 2008
New Revision: 18988
URL: http://svn.erp5.org?rev=18988&view=rev
Log:
2008-2-1 Yusei
* Fixed wrong name of scripts of erp5_glossary. Use proxy-roled script to find terms.
Removed:
erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_viewFindTermsFromPropertySheetDialog/
erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/Glossary_findTermsFromPropertySheet.xml
erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/Glossary_getPropertySheetAttributeList.xml
erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/Glossary_getPropertySheetList.xml
Removed: erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/Glossary_findTermsFromPropertySheet.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/Glossary_findTermsFromPropertySheet.xml?rev=18987&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/Glossary_findTermsFromPropertySheet.xml (original)
+++ erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/Glossary_findTermsFromPropertySheet.xml (removed)
@@ -1,235 +1,0 @@
-<?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>ignore = (\'custom\',)\n
-all_field_list = []\n
-def iterate(obj):\n
- for i in obj.objectValues():\n
- if i.getId() in ignore:\n
- continue\n
- if i.meta_type==\'ERP5 Form\':\n
- all_field_list.extend(i.objectValues())\n
- elif i.isPrincipiaFolderish:\n
- iterate(i)\n
-\n
-iterate(context.portal_skins)\n
-\n
-properties = []\n
-for i in property_sheet_list:\n
- properties.extend(context.Glossary_getPropertySheetAttributeList(i))\n
-\n
-dic = {}\n
-for i in all_field_list:\n
- id = i.getId()\n
- title = i.get_value(\'title\') or \'\'\n
- skin_id = i.aq_parent.aq_parent.getId()\n
- prefix = \'erp5_\'\n
- if skin_id.startswith(prefix):\n
- skin_id = skin_id[len(prefix):]\n
- if id.startswith(\'my_\'):\n
- for p in properties:\n
- if id==\'my_%s\' % p:\n
- key = (p, skin_id, title)\n
- dic[key] = i\n
- if id.startswith(\'your_\'):\n
- for p in properties:\n
- if id==\'your_%s\' % p:\n
- key = (p, skin_id, title)\n
- dic[key] = i\n
-\n
-result = []\n
-for (reference, business_field, title) in dic.keys():\n
- language = \'en\'\n
- field = dic[(reference, business_field, title)]\n
- description = field.get_value(\'description\')\n
- result.append({\'reference\':reference,\n
- \'language\':language,\n
- \'business_field\':business_field,\n
- \'title\':title,\n
- \'description\':description})\n
-\n
-if export_tsv:\n
- for i in result:\n
- print \'\\t\'.join(map(lambda x:\'"%s"\'%x, (i[\'reference\'], i[\'language\'], i[\'business_field\'],\n
- i[\'title\'], i[\'description\'],)))\n
- return printed\n
-else:\n
- for i in result:\n
- new_id = context.generateNewId()\n
- context.newContent(id=new_id, portal_type=\'Glossary Term\', container=context,\n
- reference=i[\'reference\'], language=i[\'language\'], business_field=i[\'business_field\'],\n
- title=i[\'title\'], description=i[\'description\'])\n
-\n
-context.REQUEST.RESPONSE.redirect(context.absolute_url())\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>property_sheet_list, export_tsv=False, REQUEST=None, **kw</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>3</int> </value>
- </item>
- <item>
- <key> <string>co_varnames</string> </key>
- <value>
- <tuple>
- <string>property_sheet_list</string>
- <string>export_tsv</string>
- <string>REQUEST</string>
- <string>kw</string>
- <string>_print_</string>
- <string>_print</string>
- <string>ignore</string>
- <string>all_field_list</string>
- <string>iterate</string>
- <string>_getattr_</string>
- <string>context</string>
- <string>properties</string>
- <string>_getiter_</string>
- <string>i</string>
- <string>dic</string>
- <string>id</string>
- <string>title</string>
- <string>skin_id</string>
- <string>prefix</string>
- <string>_getitem_</string>
- <string>len</string>
- <string>p</string>
- <string>key</string>
- <string>_write_</string>
- <string>result</string>
- <string>reference</string>
- <string>business_field</string>
- <string>language</string>
- <string>field</string>
- <string>description</string>
- <string>map</string>
- <string>new_id</string>
- </tuple>
- </value>
- </item>
- </dictionary>
- </state>
- </object>
- </value>
- </item>
- <item>
- <key> <string>func_defaults</string> </key>
- <value>
- <tuple>
- <int>0</int>
- <none/>
- </tuple>
- </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>Glossary_findTermsFromPropertySheet</string> </value>
- </item>
- <item>
- <key> <string>warnings</string> </key>
- <value>
- <tuple/>
- </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/Glossary_getPropertySheetAttributeList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/Glossary_getPropertySheetAttributeList.xml?rev=18987&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/Glossary_getPropertySheetAttributeList.xml (original)
+++ erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/Glossary_getPropertySheetAttributeList.xml (removed)
@@ -1,40 +1,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <tuple>
- <tuple>
- <string>Products.ExternalMethod.ExternalMethod</string>
- <string>ExternalMethod</string>
- </tuple>
- <none/>
- </tuple>
- </pickle>
- <pickle>
- <dictionary>
- <item>
- <key> <string>__ac_local_roles__</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_function</string> </key>
- <value> <string>getPropertySheetAttributeList</string> </value>
- </item>
- <item>
- <key> <string>_module</string> </key>
- <value> <string>Glossary</string> </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>Glossary_getPropertySheetAttributeList</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string></string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/Glossary_getPropertySheetList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/Glossary_getPropertySheetList.xml?rev=18987&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/Glossary_getPropertySheetList.xml (original)
+++ erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/Glossary_getPropertySheetList.xml (removed)
@@ -1,143 +1,0 @@
-<?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>return context.portal_types.getTypeInfo(\'Glossary Module\').getPropertySheetList()\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>_getattr_</string>
-<string>context</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>Glossary_getPropertySheetList</string> </value>
- </item>
- <item>
- <key> <string>warnings</string> </key>
- <value>
- <tuple/>
- </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
More information about the Erp5-report
mailing list