20:5d830ac627fc
Anton Shestakov <av6@dwimlabs.net>, Wed, 15 Jun 2016 21:35:22 +0800
incoming: use absolute imports

next change 24:16c6f6907c16
previous change 16:784e5bd0fcba

candolint/uimodules.py

Permissions: -rw-r--r--

Other formats: Feeds:
from tornado.web import UIModule
class Time(UIModule):
def render(self, value):
datetime = value.isoformat() + 'Z'
text = value.strftime('%Y-%m-%d %H:%M:%S') + ' UTC'
return self.render_string('ui/time.html', datetime=datetime, title=text, text=text)