Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
e3105c76
Commit
e3105c76
authored
Nov 24, 2014
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup WebSite_getFullTextSearchResultList.
parent
4afac5ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/WebSite_getFullTextSearchResultList.xml
...tal_skins/erp5_km/WebSite_getFullTextSearchResultList.xml
+1
-6
No files found.
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/WebSite_getFullTextSearchResultList.xml
View file @
e3105c76
...
@@ -61,12 +61,7 @@ kw[\'all_languages\'] = True\n
...
@@ -61,12 +61,7 @@ kw[\'all_languages\'] = True\n
if re.search(r\'\\bnewest:yes\\b\', search_text):\n
if re.search(r\'\\bnewest:yes\\b\', search_text):\n
#...and now we check for only the newest versions\n
#...and now we check for only the newest versions\n
# but we need to preserve order\n
# but we need to preserve order\n
language_match = re.search(r\'\\blanguage:(.+?)\\b\', search_text)\n
return [doc.getLatestVersionValue(language=doc.getLanguage()) \\\n
if language_match:\n
language = language_match.groups()[0]\n
else:\n
language = None\n
return [doc.getLatestVersionValue(language=language) \\\n
for doc in context.getDocumentValueList(search_text=search_text, **kw)]\n
for doc in context.getDocumentValueList(search_text=search_text, **kw)]\n
else:\n
else:\n
return context.getDocumentValueList(search_text=search_text, **kw)\n
return context.getDocumentValueList(search_text=search_text, **kw)\n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment