[gnome-schedule] Cleanup Run task funtion, update copyright, note about vim modeline.



commit 3ee383f9e0db1411259b0be0a128fc6e64dd5616
Author: Gaute Hope <eg gaute vetsj com>
Date:   Thu Mar 11 09:39:01 2010 +0100

    Cleanup Run task funtion, update copyright, note about vim modeline.

 HACKING           |    1 +
 src/mainWindow.py |   13 +++++++------
 src/xwrapper.py   |    2 +-
 3 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/HACKING b/HACKING
index 8a4041e..b87e823 100644
--- a/HACKING
+++ b/HACKING
@@ -12,6 +12,7 @@ maintainers.
 
 Coding style:
     Use expanded tabs, 4 of them, on all *.py files.
+    Vim modeline suggestion: # vim: set noai sw=4 tw=4 ts=4:
 
 Patches:
     Please send patches using 'git format-patch'
diff --git a/src/mainWindow.py b/src/mainWindow.py
index e545f4f..528a430 100644
--- a/src/mainWindow.py
+++ b/src/mainWindow.py
@@ -1,6 +1,6 @@
 # mainWindow.py - mainWindow of the crontab configuration tool
+# Copyright (C) 2004 - 2010  Gaute Hope <eg at gaute dot vetsj dot com>
 # Copyright (C) 2004, 2005   Philip Van Hoof <me at pvanhoof dot be>
-# Copyright (C) 2004 - 2009  Gaute Hope <eg at gaute dot vetsj dot com>
 # Copyright (C) 2004, 2005   Kristof Vansant <de_lupus at pandora dot be>
 #
 # This program is free software; you can redistribute it and/or modify
@@ -705,15 +705,14 @@ class main:
             tmp.flush ()
             self.temp_files.append ((tmp, path))
 
-
-            execute = self.user_shell + " " + path
-
             if self.root == 1:
                 if self.user != "root":
                     execute = "su " + self.user + " -c \"" + self.user_shell + " " + path
                     os.chown (path, self.uid, self.gid)
-            os.chmod (path, stat.S_IEXEC | stat.S_IREAD)
+            else:
+                execute = self.user_shell + " " + path
 
+            os.chmod (path, stat.S_IEXEC | stat.S_IREAD)
 
             gnome.execute_terminal_shell (self.user_home_dir, execute)
 
@@ -731,7 +730,7 @@ class main:
         dlg.set_title (_("About Gnome Schedule"))
         dlg.set_name (_("Gnome Schedule"))
         dlg.set_version (config.getVersion())
-        dlg.set_copyright (_("Copyright (c) %(year)s %(name)s.") % ({ 'year' : "2004-2009", 'name' : "Gaute Hope"}))
+        dlg.set_copyright (_("Copyright (c) %(year)s %(name)s.") % ({ 'year' : "2004-2010", 'name' : "Gaute Hope"}))
         #dlg.set_comments ()
         #dlg.set_license ()
         dlg.set_website ("http://gnome-schedule.sourceforge.net";)
@@ -788,3 +787,5 @@ class main:
             gtk.main_quit ()
         return True
 
+# vim: set noai sw=4 tw=4 ts=4:
+
diff --git a/src/xwrapper.py b/src/xwrapper.py
index 8cac9d8..6ba0351 100755
--- a/src/xwrapper.py
+++ b/src/xwrapper.py
@@ -1,5 +1,5 @@
 # xwrapper.py - wrapper around X applications
-# Copyright (C) 2004 - 2009  Gaute Hope <eg at gaute dot vetsj dot com>
+# Copyright (C) 2004 - 2010  Gaute Hope <eg at gaute dot vetsj dot com>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]