Remove ceoquery
authorMichael Spang <mspang@csclub.uwaterloo.ca>
Sun, 16 Dec 2007 23:11:16 +0000 (18:11 -0500)
committerMichael Spang <mspang@csclub.uwaterloo.ca>
Sun, 16 Dec 2007 23:11:42 +0000 (18:11 -0500)
Just use the GUI's search feature or ldapsearch directly.

bin/ceoquery [deleted file]
setup.py

diff --git a/bin/ceoquery b/bin/ceoquery
deleted file mode 100755 (executable)
index 9e35964..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/usr/bin/python
-"""
-ceoquery - a script to lookup member and account information
-"""
-import os, sys
-from ceo import members, terms
-
-try:
-    members.connect()
-except Exception, e:
-    print "ceoquery: %s" % e
-    sys.exit(1)
-
-def usage():
-    print "Usage: ceoquery memberlist|termusers"
-
-if len(sys.argv) < 2:
-    usage()
-
-elif sys.argv[1] == 'memberlist':
-    
-    current_term = terms.current()
-    members = members.list_term(current_term)
-    for member in members.values():
-        if 'program' in member:
-            program = member['program'][0]
-        else:
-            program = ''
-        print "%s|%s|%s" % (member['cn'][0], program, member['uid'][0])
-
-elif sys.argv[1] == 'allmembers':
-
-    pass
-
-elif sys.argv[1] == 'booklist':
-
-    pass
-
-elif sys.argv[1] == 'allusers':
-
-    pass
-
-elif sys.argv[1] == 'termusers':
-
-    if len(sys.argv) > 2:
-        term = sys.argv[2]
-    else:
-        term = terms.current()
-
-    members = members.list_term(term)
-    for member in members:
-        print member
-
-else:
-
-    usage()
-
index 56cb27a..d5603aa 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -6,6 +6,6 @@ setup(
     name='ceo',
     description='CSC Electronic Office',
     packages=[ 'ceo', 'ceo.urwid' ],
-    scripts=['bin/ceo', 'bin/ceoquery' ],
+    scripts=['bin/ceo'],
 )