]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
pep8
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Thu, 16 Jun 2016 14:30:43 +0000 (16:30 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Thu, 16 Jun 2016 14:30:43 +0000 (16:30 +0200)
commands/jobs.py

index 04a238513598757ca1f6a644d5ebb3faef1b7120..7a7fe6a3c95641906d1f5ad2db413b566977b77c 100644 (file)
@@ -43,7 +43,7 @@ parser.add_option('p', 'publish', 'boolean', 'publish',
                     "display the jobs status."),
                   False)
 
-class machine(object):
+class Machine(object):
     '''Class to manage a ssh connection on a machine
     '''
     def __init__(self, name, host, user, port=22, passwd=None, sat_path="salomeTools"):
@@ -98,7 +98,7 @@ class machine(object):
             message = "Warning : trying to ask if the connection to "
             "(host: %s, port: %s, user: %s) is OK whereas there were"
             " no connection request" % \
-            (machine.host, machine.port, machine.user)
+            (self.host, self.port, self.user)
             logger.write( src.printcolors.printcWarning(message))
         return self._connection_successful
 
@@ -209,7 +209,7 @@ class machine(object):
         logger.write("Connection : " + status + "\n\n") 
 
 
-class job(object):
+class Job(object):
     '''Class to manage one job
     '''
     def __init__(self, name, machine, application, distribution,
@@ -548,7 +548,7 @@ class Jobs(object):
         if 'distribution' in job_def:
             distribution = job_def.distribution
             
-        return job(name,
+        return Job(name,
                    machine,
                    application,
                    distribution,
@@ -608,7 +608,7 @@ class Jobs(object):
                             else:
                                 sat_path = machine_def.sat_path
                             
-                            a_machine = machine(
+                            a_machine = Machine(
                                                 machine_def.name,
                                                 host,
                                                 user,