| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e31bb9e commit 1969abb
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,3 +9,4 @@ Contributors | |||
| 9 | 9 | Daniel Kimsey <dekimsey@ufl.edu> | |
| 10 | 10 | Erik Weatherwax <erik.weatherwax@xls.xerox.com> | |
| 11 | 11 | Andrew Austin <aaustin@terremark.com> | |
| 12 | + Koen Smets <koen.smets@gmail.com> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,7 @@ | |||
| 1 | + Version 0.5 | ||
| 2 | + | ||
| 3 | + * Add SSH key for user | ||
| 4 | + | ||
| 1 | 5 | Version 0.4 | |
| 2 | 6 | ||
| 3 | 7 | * Fix strings encoding (Closes #6) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -541,14 +541,6 @@ def json(self): | |||
| 541 | 541 | return json.dumps(self.__dict__, cls=jsonEncoder) | |
| 542 | 542 | ||
| 543 | 543 | ||
| 544 | - class User(GitlabObject): | ||
| 545 | - _url = '/users' | ||
| 546 | - shortPrintAttr = 'username' | ||
| 547 | - requiredCreateAttrs = ['email', 'password', 'username', 'name'] | ||
| 548 | - optionalCreateAttrs = ['skype', 'linkedin', 'twitter', 'projects_limit', | ||
| 549 | - 'extern_uid', 'provider', 'bio'] | ||
| 550 | - | ||
| 551 | - | ||
| 552 | 544 | class UserKey(GitlabObject): | |
| 553 | 545 | _url = '/users/%(user_id)s/keys' | |
| 554 | 546 | canGet = False | |
@@ -558,6 +550,19 @@ class UserKey(GitlabObject): | |||
| 558 | 550 | requiredCreateAttrs = ['user_id', 'title', 'key'] | |
| 559 | 551 | ||
| 560 | 552 | ||
| 553 | + class User(GitlabObject): | ||
| 554 | + _url = '/users' | ||
| 555 | + shortPrintAttr = 'username' | ||
| 556 | + requiredCreateAttrs = ['email', 'password', 'username', 'name'] | ||
| 557 | + optionalCreateAttrs = ['skype', 'linkedin', 'twitter', 'projects_limit', | ||
| 558 | + 'extern_uid', 'provider', 'bio'] | ||
| 559 | + | ||
| 560 | + def Key(self, id=None, **kwargs): | ||
| 561 | + return self._getListOrObject(UserKey, id, | ||
| 562 | + user_id=self.id, | ||
| 563 | + **kwargs) | ||
| 564 | + | ||
| 565 | + | ||
| 561 | 566 | class CurrentUserKey(GitlabObject): | |
| 562 | 567 | _url = '/user/keys' | |
| 563 | 568 | canUpdate = False | |
| Back | FazBrowse Home | New Git URL |
0 commit comments