Skip to content

Commit

Permalink
Transformer fix 0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
SenadI committed Jul 27, 2016
1 parent 5e62e87 commit 600c0d4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.4.2 (2016-07-27)
==================
- Bugfixes
- [Issue #12](https://github.com/sbg/sevenbridges-python/issues/12)

0.4.1 (2016-07-27)
==================
- Bugfixes
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from setuptools import setup, find_packages

version = "0.4.1"
version = "0.4.2"

install_requires = []

Expand Down
2 changes: 1 addition & 1 deletion sevenbridges/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:license: Apache 2.0
"""

__version__ = "0.4.1"
__version__ = "0.4.2"

from sevenbridges.api import Api
from sevenbridges.config import Config
Expand Down
14 changes: 7 additions & 7 deletions sevenbridges/meta/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def to_project(project):
raise SbgError('Project is required!')
elif isinstance(project, Project):
return project.id
elif isinstance(project, six.text_type):
elif isinstance(project, six.string_types):
return project
else:
raise SbgError('Invalid project parameter!')
Expand All @@ -22,7 +22,7 @@ def to_task(task):
raise SbgError('Task is required!')
elif isinstance(task, Task):
return task.id
elif isinstance(task, six.text_type):
elif isinstance(task, six.string_types):
return task
else:
raise SbgError('Invalid task parameter!')
Expand All @@ -34,7 +34,7 @@ def to_app(app):
raise SbgError('App is required!')
elif isinstance(app, App):
return app.id
elif isinstance(app, six.text_type):
elif isinstance(app, six.string_types):
return app
else:
raise SbgError('Invalid app parameter!')
Expand All @@ -46,7 +46,7 @@ def to_file(file_):
raise SbgError('File is required!')
elif isinstance(file_, File):
return file_.id
elif isinstance(file_, six.text_type):
elif isinstance(file_, six.string_types):
return file_
else:
raise SbgError('Invalid file parameter!')
Expand All @@ -58,7 +58,7 @@ def to_user(user):
raise SbgError('User is required!')
elif isinstance(user, User):
return user.username
elif isinstance(user, six.text_type):
elif isinstance(user, six.string_types):
return user
else:
raise SbgError('Invalid user parameter!')
Expand All @@ -70,7 +70,7 @@ def to_billing_group(billing_group):
raise SbgError('Billing group is required!')
elif isinstance(billing_group, BillingGroup):
return billing_group.id
elif isinstance(billing_group, six.text_type):
elif isinstance(billing_group, six.string_types):
return billing_group
else:
raise SbgError('Invalid billing group parameter!')
Expand All @@ -82,7 +82,7 @@ def to_volume(volume):
raise SbgError('Volume is required!')
elif isinstance(volume, Volume):
return volume.id
elif isinstance(volume, six.text_type):
elif isinstance(volume, six.string_types):
return volume
else:
raise SbgError('Invalid volume parameter!')

0 comments on commit 600c0d4

Please sign in to comment.