* 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:
parent
b430170293
commit
092489b862
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user