http://geekaa3.appspot.com/底部的 “Day Day Up” 和 “Plan”
我是照着原来的 mission 页面改的。
我把
page.py 里面 mission那段,改成:
class PlanHandler(webapp.RequestHandler):
def get(self):
template_values = {}
template_values['site_name'] = SITE_NAME
template_values['site_tagline'] = SITE_TAGLINE
template_values['site_description'] = SITE_DESCRIPTION
template_values['site_footnote'] = SITE_FOOTNOTE
template_values['rnd'] = random.randrange(1, 100)
note = GetKindByNum('Note', 5)
if note is False:
note = GetKindByNum('Note', 6)
template_values['note'] = note
member = CheckAuth(self)
if member:
template_values['member'] = member
template_values['page_title'] = u' › Plan'
path = os.path.join(os.path.dirname(__file__), 'tpl', 'desktop', 'plan.html')
output = template.render(path, template_values)
self.response.out.write(output)
class UpdatesHandler(webapp.RequestHandler):
def get(self):
template_values = {}
template_values['site_name'] = SITE_NAME
template_values['site_tagline'] = SITE_TAGLINE
template_values['site_description'] = SITE_DESCRIPTION
template_values['site_footnote'] = SITE_FOOTNOTE
template_values['rnd'] = random.randrange(1, 100)
note = GetKindByNum('Note', 7)
if note is False:
note = GetKindByNum('Note', 8)
template_values['note'] = note
member = CheckAuth(self)
if member:
template_values['member'] = member
template_values['page_title'] = u' › Updates'
path = os.path.join(os.path.dirname(__file__), 'tpl', 'desktop', 'updates.html')
output = template.render(path, template_values)
self.response.out.write(output)
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/1819
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.