Esempio n. 1
0
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)
Esempio n. 2
0
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')
Esempio n. 3
0
def all_locked():
	all_locked = Search('ssccAccountLocked=TRUE')
	flash('Alphabetical by first name', 'success')
	return render_template('all_locked.html')
Esempio n. 4
0
def all_users():
	all_users = Search('ssccAffiliation=*')
	flash('Alphabetical by first name', 'success')
	return render_template('all_users.html')
Esempio n. 5
0
def age():
	age = Search('ssccAffiliation=age')
	flash('Alphabetical by first name', 'success')
	return render_template('age.html')
Esempio n. 6
0
def wsob():
	wsob = Search('ssccAffiliation=wsob')
	flash('Alphabetical by first name', 'success')
	return render_template('wsob.html')
Esempio n. 7
0
def uwsc():
	uwsc = Search('ssccAffiliation=uwsc')
	flash('Alphabetical by first name', 'success')
	return render_template('uwsc.html')
Esempio n. 8
0
def sohe():
	sohe = Search('ssccAffiliation=sohe')
	flash('Alphabetical by first name', 'success')
	return render_template('sohe.html')
Esempio n. 9
0
def psych():
	psych = Search('ssccAffiliation=psych')
	flash('Alphabetical by first name', 'success')
	return render_template('psych.html')
Esempio n. 10
0
def polisci():
	polisci = Search('ssccAffiliation=polisci')
	flash('Alphabetical by first name', 'success')
	return render_template('polisci.html')
Esempio n. 11
0
def cdha():
	cdha = Search('ssccAffiliation=cdha')
	flash('Alphabetical by first name', 'success')
	return render_template('cdha.html')
Esempio n. 12
0
def cows():
	cows = Search('ssccAffiliation=cows')
	flash('Alphabetical by first name', 'success')
	return render_template('cows.html')
Esempio n. 13
0
def irp():
	irp = Search('ssccAffiliation=irp')
	flash('Alphabetical by first name', 'success')
	return render_template('irp.html')
Esempio n. 14
0
def econ():
	econ = Search('ssccAffiliation=econ')
	flash('Alphabetical by first name', 'success')
	return render_template('econ.html')
Esempio n. 15
0
def sscc():
	sscc = Search('ssccAffiliation=staff')
	flash('Alphabetical by first name', 'success')
	return render_template('sscc.html')
Esempio n. 16
0
def sociology(): #Finds everyone with the Soc affiliation
	soc = Search('ssccAffiliation=soc')
	flash('Alphabetical by first name', 'success')
	return render_template('sociology.html')