Skip to content

Commit

Permalink
Whitespace cleanup, modify setup.cfg to remove dev tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jpotts committed Jan 19, 2011
1 parent 386fc51 commit 968b09c
Show file tree
Hide file tree
Showing 9 changed files with 113 additions and 9 deletions.
68 changes: 68 additions & 0 deletions KEYS
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
This file contains the PGP keys of various developers.

Users: pgp < KEYS
gpg --import KEYS
Developers:
gpg --list-key <your email> and append it to this file.
gpg -a --export <your email> and append it to this file.

(gpg --list-key <your email>
&& gpg --armor --export <your email>) >> this file.


pub 4096R/99E3E187 2010-11-23
uid Jeff Potts (CODE SIGNING KEY) <[email protected]>
sub 4096R/2A6CD560 2010-11-23

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.11 (Darwin)

mQINBEzsQscBEACoDu6kafUBujuic9JtpGXQdVA4HKRvSAANbgAX8o4fU4wr2c97
l/OD9SlZMzIkJNBYkQ+NoSIJKTYTJ2hJd7qFAcx0zEwFMhwRVvH/2sZ8xFKaZWjJ
s26hgnNNPG0tKeV19jmIncFzSgRZsIL7UOcWGrcjhczgRiWIGPfkSjtWSvlQ/mnI
1dIsw0/IeiN+7ieIoQ7p+Z7rV3/K+aGtchkqoXHQ8tUB+DsmfJNBRONH/Ht/EzeC
Ih2mAfaK+r5jnA6YhbUt4FRl4AlvMPid48o7UuCJQK05PJWewVDBnw3XoVFyVCXf
y8jmTJEc1W/EcQiY+lr/gYDM+P08GVgz8ItllvCTCVAe6WihExw6+ESN+ygEtdRQ
MpPfzY9XUkqr9clzyxFAEzUpfKmd/RSLbzbRCfVK/d8JMwoSmj1guTgt+eeeNNNE
b9sBZOYm/JdPq539A4tLoWHLMBRvALuuc6Wd6iOka/Kh+Y8Pg/rLrKBHXtVP4kqZ
jdXasVgsuxdrZW7h9jAAKiX5tAoJlHZuTanwzrQwPCCA32dKS8r0lbIKAZTMUPX9
sgSi0hcjy81wKtoLzgOzouQ9i+i+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Qignq8YvI4HRURRfqiBBVKdHdC/LS
HCP+sQyt7Xv8zPH0vpjDYiG0gqyAN1dyqMDRRxQEq4VVpqy9iu3vyobu+21nCThQ
5qe9Jd5IWKO/NBT2vLXZvfDGUmEX8wq/IyQRV/oDR9fd1oz5rj8dcw6nNnRX3eAm
osX3n9cWHgCIkMOS+NbH0XS1bBTHddSVJogisVBuVC+tXwR3XU0YmegELx3TJ7QA
KGHdnl8nHylVQIVfHSIW
=e5dc
-----END PGP PUBLIC KEY BLOCK-----
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
#

[egg_info]
tag_build = dev
tag_build =
2 changes: 1 addition & 1 deletion src/cmislib.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: cmislib
Version: 0.4dev
Version: 0.4
Summary: Apache Chemistry (Incubating) CMIS client library for Python
Home-page: http://incubator.apache.org/chemistry/
Author: Apache Chemistry Project
Expand Down
34 changes: 34 additions & 0 deletions src/cmislib.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
KEYS
LICENSE.txt
MANIFEST.in
NOTICE.txt
Expand Down Expand Up @@ -32,6 +33,38 @@ src/data/types.chemistry.xml
src/data/types.filenet.xml
src/data/types.xml
src/data/workingCopy.xml
src/doc/build/about.html
src/doc/build/code.html
src/doc/build/devguide.html
src/doc/build/docs.html
src/doc/build/examples.html
src/doc/build/genindex.html
src/doc/build/index.html
src/doc/build/install.html
src/doc/build/modindex.html
src/doc/build/objects.inv
src/doc/build/sample-data.html
src/doc/build/search.html
src/doc/build/searchindex.js
src/doc/build/tests.html
src/doc/build/_sources/about.txt
src/doc/build/_sources/code.txt
src/doc/build/_sources/devguide.txt
src/doc/build/_sources/docs.txt
src/doc/build/_sources/examples.txt
src/doc/build/_sources/index.txt
src/doc/build/_sources/install.txt
src/doc/build/_sources/sample-data.txt
src/doc/build/_sources/tests.txt
src/doc/build/_static/basic.css
src/doc/build/_static/default.css
src/doc/build/_static/doctools.js
src/doc/build/_static/file.png
src/doc/build/_static/jquery.js
src/doc/build/_static/minus.png
src/doc/build/_static/plus.png
src/doc/build/_static/pygments.css
src/doc/build/_static/searchtools.js
src/doc/src/Makefile
src/doc/src/about.rst
src/doc/src/code.rst
Expand All @@ -42,6 +75,7 @@ src/doc/src/examples.rst
src/doc/src/index.rst
src/doc/src/install.rst
src/doc/src/make.bat
src/doc/src/run-sphinx.py
src/doc/src/sample-data.rst
src/doc/src/tests.rst
src/doc/src/.doctrees/about.doctree
Expand Down
1 change: 1 addition & 0 deletions src/cmislib/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# limitations under the License.
#


class CmisException(Exception):

"""
Expand Down
1 change: 0 additions & 1 deletion src/cmislib/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ def _processCommonErrors(self, error):
See CMIS specification document 3.2.4.1 Common CMIS Exceptions
"""


if error.status == 401:
raise PermissionDeniedException(error.status, error.url)
elif error.status == 400:
Expand Down
10 changes: 6 additions & 4 deletions src/cmislib/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,24 @@ def http_error_default(self, req, fp, code, msg, headers):
result.status = code
return result


class ContextualBasicAuthHandler(HTTPBasicAuthHandler):

"""
Handles 401 errors without recursing indefinitely. The recursing
behaviour has been introduced in Python 2.6.5 to handle 401 redirects
used by some architectures of authentication.
"""

def __init__(self, password_mgr):
HTTPBasicAuthHandler.__init__(self, password_mgr)
self.authContext = set([])

def http_error_401(self, req, fp, code, msg, headers):
"""Override the default autoretry behaviour"""
url = req.get_full_url()
hdrs = req.header_items()
hdrs = ', '.join(['%s: %s' % (key, value)
hdrs = ', '.join(['%s: %s' % (key, value)
for key, value in sorted(hdrs)])
context = (url, hdrs)
if context in self.authContext:
Expand All @@ -88,6 +89,7 @@ def http_error_401(self, req, fp, code, msg, headers):
return self.http_error_auth_reqed('www-authenticate',
url, req, headers)


class RESTService(object):

"""
Expand Down
2 changes: 1 addition & 1 deletion src/doc/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
# The short X.Y version.
version = '0.4'
# The full version, including alpha/beta/rc tags.
release = '0.4dev'
release = '0.4'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion src/tests/cmislibtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def testGetObjectByPath(self):

# create a test doc
doc = subFolder.createDocument(docName)
searchDocPath = subFolderPath + '/' + docName # TODO use proper path segment
searchDocPath = subFolderPath + '/' + docName # TODO use proper path segment
searchDoc = self._repo.getObjectByPath(searchDocPath)
self.assertEquals(doc.getObjectId(), searchDoc.getObjectId())

Expand Down

0 comments on commit 968b09c

Please sign in to comment.