def s3_include_debug_js():
 request = current.request
 folder = request.folder
 appname = request.application
 theme = current.deployment_settings.get_theme()
 scripts_dir = os.path.join(folder, 'static', 'scripts')
 sys.path.append(os.path.join(scripts_dir, 'tools'))
 import mergejsmf
 configDictCore = {'.': scripts_dir, 'ui': scripts_dir, 'web2py': scripts_dir, 'S3': scripts_dir}
 configFilename = ('%s/tools/sahana.js.cfg' % scripts_dir)
 (fs, files) = mergejsmf.getFiles(configDictCore, configFilename)
 include = ''
 for file in files:
  include = ('%s\n<script src="/%s/static/scripts/%s" type="text/javascript"></script>' % (include, appname, file))
 return XML(include)

def s3_include_debug_js ( ) : request = current . request folder = request . folder appname = request . application theme = current . deployment_settings . get_theme ( ) scripts_dir = os . path . join ( folder , 'static' , 'scripts' ) sys . path . append ( os . path . join ( scripts_dir , 'tools' ) ) import mergejsmf configDictCore = { '.' : scripts_dir , 'ui' : scripts_dir , 'web2py' : scripts_dir , 'S3' : scripts_dir } configFilename = ( '%s/tools/sahana.js.cfg' % scripts_dir ) ( fs , files ) = mergejsmf . getFiles ( configDictCore , configFilename ) include = '' for file in files : include = ( '%s\n<script src="/%s/static/scripts/%s" type="text/javascript"></script>' % ( include , appname , file ) ) return XML ( include )
generates html to include the js scripts listed in /static/scripts/tools/sahana .