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 = {}
def make_map(self):
m = Mapper()
m.connect('', controller='getList')
m.connect(':action', controller='getUser')
return m
def make_map(self):
m = Mapper()
m.connect('', controller='getList')
m.connect(':action', controller='getUser')
return m
def getUser(self, action, **kwargs):
try:
if action not in self.cache:
def getUser(self, action, **kwargs):
try:
if action not in self.cache: