Bug 26673 - UMC Layout Anpassung über UCR funktioniert nicht mehr
UMC Layout Anpassung über UCR funktioniert nicht mehr
Status: RESOLVED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 3.0
Other Linux
: P4 enhancement (vote)
: UCS 3.x
Assigned To: Alexander Kläser
: interim-3
Depends on:
Blocks: 26674 26796
  Show dependency treegraph
 
Reported: 2012-03-30 13:59 CEST by Felix Botner
Modified: 2012-07-10 16:11 CEST (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2012-03-30 13:59:35 CEST
In 2.4 konnte man mit 

ucr set directory/manager/web/modules/users/user/layout/Mail="mailAlternativeAddress"

das UMC/UDM Layout Anpassen. Mit 3.0 geht das nicht mehr, da sich das Layout Schema geändert hat. Vielmehr führt diese Variable dazu, dass UMC mit Traceback abbricht.

Die Ausführung des Kommandos udm/containers ist fehlgeschlagen:

Traceback (most recent call last):
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py', line 97, in execute
func( request )
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py', line 552, in containers
module = self._get_module( request )
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py', line 99, in _get_module
return UDM_Module( module_name )
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py', line 191, in __init__
self.load( module )
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py', line 201, in load
self.module = _module_cache.get( module )
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py', line 130, in wrapper_func
ret = func( *args, **kwargs )
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py', line 179, in get
udm_modules.init( ldap_connection, ldap_position, self[ name ], template_object )
File '/usr/lib/pymodules/python2.6/univention/admin/modules.py', line 276, in init
univention.admin.ucr_overwrite_module_layout( module )
File '/usr/lib/pymodules/python2.6/univention/admin/__init__.py', line 354, in ucr_overwrite_module_layout
tab[ 'layout' ] = { 'label' : _( 'General' ), 'layout' : layout }
NameError: global name '_' is not defined
Comment 1 Andreas Büsching univentionstaff 2012-04-10 09:26:11 CEST
Den Traceback zu korrigieren ist nur ein geringer Aufwand.

Frage: Soll dann hier auch die Möglichkeit bestehen Gruppen zu definieren? Das würde das momentane Format der Variablenwerte nicht abbilden.
Comment 2 Stefan Gohmann univentionstaff 2012-04-10 09:30:07 CEST
(In reply to comment #1)
> Den Traceback zu korrigieren ist nur ein geringer Aufwand.
> 
> Frage: Soll dann hier auch die Möglichkeit bestehen Gruppen zu definieren? Das
> würde das momentane Format der Variablenwerte nicht abbilden.

Ja, ich glaube ohne wird das schnell ungünstig aussehen.
Comment 3 Felix Botner univentionstaff 2012-04-16 16:04:43 CEST
Zusätzlich sollte es die Möglichkeit geben, bestimmte Attribute für die UMC zu deaktivieren.

directory/manager/web/modules/users/user/deactivated="mailHomeServer, ..." (oder so) -> mailHomeServer wird in der UMC nicht mehr angezeigt.
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2012-06-12 11:21:24 CEST
(In reply to comment #3)
> Zusätzlich sollte es die Möglichkeit geben, bestimmte Attribute für die UMC zu
> deaktivieren.
> 
> directory/manager/web/modules/users/user/deactivated="mailHomeServer, ..."
> (oder so) -> mailHomeServer wird in der UMC nicht mehr angezeigt.

directory/manager/web/modules/%(modul)s/properties/%(property)s/__hidden=yes

→ wird über Bug 26947 bearbeitet
Comment 5 Alexander Kläser univentionstaff 2012-07-10 16:11:07 CEST
Zunächst wird diese Erweiterung nicht benötigt. Der Code, der zu dem Fehler führte wurde zunächst auskommentiert.


 univention-directory-manager-modules (7.0.277-1) unstable; urgency=low
 .
   * commented out code to overwrite the UDM module layout via UCR; Bug #26673
Comment 6 Alexander Kläser univentionstaff 2012-07-10 16:11:19 CEST
Changelog-Eintrag nicht notwendig.