[Erp5-report] r21370 - in /erp5admin/trunk/erp5_admin: SkinTemplateItem/portal_skins/erp5_a...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jun 5 22:47:01 CEST 2008


Author: bartek
Date: Thu Jun  5 22:47:01 2008
New Revision: 21370

URL: http://svn.erp5.org?rev=21370&view=rev
Log:
a script for the new dialog

Added:
    erp5admin/trunk/erp5_admin/SkinTemplateItem/portal_skins/erp5_admin/Admin_getFormLocationInfo.xml
Modified:
    erp5admin/trunk/erp5_admin/bt/revision

Added: erp5admin/trunk/erp5_admin/SkinTemplateItem/portal_skins/erp5_admin/Admin_getFormLocationInfo.xml
URL: http://svn.erp5.org/erp5admin/trunk/erp5_admin/SkinTemplateItem/portal_skins/erp5_admin/Admin_getFormLocationInfo.xml?rev=21370&view=auto
==============================================================================
--- erp5admin/trunk/erp5_admin/SkinTemplateItem/portal_skins/erp5_admin/Admin_getFormLocationInfo.xml (added)
+++ erp5admin/trunk/erp5_admin/SkinTemplateItem/portal_skins/erp5_admin/Admin_getFormLocationInfo.xml Thu Jun  5 22:47:01 2008
@@ -1,0 +1,188 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+        <tuple/>
+      </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>"""\n
+  Get locations info - which is the default, where are objects overwritten by this one,\n
+  where can it be copied for customisation.\n
+"""\n
+\n
+st = context.portal_skins\n
+path = st.getSkinPath(\'View\')\n
+info_dict = dict(\n
+  form_id = object_id,\n
+  location = \'\',\n
+  overwrites = [],\n
+  customize = [],\n
+  portal_url = context.getPortalObject().absolute_url() )\n
+\n
+found = False\n
+for p in path.split(\',\'):\n
+  skin = getattr(st, p)\n
+  if not found:\n
+    info_dict[\'customize\'].append(p)\n
+  f = getattr(skin, object_id)\n
+  path = f.getPhysicalPath()\n
+  if \'portal_skins\' in path:\n
+    if not found:\n
+      found = True\n
+      info_dict[\'location\'] = p\n
+      try:\n
+        info_dict[\'customize\'].pop()\n
+      except IndexError:\n
+        pass\n
+    else:\n
+      info_dict[\'overwrites\'].append(p)\n
+\n
+return info_dict\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>object_id</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>1</int> </value>
+                    </item>
+                    <item>
+                        <key> <string>co_varnames</string> </key>
+                        <value>
+                          <tuple>
+                            <string>object_id</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>st</string>
+                            <string>path</string>
+                            <string>dict</string>
+                            <string>info_dict</string>
+                            <string>False</string>
+                            <string>found</string>
+                            <string>_getiter_</string>
+                            <string>p</string>
+                            <string>getattr</string>
+                            <string>skin</string>
+                            <string>_getitem_</string>
+                            <string>f</string>
+                            <string>True</string>
+                            <string>_write_</string>
+                            <string>IndexError</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>Admin_getFormLocationInfo</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5admin/trunk/erp5_admin/bt/revision
URL: http://svn.erp5.org/erp5admin/trunk/erp5_admin/bt/revision?rev=21370&r1=21369&r2=21370&view=diff
==============================================================================
--- erp5admin/trunk/erp5_admin/bt/revision (original)
+++ erp5admin/trunk/erp5_admin/bt/revision Thu Jun  5 22:47:01 2008
@@ -1,1 +1,1 @@
-21
+24




More information about the Erp5-report mailing list