This commit is contained in:
Armin Ronacher 2010-07-23 13:03:29 +01:00
parent 8547fdeece
commit 63001a7279
9 changed files with 85 additions and 15 deletions

View file

@ -15,6 +15,11 @@ class Extension(object):
self.docs = docs
self.website = website
def to_json(self):
rv = vars(self).copy()
rv['description'] = unicode(rv['description'])
return rv
@property
def pypi(self):
return 'http://pypi.python.org/pypi/%s' % url_quote(self.name)