[mod_python] servlet HTMLPage write_js

Manera, Villiam vmanera at manord.com
Tue Aug 3 20:06:58 EDT 2004


I had subclassed write_js in HTMLPage in order to have link as css_links 
 
 def write_js(self):
  '''
  Writes javascript to the client in the HEAD.
  @see: L{js_links}
  @see: L{js}
  '''
  for link in  self.js_links:
   self.writeln('<SCRIPT LANGUAGE="JavaScript" SRC="%s"></SCRIPT>' %link) 
  if self.js:
   self.__write_head_tag('script', 'text/javascript', self.js)

 
 
 
It would be better to add it in HTMLPage
 
Villiam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://modpython.org/pipermail/mod_python/attachments/20040803/33d2c974/attachment.html


More information about the Mod_python mailing list