aboutsummaryrefslogtreecommitdiffstats
path: root/github3/models/user.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-02-03 02:59:53 +0100
committerDavid Medina <davidmedina9@gmail.com>2012-02-03 02:59:53 +0100
commitae1c3c06c47866c8f392d05c63f597d71cebd691 (patch)
tree6543c55e2210bd91f59124785200d1fbfb6be872 /github3/models/user.py
parentUpdate setup.py (diff)
downloadpython-github3-ae1c3c06c47866c8f392d05c63f597d71cebd691.tar.xz
python-github3-ae1c3c06c47866c8f392d05c63f597d71cebd691.zip
Reset project
Diffstat (limited to 'github3/models/user.py')
-rw-r--r--github3/models/user.py69
1 files changed, 0 insertions, 69 deletions
diff --git a/github3/models/user.py b/github3/models/user.py
deleted file mode 100644
index aed6f09..0000000
--- a/github3/models/user.py
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/usr/bin/env python
-# -*- encoding: utf-8 -*-
-
-from .base import BaseResource
-
-
-class Plan(BaseResource):
- """Github Plan object model."""
-
- @classmethod
- def idl(self):
- return {
- 'strs': ['name'],
- 'ints': ['space', 'collaborators', 'private_repos'],
- }
-
- def __repr__(self):
- return '<Plan %s>' % self.name
-
-
-class Key(BaseResource):
- """Github Key object model."""
-
- @classmethod
- def idl(self):
- return {
- 'strs': ['url', 'title', 'key'],
- 'ints': ['id'],
- }
-
- def __repr__(self):
- return '<Key %s>' % self.title
-
-
-class User(BaseResource):
- """Github User object model."""
-
- @classmethod
- def idl(self):
- return {
- 'strs': [
- 'login', 'avatar_url', 'gravatar_id', 'url', 'name',
- 'company', 'blog', 'location', 'email', 'bio', 'html_url',
- 'type'],
- 'ints': [
- 'id', 'public_repos', 'public_gists', 'followers', 'following',
- 'total_private_repos', 'owned_private_repos', 'private_gists',
- 'disk_usage', 'collaborators'],
- 'maps': {'plan': Plan},
- 'dates': ['created_at', ],
- 'bools': ['hireable', ],
- }
-
- def __repr__(self):
- return '<User %s>' % getattr(self, 'login', 'without user')
-
- #def handler(self):
- # return self._gh.users
-
-
-class AuthUser(User):
- """Github Authenticated User object model."""
-
- def __repr__(self):
- return '<AuthUser %s>' % self.login
-
- #def handler(self):
- # return self._gh.users
-