Package advene :: Package model :: Module resources :: Class ResourceData
[hide private]
[frames] | no frames]

Class ResourceData

source code

         object --+        
                  |        
  viewable.Viewable --+    
                      |    
??.ViewableWithClass-19 --+
                          |
                         ResourceData

Class accessing a resource data (file).

FIXME: should fully implement advene.model.content.Content API

Nested Classes [hide private]
  __metaclass__
Metaclass automatically defining properties.
Instance Methods [hide private]
 
__init__(self, package, resourcepath, parent=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
getId(self) source code
 
getData(self) source code
 
setData(self, data) source code
 
getMimetype(self) source code
 
getModel(self) source code
 
getUri(self)
Return the URI of the element.
source code
 
getStream(self) source code
 
getDataBase64(self) source code

Inherited from unreachable.ViewableWithClass: getViewableType

Inherited from unreachable.ViewableWithClass (private): _get_viewable_class

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

    Inherited from viewable.Viewable
 
_find_named_view(self, view_id, context) source code
 
delDefaultView(self) source code
 
findDefaultView(self) source code
 
getDefaultView(self) source code
 
getValidViews(self)
Returns the ids of views from the root package which are valid for this object.
source code
 
setDefaultView(self, value) source code
 
view(self, view_id=None, context=None)
Apply the specified view (or the best appliable view, cf findDefaultView) on the object, with optional parameters given in dico.
source code
Static Methods [hide private]

Inherited from unreachable.ViewableWithClass: getViewableClass, getViewableTypeGetterName

    Inherited from viewable.Viewable
 
getAllClasses()
Return all the declared viewable classes
source code
 
withClass(viewable_class, viewable_type_getter_name=None)
Make or retrieve (if already created) a subclass of Viewable with the corresponding viewable_class
source code
Properties [hide private]
  data
  dataBase64
  id
  mimetype
  model
  stream
  uri
Return the URI of the element.

Inherited from unreachable.ViewableWithClass: viewableClass, viewableType

Inherited from object: __class__

    Inherited from viewable.Viewable
  defaultView
  validViews
Returns the ids of views from the root package which are valid for this object.
Method Details [hide private]

__init__(self, package, resourcepath, parent=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

Property Details [hide private]

data

Get Method:
unreachable.getData(self)
Set Method:
unreachable.setData(self, data)

dataBase64

Get Method:
unreachable.getDataBase64(self)

id

Get Method:
unreachable.getId(self)

mimetype

Get Method:
unreachable.getMimetype(self)

model

Get Method:
unreachable.getModel(self)

stream

Get Method:
unreachable.getStream(self)

uri

Return the URI of the element.

Get Method:
unreachable.getUri(self) - Return the URI of the element.