Package Ganga :: Package GPIDev :: Package Lib :: Package File :: Module File' :: Class File
[hide private]
[frames] | no frames]

Class File

source code

          object --+        
                   |        
   Base.Objects.Node --+    
                       |    
Base.Objects.GangaObject --+
                           |
                          File

This is a Ganga.GPI.File implementation class. Refer to Ganga.GPI.File.__doc__ for documentation.

Nested Classes [hide private]
  _proxyClass
Represent the files, both local and remote and provide an interface to transparently get access to them.

Inherited from Base.Objects.GangaObject: __metaclass__

Instance Methods [hide private]
 
__construct__(self, args) source code
 
__init__(self, name=None, subdir='.')
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__repr__(self)
Get the representation of the file.
source code
 
create(self, outname)
create a file in a local filesystem as 'outname', maintain the original permissions
source code
 
exists(self)
check if the file exists (as specified by 'name')
source code
 
getPathInSandbox(self)
return a relative location of a file in a sandbox: subdir/name
source code
 
isExecutable(self)
return true if a file is create()'ed with executable permissions, i.e.
source code

Inherited from Base.Objects.GangaObject: __deepcopy__, __getstate__, __setstate__, _attribute_filter__set__, _auto__init__, accept, getJobObject

Inherited from Base.Objects.Node: __copy__, __eq__, __ne__, clone, copyFrom, printSummaryTree, printTree

Inherited from Base.Objects.Node (private): _getParent, _getRoot, _setParent

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from Base.Objects.GangaObject (private): _declared_property

Class Variables [hide private]
  _category = 'files'
  _name = 'File'
  _schema = <Ganga.GPIDev.Schema.Schema.Schema instance at 0x19d...
  executable = <Ganga.GPIDev.Base.Objects.Descriptor object at 0...
  name = <Ganga.GPIDev.Base.Objects.Descriptor object at 0x1aa4550>
  subdir = <Ganga.GPIDev.Base.Objects.Descriptor object at 0x1aa...

Inherited from Base.Objects.Node (private): _index_cache, _parent

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__construct__(self, args)

source code 
Overrides: Base.Objects.GangaObject.__construct__

__init__(self, name=None, subdir='.')
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

Get the representation of the file. Since the a SimpleStreamer uses __repr__ for persistency it is important to return a valid python expression which fully reconstructs the object.

Overrides: object.__repr__

isExecutable(self)

source code 

return true if a file is create()'ed with executable permissions, i.e. the permissions of the existing 'source' file are checked


Class Variable Details [hide private]

_schema

Value:
<Ganga.GPIDev.Schema.Schema.Schema instance at 0x19dcfc8>

executable

Value:
<Ganga.GPIDev.Base.Objects.Descriptor object at 0x1aa4510>

subdir

Value:
<Ganga.GPIDev.Base.Objects.Descriptor object at 0x1aa45d0>