コード例 #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)
コード例 #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')
コード例 #3
0
def all_locked():
	all_locked = Search('ssccAccountLocked=TRUE')
	flash('Alphabetical by first name', 'success')
	return render_template('all_locked.html')
コード例 #4
0
def all_users():
	all_users = Search('ssccAffiliation=*')
	flash('Alphabetical by first name', 'success')
	return render_template('all_users.html')
コード例 #5
0
def age():
	age = Search('ssccAffiliation=age')
	flash('Alphabetical by first name', 'success')
	return render_template('age.html')
コード例 #6
0
def wsob():
	wsob = Search('ssccAffiliation=wsob')
	flash('Alphabetical by first name', 'success')
	return render_template('wsob.html')
コード例 #7
0
def uwsc():
	uwsc = Search('ssccAffiliation=uwsc')
	flash('Alphabetical by first name', 'success')
	return render_template('uwsc.html')
コード例 #8
0
def sohe():
	sohe = Search('ssccAffiliation=sohe')
	flash('Alphabetical by first name', 'success')
	return render_template('sohe.html')
コード例 #9
0
def psych():
	psych = Search('ssccAffiliation=psych')
	flash('Alphabetical by first name', 'success')
	return render_template('psych.html')
コード例 #10
0
def polisci():
	polisci = Search('ssccAffiliation=polisci')
	flash('Alphabetical by first name', 'success')
	return render_template('polisci.html')
コード例 #11
0
def cdha():
	cdha = Search('ssccAffiliation=cdha')
	flash('Alphabetical by first name', 'success')
	return render_template('cdha.html')
コード例 #12
0
def cows():
	cows = Search('ssccAffiliation=cows')
	flash('Alphabetical by first name', 'success')
	return render_template('cows.html')
コード例 #13
0
def irp():
	irp = Search('ssccAffiliation=irp')
	flash('Alphabetical by first name', 'success')
	return render_template('irp.html')
コード例 #14
0
def econ():
	econ = Search('ssccAffiliation=econ')
	flash('Alphabetical by first name', 'success')
	return render_template('econ.html')
コード例 #15
0
def sscc():
	sscc = Search('ssccAffiliation=staff')
	flash('Alphabetical by first name', 'success')
	return render_template('sscc.html')
コード例 #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')