Ejemplo n.º 1
0
   _schema['destroy_parameters']._meta['defvalue'] = {}
   _schema['info_parameters']._meta['defvalue'] = { "vo" : "-vo" }

   _name = "VomsCommand"
   _hidden = 1
   _enable_config = 1

   def __init__( self ):
      super( VomsCommand, self ).__init__()

      self.currentOpts = {}
      self.infoOpts = {}
      self.destroyOpts = {}

for commandSet in [ GridCommand, VomsCommand ]:
   registerCommandSet( commandSet )

# global proxy info cache
_infoCache = {}

class GridProxy ( ICredential ):
   """
   Class for working with Grid proxy
   """

   _schema = ICredential._schema.inherit_copy()
   _schema.datadict[ "voms" ] = SimpleItem( defvalue = "", doc = \
      "Virtual organisation managment system information" )
   _schema.datadict[ "init_opts" ] = SimpleItem( defvalue = "", doc = \
      "String of options to be passed to command for proxy creation" )
   _schema.datadict[ "info_refresh_time" ] = SimpleItem( defvalue = "00:15", \
Ejemplo n.º 2
0
   _schema['init_parameters']._meta['defvalue'] = { "pipe" : "-pipe", "valid" : "-l", \
         "username" : "-principal", "cell" : "-cell" }
   _schema['destroy_parameters']._meta['defvalue'] = { "cell" : "-cell" }
   
   _name = "AfsCommand"
   _hidden = 1
   _enable_config = 1
   
   def __init__( self ):
      super( AfsCommand, self ).__init__()
      self.currentOpts = {}
      self.infoOpts = {}
      self.destroyOpts = {}
      return

registerCommandSet( AfsCommand )

class AfsToken ( ICredential ):
   """
   Class for working with AFS token
   """

   _schema = ICredential._schema.inherit_copy()
   _schema.datadict[ "cell" ] = SimpleItem( defvalue = "", doc = \
      "AFS cell with which token is used [empty string implies local cell]" )
   _schema.datadict[ "username" ] = SimpleItem( defvalue = "",
      doc = "AFS username with which token is used [defaults to login id]" )
   _name = "AfsToken"
   _hidden = 1
   _enable_config = 1