Author: jpotts
Date: Thu Aug 31 14:19:04 2017
New Revision: 1806797
URL: http://svn.apache.org/viewvc?rev=1806797&view=rev
Log:
updated web site for cmislib 0.6.0
Added:
chemistry/site/trunk/content/python/docs/_sources/about.rst.txt
chemistry/site/trunk/content/python/docs/_sources/bindings.rst.txt
chemistry/site/trunk/content/python/docs/_sources/code.rst.txt
chemistry/site/trunk/content/python/docs/_sources/codemisc.rst.txt
chemistry/site/trunk/content/python/docs/_sources/devguide.rst.txt
chemistry/site/trunk/content/python/docs/_sources/docs.rst.txt
chemistry/site/trunk/content/python/docs/_sources/examples.rst.txt
chemistry/site/trunk/content/python/docs/_sources/index.rst.txt
chemistry/site/trunk/content/python/docs/_sources/install.rst.txt
chemistry/site/trunk/content/python/docs/_sources/tests.rst.txt
chemistry/site/trunk/content/python/docs/_static/classic.css
chemistry/site/trunk/content/python/docs/_static/jquery-3.1.0.js
chemistry/site/trunk/content/python/docs/_static/underscore-1.3.1.js
chemistry/site/trunk/content/python/docs/bindings.html
chemistry/site/trunk/content/python/docs/codemisc.html
Removed:
chemistry/site/trunk/content/python/docs/_sources/about.txt
chemistry/site/trunk/content/python/docs/_sources/code.txt
chemistry/site/trunk/content/python/docs/_sources/devguide.txt
chemistry/site/trunk/content/python/docs/_sources/docs.txt
chemistry/site/trunk/content/python/docs/_sources/examples.txt
chemistry/site/trunk/content/python/docs/_sources/index.txt
chemistry/site/trunk/content/python/docs/_sources/install.txt
chemistry/site/trunk/content/python/docs/_sources/sample-data.txt
chemistry/site/trunk/content/python/docs/_sources/tests.txt
chemistry/site/trunk/content/python/docs/sample-data.html
Modified:
chemistry/site/trunk/content/python/cmislib.mdtext
chemistry/site/trunk/content/python/docs/_static/basic.css
chemistry/site/trunk/content/python/docs/_static/comment-bright.png
chemistry/site/trunk/content/python/docs/_static/comment-close.png
chemistry/site/trunk/content/python/docs/_static/comment.png
chemistry/site/trunk/content/python/docs/_static/default.css
chemistry/site/trunk/content/python/docs/_static/doctools.js
chemistry/site/trunk/content/python/docs/_static/down-pressed.png
chemistry/site/trunk/content/python/docs/_static/down.png
chemistry/site/trunk/content/python/docs/_static/file.png
chemistry/site/trunk/content/python/docs/_static/jquery.js
chemistry/site/trunk/content/python/docs/_static/minus.png
chemistry/site/trunk/content/python/docs/_static/plus.png
chemistry/site/trunk/content/python/docs/_static/pygments.css
chemistry/site/trunk/content/python/docs/_static/searchtools.js
chemistry/site/trunk/content/python/docs/_static/sidebar.js
chemistry/site/trunk/content/python/docs/_static/underscore.js
chemistry/site/trunk/content/python/docs/_static/up-pressed.png
chemistry/site/trunk/content/python/docs/_static/up.png
chemistry/site/trunk/content/python/docs/_static/websupport.js
chemistry/site/trunk/content/python/docs/about.html
chemistry/site/trunk/content/python/docs/code.html
chemistry/site/trunk/content/python/docs/devguide.html
chemistry/site/trunk/content/python/docs/docs.html
chemistry/site/trunk/content/python/docs/examples.html
chemistry/site/trunk/content/python/docs/genindex.html
chemistry/site/trunk/content/python/docs/index.html
chemistry/site/trunk/content/python/docs/install.html
chemistry/site/trunk/content/python/docs/objects.inv
chemistry/site/trunk/content/python/docs/py-modindex.html
chemistry/site/trunk/content/python/docs/search.html
chemistry/site/trunk/content/python/docs/searchindex.js
chemistry/site/trunk/content/python/docs/tests.html
Modified: chemistry/site/trunk/content/python/cmislib.mdtext
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/cmislib.mdtext?rev=1806797&r1=1806796&r2=1806797&view=diff
==============================================================================
--- chemistry/site/trunk/content/python/cmislib.mdtext (original)
+++ chemistry/site/trunk/content/python/cmislib.mdtext Thu Aug 31 14:19:04 2017
@@ -2,7 +2,7 @@ Title: cmislib
# Welcome to Apache Chemistry cmislib
-Apache Chemistry cmislib is a
[CMIS](http://docs.oasis-open.org/cmis/CMIS/v1.0/cmis-spec-v1.0.html) client
library for Python.
+Apache Chemistry cmislib is a
[CMIS](http://docs.oasis-open.org/cmis/CMIS/v1.1/CMIS-v1.1.html) client library
for Python.
The goal of this library is to provide an interoperable API to CMIS
repositories such as Alfresco, Nuxeo, KnowledgeTree, MS SharePoint, EMC
@@ -19,6 +19,15 @@ While downloading the packages, make sur
You can download the latest cmislib releases here.
+<a name="cmislib-0.6.0FullDownloadpage"></a>
+#### 0.6.0 [Full Download
page](https://www.apache.org/dyn/closer.lua/chemistry/cmislib/0.6.0/)
+
+Package|Type|Download|MD5|SHA1|PGP
+------|---|---|---|---|---
+cmislib
client|egg|[Download](https://www.apache.org/dyn/closer.lua/chemistry/cmislib/0.6.0/cmislib-0.6.0-py2.7.egg)|[md5](https://www.apache.org/dist/chemistry/cmislib/0.6.0/cmislib-0.6.0-py2.7.egg.md5)|[sha](https://www.apache.org/dist/chemistry/cmislib/0.6.0/cmislib-0.6.0-py2.7.egg.sha1)|[asc](https://www.apache.org/dist/chemistry/cmislib/0.6.0/cmislib-0.6.0-py2.7.egg.asc)
+cmislib
client|zip|[Download](https://www.apache.org/dyn/closer.lua/chemistry/cmislib/0.6.0/cmislib-0.6.0.zip)|[md5](https://www.apache.org/dist/chemistry/cmislib/0.6.0/cmislib-0.6.0.zip.md5)|[sha](https://www.apache.org/dist/chemistry/cmislib/0.6.0/cmislib-0.6.0.zip.sha1)|[asc](https://www.apache.org/dist/chemistry/cmislib/0.6.0/cmislib-0.6.0.zip.asc)
+cmislib
client|tar|[Download](https://www.apache.org/dyn/closer.lua/chemistry/cmislib/0.6.0/cmislib-0.6.0.tar.gz)|[md5](https://www.apache.org/dist/chemistry/cmislib/0.6.0/cmislib-0.6.0.tar.gz.md5)|[sha](https://www.apache.org/dist/chemistry/cmislib/0.6.0/cmislib-0.6.0.tar.gz.sha1)|[asc](https://www.apache.org/dist/chemistry/cmislib/0.6.0/cmislib-0.6.0.tar.gz.asc)
+
<a name="cmislib-0.5.1FullDownloadpage"></a>
#### 0.5.1 [Full Download
page](https://www.apache.org/dyn/closer.lua/chemistry/cmislib/0.5.1/)
@@ -76,4 +85,4 @@ Please see the doc for dependencies, req
If your project or product makes use of cmislib, please [let us
know](http://mail-archives.apache.org/mod_mbox/chemistry-dev/).
-* **CMIS Navigator** - [Project Site](http://www.open-t.nl/?webpages=navigator)
\ No newline at end of file
+* **CMIS Navigator** - [Project Site](http://www.open-t.nl/?webpages=navigator)
Added: chemistry/site/trunk/content/python/docs/_sources/about.rst.txt
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_sources/about.rst.txt?rev=1806797&view=auto
==============================================================================
--- chemistry/site/trunk/content/python/docs/_sources/about.rst.txt (added)
+++ chemistry/site/trunk/content/python/docs/_sources/about.rst.txt Thu Aug 31
14:19:04 2017
@@ -0,0 +1,39 @@
+..
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+About Apache Chemistry cmislib
+==============================
+The goal of this project is to create a CMIS client for Python that can be
used to work with any CMIS-compliant repository.
+
+The library is being developed with the following guidelines:
+ * Developers using this API should be able to work with CMIS domain objects
without having to worry about the underlying implementation details.
+ * The library will use the Resftul AtomPub Binding and the Browser Binding
(added with CMIS 1.1).
+ * The library will conform to the `CMIS spec
<http://docs.oasis-open.org/cmis/CMIS/v1.1/CMIS-v1.1.html>`_ as closely as
possible. Several public CMIS repositories are being used to test the API.
+ * The library should have no hard-coded URL's. It should be able to get
everything it needs regarding how to work with the CMIS service from the CMIS
service URL response and subsequent calls.
+ * There shouldn't have to be a vendor-specific version of this library. The
goal is for it to be interoperable with CMIS-compliant providers.
+
+Quick Example
+-------------
+This should give you an idea of how easy and natural it is to work with the
API:
+ >>> cmisClient =
cmislib.CmisClient('http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom',
'admin', 'admin')
+ >>> repo = cmisClient.defaultRepository
+ >>> rootFolder = repo.rootFolder
+ >>> children = rootFolder.getChildren()
+ >>> newFolder = rootFolder.createFolder('testDeleteFolder folder')
+ >>> props = newFolder.properties
+ >>> newFolder.delete()
Added: chemistry/site/trunk/content/python/docs/_sources/bindings.rst.txt
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_sources/bindings.rst.txt?rev=1806797&view=auto
==============================================================================
--- chemistry/site/trunk/content/python/docs/_sources/bindings.rst.txt (added)
+++ chemistry/site/trunk/content/python/docs/_sources/bindings.rst.txt Thu Aug
31 14:19:04 2017
@@ -0,0 +1,59 @@
+..
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+Bindings
+========
+
+The CMIS specification supports multiple bindings. You can think of a binding
as
+a communication protocol. The specification provides for three bindings:
+
+ * Atom Pub
+ * Browser (JSON)
+ * Web Services (SOAP)
+
+Although the spec supports three, cmislib supports only two of these bindings:
+Atom Pub and Browser.
+
+When instantiating a :class:`CmisClient`, if you do not specify a binding,
cmislib
+will use the Atom Pub binding, by default.
+
+To use a different binding, such as the Browser binding, import it, then pass
it
+to the CmisClient constructor, like this:
+
+ >>> from cmislib.browser.binding import BrowserBinding
+ >>> client =
CmisClient('http://localhost:8080/alfresco/api/-default-/cmis/versions/1.1/browser',
'admin', 'admin', binding=BrowserBinding())
+
+Make sure you specify the appropriate service URL for the binding you've
chosen,
+otherwise cmislib will be unable to parse the response appropriately.
+
+Each of the two bindings modules contain implementations of the classes defined
+in :mod:`cmislib.domain`. So, for example, if you execute a query that returns
+documents and you are using the Atom Pub binding, what you'll get back are
instances
+of :class:`cmislib.atompub.AtomPubDocument` which implements
:class:`cmislib.domain.Document`.
+
+The :mod:`cmislib.atompub` Module
+---------------------------------
+
+.. automodule:: cmislib.atompub
+ :members:
+
+The :mod:`cmislib.browser` Module
+---------------------------------
+
+.. automodule:: cmislib.browser
+ :members:
Added: chemistry/site/trunk/content/python/docs/_sources/code.rst.txt
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_sources/code.rst.txt?rev=1806797&view=auto
==============================================================================
--- chemistry/site/trunk/content/python/docs/_sources/code.rst.txt (added)
+++ chemistry/site/trunk/content/python/docs/_sources/code.rst.txt Thu Aug 31
14:19:04 2017
@@ -0,0 +1,70 @@
+..
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+Code
+====
+
+The :mod:`cmislib.model` Module
+-------------------------------
+
+When working with the repository, the first thing you need to do is grab an
instance of :class:`cmislib.CmisClient`, passing it the repository endpoint
URL, username, and password.
+
+For example, in Alfresco 4.2 and higher, the repository endpoint for CMIS 1.1
and the Atom Pub binding is
+'http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom'.
Earlier versions have different URLs.
+The default username and password are typically 'admin' and 'admin'.
+
+So, to connect to an Alfresco server running on localhost, you would use:
+
+>>> cmisClient =
cmislib.CmisClient('http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom',
'admin', 'admin')
+
+From there you can get the default repository...
+
+>>> repo = cmisClient.defaultRepository
+
+An Alfresco server has a single repository. Servers from other vendors may
have multiple repositories. In those cases, you can get a specific repository
if you know the repository ID.
+
+>>> repo = cmisClient.getRepository('83beb297-a6fa-4ac5-844b-98c871c0eea9')
+
+Once you have that, you're off to the races. Use the
:class:`cmislib.Repository` class to create new :class:`cmislib.Folder` and
:class:`cmislib.Document` objects, perform searches, etc.
+
+.. automodule:: cmislib.model
+ :members:
+
+The :mod:`cmislib.domain` Module
+--------------------------------
+
+These are the generic domain objects that establish the interface to the
cmislib API. Regardless of which actual binding you use (AtomPub or Browser),
you will work with these objects.
+
+.. automodule:: cmislib.domain
+ :members:
+
+The :mod:`cmislib.net` Module
+-----------------------------
+
+The :mod:`cmislib.net` Module contains the classes used by
:mod:`cmislib.model.CmisClient` to communicate with the CMIS repository. The
most important of which is :class:`cmislib.net.RESTService`.
+
+.. automodule:: cmislib.net
+ :members: RESTService
+
+The :mod:`tests` Module
+-------------------------------
+
+The :mod:`tests` Module contains unit tests for all classes and methods in
:mod:`cmislib.model`. See :ref:`tests` for more information on running tests.
+
+.. automodule:: tests
+ :members:
Added: chemistry/site/trunk/content/python/docs/_sources/codemisc.rst.txt
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_sources/codemisc.rst.txt?rev=1806797&view=auto
==============================================================================
--- chemistry/site/trunk/content/python/docs/_sources/codemisc.rst.txt (added)
+++ chemistry/site/trunk/content/python/docs/_sources/codemisc.rst.txt Thu Aug
31 14:19:04 2017
@@ -0,0 +1,46 @@
+..
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+Miscellaneous Code
+==================
+
+This page documents modules of lesser importance.
+
+The :mod:`cmislib.cmis_services` Module
+---------------------------------------
+
+.. automodule:: cmislib.cmis_services
+ :members:
+
+The :mod:`cmislib.exceptions` Module
+------------------------------------
+
+.. automodule:: cmislib.exceptions
+ :members:
+
+The :mod:`cmislib.messages` Module
+------------------------------------
+
+.. automodule:: cmislib.messages
+ :members:
+
+The :mod:`cmislib.util` Module
+------------------------------
+
+.. automodule:: cmislib.util
+ :members:
Added: chemistry/site/trunk/content/python/docs/_sources/devguide.rst.txt
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_sources/devguide.rst.txt?rev=1806797&view=auto
==============================================================================
--- chemistry/site/trunk/content/python/docs/_sources/devguide.rst.txt (added)
+++ chemistry/site/trunk/content/python/docs/_sources/devguide.rst.txt Thu Aug
31 14:19:04 2017
@@ -0,0 +1,81 @@
+..
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+===============
+Developer Guide
+===============
+
+This page is for people who wish to contribute code to this project.
+
+Developer Setup
+---------------
+Check out the source from head, switch to the source code's root directory,
then run:
+ python setup.py develop
+
+That will set up this project's src directory in the easy-install.pth file in
site-packages.
+
+Release Process
+---------------
+
+Checklist:
+ #. All newly-added code has a unit test
+ #. All tests pass cleanly (or have good reasons for not passing)
+ #. Change setup.cfg to have the appropriate tag ('dev', for example, or ''
for a stable release)
+ #. Change setup.py to have the appropriate version number
+ #. Inline comments updated with changes
+ #. Sphinx doc updated with changes
+ #. Docs build cleanly
+ .. code-block:: bash
+
+ cd src/doc/src/
+ make html
+
+ #. pep8 runs without much complaint
+ .. code-block:: bash
+
+ pep8 --ignore=E501,W601 --repeat model.py
+
+ #. pylint runs without much complaint
+ .. code-block:: bash
+
+ pylint --disable=C0103,R0904,R0913,C0301,W0511 cmislibtest.py
+
+ #. All changes checked in
+ #. Tag the release using 'cmislib-[release num]-RC[x]'
+ #. Use the release script to build the release artifacts
+ .. code-block:: bash
+
+ cd dist
+ ./release.sh -u [email protected]
+
+ This will do a 'setup.py bdist sdist' and will then sign all artifacts.
+
+ Note that the artifacts will be named without 'RC[x]'. These are the same
artifacts that will be distributed if the vote passes.
+
+ #. Copy files to the Apache server under
~/public_html/chemistry/cmislib/[release num]
+ #. Start vote. Send an email to [email protected] announcing the
vote, highlighting the changes, pointing to the tagged source, and referencing
the artifacts that have been copied to the Apache server.
+ #. After 72 hours, if the vote passes, continue, otherwise address issues and
start over
+ #. Copy the files to the appropriate Apache dist directory, which is
/www/www.apache.org/dist/chemistry/cmislib/[release num]
+ #. Rename the RC tag in source code control
+ #. Update the cmislib home page with download links to the new release
+ #. Upload files to Pypi
+ #. Check the `cheesecake <http://pycheesecake.org/>`_ score
+ .. code-block:: bash
+
+ python cheesecake_index --name=cmislib
+
Added: chemistry/site/trunk/content/python/docs/_sources/docs.rst.txt
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_sources/docs.rst.txt?rev=1806797&view=auto
==============================================================================
--- chemistry/site/trunk/content/python/docs/_sources/docs.rst.txt (added)
+++ chemistry/site/trunk/content/python/docs/_sources/docs.rst.txt Thu Aug 31
14:19:04 2017
@@ -0,0 +1,37 @@
+..
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+Documentation
+=============
+
+This documentation was generated with `Sphinx <http://sphinx.pocoo.org/>`_. To
install Sphinx on Mac OS X using Macports:
+
+MAC OS X::
+
+ sudo port install py26-sphinx
+
+Once you've got Sphinx installed, if you need to regenerate the documentation::
+
+ cd /path/to/cmislib/src/doc/src
+ Run either:
+ sphinx-build -b html -d ../build/.doctrees . ../build
+ make html
+
+The generated HTML will be placed in doc/build::
+
+ firefox file:///path/to/cmislib/src/doc/build/index.html
Added: chemistry/site/trunk/content/python/docs/_sources/examples.rst.txt
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_sources/examples.rst.txt?rev=1806797&view=auto
==============================================================================
--- chemistry/site/trunk/content/python/docs/_sources/examples.rst.txt (added)
+++ chemistry/site/trunk/content/python/docs/_sources/examples.rst.txt Thu Aug
31 14:19:04 2017
@@ -0,0 +1,137 @@
+..
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+.. _examples:
+
+========
+Examples
+========
+There's nothing in cmislib that is specific to any particular vendor. Once you
give it your CMIS provider's service URL and some credentials, it figures out
where to go from there.
+
+Let's look at some examples using a local install of Alfresco Community
Edition.
+
+-----------------------
+Get a Repository object
+-----------------------
+
+ #. From the command-line, start the Python shell by typing `python` then hit
enter.
+ #. Import the CmisClient:
+
+ >>> from cmislib import CmisClient
+
+ #. Point the CmisClient at the repository's service URL
+
+ >>> client =
CmisClient('http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom',
'admin', 'admin')
+
+ #. Get the default repository for the service
+
+ >>> repo = client.defaultRepository
+ >>> repo.id
+ u'-default-'
+
+ #. Get the repository's properties. This for-loop spits out everything
cmislib knows about the repo.
+
+ >>> repo.name
+ u''
+ >>> info = repo.info
+ >>> for k,v in info.items():
+ ... print "%s:%s" % (k,v)
+ ...
+ cmisVersionSupported:1.1
+ principalAnonymous:guest
+ principalAnyone:GROUP_EVERYONE
+ repositoryDescription:None
+ changesOnType:cmis:folder
+ changesIncomplete:true
+ productVersion:5.2.0 (r133656-b12)
+ rootFolderId:000f9013-af35-430e-912f-67328f106279
+ repositoryId:-default-
+ repositoryName:None
+ vendorName:Alfresco
+ productName:Alfresco Community
+
+-------------------
+Folders & Documents
+-------------------
+
+Once you've got the Repository object you can start working with folders.
+
+ #. Create a new folder in the root. You should name yours something unique.
+
+ >>> root = repo.rootFolder
+ >>> someFolder = root.createFolder('someFolder')
+ >>> someFolder.id
+ u'92133bfd-8b69-4e97-9af2-761a09f29e01'
+
+ #. Then, you can create some content:
+
+ >>> someFile = open('test.txt', 'r')
+ >>> someDoc = someFolder.createDocument('Test Document',
contentFile=someFile)
+
+ #. And, if you want, you can dump the properties of the newly-created
document (this is a partial list):
+
+ >>> props = someDoc.properties
+ >>> for k,v in props.items():
+ ... print '%s:%s' % (k,v)
+ ...
+ cmis:contentStreamMimeType:text/plain
+ cmis:creationDate:2016-12-29 14:53:47.430000-06:00
+ cmis:baseTypeId:cmis:document
+ cmis:isLatestMajorVersion:false
+ cmis:isImmutable:false
+ cmis:isMajorVersion:false
+ cmis:objectId:c4bc9d00-5bf0-404d-8f0a-a6260f6d21ae;1.0
+
+----------------------------------
+Searching For & Retrieving Objects
+----------------------------------
+
+There are several different ways to grab an object:
+ * You can run a CMIS query
+ * You can ask the repository to give you one for a specific path or object ID
+ * You can traverse the repository using a folder's children and/or descendants
+
+ #. Let's find the doc we just created with a full-text search.
+
+ >>> results = repo.query("select * from cmis:document where
contains('test')")
+ >>> for result in results:
+ ... print result.name
+ ...
+ Test Document2
+ example test script.js
+
+ #. Alternatively, you can also get objects by their path, like this:
+
+ >>> someDoc = repo.getObjectByPath('/someFolder/Test Document')
+ >>> someDoc.id
+ 'c4bc9d00-5bf0-404d-8f0a-a6260f6d21ae;1.0'
+
+ #. Or their object ID, like this:
+
+ >>> someDoc = repo.getObject('c4bc9d00-5bf0-404d-8f0a-a6260f6d21ae;1.0')
+ >>> someDoc.name
+ u'Test Document'
+
+ #. Folder objects have getChildren() and getDescendants() methods that will
return a list of :class:`CmisObject` objects:
+
+ >>> children = someFolder.getChildren()
+ >>> for child in children:
+ ... print child.name
+ ...
+ Test Document
+ Test Document2
Added: chemistry/site/trunk/content/python/docs/_sources/index.rst.txt
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_sources/index.rst.txt?rev=1806797&view=auto
==============================================================================
--- chemistry/site/trunk/content/python/docs/_sources/index.rst.txt (added)
+++ chemistry/site/trunk/content/python/docs/_sources/index.rst.txt Thu Aug 31
14:19:04 2017
@@ -0,0 +1,47 @@
+..
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+.. cmislib documentation master file, created by
+ sphinx-quickstart on Thu Dec 10 10:12:43 2009.
+ You can adapt this file completely to your liking, but it should at least
+ contain the root `toctree` directive.
+
+Welcome to the Apache Chemistry cmislib documentation!
+==================================================================
+
+Contents:
+
+.. toctree::
+ :maxdepth: 2
+
+ about.rst
+ install.rst
+ examples.rst
+ bindings.rst
+ code.rst
+ codemisc.rst
+ devguide.rst
+ tests.rst
+ docs.rst
+
+Indices and tables
+==================
+
+* :ref:`genindex`
+* :ref:`modindex`
+* :ref:`search`
Added: chemistry/site/trunk/content/python/docs/_sources/install.rst.txt
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_sources/install.rst.txt?rev=1806797&view=auto
==============================================================================
--- chemistry/site/trunk/content/python/docs/_sources/install.rst.txt (added)
+++ chemistry/site/trunk/content/python/docs/_sources/install.rst.txt Thu Aug
31 14:19:04 2017
@@ -0,0 +1,39 @@
+..
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+Installation
+============
+
+Requirements
+------------
+These requirements must be met:
+ - Python 2.6.x or Python 2.7.x. Python 3.x is not supported.
+ - CMIS provider compliant with CMIS 1.0 or CMIS 1.1
+
+Steps
+-----
+ #. If you don't have `Python <http://www.python.org>`_ installed already, do
so.
+ #. If you don't have `setuptools <http://pypi.python.org/pypi/setuptools>`_
installed already, do so.
+ #. Once setuptools is installed, type `easy_install cmislib`
+ #. That's it!
+
+Once you do that, you should be able to fire up Python on the command-line and
import cmislib successfully.
+
+ >>> from cmislib import CmisClient, Repository, Folder
+
+To validate everything is working, run some :ref:`tests` or walk through some
:ref:`examples`.
Added: chemistry/site/trunk/content/python/docs/_sources/tests.rst.txt
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_sources/tests.rst.txt?rev=1806797&view=auto
==============================================================================
--- chemistry/site/trunk/content/python/docs/_sources/tests.rst.txt (added)
+++ chemistry/site/trunk/content/python/docs/_sources/tests.rst.txt Thu Aug 31
14:19:04 2017
@@ -0,0 +1,43 @@
+..
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+.. _tests:
+
+=====
+Tests
+=====
+
+This code includes unit tests. To run the tests::
+
+ cd /path/to/cmislib/tests
+ Edit settings.py
+ Set REPOSITORY_URL, USERNAME, PASSWORD
+ Optionally, set TEST_ROOT_PATH and other settings to meet your needs
+ python cmislibtest.py
+
+.. note::
+ See the wiki for other known CMIS test servers.
+
+If everything goes well, you should see::
+
+ Ran X tests in 3.607s
+
+ OK
+
+.. note::
+ Depending on the implementation of the CMIS provider, you may see errors or
failures instead of 'OK'.
Modified: chemistry/site/trunk/content/python/docs/_static/basic.css
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_static/basic.css?rev=1806797&r1=1806796&r2=1806797&view=diff
==============================================================================
--- chemistry/site/trunk/content/python/docs/_static/basic.css (original)
+++ chemistry/site/trunk/content/python/docs/_static/basic.css Thu Aug 31
14:19:04 2017
@@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- basic theme.
*
- * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
@@ -52,6 +52,8 @@ div.sphinxsidebar {
width: 230px;
margin-left: -100%;
font-size: 90%;
+ word-wrap: break-word;
+ overflow-wrap : break-word;
}
div.sphinxsidebar ul {
@@ -83,12 +85,9 @@ div.sphinxsidebar #searchbox input[type=
width: 170px;
}
-div.sphinxsidebar #searchbox input[type="submit"] {
- width: 30px;
-}
-
img {
border: 0;
+ max-width: 100%;
}
/* -- search page -----------------------------------------------------------
*/
@@ -123,6 +122,8 @@ ul.keywordmatches li.goodmatch a {
table.contentstable {
width: 90%;
+ margin-left: auto;
+ margin-right: auto;
}
table.contentstable p.biglink {
@@ -150,9 +151,14 @@ table.indextable td {
vertical-align: top;
}
-table.indextable dl, table.indextable dd {
+table.indextable ul {
margin-top: 0;
margin-bottom: 0;
+ list-style-type: none;
+}
+
+table.indextable > tbody > tr > td > ul {
+ padding-left: 0em;
}
table.indextable tr.pcap {
@@ -184,8 +190,22 @@ div.genindex-jumpbox {
padding: 0.4em;
}
+/* -- domain module index ---------------------------------------------------
*/
+
+table.modindextable td {
+ padding: 2px;
+ border-collapse: collapse;
+}
+
/* -- general body styles ---------------------------------------------------
*/
+div.body p, div.body dd, div.body li, div.body blockquote {
+ -moz-hyphens: auto;
+ -ms-hyphens: auto;
+ -webkit-hyphens: auto;
+ hyphens: auto;
+}
+
a.headerlink {
visibility: hidden;
}
@@ -196,7 +216,10 @@ h3:hover > a.headerlink,
h4:hover > a.headerlink,
h5:hover > a.headerlink,
h6:hover > a.headerlink,
-dt:hover > a.headerlink {
+dt:hover > a.headerlink,
+caption:hover > a.headerlink,
+p.caption:hover > a.headerlink,
+div.code-block-caption:hover > a.headerlink {
visibility: visible;
}
@@ -208,10 +231,6 @@ div.body td {
text-align: left;
}
-.field-list ul {
- padding-left: 1em;
-}
-
.first {
margin-top: 0 !important;
}
@@ -313,6 +332,13 @@ table.docutils {
border-collapse: collapse;
}
+table caption span.caption-number {
+ font-style: italic;
+}
+
+table caption span.caption-text {
+}
+
table.docutils td, table.docutils th {
padding: 1px 8px 1px 5px;
border-top: 0;
@@ -321,10 +347,6 @@ table.docutils td, table.docutils th {
border-bottom: 1px solid #aaa;
}
-table.field-list td, table.field-list th {
- border: 0 !important;
-}
-
table.footnote td, table.footnote th {
border: 0 !important;
}
@@ -343,6 +365,39 @@ table.citation td {
border-bottom: none;
}
+/* -- figures ---------------------------------------------------------------
*/
+
+div.figure {
+ margin: 0.5em;
+ padding: 0.5em;
+}
+
+div.figure p.caption {
+ padding: 0.3em;
+}
+
+div.figure p.caption span.caption-number {
+ font-style: italic;
+}
+
+div.figure p.caption span.caption-text {
+}
+
+/* -- field list styles -----------------------------------------------------
*/
+
+table.field-list td, table.field-list th {
+ border: 0 !important;
+}
+
+.field-list ul {
+ margin: 0;
+ padding-left: 1em;
+}
+
+.field-list p {
+ margin: 0;
+}
+
/* -- other body styles -----------------------------------------------------
*/
ol.arabic {
@@ -392,23 +447,14 @@ dl.glossary dt {
font-size: 1.1em;
}
-.field-list ul {
- margin: 0;
- padding-left: 1em;
-}
-
-.field-list p {
- margin: 0;
-}
-
-.refcount {
- color: #060;
-}
-
.optional {
font-size: 1.3em;
}
+.sig-paren {
+ font-size: larger;
+}
+
.versionmodified {
font-style: italic;
}
@@ -459,6 +505,13 @@ pre {
overflow-y: hidden; /* fixes display issues on Chrome browsers */
}
+span.pre {
+ -moz-hyphens: none;
+ -ms-hyphens: none;
+ -webkit-hyphens: none;
+ hyphens: none;
+}
+
td.linenos pre {
padding: 5px 0px;
border: 0;
@@ -474,22 +527,51 @@ table.highlighttable td {
padding: 0 0.5em 0 0.5em;
}
-tt.descname {
+div.code-block-caption {
+ padding: 2px 5px;
+ font-size: small;
+}
+
+div.code-block-caption code {
+ background-color: transparent;
+}
+
+div.code-block-caption + div > div.highlight > pre {
+ margin-top: 0;
+}
+
+div.code-block-caption span.caption-number {
+ padding: 0.1em 0.3em;
+ font-style: italic;
+}
+
+div.code-block-caption span.caption-text {
+}
+
+div.literal-block-wrapper {
+ padding: 1em 1em 0;
+}
+
+div.literal-block-wrapper div.highlight {
+ margin: 0;
+}
+
+code.descname {
background-color: transparent;
font-weight: bold;
font-size: 1.2em;
}
-tt.descclassname {
+code.descclassname {
background-color: transparent;
}
-tt.xref, a tt {
+code.xref, a code {
background-color: transparent;
font-weight: bold;
}
-h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt {
+h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
background-color: transparent;
}
@@ -521,6 +603,16 @@ span.eqno {
float: right;
}
+span.eqno a.headerlink {
+ position: relative;
+ left: 0px;
+ z-index: 1;
+}
+
+div.math:hover a.headerlink {
+ visibility: visible;
+}
+
/* -- printout stylesheet ---------------------------------------------------
*/
@media print {
Added: chemistry/site/trunk/content/python/docs/_static/classic.css
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_static/classic.css?rev=1806797&view=auto
==============================================================================
--- chemistry/site/trunk/content/python/docs/_static/classic.css (added)
+++ chemistry/site/trunk/content/python/docs/_static/classic.css Thu Aug 31
14:19:04 2017
@@ -0,0 +1,261 @@
+/*
+ * classic.css_t
+ * ~~~~~~~~~~~~~
+ *
+ * Sphinx stylesheet -- classic theme.
+ *
+ * :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
+ * :license: BSD, see LICENSE for details.
+ *
+ */
+
+@import url("basic.css");
+
+/* -- page layout -----------------------------------------------------------
*/
+
+body {
+ font-family: sans-serif;
+ font-size: 100%;
+ background-color: #11303d;
+ color: #000;
+ margin: 0;
+ padding: 0;
+}
+
+div.document {
+ background-color: #1c4e63;
+}
+
+div.documentwrapper {
+ float: left;
+ width: 100%;
+}
+
+div.bodywrapper {
+ margin: 0 0 0 230px;
+}
+
+div.body {
+ background-color: #ffffff;
+ color: #000000;
+ padding: 0 20px 30px 20px;
+}
+
+div.footer {
+ color: #ffffff;
+ width: 100%;
+ padding: 9px 0 9px 0;
+ text-align: center;
+ font-size: 75%;
+}
+
+div.footer a {
+ color: #ffffff;
+ text-decoration: underline;
+}
+
+div.related {
+ background-color: #133f52;
+ line-height: 30px;
+ color: #ffffff;
+}
+
+div.related a {
+ color: #ffffff;
+}
+
+div.sphinxsidebar {
+}
+
+div.sphinxsidebar h3 {
+ font-family: 'Trebuchet MS', sans-serif;
+ color: #ffffff;
+ font-size: 1.4em;
+ font-weight: normal;
+ margin: 0;
+ padding: 0;
+}
+
+div.sphinxsidebar h3 a {
+ color: #ffffff;
+}
+
+div.sphinxsidebar h4 {
+ font-family: 'Trebuchet MS', sans-serif;
+ color: #ffffff;
+ font-size: 1.3em;
+ font-weight: normal;
+ margin: 5px 0 0 0;
+ padding: 0;
+}
+
+div.sphinxsidebar p {
+ color: #ffffff;
+}
+
+div.sphinxsidebar p.topless {
+ margin: 5px 10px 10px 10px;
+}
+
+div.sphinxsidebar ul {
+ margin: 10px;
+ padding: 0;
+ color: #ffffff;
+}
+
+div.sphinxsidebar a {
+ color: #98dbcc;
+}
+
+div.sphinxsidebar input {
+ border: 1px solid #98dbcc;
+ font-family: sans-serif;
+ font-size: 1em;
+}
+
+
+
+/* -- hyperlink styles ------------------------------------------------------
*/
+
+a {
+ color: #355f7c;
+ text-decoration: none;
+}
+
+a:visited {
+ color: #355f7c;
+ text-decoration: none;
+}
+
+a:hover {
+ text-decoration: underline;
+}
+
+
+
+/* -- body styles -----------------------------------------------------------
*/
+
+div.body h1,
+div.body h2,
+div.body h3,
+div.body h4,
+div.body h5,
+div.body h6 {
+ font-family: 'Trebuchet MS', sans-serif;
+ background-color: #f2f2f2;
+ font-weight: normal;
+ color: #20435c;
+ border-bottom: 1px solid #ccc;
+ margin: 20px -20px 10px -20px;
+ padding: 3px 0 3px 10px;
+}
+
+div.body h1 { margin-top: 0; font-size: 200%; }
+div.body h2 { font-size: 160%; }
+div.body h3 { font-size: 140%; }
+div.body h4 { font-size: 120%; }
+div.body h5 { font-size: 110%; }
+div.body h6 { font-size: 100%; }
+
+a.headerlink {
+ color: #c60f0f;
+ font-size: 0.8em;
+ padding: 0 4px 0 4px;
+ text-decoration: none;
+}
+
+a.headerlink:hover {
+ background-color: #c60f0f;
+ color: white;
+}
+
+div.body p, div.body dd, div.body li, div.body blockquote {
+ text-align: justify;
+ line-height: 130%;
+}
+
+div.admonition p.admonition-title + p {
+ display: inline;
+}
+
+div.admonition p {
+ margin-bottom: 5px;
+}
+
+div.admonition pre {
+ margin-bottom: 5px;
+}
+
+div.admonition ul, div.admonition ol {
+ margin-bottom: 5px;
+}
+
+div.note {
+ background-color: #eee;
+ border: 1px solid #ccc;
+}
+
+div.seealso {
+ background-color: #ffc;
+ border: 1px solid #ff6;
+}
+
+div.topic {
+ background-color: #eee;
+}
+
+div.warning {
+ background-color: #ffe4e4;
+ border: 1px solid #f66;
+}
+
+p.admonition-title {
+ display: inline;
+}
+
+p.admonition-title:after {
+ content: ":";
+}
+
+pre {
+ padding: 5px;
+ background-color: #eeffcc;
+ color: #333333;
+ line-height: 120%;
+ border: 1px solid #ac9;
+ border-left: none;
+ border-right: none;
+}
+
+code {
+ background-color: #ecf0f3;
+ padding: 0 1px 0 1px;
+ font-size: 0.95em;
+}
+
+th {
+ background-color: #ede;
+}
+
+.warning code {
+ background: #efc2c2;
+}
+
+.note code {
+ background: #d6d6d6;
+}
+
+.viewcode-back {
+ font-family: sans-serif;
+}
+
+div.viewcode-block:target {
+ background-color: #f4debf;
+ border-top: 1px solid #ac9;
+ border-bottom: 1px solid #ac9;
+}
+
+div.code-block-caption {
+ color: #efefef;
+ background-color: #1c4e63;
+}
\ No newline at end of file
Modified: chemistry/site/trunk/content/python/docs/_static/comment-bright.png
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_static/comment-bright.png?rev=1806797&r1=1806796&r2=1806797&view=diff
==============================================================================
Binary files - no diff available.
Modified: chemistry/site/trunk/content/python/docs/_static/comment-close.png
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_static/comment-close.png?rev=1806797&r1=1806796&r2=1806797&view=diff
==============================================================================
Binary files - no diff available.
Modified: chemistry/site/trunk/content/python/docs/_static/comment.png
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_static/comment.png?rev=1806797&r1=1806796&r2=1806797&view=diff
==============================================================================
Binary files - no diff available.
Modified: chemistry/site/trunk/content/python/docs/_static/default.css
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_static/default.css?rev=1806797&r1=1806796&r2=1806797&view=diff
==============================================================================
--- chemistry/site/trunk/content/python/docs/_static/default.css (original)
+++ chemistry/site/trunk/content/python/docs/_static/default.css Thu Aug 31
14:19:04 2017
@@ -1,256 +1 @@
-/*
- * default.css_t
- * ~~~~~~~~~~~~~
- *
- * Sphinx stylesheet -- default theme.
- *
- * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
- * :license: BSD, see LICENSE for details.
- *
- */
-
-@import url("basic.css");
-
-/* -- page layout -----------------------------------------------------------
*/
-
-body {
- font-family: sans-serif;
- font-size: 100%;
- background-color: #11303d;
- color: #000;
- margin: 0;
- padding: 0;
-}
-
-div.document {
- background-color: #1c4e63;
-}
-
-div.documentwrapper {
- float: left;
- width: 100%;
-}
-
-div.bodywrapper {
- margin: 0 0 0 230px;
-}
-
-div.body {
- background-color: #ffffff;
- color: #000000;
- padding: 0 20px 30px 20px;
-}
-
-div.footer {
- color: #ffffff;
- width: 100%;
- padding: 9px 0 9px 0;
- text-align: center;
- font-size: 75%;
-}
-
-div.footer a {
- color: #ffffff;
- text-decoration: underline;
-}
-
-div.related {
- background-color: #133f52;
- line-height: 30px;
- color: #ffffff;
-}
-
-div.related a {
- color: #ffffff;
-}
-
-div.sphinxsidebar {
-}
-
-div.sphinxsidebar h3 {
- font-family: 'Trebuchet MS', sans-serif;
- color: #ffffff;
- font-size: 1.4em;
- font-weight: normal;
- margin: 0;
- padding: 0;
-}
-
-div.sphinxsidebar h3 a {
- color: #ffffff;
-}
-
-div.sphinxsidebar h4 {
- font-family: 'Trebuchet MS', sans-serif;
- color: #ffffff;
- font-size: 1.3em;
- font-weight: normal;
- margin: 5px 0 0 0;
- padding: 0;
-}
-
-div.sphinxsidebar p {
- color: #ffffff;
-}
-
-div.sphinxsidebar p.topless {
- margin: 5px 10px 10px 10px;
-}
-
-div.sphinxsidebar ul {
- margin: 10px;
- padding: 0;
- color: #ffffff;
-}
-
-div.sphinxsidebar a {
- color: #98dbcc;
-}
-
-div.sphinxsidebar input {
- border: 1px solid #98dbcc;
- font-family: sans-serif;
- font-size: 1em;
-}
-
-
-
-/* -- hyperlink styles ------------------------------------------------------
*/
-
-a {
- color: #355f7c;
- text-decoration: none;
-}
-
-a:visited {
- color: #355f7c;
- text-decoration: none;
-}
-
-a:hover {
- text-decoration: underline;
-}
-
-
-
-/* -- body styles -----------------------------------------------------------
*/
-
-div.body h1,
-div.body h2,
-div.body h3,
-div.body h4,
-div.body h5,
-div.body h6 {
- font-family: 'Trebuchet MS', sans-serif;
- background-color: #f2f2f2;
- font-weight: normal;
- color: #20435c;
- border-bottom: 1px solid #ccc;
- margin: 20px -20px 10px -20px;
- padding: 3px 0 3px 10px;
-}
-
-div.body h1 { margin-top: 0; font-size: 200%; }
-div.body h2 { font-size: 160%; }
-div.body h3 { font-size: 140%; }
-div.body h4 { font-size: 120%; }
-div.body h5 { font-size: 110%; }
-div.body h6 { font-size: 100%; }
-
-a.headerlink {
- color: #c60f0f;
- font-size: 0.8em;
- padding: 0 4px 0 4px;
- text-decoration: none;
-}
-
-a.headerlink:hover {
- background-color: #c60f0f;
- color: white;
-}
-
-div.body p, div.body dd, div.body li {
- text-align: justify;
- line-height: 130%;
-}
-
-div.admonition p.admonition-title + p {
- display: inline;
-}
-
-div.admonition p {
- margin-bottom: 5px;
-}
-
-div.admonition pre {
- margin-bottom: 5px;
-}
-
-div.admonition ul, div.admonition ol {
- margin-bottom: 5px;
-}
-
-div.note {
- background-color: #eee;
- border: 1px solid #ccc;
-}
-
-div.seealso {
- background-color: #ffc;
- border: 1px solid #ff6;
-}
-
-div.topic {
- background-color: #eee;
-}
-
-div.warning {
- background-color: #ffe4e4;
- border: 1px solid #f66;
-}
-
-p.admonition-title {
- display: inline;
-}
-
-p.admonition-title:after {
- content: ":";
-}
-
-pre {
- padding: 5px;
- background-color: #eeffcc;
- color: #333333;
- line-height: 120%;
- border: 1px solid #ac9;
- border-left: none;
- border-right: none;
-}
-
-tt {
- background-color: #ecf0f3;
- padding: 0 1px 0 1px;
- font-size: 0.95em;
-}
-
-th {
- background-color: #ede;
-}
-
-.warning tt {
- background: #efc2c2;
-}
-
-.note tt {
- background: #d6d6d6;
-}
-
-.viewcode-back {
- font-family: sans-serif;
-}
-
-div.viewcode-block:target {
- background-color: #f4debf;
- border-top: 1px solid #ac9;
- border-bottom: 1px solid #ac9;
-}
\ No newline at end of file
+@import url("classic.css");
Modified: chemistry/site/trunk/content/python/docs/_static/doctools.js
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_static/doctools.js?rev=1806797&r1=1806796&r2=1806797&view=diff
==============================================================================
--- chemistry/site/trunk/content/python/docs/_static/doctools.js (original)
+++ chemistry/site/trunk/content/python/docs/_static/doctools.js Thu Aug 31
14:19:04 2017
@@ -4,7 +4,7 @@
*
* Sphinx JavaScript utilities for all documentation.
*
- * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
@@ -32,7 +32,7 @@ if (!window.console || !console.firebug)
*/
jQuery.urldecode = function(x) {
return decodeURIComponent(x).replace(/\+/g, ' ');
-}
+};
/**
* small helper function to urlencode strings
@@ -62,18 +62,6 @@ jQuery.getQueryParameters = function(s)
};
/**
- * small function to check if an array contains
- * a given item.
- */
-jQuery.contains = function(arr, item) {
- for (var i = 0; i < arr.length; i++) {
- if (arr[i] == item)
- return true;
- }
- return false;
-};
-
-/**
* highlight a given string on a jquery object by wrapping it in
* span elements with the given class name.
*/
@@ -103,6 +91,30 @@ jQuery.fn.highlightText = function(text,
});
};
+/*
+ * backward compatibility for jQuery.browser
+ * This will be supported until firefox bug is fixed.
+ */
+if (!jQuery.browser) {
+ jQuery.uaMatch = function(ua) {
+ ua = ua.toLowerCase();
+
+ var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
+ /(webkit)[ \/]([\w.]+)/.exec(ua) ||
+ /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
+ /(msie) ([\w.]+)/.exec(ua) ||
+ ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)
||
+ [];
+
+ return {
+ browser: match[ 1 ] || "",
+ version: match[ 2 ] || "0"
+ };
+ };
+ jQuery.browser = {};
+ jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true;
+}
+
/**
* Small JavaScript module for the documentation.
*/
@@ -112,6 +124,7 @@ var Documentation = {
this.fixFirefoxAnchorBug();
this.highlightSearchWords();
this.initIndexTable();
+
},
/**
@@ -164,9 +177,10 @@ var Documentation = {
/**
* workaround a firefox stupidity
+ * see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075
*/
fixFirefoxAnchorBug : function() {
- if (document.location.hash && $.browser.mozilla)
+ if (document.location.hash)
window.setTimeout(function() {
document.location.href += '';
}, 10);
@@ -180,6 +194,9 @@ var Documentation = {
var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : [];
if (terms.length) {
var body = $('div.body');
+ if (!body.length) {
+ body = $('body');
+ }
window.setTimeout(function() {
$.each(terms, function() {
body.highlightText(this.toLowerCase(), 'highlighted');
@@ -236,6 +253,29 @@ var Documentation = {
});
var url = parts.join('/');
return path.substring(url.lastIndexOf('/') + 1, path.length - 1);
+ },
+
+ initOnKeyListeners: function() {
+ $(document).keyup(function(event) {
+ var activeElementType = document.activeElement.tagName;
+ // don't navigate when in search box or textarea
+ if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' &&
activeElementType !== 'SELECT') {
+ switch (event.keyCode) {
+ case 37: // left
+ var prevHref = $('link[rel="prev"]').prop('href');
+ if (prevHref) {
+ window.location.href = prevHref;
+ return false;
+ }
+ case 39: // right
+ var nextHref = $('link[rel="next"]').prop('href');
+ if (nextHref) {
+ window.location.href = nextHref;
+ return false;
+ }
+ }
+ }
+ });
}
};
@@ -244,4 +284,4 @@ _ = Documentation.gettext;
$(document).ready(function() {
Documentation.init();
-});
+});
\ No newline at end of file
Modified: chemistry/site/trunk/content/python/docs/_static/down-pressed.png
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_static/down-pressed.png?rev=1806797&r1=1806796&r2=1806797&view=diff
==============================================================================
Binary files - no diff available.
Modified: chemistry/site/trunk/content/python/docs/_static/down.png
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_static/down.png?rev=1806797&r1=1806796&r2=1806797&view=diff
==============================================================================
Binary files - no diff available.
Modified: chemistry/site/trunk/content/python/docs/_static/file.png
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/python/docs/_static/file.png?rev=1806797&r1=1806796&r2=1806797&view=diff
==============================================================================
Binary files - no diff available.