Commits

Guido Draheim committed 22d4bb1

str for results

  • Participants
  • Parent commits 469a5eb

Comments (0)

Files changed (1)

src/dvbcronrecording/computer.py

     from channels import DvbCronRecordingChannelsPlugin
 except:
     DvbCronRecordingChannelsPlugin = None
-    
+
 from translate import Translate
 
 DEBUG = False
         item.adapter = self.adapter
         return item
     def __unicode__(self):
-        return u"(%s) '%s'" % (unicode(self.months), unicode(self.title))
+        x = u"{ "
+        x += u" [%s-%s]" % (MMMtoHHMM(self.newtimeMMM), MMMtoHHMM(self.endtimeMMM))
+        x += u"%s@%s" % (self.weekday, self.adapter)
+        x += u" %s(%s)" % (self.onlyday, unicode(self.months))
+        x += u" '%s'" % (unicode(self.title))
+        x += u" }"
+        return x
     def __str__(self):
         return unicode(self).encode("UTF-8")
     
         self.extratimeM = None
         self.adapter = None
     def __unicode__(self):
-        return u"["+unicode(",".join([unicode(item) for item in self.items]))+"]"
+        return u"[%s]" % (u",".join([unicode(item) for item in self.items]))
     def __str__(self):
         return unicode(self)
 
         self._groups = groups
     def __unicode__(self):
         groups = [unicode(item) for item in self._groups]
-        return u"{%s}" % groups
+        return u"{%s}" % (u",".join(groups))
     def __str__(self):
         return unicode(self)