Commit 4be5ed33 authored by Sebastien Robin's avatar Sebastien Robin

ERP5Type: add get[Category]ShortTitle accessor

Short title is a property quite widely used, and it happens regularly
to display it in listbox. So such access is very convenient to have
by default.
parent d9015520
...@@ -198,6 +198,7 @@ def defMethodGetter(key, method=None): ...@@ -198,6 +198,7 @@ def defMethodGetter(key, method=None):
defMethodGetter('id') defMethodGetter('id')
defMethodGetter('logical_path') defMethodGetter('logical_path')
defMethodGetter('reference') defMethodGetter('reference')
defMethodGetter('short_title')
defMethodGetter('title') defMethodGetter('title')
defMethodGetter('title_or_id') defMethodGetter('title_or_id')
defMethodGetter('translated_title') defMethodGetter('translated_title')
......
...@@ -78,6 +78,8 @@ class CategoryProperty(IdAsReferenceMixin('_category'), XMLObject): ...@@ -78,6 +78,8 @@ class CategoryProperty(IdAsReferenceMixin('_category'), XMLObject):
'get%sTranslatedTitleSet': Value.TranslatedTitleSetGetter, 'get%sTranslatedTitleSet': Value.TranslatedTitleSetGetter,
'get%sReferenceList': Value.ReferenceListGetter, 'get%sReferenceList': Value.ReferenceListGetter,
'get%sReferenceSet': Value.ReferenceSetGetter, 'get%sReferenceSet': Value.ReferenceSetGetter,
'get%sShortTitleList': Value.ShortTitleListGetter,
'get%sShortTitleSet': Value.ShortTitleSetGetter,
'get%sIdList': Value.IdListGetter, 'get%sIdList': Value.IdListGetter,
'get%sIdSet': Value.IdSetGetter, 'get%sIdSet': Value.IdSetGetter,
'get%sLogicalPathList': Value.LogicalPathListGetter, 'get%sLogicalPathList': Value.LogicalPathListGetter,
...@@ -94,6 +96,8 @@ class CategoryProperty(IdAsReferenceMixin('_category'), XMLObject): ...@@ -94,6 +96,8 @@ class CategoryProperty(IdAsReferenceMixin('_category'), XMLObject):
'get%sTranslatedTitle': Value.DefaultTranslatedTitleGetter, 'get%sTranslatedTitle': Value.DefaultTranslatedTitleGetter,
'getDefault%sReference': Value.DefaultReferenceGetter, 'getDefault%sReference': Value.DefaultReferenceGetter,
'get%sReference': Value.DefaultReferenceGetter, 'get%sReference': Value.DefaultReferenceGetter,
'getDefault%sShortTitle': Value.DefaultShortTitleGetter,
'get%sShortTitle': Value.DefaultShortTitleGetter,
'getDefault%sUid': Value.DefaultUidGetter, 'getDefault%sUid': Value.DefaultUidGetter,
'get%sUid': Value.DefaultUidGetter, 'get%sUid': Value.DefaultUidGetter,
'getDefault%sId': Value.DefaultIdGetter, 'getDefault%sId': Value.DefaultIdGetter,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment