class HomeFS(routefs.RouteFS):
controllers = ['getList', 'getUser']
def __init__(self, *args, **kwargs):
super(HomeFS, self).__init__(*args, **kwargs)
self.cache = {}
class HomeFS(routefs.RouteFS):
controllers = ['getList', 'getUser']
def __init__(self, *args, **kwargs):
super(HomeFS, self).__init__(*args, **kwargs)
self.cache = {}
- m.connect('', controller='getList')
- m.connect(':action', controller='getUser')
+ m.connect('/', controller='getList')
+ m.connect('/{action}', controller='getUser')
def getUser(self, action, **kwargs):
try:
if action not in self.cache:
def getUser(self, action, **kwargs):
try:
if action not in self.cache: