def edit_menu(): return flask.render_template('edit/list.html', conferences = db.conferences(), simple_tables = [ 'Conferences', 'Countries', 'Locations', 'MeetingTypes', 'Regions' ] )
def edit_conferences(): conferences = db.conferences() parents = [ (None, '') ] + [ (c.conference, '%s: %s' % (c.abbreviation, c.name)) for c in conferences ] tags = dict(db.get_tags()) return flask.render_template('edit/conferences.html', table = 'Conferences', tags = tags, conferences = conferences, parents = parents, prototype = event.Event, )
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, )