summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbbangert <none@none>2006-01-10 15:52:35 -0800
committerbbangert <none@none>2006-01-10 15:52:35 -0800
commitfecf3b3212127893a969f9fbc6357cd0a427735a (patch)
tree4a868df14dbc2021d140ca8f5824ccfc64b028c8
parentb722316e40bf6f5b43f8c1785116944ee8fb8042 (diff)
downloadroutes-fecf3b3212127893a969f9fbc6357cd0a427735a.tar.gz
[svn] Looks like I'm on a roll for stupid mistakes today
--HG-- branch : trunk
-rw-r--r--routes/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/util.py b/routes/util.py
index 59d5675..45eb82e 100644
--- a/routes/util.py
+++ b/routes/util.py
@@ -135,11 +135,11 @@ def redirect_to(*args, **kargs):
target = url_for(**kargs)
config.redirect(target)
-def controller_scan(directory, prefix=''):
+def controller_scan(directory):
"""
Scan a directory for python files and use them as controllers
"""
- def find_controllers(dirname):
+ def find_controllers(dirname, prefix=''):
controllers = []
for fname in os.listdir(dirname):
filename = dirname + '/' + fname