Commit 03511901 authored by Ivan Tyagov's avatar Ivan Tyagov

No way to show lates contributions if Person has no reference.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43519 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 960e5004
......@@ -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
......
......@@ -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
......
......@@ -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>
......@@ -600,6 +602,19 @@
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="Method" module="Products.Formulator.MethodField"/>
</pickle>
<pickle>
<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>
......
1752
\ No newline at end of file
1753
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment