Univention Bugzilla – Bug 22439
Übernahme der UDM Module
Last modified: 2012-09-28 10:41:24 CEST
Die UDM Module & Co. sollten nach UCS 3.0 übernommen werden: univention-directory-manager-module-example univention-directory-manager-modules univention-directory-reports univention-dojo Das example Modul sollte nach branches/ucs-3.0/ucs/packaging, der Rest nach branches/ucs-3.0/ucs/management.
*** Bug 22459 has been marked as a duplicate of this bug. ***
(In reply to comment #0) > Die UDM Module & Co. sollten nach UCS 3.0 übernommen werden: > > univention-directory-manager-module-example > univention-directory-manager-modules > univention-directory-reports > univention-dojo Pakete sind übernommen, da UCR fehlt wurden die Pakete bisher nicht gebaut und getestet.
Created attachment 3263 [details] baseconfig gibt es nicht mehr Traceback beim Laden der Module
Created attachment 3264 [details] Das laden der Module funktioniert nicht mehr Traceback beim Laden der UDM Module
Created attachment 3265 [details] Laden der Module (In reply to comment #3) > Created an attachment (id=3263) [details] > baseconfig gibt es nicht mehr > > Traceback beim Laden der Module Mit dem Patch sollten die Module wieder geladen werden können
(In reply to comment #3) > Created an attachment (id=3263) [details] > baseconfig gibt es nicht mehr > > Traceback beim Laden der Module Wie besprochen, das wird wieder rückgängig gemacht.
Es gibt noch einen Fehler beim Laden der Module: File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 914, in <module> update() File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 73, in update os.path.walk(dir, _walk, p) File "/usr/lib/python2.6/posixpath.py", line 236, in walk walk(name, func, arg) File "/usr/lib/python2.6/posixpath.py", line 228, in walk func(arg, top, names) File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 63, in _walk mod=__import__(mod, globals(), locals(), name) File "/usr/lib/pymodules/python2.6/univention/admin/handlers/users/self.py", line 45, in <module> import univention.admin.handlers.users.user File "/usr/lib/pymodules/python2.6/univention/admin/handlers/users/user.py", line 607, in <module> syntax=univention.admin.syntax.module('shares/share'), File "/usr/lib/pymodules/python2.6/univention/admin/syntax.py", line 198, in __init__ mymodule = __import__( 'univention/admin/handlers/%s' % type) ImportError: Import by filename is not supported.
Created attachment 3272 [details] Laden der Syntax-Dateien Wenn ich mit dem Patch das Problem aus comment 7 fixe, dann komme ich zum nächsten Traceback: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 38, in <module> import univention.admin.modules File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 915, in <module> update() File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 74, in update os.path.walk(dir, _walk, p) File "/usr/lib/python2.6/posixpath.py", line 236, in walk walk(name, func, arg) File "/usr/lib/python2.6/posixpath.py", line 228, in walk func(arg, top, names) File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 64, in _walk mod=__import__(mod, globals(), locals(), name) File "/usr/lib/pymodules/python2.6/univention/admin/handlers/users/self.py", line 37, in <module> import univention.admin.handlers.settings.user File "/usr/lib/pymodules/python2.6/univention/admin/handlers/settings/user.py", line 263, in <module> class object(univention.admin.handlers.simpleLdap): AttributeError: 'module' object has no attribute 'handlers'
Das update() am Ende von modules.py habe ich auskommentiert, ansonsten sind wir in einer Import-Rekursion. Bisher habe ich noch keine negativen Auswirkungen feststellen können.
Ich kriege beim Laden der UMD Module noch folgende DeprecationWarnungs: /usr/lib/pymodules/python2.6/univention/admin/localization.py:64: DeprecationWarning: object.__init__() takes no parameters super (str, self).__init__ (self.data) /usr/lib/pymodules/python2.6/univention/admin/handlers/networks/network.py:33: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sys, string, re , copy, time, sha ...done.
Die Pakete wurden soweit übernommen.
univention-directory-reports hängt von python-univention-directory-reports hängt von univention-webui ab, was es in UCS 3.0 nicht mehr gibt.
*** Bug 23012 has been marked as a duplicate of this bug. ***
(In reply to comment #12) > univention-directory-reports hängt von python-univention-directory-reports > hängt von univention-webui ab, was es in UCS 3.0 nicht mehr gibt. Die Abhängigkeit wurde entfernt.
Die Pakete wurden übernommen
UCS 3.0-0 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer neueren Version von UCS erneut auftreten, so sollte dieser Bug dupliziert werden: "Clone This Bug"