hints: allow hints to be stringified

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
debian
Adam D. Barratt 13 years ago
parent 2401e90bce
commit ef2fc7750f

@ -37,6 +37,7 @@ class HintCollection:
class Hint: class Hint:
def __init__(self, hint, user): def __init__(self, hint, user):
self._hint = hint
self._user = user self._user = user
self._active = True self._active = True
self._days = None self._days = None
@ -58,6 +59,9 @@ class Hint:
def set_active(self, active): def set_active(self, active):
self._active = active self._active = active
def __str__(self):
return self._hint
@property @property
def type(self): def type(self):
return self._type return self._type

Loading…
Cancel
Save