py Documentation - Read the Docs
py Documentation - Read the Docs
py Documentation - Read the Docs
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>py</strong> <strong>Documentation</strong>, Release 1.4.27.dev1<br />
2.3.5 SVN au<strong>the</strong>ntication<br />
Some uncommon functionality can also be provided as extensions, such as SVN au<strong>the</strong>ntication:<br />
.. >>> if not <strong>py</strong>.test.config.option.urlcheck: raise ValueError(’skipchunk’)<br />
>>> auth = <strong>py</strong>.path.SvnAuth(’anonymous’, ’user’, cache_auth=False,<br />
... interactive=False)<br />
>>> wc.auth = auth<br />
>>> wc.update() # this should work<br />
>>> path = wc.ensure(’thisshouldnotexist.txt’)<br />
>>> try:<br />
... path.commit(’testing’)<br />
... except <strong>py</strong>.process.cmdexec.Error, e:<br />
... pass<br />
>>> ’authorization failed’ in str(e)<br />
True<br />
2.4 Known problems / limitations<br />
• The SVN path objects require <strong>the</strong> “svn” command line, <strong>the</strong>re is currently no support for <strong>py</strong>thon bindings. Parsing<br />
<strong>the</strong> svn output can lead to problems, particularly regarding if you have a non-english “locales” setting.<br />
• While <strong>the</strong> path objects basically work on windows, <strong>the</strong>re is no attention yet on making unicode paths work or<br />
deal with <strong>the</strong> famous “8.3” filename issues.<br />
18 Chapter 2. <strong>py</strong>.path