aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/resources/repos.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-02-21 01:24:06 +0100
committerDavid Medina <davidmedina9@gmail.com>2012-02-21 01:24:06 +0100
commitce95f908d9153e7370185c4660b49f718d253f58 (patch)
treed79bb9a645332883d5d45cd1ee14fb31ed2655de /pygithub3/resources/repos.py
parentAdd mimetype support to repos.commits service (diff)
downloadpython-github3-ce95f908d9153e7370185c4660b49f718d253f58.tar.xz
python-github3-ce95f908d9153e7370185c4660b49f718d253f58.zip
Repos.downloads service done
Diffstat (limited to 'pygithub3/resources/repos.py')
-rw-r--r--pygithub3/resources/repos.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/pygithub3/resources/repos.py b/pygithub3/resources/repos.py
index de55b72..865f039 100644
--- a/pygithub3/resources/repos.py
+++ b/pygithub3/resources/repos.py
@@ -1,6 +1,8 @@
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
+from collections import OrderedDict
+
from .base import Resource
from .users import User
from .orgs import Org
@@ -100,3 +102,13 @@ class Branch(Resource):
def __str__(self):
return '<Branch (%s)>' % getattr(self, 'name', '')
+
+
+class Download(Resource):
+
+ def ball_to_upload(self):
+ return OrderedDict({
+ 'key': self.path, 'acl': self.acl, 'success_action_status': '201',
+ 'Filename': self.name, 'AWSAccessKeyId': self.accesskeyid,
+ 'Policy': self.policy, 'Signature': self.signature,
+ 'Content-Type': self.mime_type})