Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
afa1059
Merge pull request #182 from Syncano/release-v5.0.1
opalczynski Apr 7, 2016
ef5443d
Merge remote-tracking branch 'origin/master' into develop
opalczynski Apr 7, 2016
d248abb
Merge pull request #184 from Syncano/master
opalczynski Apr 7, 2016
ac12d4e
[LIB-507] correct docs a little: remove connect_instance, and correct…
opalczynski Apr 7, 2016
6636691
[LIB-363] add timezone field for Schedule model;
opalczynski Apr 7, 2016
b77acc7
Merge pull request #186 from Syncano/LIB-363
dancio Apr 13, 2016
8fcf126
Merge pull request #185 from Syncano/LIB-507
dancio Apr 13, 2016
b4ee89d
[LIB-646] add geo point support to LIB;
opalczynski Apr 14, 2016
e09ebaa
[LIB-646] simplify the make_request a little
opalczynski Apr 14, 2016
a2bd74a
[LIB-646] change the default param in get
opalczynski Apr 14, 2016
92af564
[LIB-646] correct check for batch requests
opalczynski Apr 14, 2016
a1acf37
[LIB-646] correct check for batch requests
opalczynski Apr 14, 2016
dac69d5
[LIB-646] small fixes in GeoPoint definition
opalczynski Apr 15, 2016
c3af5ce
[LIB-548] re-work a little template on another endpoint handling in L…
opalczynski Apr 19, 2016
004c5a8
[LIB-548] correct test assert
opalczynski Apr 19, 2016
b328d1e
[LIB-548] remove type check from test;
opalczynski Apr 19, 2016
01f3162
Merge pull request #190 from Syncano/LIB-660
opalczynski Apr 21, 2016
a0a1da2
Merge pull request #188 from Syncano/LIB-548
opalczynski Apr 26, 2016
06a9049
[LIB-646][MERGE] merge with develop - resolve conflicts
opalczynski Apr 26, 2016
a4edbfa
Merge pull request #187 from Syncano/LIB-646
opalczynski Apr 26, 2016
16809b2
[LIB-653] GeoPoint re work, add tests, add possibility to filter;
opalczynski Apr 26, 2016
251c56f
[LIB-653] correct flake issues
opalczynski Apr 26, 2016
5437253
[LIB-653] correct field geo test;
opalczynski Apr 26, 2016
5d9ccf2
[LIB-653] correct field geo test;
opalczynski Apr 26, 2016
5e57ea9
[LIB-653] correct field geo test;
opalczynski Apr 26, 2016
e6fcd34
[LIB-653] correct field geo test;
opalczynski Apr 26, 2016
fd1e13d
[LIB-653] correct field geo test;
opalczynski Apr 26, 2016
a1c873f
[LIB-653] correct interfaces a little: split GeoPoint from GeoLookup,…
opalczynski Apr 27, 2016
7ef7d83
[LIB-653] correct bug
opalczynski Apr 27, 2016
893671c
[LIB-653] Correct geo handling
opalczynski Apr 28, 2016
1b4acd1
[LIB-653] correct typo and remove __str__ from GeoPoint
opalczynski Apr 28, 2016
cf7a199
[WIP] Relation supp in LIB
opalczynski Apr 28, 2016
6133c25
[LIB-678] add relation manager with add and remove methods;
opalczynski Apr 29, 2016
604a758
[LIB-678] add integration test for relations
opalczynski Apr 29, 2016
720852a
[LIB-678] add integration test for relations
opalczynski Apr 29, 2016
3d0bc21
[LIB-678] add integration test for relations
opalczynski Apr 29, 2016
cde49ec
Merge pull request #191 from Syncano/LIB-653
opalczynski Apr 29, 2016
6a02d45
[LIB-678] correct test and to_naive and to_python methods
opalczynski Apr 29, 2016
9719122
[LIB-678] correct test and to_naive and to_python methods
opalczynski Apr 29, 2016
b13d164
[LIB-678] correct test and to_naive and to_python methods
opalczynski Apr 29, 2016
023fe00
[LIB-678] remove uneeded mixin and make code more DRY;
opalczynski May 3, 2016
6a71c83
[LIB-678] start to implement filters;
opalczynski May 4, 2016
39be399
Merge remote-tracking branch 'origin' into LIB-678
opalczynski May 4, 2016
d8768d5
[LIB-678] add contains and is filtering on relation field
opalczynski May 4, 2016
3994735
[LIB-678] add filter index in test correct spell error - in names
opalczynski May 4, 2016
25db2de
[LIB-678] correct model_name initialization
opalczynski May 4, 2016
fbfb410
[LIB-678] add list() in tests asserts
opalczynski May 4, 2016
81a5e3e
[LIB-678] clean up test a little
opalczynski May 4, 2016
8175bd6
[LIB-678] correct tests
opalczynski May 4, 2016
26ff561
Merge pull request #192 from Syncano/LIB-678
opalczynski May 9, 2016
4cf2644
[LIB-678-fixes] relation - field handling fixes
opalczynski May 10, 2016
63cf637
Merge pull request #193 from Syncano/LIB-678-fixes
opalczynski May 10, 2016
f550ba5
[LIB-701] make schema field not required on class
opalczynski May 11, 2016
eb6ac49
[LIB-701] change log leve when read only attribute is set
opalczynski May 11, 2016
0a3e2df
[LIB-701] remove choices from Script runtime name, add get_runtimes t…
opalczynski May 11, 2016
5beb45d
[LIB-701] small improevements
opalczynski May 12, 2016
8494dd0
[LIB-701] change config field in Script to JSONField
opalczynski May 12, 2016
15bed9a
[LIB-701] remove not needed print
opalczynski May 12, 2016
ecddd5f
[LIB-701] correct Runtime object setting
opalczynski May 12, 2016
0adb68e
[LIB-701] small fixes after QA
opalczynski May 12, 2016
cf99296
[LIB-701] add RuntimeChoices constant
opalczynski May 12, 2016
008cdbd
[LIB-701] remove runtimes endpoint
opalczynski May 12, 2016
6b60640
Merge pull request #194 from Syncano/LIB-701
opalczynski May 12, 2016
bc93492
[RELEASE v5.1.0] next release
opalczynski May 13, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[LIB-701] small improevements
  • Loading branch information
opalczynski committed May 12, 2016
commit 5beb45d51ccc34966b9b3229b56be8fb02e41ca5
9 changes: 5 additions & 4 deletions syncano/models/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,21 +862,22 @@ def get_runtimes(self):

class RuntimeChoices(object):

_choices = {}

def __init__(self, choices):
self._choices = {}
for choice in choices:
self._choices[choice.upper()] = choice
setattr(self, choice.upper(), choice)

def __repr__(self):
repr = ""
repr_str = ""
for key, value in six.iteritems(self._choices):
repr += '{name}.{attr} = "{value}"\n'.format(
repr_str += '{name}.{attr} = "{value}"\n'.format(
name=self.__class__.__name__,
attr=key,
value=value
)
return repr
return repr_str

return RuntimeChoices(choices=response.keys())

Expand Down