作業めも

定義ファイルを開くのが面倒なので作業めも

テンプレート

  • Actionのテンプレート
# -*- coding: utf-8 -*-
from Jdi_Action import Jdi_Action
class Jdi_Main_Action_Main(Jdi_Action):
    def auth(self):
        pass
    def filter(self):
        pass
    def process(self):
        pass
  • Viewのテンプレート
# -*- coding: utf-8 -*-
from Jdi_View import Jdi_View
class Jdi_Main_View_Main(Jdi_View):
    def pre_render(self):
        pass
    def render(self):
        html = u""" 
コンテンツ
"""
    return html
  • Modelのテンプレート
# -*- coding: utf-8 -*-
from Jdi_Model import Jdi_Model
class Jdi_Main_Model_Main(Jdi_Model):
    def hoge(self):
        pass


もうちょっとすっきりした定義ができれば良いんだけどなー

処理一覧

  • Actionで実行される処理
    • action.auth()
    • action.filter()
    • action.process()
  • View実行される処理
    • view.pre_render()
    • view.render()