[KSS-checkins] r46039 - kukit/kss.pylons/trunk/kss/pylons
jvloothuis at codespeak.net
jvloothuis at codespeak.net
Mon Aug 27 17:25:34 CEST 2007
Author: jvloothuis
Date: Mon Aug 27 17:25:34 2007
New Revision: 46039
Modified:
kukit/kss.pylons/trunk/kss/pylons/rendering.py
Log:
Remove testing code for the old rendering code
Modified: kukit/kss.pylons/trunk/kss/pylons/rendering.py
==============================================================================
--- kukit/kss.pylons/trunk/kss/pylons/rendering.py (original)
+++ kukit/kss.pylons/trunk/kss/pylons/rendering.py Mon Aug 27 17:25:34 2007
@@ -1,7 +1,5 @@
-from paste.wsgiwrappers import WSGIResponse
-
-def render_kss_response(commands):
- response = WSGIResponse()
- response.write(commands.render())
- response.headers['Content-Type'] = 'text/xml'
- return response
+def ksscommands(func):
+ def new_func(*args, **kwargs):
+ response.headers['Content-Type'] = 'text/xml'
+ commands = func(*args, **kwargs)
+ return commands.render()
More information about the Kukit-checkins
mailing list