[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:
Fabio Erculiani
2009-06-22 04:09:55 +02:00
parent a220d1882a
commit bbdde60809
4 changed files with 8 additions and 7 deletions
+3 -1
View File
@@ -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()
-3
View File
@@ -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",
},
}
+1 -1
View File
@@ -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
+4 -2
View File
@@ -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()