Univention Bugzilla – Attachment 8299 Details for
Bug 43150
simplePolicy.create() does not return DN of created object
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch draft for create()
bug43150.patch (text/plain), 1.13 KB, created by
Sönke Schwardt-Krummrich
on 2016-12-09 15:41:28 CET
(
hide
)
Description:
Patch draft for create()
Filename:
MIME Type:
Creator:
Sönke Schwardt-Krummrich
Created:
2016-12-09 15:41:28 CET
Size:
1.13 KB
patch
obsolete
>diff --git a/ucs-4.1-4/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py b/ucs-4.1-4/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py >index b88af05..25197f8 100644 >--- a/ucs-4.1-4/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py >+++ b/ucs-4.1-4/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py >@@ -2750,17 +2750,17 @@ class simplePolicy(simpleLdap): > > def create(self): > if not self.resultmode: >- simpleLdap.create(self) >- return >+ return simpleLdap.create(self) > > self._exists = False > try: > self.oldinfo = {} >- simpleLdap.create(self) >+ dn = simpleLdap.create(self) > univention.debug.debug(univention.debug.ADMIN, univention.debug.INFO, 'simplePolicy.create: created object: info=%s' % (self.info)) > except univention.admin.uexceptions.objectExists: > self.__makeUnique() >- self.create() >+ dn = self.create() >+ return dn > > def policy_result(self, faked_policy_reference=None): > """This method retrieves the policy values currently effective
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 43150
: 8299