1.1.7.10.2. gnr.web.gnrwsgisite_proxy.gnrresourceloader

Last page update: November 23, 2011

Classes:

Complete reference:

1.1.7.10.2.2. gnrresourceloader - The complete reference list

class gnr.web.gnrwsgisite_proxy.gnrresourceloader.ResourceLoader(site=None)

Base class to load resources

build_automap()

Build the automap.xml file

find_webtools()

TODO

getResourceList(resourceDirs, path, ext=None, pkg=None)

Find a resource in the current _resources folder or in parent folders one

Parameters:
  • resourceDirs – TODO
  • path – TODO
  • ext – TODO
get_page_class(path=None, pkg=None, plugin=None)

TODO

Parameters:
  • path – TODO
  • pkg – the package object
get_page_node(path_list, default=False)

Get the deepest BagNode in the sitemap Bag associated with the given url

Parameters:
  • path_list – TODO
  • default – TODO
loadResource(*path, **kwargs)

TODO

loadTableScript(page, table=None, respath=None, class_name=None)

TODO

Parameters:
  • page – TODO
  • table – the database table name on which the query will be executed, in the form packageName.tableName (packageName is the name of the package to which the table belongs to)
  • respath – TODO
  • class_name – TODO
mixinPageComponent(page, *path, **kwargs)

This method is used to mixin a component to a webpage at any time

Parameters:
mixinResource(kls, resourceDirs, *path)

TODO

Parameters:
  • kls – TODO
  • resourceDirs – TODO
  • *path – TODO
package_resourceDirs(pkg, omitSiteResources=False)

TODO

Parameters:
  • pkg – the package object
  • omitSiteResources – boolean. TODO
page_class_base_mixin(page_class, pkg=None)

Look for custom classes in the package

Parameters:
  • page_class – TODO
  • pkg – the package object
page_class_custom_mixin(page_class, path, pkg=None)

Look in the instance custom folder for a file named as the current webpage

Parameters:
  • page_class – TODO
  • path – TODO
  • pkg – the package object
page_class_plugin_mixin(page_class, plugin_webpage_classes)

Mixin the current class with the plugin_webpage_classes attribute

Parameters:
  • page_class – TODO
  • plugin_webpage_classes – TODO
page_class_resourceDirs(page_class, path, pkg=None)

Build page resources directories

Parameters:
  • page_class – TODO
  • path – TODO
  • pkg – the package object
page_pyrequires_mixin(page_class, py_requires)

Allow to mixin the webpage python requirements

Parameters:
  • page_class – TODO
  • py_requires – TODO
plugin_webpage_classes(path, pkg=None)

Look in the plugins folders for a file named as the current webpage and get all classes

Parameters:
  • path – TODO
  • pkg – the package object
py_requires_iterator(source_class, target_class)

TODO

Parameters:
  • source_class – TODO
  • target_class – TODO
resource_name_to_path(res_id, safe=True)

TODO

Parameters:
  • res_id – TODO
  • safe – TODO
resourcesAtPath(pkg, path, ext)

TODO

Parameters:
  • pkg – the package object
  • path – TODO
  • ext – TODO
site_resources()

TODO

sitemap

Return the sitemap Bag (if there is no sitemap, creates it)