* 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,6 +265,7 @@ class KwordDoc(BaseDoc.BaseDoc):
tarinfo = tarfile.TarInfo('documentinfo.xml')
tarinfo.size = len(self.m.getvalue())
tarinfo.mtime = self.mtime
if os.sys.platform != "win32":
tarinfo.uid = os.getuid()
tarinfo.gid = os.getgid()
self.m.seek(0)
@ -273,6 +274,7 @@ class KwordDoc(BaseDoc.BaseDoc):
tarinfo = tarfile.TarInfo('maindoc.xml')
tarinfo.size = len(self.f.getvalue())
tarinfo.mtime = self.mtime
if os.sys.platform != "win32":
tarinfo.uid = os.getuid()
tarinfo.gid = os.getgid()
self.f.seek(0)

View File

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