예제 #1
0
 def endpoint_for_action(cls, action):
     return '{}:{}'.format(cls.calc_endpoint(), case_cw2dash(action))
예제 #2
0
 def endpoint_for_action(cls, action):
     """Compute the flask endpoint for the given CRUD action."""
     return '{}:{}'.format(cls.calc_endpoint(), case_cw2dash(action))
예제 #3
0
파일: web.py 프로젝트: sacherjj/keg
 def calc_endpoint(cls):
     return case_cw2dash(cls.__name__)
예제 #4
0
파일: web.py 프로젝트: sacherjj/keg
 def calc_url(cls):
     if cls.url is not None:
         return cls.url
     return '/' + case_cw2dash(cls.__name__)
예제 #5
0
파일: web.py 프로젝트: guruofgentoo/keg
 def calc_endpoint(cls):
     return case_cw2dash(cls.__name__)
예제 #6
0
파일: web.py 프로젝트: guruofgentoo/keg
 def calc_url(cls):
     if cls.url is not None:
         return cls.url
     return '/' + case_cw2dash(cls.__name__)