* src/docgen/KwordDoc.py: don't us getuid in Windows

* src/plugins/NarrativeWeb.py: don't us getuid in Windows

svn: r7728
This commit is contained in:
Brian Matherly 2006-11-29 04:23:20 +00:00
parent b430170293
commit 092489b862
3 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,7 @@
2006-11-28 Brian Matherly <brian@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py: fix path for bsddb env in Windows.
* src/docgen/KwordDoc.py: don't us getuid in Windows
* src/plugins/NarrativeWeb.py: don't us getuid in Windows
2006-11-28 Alex Roitman <shura@gramps-project.org>
* src/plugins/MediaManager.py (get_rel_path): Correctly work out

View File

@ -265,16 +265,18 @@ class KwordDoc(BaseDoc.BaseDoc):
tarinfo = tarfile.TarInfo('documentinfo.xml')
tarinfo.size = len(self.m.getvalue())
tarinfo.mtime = self.mtime
tarinfo.uid = os.getuid()
tarinfo.gid = os.getgid()
if os.sys.platform != "win32":
tarinfo.uid = os.getuid()
tarinfo.gid = os.getgid()
self.m.seek(0)
archive.addfile(tarinfo,self.m)
tarinfo = tarfile.TarInfo('maindoc.xml')
tarinfo.size = len(self.f.getvalue())
tarinfo.mtime = self.mtime
tarinfo.uid = os.getuid()
tarinfo.gid = os.getgid()
if os.sys.platform != "win32":
tarinfo.uid = os.getuid()
tarinfo.gid = os.getgid()
self.f.seek(0)
archive.addfile(tarinfo,self.f)

View File

@ -222,8 +222,9 @@ class BasePage:
tarinfo = tarfile.TarInfo(self.cur_name)
tarinfo.size = len(self.string_io.getvalue())
tarinfo.mtime = time.time()
tarinfo.uid = os.getuid()
tarinfo.gid = os.getgid()
if os.sys.platform != "win32":
tarinfo.uid = os.getuid()
tarinfo.gid = os.getgid()
self.string_io.seek(0)
self.archive.addfile(tarinfo,self.string_io)
of.close()