Show More
@@ -51,14 +51,14 b' URL_NAME_REQUIREMENTS = {' | |||
|
51 | 51 | } |
|
52 | 52 | |
|
53 | 53 | |
|
54 |
class JSRoutes |
|
|
54 | class JSRoutesMapper(Mapper): | |
|
55 | 55 | """ |
|
56 | 56 | Wrapper for routes.Mapper to make pyroutes compatible url definitions |
|
57 | 57 | """ |
|
58 | 58 | _named_route_regex = re.compile(r'^[a-z-_0-9A-Z]+$') |
|
59 | 59 | _argument_prog = re.compile('\{(.*?)\}|:\((.*)\)') |
|
60 | 60 | def __init__(self, *args, **kw): |
|
61 |
super(JSRoutes |
|
|
61 | super(JSRoutesMapper, self).__init__(*args, **kw) | |
|
62 | 62 | self._jsroutes = [] |
|
63 | 63 | |
|
64 | 64 | def connect(self, *args, **kw): |
@@ -73,7 +73,7 b' class JSRoutesAwareMapper(Mapper):' | |||
|
73 | 73 | raise Exception('only named routes can be added to pyroutes') |
|
74 | 74 | self._jsroutes.append(args[0]) |
|
75 | 75 | |
|
76 |
super(JSRoutes |
|
|
76 | super(JSRoutesMapper, self).connect(*args, **kw) | |
|
77 | 77 | |
|
78 | 78 | def _extract_route_information(self, route): |
|
79 | 79 | """ |
@@ -105,7 +105,7 b' class JSRoutesAwareMapper(Mapper):' | |||
|
105 | 105 | |
|
106 | 106 | def make_map(config): |
|
107 | 107 | """Create, configure and return the routes Mapper""" |
|
108 |
rmap = JSRoutes |
|
|
108 | rmap = JSRoutesMapper(directory=config['pylons.paths']['controllers'], | |
|
109 | 109 | always_scan=config['debug']) |
|
110 | 110 | rmap.minimization = False |
|
111 | 111 | rmap.explicit = False |
General Comments 0
You need to be logged in to leave comments.
Login now