[Erp5-report] r43519 ivan - in /erp5/trunk/bt5/erp5_km: SkinTemplateItem/portal_skins/erp5_...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Feb 21 13:02:42 CET 2011
Author: ivan
Date: Mon Feb 21 13:02:42 2011
New Revision: 43519
URL: http://svn.erp5.org?rev=43519&view=rev
Log:
No way to show lates contributions if Person has no reference.
Modified:
erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/WebSection_countMyContentList.xml
erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/WebSection_getMyContentList.xml
erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/Person_viewAsWeb/latest_content_listbox.xml
erp5/trunk/bt5/erp5_km/bt/revision
Modified: erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/WebSection_countMyContentList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/WebSection_countMyContentList.xml?rev=43519&r1=43518&r2=43519&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/WebSection_countMyContentList.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/WebSection_countMyContentList.xml [utf8] Mon Feb 21 13:02:42 2011
@@ -60,6 +60,9 @@
if context.getPortalType() == \'Person\':\n
# If context is a person, get the user\n
user = context.getReference()\n
+ if user is None:\n
+ # no way to determine documents if we have no reference\n
+ return [[0]]\n
return context.ContributionTool_countMyContentList(user=user, **kw)\n
else:\n
return context.ContributionTool_countMyContentList(**kw)\n
Modified: erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/WebSection_getMyContentList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/WebSection_getMyContentList.xml?rev=43519&r1=43518&r2=43519&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/WebSection_getMyContentList.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/WebSection_getMyContentList.xml [utf8] Mon Feb 21 13:02:42 2011
@@ -60,6 +60,9 @@
if context.getPortalType() == \'Person\':\n
# If context is a person, get the user\n
user = context.getReference()\n
+ if user is None:\n
+ # no way to determine documents if we have no reference\n
+ return []\n
return context.ContributionTool_getMyContentList(user=user, **kw)\n
else:\n
return context.ContributionTool_getMyContentList(**kw)\n
Modified: erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/Person_viewAsWeb/latest_content_listbox.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/Person_viewAsWeb/latest_content_listbox.xml?rev=43519&r1=43518&r2=43519&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/Person_viewAsWeb/latest_content_listbox.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/Person_viewAsWeb/latest_content_listbox.xml [utf8] Mon Feb 21 13:02:42 2011
@@ -370,7 +370,9 @@
</item>
<item>
<key> <string>count_method</string> </key>
- <value> <string></string> </value>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+ </value>
</item>
<item>
<key> <string>css_class</string> </key>
@@ -457,7 +459,7 @@
<item>
<key> <string>list_method</string> </key>
<value>
- <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+ <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
@@ -607,6 +609,19 @@
<dictionary>
<item>
<key> <string>method_name</string> </key>
+ <value> <string>WebSection_countMyContentList</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+ <record id="4" aka="AAAAAAAAAAQ=">
+ <pickle>
+ <global name="Method" module="Products.Formulator.MethodField"/>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>method_name</string> </key>
<value> <string>WebSection_getMyContentList</string> </value>
</item>
</dictionary>
Modified: erp5/trunk/bt5/erp5_km/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km/bt/revision?rev=43519&r1=43518&r2=43519&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_km/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_km/bt/revision [utf8] Mon Feb 21 13:02:42 2011
@@ -1 +1 @@
-1752
\ No newline at end of file
+1753
\ No newline at end of file
More information about the Erp5-report
mailing list