2 "A simple Web UI based on the web.py framework"
5 abspath = os.path.dirname(__file__)
6 sys.path.append(abspath)
12 render = web.template.render('templates/')
19 "Adds a user based on their user ID"
22 self.args = LDAP_ARGS()
29 i = web.input(uid=None)
36 users = ldap_osrf_sync.main(self.args)
38 return render.index(uid, users)
42 self.ldap_server = ldap_osrf_sync.credentials.LDAP_HOST
43 self.ldap_user = ldap_osrf_sync.credentials.LDAP_DN
44 self.ldap_password = ldap_osrf_sync.credentials.LDAP_PW
45 self.eg_host = ldap_osrf_sync.credentials.OSRF_HOST
46 self.eg_user = ldap_osrf_sync.credentials.OSRF_USER
47 self.eg_password = ldap_osrf_sync.credentials.OSRF_PW
48 self.eg_workstation = ldap_osrf_sync.credentials.OSRF_WORK_OU
49 self.find_eg_user = None
51 self.create_users = True
52 self.push_barcode = True
56 self.query_date = None
61 if __name__ == "__main__":
62 app = web.application(urls, globals())
65 app = web.application(urls, globals(), autoreload=False)
66 application = app.wsgifunc()