示例#1
0
def create_journal():
    uid = request.args.get('uid', "1")
    app.logger.debug("Accessing createjournal.html %s", uid)
    places = getMyPlaces(uid)
    resp = flask.make_response(
        flask.render_template('createjournal.html', places=places))
    return resp
示例#2
0
def create_journal():
   uid = request.args.get('uid', "1")
   app.logger.debug("Accessing createjournal.html %s", uid)
   places = getMyPlaces(uid)
   resp = flask.make_response(flask.render_template(
            'createjournal.html',
            places=places))
   return resp
示例#3
0
def get_my_place_map():
    uid = request.args.get('uid', "1")
    app.logger.debug("Accessing placemap.html %s", uid)

    places = getMyPlaces(uid)

    resp = flask.make_response(
        flask.render_template('map.html', places=places, option="mytrace"))
    return resp
def get_my_trace():
   uid = request.args.get('uid', "")
   places = getMyPlaces(uid)
   journals = getMyJournals(uid)

   resp = flask.make_response(flask.render_template(
            'mytrace.html',
            places=places,
            journals=journals))
   return resp
示例#5
0
def get_my_place_map():
   uid = request.args.get('uid', "1")
   app.logger.debug("Accessing placemap.html %s", uid)
   
   places = getMyPlaces(uid)

   resp = flask.make_response(flask.render_template(
            'map.html',
            places=places,
            option="mytrace"))
   return resp
示例#6
0
def get_my_trace():
   uid = request.args.get('uid', "1")
   app.logger.debug("Accessing mytrace.html %s", uid)
   
   places = getMyPlaces(uid)
   journals = getMyJournals(uid)

   resp = flask.make_response(flask.render_template(
            'trace.html',
            places=places,
            journals=journals,
            option="mytrace"))
   return resp
示例#7
0
def get_my_trace():
    uid = request.args.get('uid', "1")
    app.logger.debug("Accessing mytrace.html %s", uid)

    places = getMyPlaces(uid)
    journals = getMyJournals(uid)

    resp = flask.make_response(
        flask.render_template('trace.html',
                              places=places,
                              journals=journals,
                              option="mytrace"))
    return resp
示例#8
0
 def setUp(self):
    self.user1_places = getMyPlaces("1")
    self.user2_places = getMyPlaces("2")
    self.user3_places = getMyPlaces("3")