Bug 34985 - AttributeError: 'object' object has no attribute '_ldap_addlist'
AttributeError: 'object' object has no attribute '_ldap_addlist'
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 4.0-0-errata
Assigned To: Florian Best
Johannes Keiser
Depends on:
  Show dependency treegraph
Reported: 2014-05-27 11:28 CEST by Florian Best
Modified: 2015-01-22 11:56 CET (History)
3 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): Error handling, External feedback
Max CVSS v3 score:


Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2014-05-27 11:28:42 CEST
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__)

  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 )
"/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' ) )
"/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line
155, in wrapper_func
    ret = func( *args, **kwargs )
"/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line
350, in create
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 333, in
    return self._create()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 680, in

AttributeError: 'object' object has no attribute '_ldap_addlist'
Comment 1 Florian Best univentionstaff 2014-12-04 00:30:29 CET
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!
>>> from univention.admin.handlers.computers import computer
>>> from univention.admin.uldap import getMachineConnection
>>> lo, po = getMachineConnection()
>>> computer.object(None, lo, po)._ldap_addlist()
Comment 2 Johannes Keiser univentionstaff 2014-12-05 12:38:45 CET
Fix: OK
Comment 3 Janek Walkenhorst univentionstaff 2015-01-22 11:56:16 CET