| Home | Trees | Indices | Help |
|
|---|
|
|
Atom Publising Store loader
Synopsis
--------
The process of creating an Atom Publishing store is
a repetitive task that is common to all projects.
The loader module offers the possibility to automate
this task by putting required information in a
configuration file and let the `loader`function
generates the store from the configuration settings.
Consider the following:
>>> from amplee.loader import loader
>>> service, config = loader('/my/config.cfg')
The ``service`` object returned is an instance of
``amplee.atompub.service.AtomPubService`` and is your
reference to all the related objects.
The ``config`` object is an instance of
``amplee.loader.Config`` and is the representation
of your configuration file.
|
|||
|
Config Represents an INI file as a tree of Config instances |
|||
|
|||
| object |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| tuple |
|
||
|
|||
__doc__ = """Atom Publising Store loa
|
|||
_module_callable_regex = re.compile(r'module:
|
|||
_module_symbol_regex = re.compile(r'module:
|
|||
__warningregistry__ =
|
|||
|
|||
Initializes a storage as described in the configuration object. [svn_storage] repository_uri = file:///var/repo working_copy_path = /home/my/copy username = test password = >>> from amplee.loader import loader, Config >>> conf = Config() >>> conf.from_ini('./my.conf') >>> storage = loader.init_storage(conf, 'svn_storage')
|
Initializes the Atom Publishing Protocol workspaces from the provided service.
|
Initializes the Atom Publishing Protocol collections from the provided workspace.
|
Creates the structure of an APP store following settings provided by the configuration file. It returns the created service instance as well as the configuration instance. >>> import os >>> from amplee.loader import loader >>> service, conf = loader('./my.conf', base_path=os.getcwd())
|
|
|||
__doc__
|
__warningregistry__
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Oct 20 22:19:14 2008 | http://epydoc.sourceforge.net |