def editprivatenote(): form = EditPrivateBtn(request.form) editing_user = request.form.get('edit_private_btn') find_user = '******' + editing_user Search(find_user) return render_template('editprivatenote.html', form=form)
def results(): form = SearchForm(request.form) if request.method == 'POST' and form.validate(): search = request.form.get('search') user_input = 'uid=' + search + '*' try: Search(user_input) if g.user_info == []: flash('No results', 'danger') else: pass except ldap.LDAPError, e: #print "LDAPError" flash(e, 'danger')
def all_locked(): all_locked = Search('ssccAccountLocked=TRUE') flash('Alphabetical by first name', 'success') return render_template('all_locked.html')
def all_users(): all_users = Search('ssccAffiliation=*') flash('Alphabetical by first name', 'success') return render_template('all_users.html')
def age(): age = Search('ssccAffiliation=age') flash('Alphabetical by first name', 'success') return render_template('age.html')
def wsob(): wsob = Search('ssccAffiliation=wsob') flash('Alphabetical by first name', 'success') return render_template('wsob.html')
def uwsc(): uwsc = Search('ssccAffiliation=uwsc') flash('Alphabetical by first name', 'success') return render_template('uwsc.html')
def sohe(): sohe = Search('ssccAffiliation=sohe') flash('Alphabetical by first name', 'success') return render_template('sohe.html')
def psych(): psych = Search('ssccAffiliation=psych') flash('Alphabetical by first name', 'success') return render_template('psych.html')
def polisci(): polisci = Search('ssccAffiliation=polisci') flash('Alphabetical by first name', 'success') return render_template('polisci.html')
def cdha(): cdha = Search('ssccAffiliation=cdha') flash('Alphabetical by first name', 'success') return render_template('cdha.html')
def cows(): cows = Search('ssccAffiliation=cows') flash('Alphabetical by first name', 'success') return render_template('cows.html')
def irp(): irp = Search('ssccAffiliation=irp') flash('Alphabetical by first name', 'success') return render_template('irp.html')
def econ(): econ = Search('ssccAffiliation=econ') flash('Alphabetical by first name', 'success') return render_template('econ.html')
def sscc(): sscc = Search('ssccAffiliation=staff') flash('Alphabetical by first name', 'success') return render_template('sscc.html')
def sociology(): #Finds everyone with the Soc affiliation soc = Search('ssccAffiliation=soc') flash('Alphabetical by first name', 'success') return render_template('sociology.html')