Example #1
0
 def query(self, user):
     "Query Page"
     a = ptime()
     rem = request.remote_addr
     if rem == None:
         rem = "?"
     logger.info(rem + " Q:user")
     updateuser(user)
     f = gaindata(user)
     f["ptime"] = str(a.gap())
     return f
Example #2
0
 def index(self):
     """Main page."""
     a = ptime()
     return dict(ptime=a.gap())