Univention Bugzilla – Attachment 9833 Details for
Bug 47922
Creating report fails if referenced objects do not exists: AttributeError: 'NoneType' object has no attribute 'info'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
47922.patch (text/plain), 1.10 KB, created by
Florian Best
on 2019-02-08 15:24:49 CET
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2019-02-08 15:24:49 CET
Size:
1.10 KB
patch
obsolete
>diff --git a/management/univention-directory-reports/modules/univention/directory/reports/interpreter.py b/management/univention-directory-reports/modules/univention/directory/reports/interpreter.py >index b8a7bd95f6..e919326c4c 100644 >--- a/management/univention-directory-reports/modules/univention/directory/reports/interpreter.py >+++ b/management/univention-directory-reports/modules/univention/directory/reports/interpreter.py >@@ -112,7 +112,8 @@ def resolve(self, token, base): > values = [values, ] > for value in values: > new_base = admin.get_object(token.attrs['module'], value) >- token.objects.append(new_base) >+ if new_base: >+ token.objects.append(new_base) > > def query(self, token, base): > if 'module' in token.attrs: >@@ -135,6 +136,8 @@ def _query_recursive(self, objects, attr, module, filter=None, regex=None): > _objs = [] > for dn in objects: > obj = admin.get_object(module, dn) >+ if not obj: >+ continue > if not filter and not regex: > _objs.append(obj) > elif filter and obj.has_key(filter[0]) and obj[filter[0]] and fnmatch.fnmatch(obj[filter[0]], filter[1]):
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 47922
:
9823
| 9833