1.1.1.3. gnr.app.gnrdeploy – tools for the creation of a DBMS

1.1.1.3.1. InstanceMaker

1.1.1.3.2. ModWsgiMaker

there is no public method.

1.1.1.3.3. PackageMaker

1.1.1.3.5. ProjectMaker

1.1.1.3.6. ResourceMaker

1.1.1.3.7. gnr.app.gnrdeploy - The complete reference list

class gnr.app.gnrdeploy.InstanceMaker(instance_name, base_path=None, packages=None, authentication=True, authentication_pkg=None, db_dbname=None, db_implementation=None, db_host=None, db_port=None, db_user=None, db_password=None, use_dbstores=False, config=None)

Handle the autocreation of the instances folder.

To autocreate the instances folder, please type in your console:

gnrmkinstance instancesname

where instancesname is the name of your instances folder.

do()

TODO

class gnr.app.gnrdeploy.ModWsgiMaker

TODO

class gnr.app.gnrdeploy.PackageMaker(package_name, base_path=None, sqlschema=None, name_short=None, name_long=None, name_full=None, login_url=None, comment=None)

Handle the autocreation of the packages folder.

To autocreate the packages folder, please type in your console:

gnrmkpackage packagesname

where packagesname is the name of your packages folder.

do()

Creates the files of the packages folder

class gnr.app.gnrdeploy.PathResolver(gnr_config=None)

TODO

entity_name_to_path(entity_name, entity_type, look_in_projects=True)

TODO

Parameters:
  • entity_name – TODO
  • entity_type – TODO
  • look_in_projects – TODO
instance_name_to_path(instance_name)

TODO

Parameters:instance_name – TODO
js_path(lib_type='gnr', version='11')

TODO Return the configuration static js path, with lib_type and version specified

Parameters:
  • lib_type – Genro Javascript library == gnr
  • version – the Genro Javascript library version related to the Dojo one. The number of Dojo version is written without any dot. E.g: ‘11’ is in place of ‘1.1’
load_gnr_config()

Load the gnr configuration. Return a Bag with the gnr configuration path

package_name_to_path(package_name)

TODO

Parameters:package_name – TODO
project_name_to_path(project_name)

TODO

Parameters:project_name – TODO
project_repository_name_to_path(project_repository_name, strict=True)

TODO

Parameters:
  • project_repository_name – TODO
  • strict – TODO
resource_name_to_path(resource_name)

TODO

Parameters:resource_name – TODO
set_environment(config)

TODO

Parameters:config – a Bag with the gnr configuration path
site_name_to_path(site_name)

TODO

Parameters:site_name – TODO
class gnr.app.gnrdeploy.ProjectMaker(project_name, base_path=None)

Handle the autocreation of a package.

To autocreate a package, please type in your console:

gnrmkpackage packagename

where packagename is the name of your package folder.

do()

Create the project path with its subfolders paths: the path of the packages folder, the path of the sites folder, the path of the instances folder and the path of the resources folder.

class gnr.app.gnrdeploy.ResourceMaker(resource_name, base_path=None)

Handle the creation of the resources folder

do()

TODO

class gnr.app.gnrdeploy.SiteMaker(site_name, base_path=None, resources=None, instance=None, dojo_version='11', wsgi_port=None, wsgi_reload=None, wsgi_mainpackage=None, wsgi_debug=None, config=None)

Handle the autocreation of the sites folder.

To autocreate the sites folder, please type in your console:

gnrmksite sitesname

where ‘sitesname’ is the name of your sites folder.

do()

TODO