[Erp5-report] r22015 - in /erp5/trunk/bt5/erp5_dms: SkinTemplateItem/portal_skins/erp5_dms/...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jun 27 13:09:36 CEST 2008
Author: ivan
Date: Fri Jun 27 13:09:33 2008
New Revision: 22015
URL: http://svn.erp5.org?rev=22015&view=rev
Log:
Return objects.
Modified:
erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_getRelatedDocumentList.xml
erp5/trunk/bt5/erp5_dms/bt/revision
Modified: erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_getRelatedDocumentList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_getRelatedDocumentList.xml?rev=22015&r1=22014&r2=22015&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_getRelatedDocumentList.xml (original)
+++ erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_getRelatedDocumentList.xml Fri Jun 27 13:09:33 2008
@@ -85,12 +85,15 @@
funcname = \'get%sValueList\' % convertToUpperCase(category)\n
func = getattr(context, funcname)\n
return [o.getLatestVersionValue() for o in func()]\n
-\n
+ \n
relation_id = kw.get(\'relation_id\') # XXX-JPS Change \'what\' to more explicit name and include in API of script\n
+\n
if relation_id == \'wiki_predecessor\':\n
- return context.getImplicitPredecessorValueList()\n
+ return [i.getObject()\n
+ for i in context.getImplicitPredecessorValueList()]\n
if relation_id == \'wiki_successor\':\n
- return context.getImplicitSuccessorValueList()\n
+ return [i.getObject() \n
+ for i in context.getImplicitSuccessorValueList()]\n
if relation_id.startswith(\'related\'):\n
return getRelatedLatest(relation_id[8:])\n
if relation_id == \'cloud\':\n
@@ -165,13 +168,13 @@
<string>getRelatedLatest</string>
<string>_getattr_</string>
<string>relation_id</string>
- <string>context</string>
- <string>_getitem_</string>
- <string>dic</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
+ <string>context</string>
<string>i</string>
+ <string>_getitem_</string>
+ <string>dic</string>
<string>predecessor_value_list</string>
<string>successor_value_list</string>
<string>similar_value_list</string>
Modified: erp5/trunk/bt5/erp5_dms/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/bt/revision?rev=22015&r1=22014&r2=22015&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/bt/revision (original)
+++ erp5/trunk/bt5/erp5_dms/bt/revision Fri Jun 27 13:09:33 2008
@@ -1,1 +1,1 @@
-899
+901
More information about the Erp5-report
mailing list