gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r28241 - gnunet-planetlab/gplmt/gplmt


From: gnunet
Subject: [GNUnet-SVN] r28241 - gnunet-planetlab/gplmt/gplmt
Date: Mon, 22 Jul 2013 15:49:32 +0200

Author: wachs
Date: 2013-07-22 15:49:32 +0200 (Mon, 22 Jul 2013)
New Revision: 28241

Modified:
   gnunet-planetlab/gplmt/gplmt/Configuration.py
   gnunet-planetlab/gplmt/gplmt/Nodes.py
   gnunet-planetlab/gplmt/gplmt/Notifications.py
   gnunet-planetlab/gplmt/gplmt/SCP.py
   gnunet-planetlab/gplmt/gplmt/Targets.py
   gnunet-planetlab/gplmt/gplmt/Tasks.py
   gnunet-planetlab/gplmt/gplmt/Util.py
Log:
adding a main function check


Modified: gnunet-planetlab/gplmt/gplmt/Configuration.py
===================================================================
--- gnunet-planetlab/gplmt/gplmt/Configuration.py       2013-07-22 13:28:32 UTC 
(rev 28240)
+++ gnunet-planetlab/gplmt/gplmt/Configuration.py       2013-07-22 13:49:32 UTC 
(rev 28241)
@@ -212,7 +212,8 @@
                 pass  
         except ConfigParser.NoSectionError:
             pass           
-        
-        
         return True
         
+if __name__ == "__main__":
+    print "Nothing to do here!"
+    sys.exit(1)
\ No newline at end of file

Modified: gnunet-planetlab/gplmt/gplmt/Nodes.py
===================================================================
--- gnunet-planetlab/gplmt/gplmt/Nodes.py       2013-07-22 13:28:32 UTC (rev 
28240)
+++ gnunet-planetlab/gplmt/gplmt/Nodes.py       2013-07-22 13:49:32 UTC (rev 
28241)
@@ -162,3 +162,7 @@
             self.node_results.append(n)
         self.gplmt_logger.log ("Planetlab API returned " + 
str(len(self.node_results)) + " node_results")     
         return True
+
+if __name__ == "__main__":
+    print "Nothing to do here!"
+    sys.exit(1)
\ No newline at end of file

Modified: gnunet-planetlab/gplmt/gplmt/Notifications.py
===================================================================
--- gnunet-planetlab/gplmt/gplmt/Notifications.py       2013-07-22 13:28:32 UTC 
(rev 28240)
+++ gnunet-planetlab/gplmt/gplmt/Notifications.py       2013-07-22 13:49:32 UTC 
(rev 28241)
@@ -266,4 +266,8 @@
         elif (result == Tasklist.Taskresult.src_file_not_found):
             print node.hostname + " : Task '" +  task.name + "' failed : 
source file not found: " + message
         else:
-            print node.hostname + " : Task '" +  task.name + "' completed with 
failure: " + message   
+            print node.hostname + " : Task '" +  task.name + "' completed with 
failure: " + message
+
+if __name__ == "__main__":
+    print "Nothing to do here!"
+    sys.exit(1)

Modified: gnunet-planetlab/gplmt/gplmt/SCP.py
===================================================================
--- gnunet-planetlab/gplmt/gplmt/SCP.py 2013-07-22 13:28:32 UTC (rev 28240)
+++ gnunet-planetlab/gplmt/gplmt/SCP.py 2013-07-22 13:49:32 UTC (rev 28241)
@@ -21,6 +21,7 @@
 """
 
 import os
+import sys
 from socket import timeout as SocketTimeout
 
 class SCPClient(object):
@@ -393,3 +394,7 @@
 class SCPException(Exception):
     """SCP exception class"""
     pass
+
+if __name__ == "__main__":
+    print "Nothing to do here!"
+    sys.exit(1)

Modified: gnunet-planetlab/gplmt/gplmt/Targets.py
===================================================================
--- gnunet-planetlab/gplmt/gplmt/Targets.py     2013-07-22 13:28:32 UTC (rev 
28240)
+++ gnunet-planetlab/gplmt/gplmt/Targets.py     2013-07-22 13:49:32 UTC (rev 
28241)
@@ -67,4 +67,8 @@
         elif (str.lower(source_str) == str (Target (Target.planetlab))):
             return Target (Target.planetlab)
         else:
-            return Target (Target.undefined)     
\ No newline at end of file
+            return Target (Target.undefined) 
+
+if __name__ == "__main__":
+    print "Targets"
+    sys.exit(0)   
\ No newline at end of file

Modified: gnunet-planetlab/gplmt/gplmt/Tasks.py
===================================================================
--- gnunet-planetlab/gplmt/gplmt/Tasks.py       2013-07-22 13:28:32 UTC (rev 
28240)
+++ gnunet-planetlab/gplmt/gplmt/Tasks.py       2013-07-22 13:49:32 UTC (rev 
28241)
@@ -352,3 +352,7 @@
             return item
         else:
             return None
+        
+if __name__ == "__main__":
+    print "Nothing to do here!"
+    sys.exit(1)

Modified: gnunet-planetlab/gplmt/gplmt/Util.py
===================================================================
--- gnunet-planetlab/gplmt/gplmt/Util.py        2013-07-22 13:28:32 UTC (rev 
28240)
+++ gnunet-planetlab/gplmt/gplmt/Util.py        2013-07-22 13:49:32 UTC (rev 
28241)
@@ -22,6 +22,7 @@
 #
 # Utilities
 import os
+import sys
 
 def handle_filename (f): 
     f = os.path.expanduser(f)         
@@ -57,4 +58,8 @@
     def log (self, message):
         global main
         if (True == self.verbose):
-            print (message)
\ No newline at end of file
+            print (message)
+            
+if __name__ == "__main__":
+    print "Nothing to do here!"
+    sys.exit(1)
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]