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 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -88,10 +85,13 @@ if context.getLanguage() is not None:\n ...@@ -88,10 +85,13 @@ if context.getLanguage() is not None:\n
if context.getVersion() is not None:\n if context.getVersion() is not None:\n
ss.append(context.getReference() + \'-\' + context.getLanguage() + \'-\' + context.getVersion())\n ss.append(context.getReference() + \'-\' + context.getLanguage() + \'-\' + context.getVersion())\n
\n \n
# Find from only document types\n
document_type_list = context.getPortalDocumentTypeList()\n
\n
lst=[]\n lst=[]\n
for t in ss:\n for t in ss:\n
kw = {\'full_text.SearchableText\':\'%\' + t + \'%\'}\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 \n
return lst\n return lst\n
</string> </value> </string> </value>
...@@ -148,9 +148,11 @@ return lst\n ...@@ -148,9 +148,11 @@ return lst\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>None</string> <string>None</string>
<string>document_type_list</string>
<string>lst</string> <string>lst</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>t</string> <string>t</string>
<string>_inplacevar_</string>
<string>_apply_</string> <string>_apply_</string>
</tuple> </tuple>
</value> </value>
......
2007-11-21 Yusei
* Search predecessor only from document type documents.
2007-11-21 Yusei 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. * 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 708
\ No newline at end of file \ 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