Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ changelog
- Implement the instance bound ACLs interface.
- Implement the auth._verify method for token verification.
- Allowing instances to be extensible.
- Instance details now included instance settings too.

0.3.x
-----
Expand Down
6 changes: 6 additions & 0 deletions objectrocket/bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def __init__(self, instance_document, instances):
self._service = instance_document['service']
self._type = instance_document['type']
self._version = instance_document['version']
self._settings = instance_document.get('settings', [])

def __repr__(self):
"""Represent this object as a string."""
Expand Down Expand Up @@ -246,6 +247,11 @@ def version(self):
"""The version of this instance's service."""
return self._version

@property
def settings(self):
"""The settings on this instance's service."""
return self._settings

def to_dict(self):
"""Render this object as a dictionary."""
return self._instance_document
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from setuptools import find_packages
from setuptools import setup

VERSION = ('0', '4', '3')
VERSION = ('0', '4', '4')
__version__ = '.'.join(VERSION)

with open('README.md') as f:
Expand Down