Univention Bugzilla – Attachment 5805 Details for
Bug 34200
Make display property for UDM grids configurable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Content of "Name" column is configurable via UCR
bug34200.patch (text/plain), 1.48 KB, created by
Dirk Wiesenthal
on 2014-02-26 12:05:03 CET
(
hide
)
Description:
Content of "Name" column is configurable via UCR
Filename:
MIME Type:
Creator:
Dirk Wiesenthal
Created:
2014-02-26 12:05:03 CET
Size:
1.48 KB
patch
obsolete
>Index: umc/python/udm/udm_ldap.py >=================================================================== >--- umc/python/udm/udm_ldap.py (Revision 48109) >+++ umc/python/udm/udm_ldap.py (Arbeitskopie) >@@ -543,6 +543,13 @@ > ret.append( key ) > return ret > >+ def obj_description( self, obj ): >+ description_property_name = ucr.get('directory/manager/web/modules/%s/display' % self.name) >+ if description_property_name: >+ description_property = self.module.property_descriptions.get(description_property_name) >+ if description_property: >+ return description_property.syntax.tostring(obj[description_property_name]) >+ > def is_policy_module( self ): > return self.name.startswith('policies/') and self.name != 'policies/policy' > >Index: umc/python/udm/__init__.py >=================================================================== >--- umc/python/udm/__init__.py (Revision 48109) >+++ umc/python/udm/__init__.py (Arbeitskopie) >@@ -473,6 +473,7 @@ > """ > > def _thread( request ): >+ ucr.load() > module = self._get_module_by_request( request ) > > superordinate = request.options.get( 'superordinate' ) >@@ -508,7 +509,7 @@ > '$childs$' : module.childs, > 'objectType' : module.name, > 'labelObjectType' : module.subtitle, >- 'name' : udm_objects.description( obj ), >+ 'name' : module.obj_description( obj ) or udm_objects.description( obj ), > 'path' : ldap_dn2path( obj.dn, include_rdn = False ) > } > if request.options[ 'objectProperty' ] not in ( 'name', 'None' ):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 34200
: 5805