meetings/flask_main.py
def new():
  """
  Creates a new meeting in the database based on the ID entered.
  """
  app.logger.debug("Entering new")
  new_meeting_id = flask.request.form.get("new_meeting_id")
  app.logger.debug("new_meeting_id = " + str(new_meeting_id))
  #try:
  db_names = db.collection_names()
  if new_meeting_id in db_names:
    app.logger.debug("ID already exists")
    flask.g.exists = 2
    return flask.render_template('startup.html')
  else:
    db.create_collection(new_meeting_id)
    flask.session['new_meeting_id'] = new_meeting_id
    flask.g.exists = 1
    return flask.render_template('index.html')
  #except:
    #app.logger.debug("Error finding collection or first time through")
    #flask.g.exists = 1
  return flask.render_template('startup.html')

  Creates a new meeting in the database based on the ID entered.
  
Creates a new meeting in the database based on the ID entered.
Creates a new meeting in the database based on the ID entered .
def new():
  app.logger.debug("Entering new")
  new_meeting_id = flask.request.form.get("new_meeting_id")
  app.logger.debug("new_meeting_id = " + str(new_meeting_id))
  db_names = db.collection_names()
  if new_meeting_id in db_names:
    app.logger.debug("ID already exists")
    flask.g.exists = 2
    return flask.render_template('startup.html')
  else:
    db.create_collection(new_meeting_id)
    flask.session['new_meeting_id'] = new_meeting_id
    flask.g.exists = 1
    return flask.render_template('index.html')
  return flask.render_template('startup.html')
def new ( ) : app . logger . debug ( "Entering new" ) new_meeting_id = flask . request . form . get ( "new_meeting_id" ) app . logger . debug ( "new_meeting_id = " + str ( new_meeting_id ) ) db_names = db . collection_names ( ) if new_meeting_id in db_names : app . logger . debug ( "ID already exists" ) flask . g . exists = 2 return flask . render_template ( 'startup.html' ) else : db . create_collection ( new_meeting_id ) flask . session [ 'new_meeting_id' ] = new_meeting_id flask . g . exists = 1 return flask . render_template ( 'index.html' ) return flask . render_template ( 'startup.html' )
Creates a new meeting in the database based on the ID entered.
Creates a new meeting in the database based on the ID entered .
"""
  Creates a new meeting in the database based on the ID entered.
  """ #try: #except: #app.logger.debug("Error finding collection or first time through") #flask.g.exists = 1