Commit 8c6ebedf authored by Yusei Tahara's avatar Yusei Tahara

2007-11-21 Yusei

* Search predecessor only from document type documents.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17729 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d90ed0d1
......@@ -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>
......@@ -88,10 +85,13 @@ if context.getLanguage() is not None:\n
if context.getVersion() is not None:\n
ss.append(context.getReference() + \'-\' + context.getLanguage() + \'-\' + context.getVersion())\n
\n
# Find from only document types\n
document_type_list = context.getPortalDocumentTypeList()\n
\n
lst=[]\n
for t in ss:\n
kw = {\'full_text.SearchableText\':\'%\' + t + \'%\'}\n
lst += context.portal_catalog(**kw)\n
lst += context.portal_catalog(portal_type=document_type_list, **kw)\n
\n
return lst\n
</string> </value>
......@@ -148,9 +148,11 @@ return lst\n
<string>_getattr_</string>
<string>context</string>
<string>None</string>
<string>document_type_list</string>
<string>lst</string>
<string>_getiter_</string>
<string>t</string>
<string>_inplacevar_</string>
<string>_apply_</string>
</tuple>
</value>
......
2007-11-21 Yusei
* Search predecessor only from document type documents.
2007-11-21 Yusei
* Disable search using xxx_relative_url argument in advanced search, language property is not stored as relation in a document. And fixed ambiguous table name in sql.
......
707
\ No newline at end of file
708
\ 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