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
1
Issues
1
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
Roque
erp5
Commits
9ae23083
Commit
9ae23083
authored
Sep 28, 2016
by
Ayush Tiwari
Committed by
Ayush Tiwari
Aug 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_catalog: Sort values for multiple_selection type properties in catalog while editing
parent
c7eb3ab6
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 @
9ae23083
...
...
@@ -223,6 +223,57 @@ class ERP5Catalog(Folder, Catalog):
return
md
.
get
(
'type'
,
'string'
)
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'
)
def
getCatalogMethodIds
(
self
,
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