[Da-tools-commits] ./da-tools/userdir-ldap-cgi-python r6: fixed bug, so can show the result of ldap user request
Robin Wittler
real at geek-at-work.org
Sun Jan 11 21:54:40 UTC 2009
------------------------------------------------------------
revno: 6
committer: Robin Wittler <real at geek-at-work.org>
branch nick: userdir-ldap-cgi-python
timestamp: Sun 2009-01-11 22:54:40 +0100
message:
fixed bug, so can show the result of ldap user request
modified:
ud_ldap_ng/config/routing.py
ud_ldap_ng/controllers/udldapng.py
-------------- next part --------------
=== modified file 'ud_ldap_ng/config/routing.py'
--- a/ud_ldap_ng/config/routing.py 2009-01-10 19:29:32 +0000
+++ b/ud_ldap_ng/config/routing.py 2009-01-11 21:54:40 +0000
@@ -21,6 +21,7 @@
# CUSTOM ROUTES HERE
map.connect('/', controller='udldapng', action='index')
+
map.connect('/{controller}/{action}')
map.connect('/{controller}/{action}/{id}')
=== modified file 'ud_ldap_ng/controllers/udldapng.py'
--- a/ud_ldap_ng/controllers/udldapng.py 2009-01-11 21:30:10 +0000
+++ b/ud_ldap_ng/controllers/udldapng.py 2009-01-11 21:54:40 +0000
@@ -41,11 +41,12 @@
bindLDAP(con)
user = request.params['uid']
results = searchUser(con, user)
- result_set = []
- result_type, result_data = con.result(results, 0)
- if result_type == ldap.RES_SEARCH_ENTRY:
- result_set.append(result_data)
- return render('/developer.html')
+ return repr(results)
+ #result_set = []
+ #result_type, result_data = con.result(results, 0)
+ #if result_type == ldap.RES_SEARCH_ENTRY:
+ # result_set.append(result_data)
+ #return render('/developer.html')
# return "hello world"
# #return repr(searchHosts(con))
# return 'Hello World'
More information about the Da-tools-commits
mailing list