Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
1383dbcb
Commit
1383dbcb
authored
Jun 23, 2016
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_catalog : Add method list to the view for Catalog and catalog list to views for CatalogTool
parent
a26546e5
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
364 additions
and
28 deletions
+364
-28
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/Base_viewCatalog.xml
...nTemplateItem/portal_skins/erp5_core/Base_viewCatalog.xml
+4
-1
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/Base_viewCatalog/listbox.xml
...eItem/portal_skins/erp5_core/Base_viewCatalog/listbox.xml
+125
-0
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/Base_viewCatalog/my_sql_catalog_raise_error_on_uid_check.xml
...e_viewCatalog/my_sql_catalog_raise_error_on_uid_check.xml
+84
-0
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/CatalogTool_getCatalogList.py
...Item/portal_skins/erp5_core/CatalogTool_getCatalogList.py
+1
-0
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/CatalogTool_getCatalogList.xml
...tem/portal_skins/erp5_core/CatalogTool_getCatalogList.xml
+62
-0
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/CatalogTool_viewCatalogList.xml
...em/portal_skins/erp5_core/CatalogTool_viewCatalogList.xml
+2
-2
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/CatalogTool_viewCatalogList/listbox.xml
...l_skins/erp5_core/CatalogTool_viewCatalogList/listbox.xml
+20
-25
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/Catalog_getMethodList.py
...plateItem/portal_skins/erp5_core/Catalog_getMethodList.py
+4
-0
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/Catalog_getMethodList.xml
...lateItem/portal_skins/erp5_core/Catalog_getMethodList.xml
+62
-0
No files found.
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/Base_viewCatalog.xml
View file @
1383dbcb
...
...
@@ -43,7 +43,9 @@
<item>
<key>
<string>
bottom
</string>
</key>
<value>
<list/>
<list>
<string>
listbox
</string>
</list>
</value>
</item>
<item>
...
...
@@ -101,6 +103,7 @@
<string>
my_sql_catalog_role_keys
</string>
<string>
my_sql_catalog_local_role_keys
</string>
<string>
my_sql_catalog_security_uid_columns
</string>
<string>
my_sql_catalog_raise_error_on_uid_check
</string>
</list>
</value>
</item>
...
...
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/Base_viewCatalog/listbox.xml
0 → 100644
View file @
1383dbcb
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
columns
</string>
<string>
list_method
</string>
<string>
selection_name
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
listbox
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
columns
</string>
</key>
<value>
<list>
<tuple>
<string>
title
</string>
<string>
Title
</string>
</tuple>
<tuple>
<string>
relative_url
</string>
<string>
URL
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_listbox
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
list_method
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
selection_name
</string>
</key>
<value>
<string>
catalog_view_selection
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Catalog Methods
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Method"
module=
"Products.Formulator.MethodField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
method_name
</string>
</key>
<value>
<string>
Catalog_getMethodList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/Base_viewCatalog/my_sql_catalog_raise_error_on_uid_check.xml
0 → 100644
View file @
1383dbcb
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_sql_catalog_raise_error_on_uid_check
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_checkbox
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
sql_catalog_raise_error_on_uid_check
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/CatalogTool_getCatalogList.py
0 → 100644
View file @
1383dbcb
return
sorted
(
context
.
getPortalObject
().
portal_catalog
.
getSQLCatalogIdList
())
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/CatalogTool_getCatalogList.xml
0 → 100644
View file @
1383dbcb
<?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>
_params
</string>
</key>
<value>
<string>
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
CatalogTool_getCatalogList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/CatalogTool_viewCatalogList.xml
View file @
1383dbcb
...
...
@@ -67,8 +67,6 @@
<string>
my_title
</string>
<string>
my_source_sql_catalog_id
</string>
<string>
my_destination_sql_catalog_id
</string>
<string>
my_hot_reindexing_state
</string>
<string>
my_archive_path
</string>
</list>
</value>
</item>
...
...
@@ -77,6 +75,8 @@
<value>
<list>
<string>
my_default_sql_catalog_id
</string>
<string>
my_hot_reindexing_state
</string>
<string>
my_archive_path
</string>
</list>
</value>
</item>
...
...
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/CatalogTool_viewCatalogList/listbox.xml
View file @
1383dbcb
...
...
@@ -11,8 +11,7 @@
<value>
<list>
<string>
columns
</string>
<string>
lines
</string>
<string>
portal_types
</string>
<string>
list_method
</string>
<string>
selection_name
</string>
<string>
title
</string>
</list>
...
...
@@ -76,46 +75,29 @@
<string>
Title
</string>
</tuple>
<tuple>
<string>
uid
</string>
<string>
UID
</string>
</tuple>
<tuple>
<string>
id
</string>
<string>
ID
</string>
</tuple>
<tuple>
<string>
translated_portal_type
</string>
<string>
Type
</string>
<string>
relative_url
</string>
<string>
URL
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_
list
_mode_listbox
</string>
</value>
<value>
<string>
my_
view
_mode_listbox
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
lines
</string>
</key>
<value>
<int>
30
</int>
</value>
</item>
<item>
<key>
<string>
portal_types
</string>
</key>
<key>
<string>
list_method
</string>
</key>
<value>
<list>
<tuple>
<string>
Catalog
</string>
<string>
Catalog
</string>
</tuple>
</list>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
selection_name
</string>
</key>
<value>
<string>
catalog_selection
</string>
</value>
<value>
<string>
catalog_
view_
selection
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
...
...
@@ -127,4 +109,17 @@
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Method"
module=
"Products.Formulator.MethodField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
method_name
</string>
</key>
<value>
<string>
CatalogTool_getCatalogList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/Catalog_getMethodList.py
0 → 100644
View file @
1383dbcb
method_list
=
context
.
getPortalObject
().
portal_catalog
.
getSQLCatalog
().
Catalog_getCatalogMethodIds
()
method_list
=
[
method
[
0
]
for
method
in
method_list
]
return
method_list
bt5/erp5_catalog_transition/SkinTemplateItem/portal_skins/erp5_core/Catalog_getMethodList.xml
0 → 100644
View file @
1383dbcb
<?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>
_params
</string>
</key>
<value>
<string>
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Catalog_getMethodList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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