Commit 26290fbe authored by Ivan Tyagov's avatar Ivan Tyagov

Put back possibility of providing the user as parameter.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14697 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 22da3f1d
......@@ -76,9 +76,11 @@
WARNING: implementation depends on the fact\n
that owner is being indexed.\n
"""\n
if user is None:\n
user = context.portal_membership.getAuthenticatedMember() \n
\n
kw[\'portal_type\'] = context.getPortalMyDocumentTypeList()\n
kw[\'owner\'] = context.portal_membership.getAuthenticatedMember()\n
kw[\'owner\'] = user\n
return context.portal_catalog(**kw)\n
</string> </value>
</item>
......@@ -130,6 +132,7 @@ return context.portal_catalog(**kw)\n
<tuple>
<string>user</string>
<string>kw</string>
<string>None</string>
<string>_getattr_</string>
<string>context</string>
<string>_write_</string>
......
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