def test_local(self):
     self.assertTrue(utils.isLocal())
Beispiel #2
0
 def get(self, scroll=''):
     self.response.headers['Content-Type'] = 'text/html'
     template = templater.get_template('index.html')
     requester = self.request.get("ip", os.environ["REMOTE_ADDR"]) if utils.isLocal() else os.environ["REMOTE_ADDR"]
     self.response.write(template.render(data = utils.load(DATA), extra = utils.getExtra(requester, EXTRA)))