[Da-tools-commits] ./da-tools/userdir-ldap-cgi-python r12: renamed lib/ud_ldap_ng.py to lib/libdap.py

Robin Wittler real at geek-at-work.org
Thu Jan 22 20:02:28 UTC 2009


------------------------------------------------------------
revno: 12
committer: Robin Wittler <real at geek-at-work.org>
branch nick: userdir-ldap-cgi-python
timestamp: Thu 2009-01-22 21:02:28 +0100
message:
  renamed lib/ud_ldap_ng.py to lib/libdap.py
  fixing __all__ list
  modified udldapng controller to fit the new libldap
renamed:
  ud_ldap_ng/lib/ud_ldap_ng.py => ud_ldap_ng/lib/libldap.py
modified:
  ud_ldap_ng/controllers/udldapng.py
  ud_ldap_ng/lib/libldap.py
-------------- next part --------------
=== modified file 'ud_ldap_ng/controllers/udldapng.py'
--- a/ud_ldap_ng/controllers/udldapng.py	2009-01-20 21:27:23 +0000
+++ b/ud_ldap_ng/controllers/udldapng.py	2009-01-22 20:02:28 +0000
@@ -4,17 +4,16 @@
 from pylons.controllers.util import abort, redirect_to
 
 from ud_ldap_ng.lib.base import BaseController, render
-#from ud_ldap_ng import model
 
 log = logging.getLogger(__name__)
 
-from ud_ldap_ng.lib.ud_ldap_ng import AnonymousDebianLDAP, DebianLDAPResult
+from ud_ldap_ng.lib.libldap import AnonymousDebianLDAP
 
 
 class UdldapngController(BaseController):
 	def index(self):
 		con = AnonymousDebianLDAP()
-		c.result = con.getDebianHosts(attrlist=['hostname', 'architecture', 'purpose', 'status', 'sponsor'], adjust=False)
+		c.result = con.getDebianHosts(attrlist=['hostname', 'architecture', 'purpose', 'status', 'sponsor'], adjust=True)
 		#c.result = dict()
 		return render('/machines.html')
 	

=== renamed file 'ud_ldap_ng/lib/ud_ldap_ng.py' => 'ud_ldap_ng/lib/libldap.py'
--- a/ud_ldap_ng/lib/ud_ldap_ng.py	2009-01-20 21:27:23 +0000
+++ b/ud_ldap_ng/lib/libldap.py	2009-01-22 20:02:28 +0000
@@ -400,7 +400,7 @@
 		scope = ldap.SCOPE_SUBTREE
 		return DebianLDAPResult(self.ldapSearch(dn, scope, attrlist=attrlist), adjust=adjust)
 
-__all__ = ['MyLDAP', 'DebianLDAP']
+__all__ = ['MyLDAP', 'DebianLDAPResult', 'AnonymousDebianLDAP']
 
 if __name__ == '__main__':
     pass



More information about the Da-tools-commits mailing list