Merge the OMF 6 branch
authorJulien Tribino <julien.tribino@inria.fr>
Thu, 5 Jun 2014 08:16:26 +0000 (10:16 +0200)
committerJulien Tribino <julien.tribino@inria.fr>
Thu, 5 Jun 2014 08:16:26 +0000 (10:16 +0200)
1  2 
src/nepi/resources/omf/application.py
src/nepi/resources/omf/omf_client.py

@@@ -46,20 -48,21 +48,21 @@@ class OMFApplication(OMFResource)
          """ Register the attributes of an OMF application
  
          """
-         appid = Attribute("appid", "Name of the application")
-         path = Attribute("path", "Path of the application")
-         args = Attribute("args", "Argument of the application")
+         command = Attribute("command", "Command to execute")
          env = Attribute("env", "Environnement variable of the application")
+         # For OMF 5:
+         appid = Attribute("appid", "Name of the application")
          stdin = Attribute("stdin", "Input of the application", default = "")
          sources = Attribute("sources", "Sources of the application", 
 -                     flags = Flags.ExecReadOnly)
 +                     flags = Flags.Design)
          sshuser = Attribute("sshUser", "user to connect with ssh", 
 -                     flags = Flags.ExecReadOnly)
 +                     flags = Flags.Design)
          sshkey = Attribute("sshKey", "key to use for ssh", 
 -                     flags = Flags.ExecReadOnly)
 +                     flags = Flags.Design)
          cls._register_attribute(appid)
-         cls._register_attribute(path)
-         cls._register_attribute(args)
+         cls._register_attribute(command)
          cls._register_attribute(env)
          cls._register_attribute(stdin)
          cls._register_attribute(sources)
@@@ -19,7 -19,8 +19,7 @@@
  #         Julien Tribino <julien.tribino@inria.fr>
  
  from nepi.util.logger import Logger
+ from nepi.resources.omf.omf6_parser import OMF6Parser
 -
  try:
      import sleekxmpp
      from sleekxmpp.exceptions import IqError, IqTimeout