Package enomalism2 :: Package modules :: Package vmfeed :: Module model
[hide private]

Module model

Abstractions related to Enomalism repositories.


Requires:

Status: Stable

Classes [hide private]
  vmfeed_tools
Simple utility class used to define utility class methods for repository functionality.
  repo_entry
An Enomalism abstraction representing an entry in a repository.
  repo_feed
An Enomalism abstraction representing a repository feed.
  repo_entry_not_found
This exception is raised when Enomalism cannot find a particular repo entry.
  repo_feed_not_found
This exception is raised when Enomalism cannot find a particular repo feed.
Functions [hide private]
None
_installer()
Utility installer functionality to create the required repository tables.
None
_feed_reload(feed, tx)
Utility function to reload the specified feed using the specified transaction.
Function
hook_install(fn, self)
Hook that is invoked when the Enomalism installer is run.
Variables [hide private]
String uuid = '57a5f529-46ab-4f7f-8e92-30efe56c2cb7'
The uuid of the module.
turbogears.database.PackageHub hub = PackageHub('enomalism2')
The Enomalism database connection hub.
turbogears.database.PackageHub __connection__ = PackageHub('enomalism2')
The actual database connection.
String EGG_MIME = "application/python-egg"
The Python egg mime type.
String XVM2_MIME = "application/enomalism2-xvm2"
The XVM2 mime type.
Dictionary MIME_MAGIC = {"xvm2": XVM2_MIME, "egg": EGG_MIME}
A dictionary containing valid repository mime types.
Function Details [hide private]

_installer()

 

Utility installer functionality to create the required repository tables.

Returns: None
None
Raises:
  • None - No exceptions are raised by this method.

_feed_reload(feed, tx)

 

Utility function to reload the specified feed using the specified transaction.

Example usage:

>>> from vmfeed.model import _feed_reload
>>> _feed_reload('123')
Parameters:
  • feed (String) - The repository feed id.
  • tx (String) - The transaction id.
Returns: None
None

hook_install(fn, self)

 

Hook that is invoked when the Enomalism installer is run.

Parameters:
Returns: Function
Decorators:
  • @model.hook(installer.installer, installer.installer.install)
Raises:
  • None - No exceptions are raised by this method.