[entropy.const/entropy.qa/equo/sulfur] make ErrorReportInterface post_url arg. mandatory
In the aim of removing all the sabayon-centric settings from the "entropy" library, error report via http post url has been moved outside it.
This commit is contained in:
+3
-1
@@ -863,7 +863,9 @@ def main():
|
||||
error = UGCErrorReportInterface( )
|
||||
except (IncorrectParameter, OnlineMirrorError,):
|
||||
from entropy.qa import ErrorReportInterface
|
||||
error = ErrorReportInterface()
|
||||
post_url = "http://svn.sabayonlinux.org/entropy/standard" + \
|
||||
"/sabayonlinux.org/handlers/http_error_report.php"
|
||||
error = ErrorReportInterface(post_url)
|
||||
|
||||
error.prepare(errorText, name, email, '\n'.join([unicode(x) for x in exception_data]), description)
|
||||
result = error.submit()
|
||||
|
||||
@@ -649,9 +649,6 @@ def const_default_settings(rootdir):
|
||||
'handlers': {
|
||||
# md5sum handler,
|
||||
'md5sum': "md5sum.php?arch="+etpSys['arch']+"&package=",
|
||||
# XXX: hardcoded?
|
||||
'errorsend': "http://svn.sabayonlinux.org/entropy/standard"
|
||||
"/sabayonlinux.org/handlers/http_error_report.php",
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
@@ -518,7 +518,7 @@ class QAInterface:
|
||||
class ErrorReportInterface:
|
||||
|
||||
import entropy.tools as entropyTools
|
||||
def __init__(self, post_url = etpConst['handlers']['errorsend']):
|
||||
def __init__(self, post_url):
|
||||
from entropy.misc import MultipartPostHandler
|
||||
import urllib2
|
||||
self.url = post_url
|
||||
|
||||
@@ -6366,10 +6366,12 @@ class ExceptionDialog:
|
||||
|
||||
from entropy.client.interfaces.qa import UGCErrorReportInterface
|
||||
try:
|
||||
error = UGCErrorReportInterface( )
|
||||
error = UGCErrorReportInterface()
|
||||
except (IncorrectParameter, OnlineMirrorError,):
|
||||
post_url = "http://svn.sabayonlinux.org/entropy/standard" + \
|
||||
"/sabayonlinux.org/handlers/http_error_report.php"
|
||||
from entropy.qa import ErrorReportInterface
|
||||
error = ErrorReportInterface()
|
||||
error = ErrorReportInterface(post_url)
|
||||
|
||||
error.prepare(errmsg, name, mail, description = description)
|
||||
result = error.submit()
|
||||
|
||||
Reference in New Issue
Block a user