Show
Ignore:
Timestamp:
09/26/09 10:45:22 (3 years ago)
Author:
todd
Message:

fixed: htmlpage doctypes now a more comprehesive data structure;
updated: we now default to the HTML5 doctype;
updated: we now send charset in our headers and embed content-type in a meta-tag on the page;
remove: obsolete Controls directory

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Trunk/TurtolCMS/BootStrap/InitializeCMS.py

    r1372 r1373  
    100100class _InitJs (Asset): 
    101101  def __init__ (self, ctx): 
     102    base = ctx.BaseLocation() 
    102103    Asset.__init__ (self, '$_InitJs', ctx, types=['TurtolCMS.Types.Widget', 'TurtolCMS.Types.JsLinkWidget']) 
    103104    self['TurtolCMS.Types.Widget'] = { 'position': 50, 'container' : 'head'} 
    104     # FIXME: need baselocation 
    105     self['TurtolCMS.Types.JsLinkWidget.target'] = [ '/tcms/js/jquery.blockUI.js' 
    106                                                   , '/tcms/js/initcms.js' 
     105    self['TurtolCMS.Types.JsLinkWidget.target'] = [ '%s/tcms/js/jquery.blockUI.js' % base 
     106                                                  , '%s/tcms/js/initcms.js' % base 
    107107                                                  ] 
    108108