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
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
Richard
erp5
Commits
e89d10aa
Commit
e89d10aa
authored
Nov 20, 2012
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "implement scriptable key to search by owner title thus improving a lot performances"
This reverts commit
3742a4c8
.
parent
ff1ca703
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
4 additions
and
82 deletions
+4
-82
bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeOwnerTitleSearchQuery.catalog_keys.xml
...odb/SQLCatalog_makeOwnerTitleSearchQuery.catalog_keys.xml
+0
-2
bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeOwnerTitleSearchQuery.xml
...rp5_mysql_innodb/SQLCatalog_makeOwnerTitleSearchQuery.xml
+0
-74
bt5/erp5_base/CatalogRelatedKeyTemplateItem/related_key_list.xml
...5_base/CatalogRelatedKeyTemplateItem/related_key_list.xml
+1
-0
bt5/erp5_base/CatalogScriptableKeyTemplateItem/scriptable_key_list.xml
.../CatalogScriptableKeyTemplateItem/scriptable_key_list.xml
+0
-3
bt5/erp5_base/bt/revision
bt5/erp5_base/bt/revision
+1
-1
bt5/erp5_base/bt/template_catalog_method_id_list
bt5/erp5_base/bt/template_catalog_method_id_list
+1
-1
bt5/erp5_base/bt/template_catalog_related_key_list
bt5/erp5_base/bt/template_catalog_related_key_list
+1
-0
bt5/erp5_base/bt/template_catalog_scriptable_key_list
bt5/erp5_base/bt/template_catalog_scriptable_key_list
+0
-1
No files found.
bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeOwnerTitleSearchQuery.catalog_keys.xml
deleted
100644 → 0
View file @
ff1ca703
<catalog_method>
</catalog_method>
bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeOwnerTitleSearchQuery.xml
deleted
100644 → 0
View file @
ff1ca703
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
from Products.ZSQLCatalog.SQLCatalog import Query\n
portal = context.getPortalObject()\n
\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 query\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
value
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SQLCatalog_makeOwnerTitleSearchQuery
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_base/CatalogRelatedKeyTemplateItem/related_key_list.xml
View file @
e89d10aa
...
...
@@ -3,6 +3,7 @@
<key>
child_telephone_SearchableText | catalog,full_text/SearchableText/z_related_child_telephone
</key>
<key>
default_email_text | catalog,email/url_string/z_related_default_email
</key>
<key>
destination_person_title | category,catalog/title/z_related_destination_person
</key>
<key>
owner_title | catalog/title/z_related_owner_title
</key>
<key>
related_resource_use_uid | category,category,catalog,catalog/uid/z_related_resource_use
</key>
<key>
source_organisation_title | category,catalog/title/z_related_source_organisation
</key>
<key>
source_person_title | category,catalog/title/z_related_source_person
</key>
...
...
bt5/erp5_base/CatalogScriptableKeyTemplateItem/scriptable_key_list.xml
deleted
100644 → 0
View file @
ff1ca703
<key_list>
<key>
owner_title | SQLCatalog_makeOwnerTitleSearchQuery
</key>
</key_list>
\ No newline at end of file
bt5/erp5_base/bt/revision
View file @
e89d10aa
1028
\ No newline at end of file
1026
\ No newline at end of file
bt5/erp5_base/bt/template_catalog_method_id_list
View file @
e89d10aa
erp5_mysql_innodb/SQLCatalog_makeOwnerTitleSearchQuery
erp5_mysql_innodb/z_related_child_address
erp5_mysql_innodb/z_related_child_telephone
erp5_mysql_innodb/z_related_default_email
erp5_mysql_innodb/z_related_destination_person
erp5_mysql_innodb/z_related_owner_title
erp5_mysql_innodb/z_related_resource_use
erp5_mysql_innodb/z_related_source_organisation
erp5_mysql_innodb/z_related_source_person
\ No newline at end of file
bt5/erp5_base/bt/template_catalog_related_key_list
View file @
e89d10aa
...
...
@@ -3,5 +3,6 @@ source_person_title | category,catalog/title/z_related_source_person
destination_person_title | category,catalog/title/z_related_destination_person
default_email_text | catalog,email/url_string/z_related_default_email
related_resource_use_uid | category,category,catalog,catalog/uid/z_related_resource_use
owner_title | catalog/title/z_related_owner_title
child_address_SearchableText | catalog,full_text/SearchableText/z_related_child_address
child_telephone_SearchableText | catalog,full_text/SearchableText/z_related_child_telephone
\ No newline at end of file
bt5/erp5_base/bt/template_catalog_scriptable_key_list
deleted
100644 → 0
View file @
ff1ca703
owner_title | SQLCatalog_makeOwnerTitleSearchQuery
\ 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