[Erp5-report] r42223 romain - in /erp5/trunk/bt5/vifib_web: SkinTemplateItem/portal_skins/v...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jan 11 17:30:38 CET 2011
Author: romain
Date: Tue Jan 11 17:30:38 2011
New Revision: 42223
URL: http://svn.erp5.org?rev=42223&view=rev
Log:
Remove unused template.
Default page will be the Software Product selection.
Removed:
erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/Person_newHostingSubscriptionRequest.xml
erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getPersonWithEmail.xml
erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_newHostingSubscription.xml
erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewHostingRegistrationDialog/
erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewHostingRegistrationDialog.xml
Modified:
erp5/trunk/bt5/vifib_web/bt/revision
Removed: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/Person_newHostingSubscriptionRequest.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/Person_newHostingSubscriptionRequest.xml?rev=42222&view=auto
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/Person_newHostingSubscriptionRequest.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/Person_newHostingSubscriptionRequest.xml (removed)
@@ -1,183 +0,0 @@
-<?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>"""Set member as interested prospect and send an email.\n
-Proxy : \n
-Assignor : update member\n
-Member : access to mailhost"""\n
-portal = context.getPortalObject()\n
-support = portal.WebSite_getSupportEntity()\n
-#Set person as interested prospect\n
-if not context.getRole():\n
- context.setRole(\'lead\')\n
-\n
-#TODO : Should we continu to create an hosting subscription\n
-#Add new hosting subscription\n
-module = context.getPortalObject().getDefaultModule("Hosting Subscription")\n
-hosting_subscription = module.newContent(portal_type="Hosting Subscription", source=context.getRelativeUrl())\n
-\n
-#Start the subscription\n
-hosting_subscription.start()\n
-\n
-#Get notification reference\n
-notification_reference = portal.WebSite_getLayoutProperty(\'layout_hosting_request_notification_reference\', \'vifib.hosting-hosting.request\', \'hosting\') \n
-\n
-#Get message from catalog\n
-notification_message = portal.NotificationTool_getDocumentValue(notification_reference)\n
-\n
-mapping_dict = {\'customer_title\': context.getTitle(),\n
-#TODO: Set the good url\n
- \'link_url\': "url_to_rent-a-service_with_connection_key"\n
-}\n
-\n
-mail_text = notification_message.asText(\n
- substitution_method_parameter_dict={\'mapping_dict\':mapping_dict})\n
-\n
-#Send mail\n
-portal.portal_notifications.sendMessage(\n
- sender=support,\n
- recipient=(context, ),\n
- subject=notification_message.getTitle(),\n
- message=mail_text,\n
- message_text_format=notification_message.getTextFormat(),\n
- notifier_list=(\'Mail Message\',),\n
- store_as_event=True,\n
- event_keyword_argument_dict={\'follow_up\':hosting_subscription.getRelativeUrl()},\n
- )\n
-</string> </value>
- </item>
- <item>
- <key> <string>_code</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_params</string> </key>
- <value> <string></string> </value>
- </item>
- <item>
- <key> <string>_proxy_roles</string> </key>
- <value>
- <tuple>
- <string>Assignor</string>
- <string>Member</string>
- </tuple>
- </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>
- <string>portal</string>
- <string>support</string>
- <string>module</string>
- <string>hosting_subscription</string>
- <string>notification_reference</string>
- <string>notification_message</string>
- <string>mapping_dict</string>
- <string>mail_text</string>
- <string>True</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_newHostingSubscriptionRequest</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>TODO</string> </value>
- </item>
- <item>
- <key> <string>warnings</string> </key>
- <value>
- <tuple/>
- </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getPersonWithEmail.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getPersonWithEmail.xml?rev=42222&view=auto
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getPersonWithEmail.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getPersonWithEmail.xml (removed)
@@ -1,161 +0,0 @@
-<?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 encoding="cdata"><![CDATA[
-
-"""Get the person with email.\n
-Parameters : \n
-email -- email to search, String (Mandatory)\n
-create -- create the person if any person found, Boolean (default: True)"""\n
-portal = context.getPortalObject()\n
-\n
-user_list = context.portal_catalog(portal_type=\'Person\', default_email_text=email)\n
-user_list_len = len(user_list)\n
-\n
-if user_list_len == 1:\n
- return user_list[0].getObject()\n
-elif user_list_len > 1:\n
- raise ValueError, "Many user found"\n
-else:\n
- user = portal.getDefaultModule("Person").newContent(default_email_text=email,last_name=email.split(\'@\')[0])\n
- user.setReference("VH-"+user.getId())\n
- user.validate()\n
- return user\n
-
-
-]]></string> </value>
- </item>
- <item>
- <key> <string>_code</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_params</string> </key>
- <value> <string>email, create=True</string> </value>
- </item>
- <item>
- <key> <string>_proxy_roles</string> </key>
- <value>
- <tuple>
- <string>Assignee</string>
- <string>Assignor</string>
- <string>Manager</string>
- </tuple>
- </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>email</string>
- <string>create</string>
- <string>_getattr_</string>
- <string>context</string>
- <string>portal</string>
- <string>user_list</string>
- <string>len</string>
- <string>user_list_len</string>
- <string>_getitem_</string>
- <string>ValueError</string>
- <string>user</string>
- </tuple>
- </value>
- </item>
- </dictionary>
- </state>
- </object>
- </value>
- </item>
- <item>
- <key> <string>func_defaults</string> </key>
- <value>
- <tuple>
- <int>1</int>
- </tuple>
- </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>WebSection_getPersonWithEmail</string> </value>
- </item>
- <item>
- <key> <string>warnings</string> </key>
- <value>
- <tuple/>
- </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_newHostingSubscription.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_newHostingSubscription.xml?rev=42222&view=auto
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_newHostingSubscription.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_newHostingSubscription.xml (removed)
@@ -1,163 +0,0 @@
-<?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>"""Create a new hosting subscription and attached it to a (new) person. We start the hosting subscription."""\n
-\n
-#XXX: Use of field_your_email_text is bad but the form is form_view_editable and not form_dialog\n
-\n
-#XXX: Hosting subscription is not for that. \n
-#TODO: Create a propect person and send email to this person. This email should redirect it to ~/rent-a-service\n
-\n
-from Products.Formulator.Errors import ValidationError\n
-\n
-form = getattr(context,form_id,None)\n
-field = getattr(form,\'your_email_text\',None)\n
-try:\n
- email = field.validate(context.REQUEST)\n
- member = context.WebSection_getPersonWithEmail(email=email,create=True)\n
-\n
- member.Person_newHostingSubscriptionRequest()\n
-\n
- message = context.Base_translateString("A email was sended to ${email}", mapping={\'email\': email})\n
-except ValidationError:\n
- message = context.Base_translateString("Please enter a valid email.")\n
-\n
-context.Base_redirect(\'\', keep_items={\'portal_status_message\': message})\n
-</string> </value>
- </item>
- <item>
- <key> <string>_code</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_params</string> </key>
- <value> <string>field_your_email_text, form_id, **kw</string> </value>
- </item>
- <item>
- <key> <string>_proxy_roles</string> </key>
- <value>
- <tuple/>
- </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>field_your_email_text</string>
- <string>form_id</string>
- <string>kw</string>
- <string>Products.Formulator.Errors</string>
- <string>ValidationError</string>
- <string>getattr</string>
- <string>context</string>
- <string>None</string>
- <string>form</string>
- <string>field</string>
- <string>_getattr_</string>
- <string>email</string>
- <string>True</string>
- <string>member</string>
- <string>message</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>WebSection_newHostingSubscription</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string></string> </value>
- </item>
- <item>
- <key> <string>warnings</string> </key>
- <value>
- <tuple/>
- </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewHostingRegistrationDialog.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewHostingRegistrationDialog.xml?rev=42222&view=auto
==============================================================================
--- erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewHostingRegistrationDialog.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewHostingRegistrationDialog.xml (removed)
@@ -1,157 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <global name="ERP5Form" module="Products.ERP5Form.Form"/>
- </pickle>
- <pickle>
- <dictionary>
- <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>_objects</string> </key>
- <value>
- <tuple/>
- </value>
- </item>
- <item>
- <key> <string>action</string> </key>
- <value> <string></string> </value>
- </item>
- <item>
- <key> <string>description</string> </key>
- <value> <string></string> </value>
- </item>
- <item>
- <key> <string>edit_order</string> </key>
- <value>
- <list/>
- </value>
- </item>
- <item>
- <key> <string>encoding</string> </key>
- <value> <string>UTF-8</string> </value>
- </item>
- <item>
- <key> <string>enctype</string> </key>
- <value> <string></string> </value>
- </item>
- <item>
- <key> <string>group_list</string> </key>
- <value>
- <list>
- <string>left width30 margin60</string>
- <string>right width60 margin60</string>
- <string>center</string>
- <string>bottom</string>
- <string>hidden</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>groups</string> </key>
- <value>
- <dictionary>
- <item>
- <key> <string>bottom</string> </key>
- <value>
- <list/>
- </value>
- </item>
- <item>
- <key> <string>center</string> </key>
- <value>
- <list/>
- </value>
- </item>
- <item>
- <key> <string>hidden</string> </key>
- <value>
- <list/>
- </value>
- </item>
- <item>
- <key> <string>left width30 margin60</string> </key>
- <value>
- <list>
- <string>my_subscription_logo</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>right width60 margin60</string> </key>
- <value>
- <list>
- <string>my_form_title</string>
- <string>your_email_text</string>
- <string>my_subscribe_button</string>
- <string>my_translated_description</string>
- </list>
- </value>
- </item>
- </dictionary>
- </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>WebSection_viewHostingRegistrationDialog</string> </value>
- </item>
- <item>
- <key> <string>method</string> </key>
- <value> <string>POST</string> </value>
- </item>
- <item>
- <key> <string>name</string> </key>
- <value> <string>WebSection_viewFastRegistrationDialog</string> </value>
- </item>
- <item>
- <key> <string>pt</string> </key>
- <value> <string>form_view_editable</string> </value>
- </item>
- <item>
- <key> <string>row_length</string> </key>
- <value> <int>4</int> </value>
- </item>
- <item>
- <key> <string>stored_encoding</string> </key>
- <value> <string>UTF-8</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>I want a VM</string> </value>
- </item>
- <item>
- <key> <string>unicode_mode</string> </key>
- <value> <int>0</int> </value>
- </item>
- <item>
- <key> <string>update_action</string> </key>
- <value> <string></string> </value>
- </item>
- <item>
- <key> <string>update_action_title</string> </key>
- <value> <string></string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Modified: erp5/trunk/bt5/vifib_web/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_web/bt/revision?rev=42223&r1=42222&r2=42223&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_web/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/vifib_web/bt/revision [utf8] Tue Jan 11 17:30:38 2011
@@ -1 +1 @@
-212
\ No newline at end of file
+215
\ No newline at end of file
More information about the Erp5-report
mailing list