Attempting to check out a file fails, because an instance of ZipODFPackage.__setitem__ attempts to create the zip file using global names "path" and "mode", instead of its own instance variables.
Traceback (most recent call last):
File "/usr/bin/odfsvn", line 8, in <module>
load_entry_point('odfsvn==1.0a1', 'console_scripts', 'odfsvn')()
File "build/bdist.linux-i686/egg/odfsvn/scripts/main.py", line 184, in main
File "build/bdist.linux-i686/egg/odfsvn/scripts/main.py", line 85, in ActionCheckout
File "build/bdist.linux-i686/egg/odfsvn/utils.py", line 106, in wrapper
File "build/bdist.linux-i686/egg/odfsvn/svn.py", line 97, in retrieve
File "build/bdist.linux-i686/egg/odfsvn/package.py", line 335, in __setitem__
NameError: global name 'path' is not defined
The patch attached fixes this bug, but not the next one to happen: after quite a bit of network activity, the program just prints "[Errno 2] No such file or directory: ''", and exits.
Is this project even alive? I'm rather puzzled to see such blatant bugs in a 1.x version...
--- odfsvn-1.0a1/odfsvn/package.py-orig 2008-06-11 17:32:16.000000000 -0300
+++ odfsvn-1.0a1/odfsvn/package.py 2008-06-11 17:33:08.000000000 -0300
@@ -332,7 +332,7 @@
assert isinstance(key, str)
if self.zip is None:
- self.zip=zipfile.ZipFile(path, mode)
+ self.zip=zipfile.ZipFile(self.path, self.mode)
file=open(self._tempPath(key), "w")
file.write(value)
Logged In: YES
user_id=1711944
Originator: NO
The project is alive, yes, but it's been some time since a release. The trunk in the project SVN repository has a lot of fixes in it, you might like to try it:
http://code.simplon.biz/svn/odf-svn/odfsvn/trunk/
The current release is not 1.0 as such, it's 1.0 alpha 1 so still classed as a development release. I had nothing to do with the naming of the release and would in hindsight have started at 0.1.
Logged In: YES
user_id=722426
Originator: YES
Do you realize that not having *any* indication that the SVN repository is elsewhere in this project's site makes it rather difficult to find the latest version?
Logged In: YES
user_id=1711944
Originator: NO
Yes, I realise far to well how having no publically advertised code repository does make things too difficult. I was not in control of it's setup so have now moved it to SF.