Package entropy :: Package client :: Package interfaces :: Module qa :: Class UGCErrorReport

Class UGCErrorReport

source code


Entropy Errors Reporting Interface that works over User Generated
Content (UGC) infrastructure. This version is bound to a specific
repository which MUST provide UGC services, otherwise, the error
submission will fail.

This class will allow Entropy repository maintainers to know about
critical errors happened during normal operation.
Here is an example on how to use this:

    error_interface = UGCErrorReport('sabayonlinux.org')
    error_interface.prepare()
    reported = error_interface.submit()
    if reported:
        print("error reported succesfully")
    else:
        print("cannot report error")

Instance Methods
 
__init__(self, repository_id)
object constructor, repository_id must be a valid repository identifier.
source code
None
submit(self)
Overridden method from ErrorReport.
source code

Inherited from qa.ErrorReport: prepare

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, repository_id)
(Constructor)

source code 

object constructor, repository_id must be a valid repository identifier.

Parameters:
  • repository_id (string) - valid repository identifier
Overrides: object.__init__

submit(self)

source code 

Overridden method from ErrorReport. Does the actual error submission. You must call it after prepare().

@return submission status -- bool

Returns: None
None
Raises:
Overrides: qa.ErrorReport.submit