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() _______________________________________________ Kukit-checkins mailing list [email protected] http://codespeak.net/mailman/listinfo/kukit-checkins
