us.py 335 B

123456789101112131415161718
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. demeter web page
  5. name:main.py
  6. author:rabin
  7. """
  8. from __load__ import *
  9. class index_path(Load):
  10. @Web.setting
  11. def get(self):
  12. id = 1
  13. if not id:
  14. self.out('error')
  15. return
  16. self.data['info'] = self.service('common').one('web_article', id=id)
  17. self.view("view.html")