Exemplo n.º 1
0
def conference(abbreviation):
	""" Render information about a particular conference (e.g. all events). """
	(conference, events) = db.conference_events(abbreviation = abbreviation)
	if len(events) == 0: flask.abort(404)

	return flask.render_template('conference.html',
		conference = conference,
		events = events,
		utils = utils)
Exemplo n.º 2
0
def edit_conference(abbreviation):
	""" Edit a particular conference (e.g. all events). """
	(conference, events) = db.conference_events(abbreviation = abbreviation)

	conferences = [
		(c.conference, '%s: %s' % (c.abbreviation, c.name))
			for c in db.conferences() ]

	locations = [
		(l.location_id, l.where()) for l in db.locations() ]

	meeting_types = [ (m.type_id, m.name) for m in db.meeting_types() ]

	return flask.render_template('edit/conference.html',
			all_tags = [ name for (id, name) in db.get_tags() ],
			conferences = conferences,
			conference = conference,
			events = events,
			locations = locations,
			meeting_types = meeting_types,
		)