[Erp5-report] r21124 - in /erp5/trunk/bt5/erp5_crm: SkinTemplateItem/portal_skins/erp5_crm/...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon May 26 14:28:31 CEST 2008
Author: nicolas
Date: Mon May 26 14:28:30 2008
New Revision: 21124
URL: http://svn.erp5.org?rev=21124&view=rev
Log:
Fix script if user is not found in person module
Modified:
erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_addEvent.xml
erp5/trunk/bt5/erp5_crm/bt/revision
Modified: erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_addEvent.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_addEvent.xml?rev=21124&r1=21123&r2=21124&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_addEvent.xml (original)
+++ erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_addEvent.xml Mon May 26 14:28:30 2008
@@ -71,8 +71,10 @@
# Search current user ID\n
user_id = getSecurityManager().getUser().getId()\n
source = None\n
+person_subordination = None\n
for person in context.portal_catalog(reference=user_id, portal_type=\'Person\'):\n
source = person.getRelativeUrl()\n
+ person_subordination = person.getSubordination()\n
break\n
\n
follow_up_url = None\n
@@ -83,14 +85,14 @@
\n
if direction == \'out\':\n
source_url = source\n
- source_section_url = person.getSubordination()\n
+ source_section_url = person_subordination\n
destination_url = destination\n
destination_section_url = context.getSubordination()\n
elif direction == \'in\':\n
source_url = destination\n
source_section_url = context.getSubordination()\n
destination_url = source\n
- destination_section_url = person.getSubordination()\n
+ destination_section_url = person_subordination\n
else:\n
raise KeyError, \'Direction Specified not handling: %s\' % direction\n
\n
@@ -175,6 +177,7 @@
<string>user_id</string>
<string>None</string>
<string>source</string>
+ <string>person_subordination</string>
<string>_getiter_</string>
<string>context</string>
<string>person</string>
Modified: erp5/trunk/bt5/erp5_crm/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/bt/revision?rev=21124&r1=21123&r2=21124&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/bt/revision (original)
+++ erp5/trunk/bt5/erp5_crm/bt/revision Mon May 26 14:28:30 2008
@@ -1,1 +1,1 @@
-237
+239
More information about the Erp5-report
mailing list