mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-18 05:51:32 +00:00
hints: allow hints to be stringified
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
parent
a1838a5037
commit
483f2c502c
4
hints.py
4
hints.py
@ -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…
x
Reference in New Issue
Block a user