[Da-tools-commits] ./da-tools/userdir-ldap-cgi-python r20: adding access to controller
Robin Wittler
real at geek-at-work.org
Fri Jan 30 08:58:34 UTC 2009
------------------------------------------------------------
revno: 20
committer: Robin Wittler <real at geek-at-work.org>
branch nick: userdir-ldap-cgi-python
timestamp: Fri 2009-01-30 09:58:34 +0100
message:
adding access to controller
removing objectClass from machine template
modified:
ud_ldap_ng/controllers/udldapng.py
ud_ldap_ng/templates/machine.html
-------------- next part --------------
=== modified file 'ud_ldap_ng/controllers/udldapng.py'
--- a/ud_ldap_ng/controllers/udldapng.py 2009-01-27 20:43:31 +0000
+++ b/ud_ldap_ng/controllers/udldapng.py 2009-01-30 08:58:34 +0000
@@ -30,7 +30,7 @@
def hosts(self):
con = AnonymousDebianLDAP()
- c.attributes = ['hostname', 'architecture', 'purpose', 'sponsor', 'status']
+ c.attributes = ['hostname', 'architecture', 'purpose', 'sponsor', 'status', 'access']
c.sortorders = {u'asc': False, u'dsc': True}
c.result = con.getDebianHosts(attrlist=c.attributes, adjust=True, default_value='')
c.sortorder = request.params.get('sortorder', None)
=== modified file 'ud_ldap_ng/templates/machine.html'
--- a/ud_ldap_ng/templates/machine.html 2009-01-29 20:09:39 +0000
+++ b/ud_ldap_ng/templates/machine.html 2009-01-30 08:58:34 +0000
@@ -49,7 +49,7 @@
<h1>Information about ${hostname}</h1>
% endfor
<ul>
- %for key in sorted((i for i in host if i != 'hostname')):
+ %for key in sorted((i for i in host if not i in ('hostname', 'objectClass'))):
<%
values = host.get(key)
len_values = len(values)
More information about the Da-tools-commits
mailing list