From 22d2631d238d67694631dfd5c08cdbca93afa8c6 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Sun, 19 Apr 2009 15:24:03 +0200 Subject: [PATCH] Change to new datatype style. --- github2/repositories.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/github2/repositories.py b/github2/repositories.py index eebeb70..ef8e88e 100644 --- a/github2/repositories.py +++ b/github2/repositories.py @@ -1,9 +1,16 @@ -from github2.core import BaseData, GithubCommand +from github2.core import BaseData, GithubCommand, Attribute class Repository(BaseData): - attributes = ("description", "forks", "name", "watchers", "private", - "url", "fork", "owner", "homepage") + name = Attribute("Name of repository.") + description = Attribute("Repository description.") + forks = Attribute("Number of forks of this repository.") + watchers = Attribute("Number of people watching this repository.") + private = Attribute("If True, the repository is private.") + url = Attribute("Canonical URL to this repository") + fork = Attribute("If True, this is a fork of another repository.") + owner = Attribute("Username of the user owning this repository.") + homepage = Attribute("Homepage for this project.") class Repositories(GithubCommand):