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

Class UGCErrorReportInterface

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 = UGCErrorReportInterface('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=None)
object constructor, repository_id must be a valid repository identifier.
source code
None
submit(self)
Overloaded method from ErrorReportInterface.
source code

Inherited from qa.ErrorReportInterface: prepare

Method Details

__init__(self, repository_id=None)
(Constructor)

source code 

object constructor, repository_id must be a valid repository identifier.

@param repository_id -- valid repository identifier @type basestring

Parameters:
  • post_url - HTTP post url where to submit data
Overrides: qa.ErrorReportInterface.__init__

submit(self)

source code 

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

@return submission status -- bool

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