Commit eed64005 authored by Romain Courteaud's avatar Romain Courteaud

Do not display embedded document in MyContent

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19301 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0657413f
......@@ -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>
......@@ -81,6 +78,10 @@ if user is None:\n
\n
kw[\'owner\'] = user\n
kw[\'portal_type\'] = context.getPortalMyDocumentTypeList()\n
\n
if not kw.has_key(\'validation_state\'):\n
kw[\'validation_state\'] = "!=embedded"\n
\n
return context.portal_catalog.countResults(**kw)\n
</string> </value>
</item>
......
......@@ -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>
......@@ -81,6 +78,10 @@ if user is None:\n
\n
kw[\'portal_type\'] = context.getPortalMyDocumentTypeList()\n
kw[\'owner\'] = user\n
\n
if not kw.has_key(\'validation_state\'):\n
kw[\'validation_state\'] = "!=embedded"\n
\n
return context.portal_catalog(**kw)\n
</string> </value>
</item>
......
842
\ No newline at end of file
843
\ 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