[Erp5-report] r19385 - in /erp5/trunk/bt5/erp5_dms: SkinTemplateItem/portal_skins/erp5_dms/...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 19 11:16:24 CET 2008
Author: yusei
Date: Tue Feb 19 11:16:23 2008
New Revision: 19385
URL: http://svn.erp5.org?rev=19385&view=rev
Log:
wiki predecessor/successor method now returns zsqlbrain object instead of list.
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=19385&r1=19384&r2=19385&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 Tue Feb 19 11:16:23 2008
@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
- <tuple>
- <string>Products.PythonScripts.PythonScript</string>
- <string>PythonScript</string>
- </tuple>
- <none/>
+ <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+ <tuple/>
</tuple>
</pickle>
<pickle>
@@ -100,9 +97,14 @@
return context.getSimilarCloudValueList()\n
if relation_id == \'all\':\n
dic = {}\n
- for ob in context.getImplicitPredecessorValueList() + context.getImplicitSuccessorValueList() + \\\n
- getRelatedLatest(\'predecessor\') + getRelatedLatest(\'successor\') + getRelatedLatest(\'similar\'):\n
- dic[ob] = True\n
+ predecessor_value_list = [i.getObject()\n
+ for i in context.getImplicitPredecessorValueList()]\n
+ successor_value_list = [i.getObject()\n
+ for i in context.getImplicitSuccessorValueList()]\n
+ similar_value_list = getRelatedLatest(\'similar\')\n
+ for obj in (predecessor_value_list + successor_value_list +\n
+ similar_value_list):\n
+ dic[obj] = None\n
return dic.keys()\n
\n
context.log(\'Relation %s is not provided for in this script\' % relation)\n
@@ -160,9 +162,15 @@
<string>context</string>
<string>_getitem_</string>
<string>dic</string>
+ <string>append</string>
+ <string>$append0</string>
<string>_getiter_</string>
- <string>ob</string>
- <string>True</string>
+ <string>i</string>
+ <string>predecessor_value_list</string>
+ <string>successor_value_list</string>
+ <string>similar_value_list</string>
+ <string>obj</string>
+ <string>None</string>
<string>_write_</string>
<string>relation</string>
</tuple>
Modified: erp5/trunk/bt5/erp5_dms/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/bt/revision?rev=19385&r1=19384&r2=19385&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/bt/revision (original)
+++ erp5/trunk/bt5/erp5_dms/bt/revision Tue Feb 19 11:16:23 2008
@@ -1,1 +1,1 @@
-851
+852
More information about the Erp5-report
mailing list