Univention Bugzilla – Bug 34985
AttributeError: 'object' object has no attribute '_ldap_addlist'
Last modified: 2015-01-22 11:56:16 CET
The following traceback has been reported. It cannot be reproduced - no relevant information. The handler base class calls/accesses several methods and attributes which aren't defined in that class. Maybe we should implement them: def _ldap_addlist(self, *a, **kw): raise NotImplementedError('_ldap_addlist not implemented by %s ' % self.__class__.__name__) Traceback: File "/usr/lib/pymodules/python2.6/notifier/threads.py", line 82, in _run tmp = self._function() File "/usr/lib/pymodules/python2.6/notifier/__init__.py", line 104, in __call__ return self._function( *tmp, **self._kwargs ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py", line 339, in _thread dn = module.create( properties, container = options.get( 'container' ), superordinate = options.get( 'superordinate' ) ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 155, in wrapper_func ret = func( *args, **kwargs ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 350, in create obj.create() File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 333, in create return self._create() File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 680, in _create al=self._ldap_addlist() AttributeError: 'object' object has no attribute '_ldap_addlist'
To provide better error messages in case a module did not implement a required method some default methods have been implemented into the base class. Methods: '_ldap_addlist', '_ldap_modlist', '_ldap_dellist', 'exists', '_move', 'cancel', '_remove', '_create', '_modify'). Fix: svn 56398 Package: univention-directory-manager-modules (10.0.29-5) YAML: 2014-11-28-univention-directory-manager-modules.yaml Downgradeable to UCS 3.2-4: possible and preferred! Reproducible: >>> from univention.admin.handlers.computers import computer >>> from univention.admin.uldap import getMachineConnection >>> lo, po = getMachineConnection() >>> computer.object(None, lo, po)._ldap_addlist()
Fix: OK YAML: OK
<http://errata.univention.de/ucs/4.0/43.html>