Example #1
0
File: media.py Project: algha/tarim
 def rules():
     return [
         Rule('list', type=['native']),
         Rule('upload', '/upload', 'POST', method='Upload'),
         Rule('ajax', '/ajax_media', method='ajaxMedia')
     ]
Example #2
0
File: type.py Project: algha/tarim
 def rules():
     return [Rule('list', type=['native'])]
Example #3
0
File: type.py Project: algha/tarim
 def rules():
     return [
         Rule('create', '/create', 'POST'),
         Rule('edit', '/<id>/edit', 'POST')
     ]
Example #4
0
File: tags.py Project: algha/tarim
 def rules():
     return [Rule('edit', '/<id>/edit', 'POST')]
Example #5
0
 def rules():
     return [
         Rule('list', '', type = ['native']),
         Rule('list_delete', '/<id>/delete', 'DELETE', method = 'delete')
     ]
Example #6
0
File: tags.py Project: algha/tarim
 def rules():
     return [
         Rule('list', '', type=['native']),
         Rule('search', '/search', method='Search')
     ]
Example #7
0
 def rules():
     return [
         Rule('create', '/create/<permission_id>/permission', 'POST'),
         Rule('edit', '/<int:id>/edit/<permission_id>/permission', 'POST')
     ]
Example #8
0
 def rules():
     return [
         Rule('main', '/main'),
         Rule('logout', '/logout', method='Logout')
     ]
Example #9
0
 def rules():
     return [
         Rule('list', '/<id>/type', 'POST'),
         Rule('sort', '/sort', 'POST', method='Sort')
     ]
Example #10
0
 def rules():
     return [Rule('list')]