Fixed a the problem where certain methods returning bools were returning them as strings instead (CMIS-536); Fixed a minor doc typo; Added new/modified static assets related to docs caused by a sphinx upgrade.
git-svn-id: https://svn.apache.org/repos/asf/chemistry/cmislib/trunk@1374113 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/setup.cfg b/setup.cfg
index fb44fef..70387d2 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -18,4 +18,4 @@
#
[egg_info]
-tag_build =
+tag_build = dev
diff --git a/setup.py b/setup.py
index 085f591..7d16d74 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@
import os
from setuptools import setup, find_packages
-version = '0.5'
+version = '0.5.1'
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
diff --git a/src/cmislib.egg-info/PKG-INFO b/src/cmislib.egg-info/PKG-INFO
index 0eadd35..54ee969 100644
--- a/src/cmislib.egg-info/PKG-INFO
+++ b/src/cmislib.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
-Metadata-Version: 1.0
+Metadata-Version: 1.1
Name: cmislib
-Version: 0.5
+Version: 0.5.1dev
Summary: Apache Chemistry CMIS client library for Python
Home-page: http://chemistry.apache.org/
Author: Apache Chemistry Project
diff --git a/src/cmislib.egg-info/SOURCES.txt b/src/cmislib.egg-info/SOURCES.txt
index cb51d4b..58164da 100644
--- a/src/cmislib.egg-info/SOURCES.txt
+++ b/src/cmislib.egg-info/SOURCES.txt
@@ -59,9 +59,15 @@
src/doc/build/_sources/install.txt
src/doc/build/_sources/sample-data.txt
src/doc/build/_sources/tests.txt
+src/doc/build/_static/ajax-loader.gif
src/doc/build/_static/basic.css
+src/doc/build/_static/comment-bright.png
+src/doc/build/_static/comment-close.png
+src/doc/build/_static/comment.png
src/doc/build/_static/default.css
src/doc/build/_static/doctools.js
+src/doc/build/_static/down-pressed.png
+src/doc/build/_static/down.png
src/doc/build/_static/file.png
src/doc/build/_static/jquery.js
src/doc/build/_static/minus.png
@@ -70,6 +76,9 @@
src/doc/build/_static/searchtools.js
src/doc/build/_static/sidebar.js
src/doc/build/_static/underscore.js
+src/doc/build/_static/up-pressed.png
+src/doc/build/_static/up.png
+src/doc/build/_static/websupport.js
src/doc/src/Makefile
src/doc/src/about.rst
src/doc/src/code.rst
diff --git a/src/cmislib/model.py b/src/cmislib/model.py
index dce3e8e..9f0f2b1 100644
--- a/src/cmislib/model.py
+++ b/src/cmislib/model.py
@@ -76,6 +76,7 @@
RELATIONSHIPS_REL = 'http://docs.oasis-open.org/ns/cmis/link/200908/relationships'
ACL_REL = 'http://docs.oasis-open.org/ns/cmis/link/200908/acl'
CHANGE_LOG_REL = 'http://docs.oasis-open.org/ns/cmis/link/200908/changes'
+POLICIES_REL = 'http://docs.oasis-open.org/ns/cmis/link/200908/policies'
# Collection types
QUERY_COLL = 'query'
@@ -3416,27 +3417,27 @@
def getUpdatability(self):
"""Getter for cmis:updatability"""
- return self._getElementValue(CMIS_NS, 'updatability')
+ return parseBoolValue(self._getElementValue(CMIS_NS, 'updatability'))
def isInherited(self):
"""Getter for cmis:inherited"""
- return self._getElementValue(CMIS_NS, 'inherited')
+ return parseBoolValue(self._getElementValue(CMIS_NS, 'inherited'))
def isRequired(self):
"""Getter for cmis:required"""
- return self._getElementValue(CMIS_NS, 'required')
+ return parseBoolValue(self._getElementValue(CMIS_NS, 'required'))
def isQueryable(self):
"""Getter for cmis:queryable"""
- return self._getElementValue(CMIS_NS, 'queryable')
+ return parseBoolValue(self._getElementValue(CMIS_NS, 'queryable'))
def isOrderable(self):
"""Getter for cmis:orderable"""
- return self._getElementValue(CMIS_NS, 'orderable')
+ return parseBoolValue(self._getElementValue(CMIS_NS, 'orderable'))
def isOpenChoice(self):
"""Getter for cmis:openChoice"""
- return self._getElementValue(CMIS_NS, 'openChoice')
+ return parseBoolValue(self._getElementValue(CMIS_NS, 'openChoice'))
id = property(getId)
localName = property(getLocalName)
diff --git a/src/doc/src/examples.rst b/src/doc/src/examples.rst
index b477504..fd6bb79 100644
--- a/src/doc/src/examples.rst
+++ b/src/doc/src/examples.rst
@@ -115,7 +115,7 @@
Test Document2
example test script.js
- #. Alternatively, you can also get objects by their their path, like this:
+ #. Alternatively, you can also get objects by their path, like this:
>>> someDoc = repo.getObjectByPath('/someFolder/Test Document')
>>> someDoc.id