diff options
| author | 2011-11-10 23:20:30 +0100 | |
|---|---|---|
| committer | 2011-11-10 23:42:46 +0100 | |
| commit | eb6b5e45f461c4967e25c64c904f0d3b2051a854 (patch) | |
| tree | 33da1a5bdcea481242e11675ae1f24804e3be25b /github3/handlers | |
| parent | Some details (diff) | |
| download | python-github3-eb6b5e45f461c4967e25c64c904f0d3b2051a854.tar.xz python-github3-eb6b5e45f461c4967e25c64c904f0d3b2051a854.zip | |
Init test enviroment
Also rename user handler module to 'users'
Diffstat (limited to 'github3/handlers')
| -rw-r--r-- | github3/handlers/__init__.py | 2 | ||||
| -rw-r--r-- | github3/handlers/gists.py | 3 | ||||
| -rw-r--r-- | github3/handlers/users.py (renamed from github3/handlers/user.py) | 0 |
3 files changed, 5 insertions, 0 deletions
diff --git a/github3/handlers/__init__.py b/github3/handlers/__init__.py index e69de29..3ac5fdc 100644 --- a/github3/handlers/__init__.py +++ b/github3/handlers/__init__.py @@ -0,0 +1,2 @@ +import users +import gists diff --git a/github3/handlers/gists.py b/github3/handlers/gists.py index 15f215c..fa961b2 100644 --- a/github3/handlers/gists.py +++ b/github3/handlers/gists.py @@ -20,6 +20,9 @@ class Gist(Handler): return self._get_resource(gist_id, model=models.Gist) + +class AuthGist(Gist): + def create_gist(self, description, public=True, files={}): """ Create a gist """ data = {'description': description, diff --git a/github3/handlers/user.py b/github3/handlers/users.py index fb893b4..fb893b4 100644 --- a/github3/handlers/user.py +++ b/github3/handlers/users.py |
