summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-02-07 11:20:46 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-02-07 11:34:31 +0000
commit825007ba2bcee55ff0a8b9a58c67801f8fb27b83 (patch)
treec83fffb2dbd3a4954f8e8bdbaa4869f55eee5905 /web
parent4750a8e86430885447a85fd3129ee3f736b8f1ae (diff)
Remove all the gstreamer stuff
Diffstat (limited to 'web')
-rw-r--r--web/insanityweb/models.py13
-rw-r--r--web/insanityweb/templatetags/insanity_extra.py9
2 files changed, 1 insertions, 21 deletions
diff --git a/web/insanityweb/models.py b/web/insanityweb/models.py
index 8ba8ced..2ac1a2b 100644
--- a/web/insanityweb/models.py
+++ b/web/insanityweb/models.py
@@ -431,17 +431,6 @@ class Test(models.Model):
def _test_error(self, allextras=None):
""" Returns the error TestExtraInfoDict if available"""
- def stringify_gst_error(anerr):
- quarkmap = {
- "gst-core-error-quark" : "CORE_ERROR",
- "gst-library-error-quark" : "LIBRARY_ERROR",
- "gst-resource-error-quark" : "RESOURCE_ERROR",
- "gst-stream-error-quark" : "STREAM_ERROR"
- }
- quark,message = anerr[1:3]
- return "%s: %s" % (quarkmap.get(quark, "UNKNOWN_ERROR"),
- message)
-
def stringify_return_code(retcodestr):
retmap = {
-1:"SIGHUP",
@@ -479,7 +468,7 @@ class Test(models.Model):
errs = errs[0]
if errs.name.name == "errors":
- err = stringify_gst_error(errs.value[0])
+ err = "[Don't know what to do for 'errors']"
else: # it can only be subprocess-return-code
err = stringify_return_code(errs.intvalue)
diff --git a/web/insanityweb/templatetags/insanity_extra.py b/web/insanityweb/templatetags/insanity_extra.py
index 1a297d5..8615945 100644
--- a/web/insanityweb/templatetags/insanity_extra.py
+++ b/web/insanityweb/templatetags/insanity_extra.py
@@ -125,15 +125,6 @@ class TestExtraInfoValueNode(template.Node):
return switch_dict(d)
- def newsegment_tuple(tup):
- update,rate,format,start,stop,pos = tup
- return "<br>".join(["Update : %d" % update,
- "Rate : %f" % rate,
- "GstFormat : %d" % format,
- "start : %s" % time_to_string(start),
- "stop : %s" % time_to_string(stop),
- "pos : %s" % time_to_string(pos)])
-
# render based on the type
extrainfo = context[self._extrainfo_name]
# insert custom extrainfo value handling here