remove print statement in logo.py
[mygpo.git] / mygpo / pubsub / models.py
blob045e8246c4ddeedfd9a4dc9387982b2485bd5b52
1 from couchdbkit.ext.django.schema import *
3 # make sure this code is executed at startup
4 from mygpo.pubsub.signals import *
7 class SubscriptionError(Exception):
8 pass
10 class Subscription(Document):
11 url = StringProperty(required=True)
12 verify_token = StringProperty(required=True)
13 mode = StringProperty(required=True)
14 verified = BooleanProperty(default=False)
17 def __unicode__(self):
18 if self.verified:
19 verified = u'verified'
20 else:
21 verified = u'unverified'
22 return u'<Subscription for %s: %s>' % (self.url, verified)
24 def __str__(self):
25 return str(unicode(self))