Package u1rest :: Package files :: Module resources :: Class Resource
[hide private]
[frames] | no frames]

Class Resource

source code

object --+
         |
        Resource
Known Subclasses:

Base class for all resources providing common methods.

All resources are dynamically loaded from the JSON returned in a Resource Response. This is done because all File Storage resource have a resource_path property which identifies the resource.

Instance Methods [hide private]
 
__init__(self, res_json=None, user=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
load(self)
Reload the resource.
source code
 
delete(self)
Delete the resource.
source code

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

Class Variables [hide private]
  resource_path = None
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, res_json=None, user=None)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)