diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index fdf454874..da7b086e9 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,5 +1,7 @@ 2006-11-28 Brian Matherly * 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 * src/plugins/MediaManager.py (get_rel_path): Correctly work out diff --git a/gramps2/src/docgen/KwordDoc.py b/gramps2/src/docgen/KwordDoc.py index 9f94768d5..8b20bacc9 100644 --- a/gramps2/src/docgen/KwordDoc.py +++ b/gramps2/src/docgen/KwordDoc.py @@ -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) diff --git a/gramps2/src/plugins/NarrativeWeb.py b/gramps2/src/plugins/NarrativeWeb.py index f7ba2da75..e79059011 100644 --- a/gramps2/src/plugins/NarrativeWeb.py +++ b/gramps2/src/plugins/NarrativeWeb.py @@ -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()