projects
/
invirt/packages/python-routefs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update RouteFS for the new syntax in Routes 1.9.
[invirt/packages/python-routefs.git]
/
routefs
/
examples
/
homefs.py
diff --git
a/routefs/examples/homefs.py
b/routefs/examples/homefs.py
index
a832c39
..
16c7bda
100755
(executable)
--- a/
routefs/examples/homefs.py
+++ b/
routefs/examples/homefs.py
@@
-24,8
+24,8
@@
class HomeFS(routefs.RouteFS):
def make_map(self):
m = Mapper()
- m.connect('', controller='getList')
- m.connect(':action', controller='getUser')
+ m.connect('/', controller='getList')
+ m.connect('/{action}', controller='getUser')
return m
def getUser(self, action, **kwargs):