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
preetwinder
erp5
Commits
851110aa
Commit
851110aa
authored
Sep 28, 2016
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_catalog: Sort values for multiple_selection type properties in catalog while editing
parent
c4c3869b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
product/ERP5Catalog/Document/ERP5Catalog.py
product/ERP5Catalog/Document/ERP5Catalog.py
+51
-0
No files found.
product/ERP5Catalog/Document/ERP5Catalog.py
View file @
851110aa
...
@@ -234,6 +234,57 @@ class ERP5Catalog(Folder, Catalog):
...
@@ -234,6 +234,57 @@ class ERP5Catalog(Folder, Catalog):
return
md
.
get
(
'type'
,
'string'
)
return
md
.
get
(
'type'
,
'string'
)
return
None
return
None
##### Overriding setters functions for multple_selection properties #######
##### Required as after every edit we expect the values sorted #######
def
_setSqlClearCatalogList
(
self
,
value
,
**
kw
):
value
=
sorted
(
value
)
self
.
_baseSetSqlClearCatalogList
(
value
,
**
kw
)
def
_setSqlCatalogFullTextSearchKeysList
(
self
,
value
,
**
kw
):
value
=
sorted
(
value
)
self
.
_baseSetSqlCatalogFullTextSearchKeysList
(
value
,
**
kw
)
def
_setSqlCatalogObjectListList
(
self
,
value
,
**
kw
):
value
=
sorted
(
value
)
self
.
_baseSetSqlCatalogObjectListList
(
value
,
**
kw
)
def
_setSqlUncatalogObjectList
(
self
,
value
,
**
kw
):
value
=
sorted
(
value
)
self
.
_baseSetSqlUncatalogObjectList
(
value
,
**
kw
)
def
_setSqlSearchTablesList
(
self
,
value
,
**
kw
):
value
=
sorted
(
value
)
self
.
_baseSetSqlSearchTablesList
(
value
,
**
kw
)
def
_setSqlCatalogDatetimeSearchKeysList
(
self
,
value
,
**
kw
):
value
=
sorted
(
value
)
self
.
_baseSetSqlCatalogDatetimeSearchKeysList
(
value
,
**
kw
)
def
_setSqlCatalogKeywordSearchKeysList
(
self
,
value
,
**
kw
):
value
=
sorted
(
value
)
self
.
_baseSetSqlCatalogKeywordSearchKeysList
(
value
,
**
kw
)
def
_setSqlCatalogMultivalueKeysList
(
self
,
value
,
**
kw
):
value
=
sorted
(
value
)
self
.
_baseSetSqlCatalogMultivalueKeysList
(
value
,
**
kw
)
def
_setSqlCatalogRequestKeysList
(
self
,
value
,
**
kw
):
value
=
sorted
(
value
)
self
.
_baseSetSqlCatalogRequestKeysList
(
value
,
**
kw
)
def
_setSqlCatalogIndexOnOrderKeysList
(
self
,
value
,
**
kw
):
value
=
sorted
(
value
)
self
.
_baseSetSqlCatalogIndexOnOrderKeysList
(
value
,
**
kw
)
def
_setSqlCatalogTableVoteScriptsList
(
self
,
value
,
**
kw
):
value
=
sorted
(
value
)
self
.
_baseSetSqlCatalogTableVoteScriptsList
(
value
,
**
kw
)
def
_setSqlSearchResultKeysList
(
self
,
value
,
**
kw
):
value
=
sorted
(
value
)
self
.
_baseSetSqlSearchResultKeysList
(
value
,
**
kw
)
security
.
declarePublic
(
'getCatalogMethodIds'
)
security
.
declarePublic
(
'getCatalogMethodIds'
)
def
getCatalogMethodIds
(
self
,
def
getCatalogMethodIds
(
self
,
valid_method_meta_type_list
=
valid_method_meta_type_list_new
):
valid_method_meta_type_list
=
valid_method_meta_type_list_new
):
...
...
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