durusmail: quixote-users: set_headers() ?
set_headers() ?
2003-12-01
2003-12-02
set_headers() ?
Josu Oyanguren
2003-12-02
These are some helper functions i have written to do something similar.
I have added this functions as methods to the response class, so you can
do something like

  def render (self, request):
    ...
    request.response.add_javascript_link('/static/js/popcal/popcalendar.js')
    request.response.add_css_link('/static/css/default.css')
    ...

The helper module is this

# begin of module
from quixote.http_response import HTTPResponse
from quixote.html import htmltext

CSS_LINK_MARKUP        = htmltext('''''')
JAVASCRIPT_LINK_MARKUP = htmltext('''''')
JAVASCRIPT_MARKUP = htmltext('''

''')
CSS_MARKUP = htmltext('''