| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
This internal method acts as a controller method and
does the conversion for the 'directory' parameter.
|
| |
|
| |
|
|
|
|
|
| |
Use _refresh() and _consistent() internally, now we
cache the consistent state making things a bit less loopy
|
|
|
|
|
|
|
| |
This is expected to return True if the ref is set and the source
can be fetched and staged, otherwise False. If a source is
inconsistent, it means that it needs to be sucessfully refreshed
(from any track that might be supported in the source).
|
|
|
|
| |
Now refresh returns True if the refresh resulted in any change.
|
| |
|
|
|
|
| |
Same should be done for Elements.
|
|
|
|
|
|
| |
The get_mirror_directory() method is just convenience for the
Source implementation to get it's own private mirroring base directory,
which is a subdirectory of the user specified sources directory.
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of declaring per operation exceptions, like PreflightError
and FetchError etc, just declare exceptions per domain. Replaced
the former errors with SourceError for Source implementations
and ElementError for element implementations.
The core will be able to report errors differently depending on
what they asked given plugins to do, and handle a reduced set
of exceptions.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Better to have a separate file for each class clearly addressing
it's purpose with it's filename.
Source base data model -> source.py
SourceFactory -> _sourcefactory.py
Element base data model -> element.py
ElementFactory -> _elementfactory.py
Also moved the _plugin.py to _plugincontext.py, since the object
is infact _PluginContext, lets follow this rule all around for
code clarity.
|
| |
|
|
These currently have no API defined yet, but provide factory
objects for managing plugins of their respective Source and
Element implementations and instantiating Sources and Elements
on demand.
|