Trello » TrelloPy
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

Add __module__ for docs.

Changeset bae916ac9892

Parent d07ecf4d2cfb

by Profile picture of User 10Tyler G. Hicks-Wright <tghw@fogcreek.com>

Changes to 13 files · Browse files at bae916ac9892 Showing diff from parent d07ecf4d2cfb Diff from another changeset...

Change 1 of 1 Show Entire File .hgignore Stacked
 
3
4
5
 
 
3
4
5
6
@@ -3,3 +3,4 @@
 *.pyo  dist/*  build/* +_build/*
Change 1 of 1 Show Entire File api_class.mustache Stacked
 
2
3
4
 
 
5
6
7
 
2
3
4
5
6
7
8
9
@@ -2,6 +2,8 @@
 import requests    class {{class_name}}(object): + __module__ = 'trello' +   def __init__(self, apikey, token=None):   self._apikey = apikey   self._token = token
Change 1 of 1 Show Entire File setup.py Stacked
 
51
52
53
54
 
55
56
57
 
51
52
53
 
54
55
56
57
@@ -51,7 +51,7 @@
  author_email='customer-service@fogcreek.com',   maintainer='Fog Creek Software',   maintainer_email='customer-service@fogcreek.com', - url='https://developers.kilnhg.com/Repo/Trello/Group/TrelloPy', + url='https://trello.com/',   download_url='https://developers.kilnhg.com/Repo/Trello/Group/TrelloPy',   install_requires=['requests>=0.9.1'],   requires='requests',
Change 1 of 1 Show Changes Only trello/​actions.py Stacked
1
2
3
4
 
 
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
 import json  import requests    class Actions(object): + __module__ = 'trello' +   def __init__(self, apikey, token=None):   self._apikey = apikey   self._token = token     def get(self, action_id, fields=None, member=None, member_fields=None, memberCreator=None, memberCreator_fields=None):   resp = requests.get("https://trello.com/1/actions/%s" % (action_id), params=dict(key=self._apikey, token=self._token, fields=fields, member=member, member_fields=member_fields, memberCreator=memberCreator, memberCreator_fields=memberCreator_fields), data=None)   resp.raise_for_status()   return json.loads(resp.content)     def get_field(self, field, action_id):   resp = requests.get("https://trello.com/1/actions/%s/%s" % (action_id, field), params=dict(key=self._apikey, token=self._token), data=None)   resp.raise_for_status()   return json.loads(resp.content)     def get_board(self, action_id, fields=None):   resp = requests.get("https://trello.com/1/actions/%s/board" % (action_id), params=dict(key=self._apikey, token=self._token, fields=fields), data=None)   resp.raise_for_status()   return json.loads(resp.content)     def get_board_field(self, field, action_id):   resp = requests.get("https://trello.com/1/actions/%s/board/%s" % (action_id, field), params=dict(key=self._apikey, token=self._token), data=None)   resp.raise_for_status()   return json.loads(resp.content)     def get_card(self, action_id, fields=None):   resp = requests.get("https://trello.com/1/actions/%s/card" % (action_id), params=dict(key=self._apikey, token=self._token, fields=fields), data=None)   resp.raise_for_status()   return json.loads(resp.content)     def get_card_field(self, field, action_id):   resp = requests.get("https://trello.com/1/actions/%s/card/%s" % (action_id, field), params=dict(key=self._apikey, token=self._token), data=None)   resp.raise_for_status()   return json.loads(resp.content)     def get_list(self, action_id, fields=None):   resp = requests.get("https://trello.com/1/actions/%s/list" % (action_id), params=dict(key=self._apikey, token=self._token, fields=fields), data=None)   resp.raise_for_status()   return json.loads(resp.content)     def get_list_field(self, field, action_id):   resp = requests.get("https://trello.com/1/actions/%s/list/%s" % (action_id, field), params=dict(key=self._apikey, token=self._token), data=None)   resp.raise_for_status()   return json.loads(resp.content)     def get_member(self, action_id, fields=None):   resp = requests.get("https://trello.com/1/actions/%s/member" % (action_id), params=dict(key=self._apikey, token=self._token, fields=fields), data=None)   resp.raise_for_status()   return json.loads(resp.content)     def get_member_field(self, field, action_id):   resp = requests.get("https://trello.com/1/actions/%s/member/%s" % (action_id, field), params=dict(key=self._apikey, token=self._token), data=None)   resp.raise_for_status()   return json.loads(resp.content)     def get_memberCreator(self, action_id, fields=None):   resp = requests.get("https://trello.com/1/actions/%s/memberCreator" % (action_id), params=dict(key=self._apikey, token=self._token, fields=fields), data=None)   resp.raise_for_status()   return json.loads(resp.content)     def get_memberCreator_field(self, field, action_id):   resp = requests.get("https://trello.com/1/actions/%s/memberCreator/%s" % (action_id, field), params=dict(key=self._apikey, token=self._token), data=None)   resp.raise_for_status()   return json.loads(resp.content)     def get_organization(self, action_id, fields=None):   resp = requests.get("https://trello.com/1/actions/%s/organization" % (action_id), params=dict(key=self._apikey, token=self._token, fields=fields), data=None)   resp.raise_for_status()   return json.loads(resp.content)     def get_organization_field(self, field, action_id):   resp = requests.get("https://trello.com/1/actions/%s/organization/%s" % (action_id, field), params=dict(key=self._apikey, token=self._token), data=None)   resp.raise_for_status()   return json.loads(resp.content)    
Change 1 of 1 Show Entire File trello/​boards.py Stacked
 
2
3
4
 
 
5
6
7
 
2
3
4
5
6
7
8
9
@@ -2,6 +2,8 @@
 import requests    class Boards(object): + __module__ = 'trello' +   def __init__(self, apikey, token=None):   self._apikey = apikey   self._token = token
Change 1 of 1 Show Entire File trello/​cards.py Stacked
 
2
3
4
 
 
5
6
7
 
2
3
4
5
6
7
8
9
@@ -2,6 +2,8 @@
 import requests    class Cards(object): + __module__ = 'trello' +   def __init__(self, apikey, token=None):   self._apikey = apikey   self._token = token
 
2
3
4
 
 
5
6
7
 
2
3
4
5
6
7
8
9
@@ -2,6 +2,8 @@
 import requests    class Checklists(object): + __module__ = 'trello' +   def __init__(self, apikey, token=None):   self._apikey = apikey   self._token = token
Change 1 of 1 Show Entire File trello/​lists.py Stacked
 
2
3
4
 
 
5
6
7
 
2
3
4
5
6
7
8
9
@@ -2,6 +2,8 @@
 import requests    class Lists(object): + __module__ = 'trello' +   def __init__(self, apikey, token=None):   self._apikey = apikey   self._token = token
Change 1 of 1 Show Entire File trello/​members.py Stacked
 
2
3
4
 
 
5
6
7
 
2
3
4
5
6
7
8
9
@@ -2,6 +2,8 @@
 import requests    class Members(object): + __module__ = 'trello' +   def __init__(self, apikey, token=None):   self._apikey = apikey   self._token = token
 
2
3
4
 
 
5
6
7
 
2
3
4
5
6
7
8
9
@@ -2,6 +2,8 @@
 import requests    class Notifications(object): + __module__ = 'trello' +   def __init__(self, apikey, token=None):   self._apikey = apikey   self._token = token
 
2
3
4
 
 
5
6
7
 
2
3
4
5
6
7
8
9
@@ -2,6 +2,8 @@
 import requests    class Organizations(object): + __module__ = 'trello' +   def __init__(self, apikey, token=None):   self._apikey = apikey   self._token = token
Change 1 of 1 Show Entire File trello/​tokens.py Stacked
 
2
3
4
 
 
5
6
7
 
2
3
4
5
6
7
8
9
@@ -2,6 +2,8 @@
 import requests    class Tokens(object): + __module__ = 'trello' +   def __init__(self, apikey, token=None):   self._apikey = apikey   self._token = token
Change 1 of 1 Show Entire File trello/​types.py Stacked
 
2
3
4
 
 
5
6
7
 
2
3
4
5
6
7
8
9
@@ -2,6 +2,8 @@
 import requests    class Types(object): + __module__ = 'trello' +   def __init__(self, apikey, token=None):   self._apikey = apikey   self._token = token