changeset 4:927dfc9d1f8a v0.2 tip

Adding license and making the command line switch work
author Walter Cruz <walter.php@gmail.com>
date Mon, 03 Mar 2008 11:28:54 -0300
parents c047cd63d175
children
files nose_notify/build/lib/nose_notify/nose_notify.py nose_notify/dist/nose_notify-0.2dev-py2.5.egg nose_notify/nose_notify.egg-info/SOURCES.txt nose_notify/nose_notify/nose_notify.py
diffstat 4 files changed, 26 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/nose_notify/build/lib/nose_notify/nose_notify.py	Fri Feb 29 18:57:44 2008 -0300
+++ b/nose_notify/build/lib/nose_notify/nose_notify.py	Mon Mar 03 11:28:54 2008 -0300
@@ -76,16 +76,15 @@
 
     def startTest(self, test):
         pass
-        #self._buf.write(test.shortDescription() or str(test))
         
     def stopTest(self, test):
         pass
-        #self._buf.write(' ')
 
     def configure(self, options, conf):
         if options.with_notify:
             self.enabled = True
+        return
 
     def options(self, parser, env):
         Plugin.options(self, parser, env)
-        parser.add_option("--with-notify",dest='with_notify',default=False)
\ No newline at end of file
+        parser.add_option("--with-notify", action='store_true', dest='with_notify', default = False, help= 'Use gnome notify' )
\ No newline at end of file
Binary file nose_notify/dist/nose_notify-0.2dev-py2.5.egg has changed
--- a/nose_notify/nose_notify.egg-info/SOURCES.txt	Fri Feb 29 18:57:44 2008 -0300
+++ b/nose_notify/nose_notify.egg-info/SOURCES.txt	Mon Mar 03 11:28:54 2008 -0300
@@ -9,4 +9,4 @@
 nose_notify.egg-info/entry_points.txt
 nose_notify.egg-info/paster_plugins.txt
 nose_notify.egg-info/top_level.txt
-nose_notify.egg-info/zip-safe
+nose_notify.egg-info/zip-safe
\ No newline at end of file
--- a/nose_notify/nose_notify/nose_notify.py	Fri Feb 29 18:57:44 2008 -0300
+++ b/nose_notify/nose_notify/nose_notify.py	Mon Mar 03 11:28:54 2008 -0300
@@ -1,3 +1,24 @@
+#  Copyright (C) 2008 by Walter Cruz
+#  walter.php@gmail.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
+#  the Free Software Foundation; either version 2 of the License, or
+#  (at your option) any later version.
+#
+#  This program is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License
+#  along with this program; if not, write to the
+#  Free Software Foundation, Inc.,
+#  59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+#
+# Public License can be found at http://www.gnu.org/copyleft/gpl.html
+
+
 import sys
 from nose.plugins.base import Plugin
 
@@ -76,16 +97,15 @@
 
     def startTest(self, test):
         pass
-        #self._buf.write(test.shortDescription() or str(test))
         
     def stopTest(self, test):
         pass
-        #self._buf.write(' ')
 
     def configure(self, options, conf):
         if options.with_notify:
             self.enabled = True
+        return
 
     def options(self, parser, env):
         Plugin.options(self, parser, env)
-        parser.add_option("--with-notify",dest='with_notify',default=False)
\ No newline at end of file
+        parser.add_option("--with-notify", action='store_true', dest='with_notify', default = False, help= 'Use gnome notify' )
\ No newline at end of file