Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mukul
erp5
Commits
ff1ca703
Commit
ff1ca703
authored
Nov 20, 2012
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "rewrite script to not use deprecated code (thx to vincent)"
This reverts commit
dccbb3b8
.
parent
eec43006
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
9 deletions
+46
-9
bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeOwnerTitleSearchQuery.xml
...rp5_mysql_innodb/SQLCatalog_makeOwnerTitleSearchQuery.xml
+5
-8
bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_owner_title.catalog_keys.xml
.../erp5_mysql_innodb/z_related_owner_title.catalog_keys.xml
+2
-0
bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_owner_title.xml
...ortal_catalog/erp5_mysql_innodb/z_related_owner_title.xml
+38
-0
bt5/erp5_base/bt/revision
bt5/erp5_base/bt/revision
+1
-1
No files found.
bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeOwnerTitleSearchQuery.xml
View file @
ff1ca703
...
...
@@ -50,17 +50,14 @@
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
from Products.ZSQLCatalog.SQLCatalog import SimpleQuery\n
\n
<value>
<string>
from Products.ZSQLCatalog.SQLCatalog import Query\n
portal = context.getPortalObject()\n
\n
reference_list = [x.reference for x in\n
portal.portal_catalog(SimpleQuery(reference=None,\n
comparison_operator="is not"),\n
select_list=[\'reference\'],\n
portal_type="Person", title=value)]\n
reference_list = [x.reference for x in portal.portal_catalog(select_expression="catalog.reference", portal_type="Person", title=value, reference="%")]\n
\n
query = Query(**{\'catalog.owner\': reference_list or -1})\n
\n
return
SimpleQuery(owner=reference_list or -1)
\n
return
query
\n
</string>
</value>
</item>
<item>
...
...
bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_owner_title.catalog_keys.xml
0 → 100644
View file @
ff1ca703
<catalog_method>
</catalog_method>
bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_owner_title.xml
0 → 100644
View file @
ff1ca703
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string>
table_0\r\n
query_table
</string>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
erp5_sql_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
z_related_owner_title
</string>
</value>
</item>
<item>
<key>
<string>
src
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<dtml-var query_table>
.owner =
<dtml-var
table_0
>
.reference\n
AND
<dtml-var
table_0
>
.portal_type = \'Person\'
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_base/bt/revision
View file @
ff1ca703
1030
\ No newline at end of file
1028
\ No newline at end of file
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