[Erp5-report] r14866 - /erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jun 19 09:19:32 CEST 2007
Author: ivan
Date: Tue Jun 19 09:19:32 2007
New Revision: 14866
URL: http://svn.erp5.org?rev=14866&view=rev
Log:
Added simple registration form and user creation script.
Removed:
erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createUser.xml
Removed: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createUser.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createUser.xml?rev=14865&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createUser.xml (original)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createUser.xml (removed)
@@ -1,199 +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>"""\n
- This script is part of erp5_web.\n
- It\'s a sample script sceleton which can be used to create user (Person object) \n
- for web interface and sets Person\'s details (address, email, assignment and career). \n
- \n
- Notes:\n
- - This script is normally executed by anonymous user with Manager proxy roles which \n
- you have to turn on after adjusting this script to your needs.\n
- - this script should be called from respective form which will handle all validation\n
- - you have to decide if assignment should be opened automatically or \n
- verified and opened by administrator first\n
-"""\n
-\n
-person_module = context.getPortalObject().person_module\n
-person = person_module.newContent(portal_type = \'Person\', \n
- reference = kw[\'email\'],\n
- default_email_text = kw[\'email\'],\n
- first_name = kw[\'first_name\'], \n
- last_name = kw[\'last_name\'])\n
-# create default career\n
-career = person.newContent(portal_type=\'Career\', \n
- id=\'default_career\', \n
- group=kw[\'group\'], \n
- function=kw[\'function\'], \n
- role=\'internal\')\n
-# create assignment\n
-assignment = person.newContent(portal_type=\'Assignment\', \n
- group=kw[\'group\'], \n
- function=kw[\'function\'], \n
- site=kw[\'site\'])\n
-person.submit()\n
-return person\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>_owner</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_params</string> </key>
- <value> <string>**kw</string> </value>
- </item>
- <item>
- <key> <string>_proxy_roles</string> </key>
- <value>
- <tuple>
- <string>Assignor</string>
- <string>Author</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>kw</string>
- <string>_getattr_</string>
- <string>context</string>
- <string>person_module</string>
- <string>_getitem_</string>
- <string>person</string>
- <string>career</string>
- <string>assignment</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>WebSite_createUser</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>Create web site user</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