summaryrefslogtreecommitdiff
path: root/pecan/decorators.py
diff options
context:
space:
mode:
authorMark McClain <mark.mcclain@shootq.com>2011-01-20 10:06:53 -0500
committerMark McClain <mark.mcclain@shootq.com>2011-01-20 10:06:53 -0500
commitdd35ca8d026ff34ecb5a7766ff5034582440a0b7 (patch)
treea80d7b462f91538df0d812ace0cc897f3b45c51f /pecan/decorators.py
parentf500bd0d78a047e71bd08fdf28e9167d9cb75322 (diff)
downloadpecan-dd35ca8d026ff34ecb5a7766ff5034582440a0b7.tar.gz
create util module with functions shared across files
Diffstat (limited to 'pecan/decorators.py')
-rw-r--r--pecan/decorators.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/pecan/decorators.py b/pecan/decorators.py
index 3a9164a..258423a 100644
--- a/pecan/decorators.py
+++ b/pecan/decorators.py
@@ -1,9 +1,5 @@
from inspect import getargspec
-
-def _cfg(f):
- if not hasattr(f, '_pecan'): f._pecan = {}
- return f._pecan
-
+from util import _cfg
def when_for(controller):
def when(method=None, **kw):
@@ -15,7 +11,6 @@ def when_for(controller):
return decorate
return when
-
def expose(template = None,
content_type = 'text/html',
schema = None,