Commit 80b5b8df authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_web: Drop script on vifib_web

This is a legacy script, it is not required to keep a script only for a single getUid.
parent de7405bc
......@@ -50,17 +50,18 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.ZSQLCatalog.SQLCatalog import NegatedQuery, Query\n
<value> <string>portal = context.getPortalObject()\n
person = portal.ERP5Site_getAuthenticatedMemberPersonValue()\n
\n
portal = context.getPortalObject()\n
person_uid = portal.ERP5Site_getPropertyFromAuthenticatedMemberPersonValue(\'uid\')\n
\n
return portal.portal_catalog(\n
if person is not None:\n
return portal.portal_catalog(\n
portal_type="Hosting Subscription",\n
default_destination_section_uid=person_uid,\n
default_destination_section_uid=person.getUid(),\n
validation_state=\'validated\',\n
sort_on=((\'title\', ),)\n
)\n
\n
return []\n
</string> </value>
</item>
<item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<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>
<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>"""Get property on Person of current user\n
Parameter:\n
property_name -- property to get, Mandatory (String, Example: "title")"""\n
person = context.ERP5Site_getAuthenticatedMemberPersonValue()\n
\n
if person is not None:\n
return person.getProperty(property_name, None)\n
return None\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>property_name</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>ERP5Site_getPropertyFromAuthenticatedMemberPersonValue</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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