Example #1
0
 def endpoint_for_action(cls, action):
     return '{}:{}'.format(cls.calc_endpoint(), case_cw2dash(action))
Example #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))
Example #3
0
File: web.py Project: sacherjj/keg
 def calc_endpoint(cls):
     return case_cw2dash(cls.__name__)
Example #4
0
File: web.py Project: sacherjj/keg
 def calc_url(cls):
     if cls.url is not None:
         return cls.url
     return '/' + case_cw2dash(cls.__name__)
Example #5
0
 def calc_endpoint(cls):
     return case_cw2dash(cls.__name__)
Example #6
0
 def calc_url(cls):
     if cls.url is not None:
         return cls.url
     return '/' + case_cw2dash(cls.__name__)