Package advene :: Package model :: Package core :: Module content :: Class Content
[hide private]
[frames] | no frames]

Class Content

source code

object --+
         |
        Content

A class for content objects.

This class may be deprecated in the future. All attributes and methods have equivalent ones in WithContentMixin, with prefix "content_".

Instance Methods [hide private]
 
__init__(self, owner_element)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
get_model(self, default=None) source code
 
get_as_synced_file(self) source code
 
_get_mimetype(self) source code
 
_set_mimetype(self, mimetype) source code
 
_get_is_textual(self)
This property indicates if this content's data can be handled as text.
source code
 
_get_model(self) source code
 
_set_model(self, model) source code
 
_get_model_id(self)
The id-ref of the model, or None.
source code
 
_get_url(self) source code
 
_set_url(self, url) source code
 
_get_data(self) source code
 
_set_data(self, data) source code
 
_get_parsed(self) source code
 
_set_parsed(self, parsed) source code
 
_get_as_file(self) source code

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

Properties [hide private]
  as_file
  data
  is_textual
This property indicates if this content's data can be handled as text.
  mimetype
  model
  model_id
The id-ref of the model, or None.
  parsed
  url

Inherited from object: __class__

Method Details [hide private]

__init__(self, owner_element)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

_get_mimetype(self)

source code 
Decorators:
  • @autoproperty

_set_mimetype(self, mimetype)

source code 
Decorators:
  • @autoproperty

_get_is_textual(self)

source code 

This property indicates if this content's data can be handled as text.

It uses the mimetypes registered with `advene.model.content.register.register_textual_mimetype`.

Decorators:
  • @autoproperty

_get_model(self)

source code 
Decorators:
  • @autoproperty

_set_model(self, model)

source code 
Decorators:
  • @autoproperty

_get_model_id(self)

source code 

The id-ref of the model, or None.

This is a read-only property giving the id-ref of the resource held by `model`, or None if there is no model.

Note that this property is accessible even if the corresponding model is unreachable.

Decorators:
  • @autoproperty

_get_url(self)

source code 
Decorators:
  • @autoproperty

_set_url(self, url)

source code 
Decorators:
  • @autoproperty

_get_data(self)

source code 
Decorators:
  • @autoproperty

_set_data(self, data)

source code 
Decorators:
  • @autoproperty

_get_parsed(self)

source code 
Decorators:
  • @autoproperty

_set_parsed(self, parsed)

source code 
Decorators:
  • @autoproperty

_get_as_file(self)

source code 
Decorators:
  • @autoproperty

Property Details [hide private]

as_file

Get Method:
_get_as_file(self)

data

Get Method:
_get_data(self)
Set Method:
_set_data(self, data)

is_textual

This property indicates if this content's data can be handled as text.

It uses the mimetypes registered with `advene.model.content.register.register_textual_mimetype`.

Get Method:
_get_is_textual(self) - This property indicates if this content's data can be handled as text.

mimetype

Get Method:
_get_mimetype(self)
Set Method:
_set_mimetype(self, mimetype)

model

Get Method:
_get_model(self)
Set Method:
_set_model(self, model)

model_id

The id-ref of the model, or None.

This is a read-only property giving the id-ref of the resource held by `model`, or None if there is no model.

Note that this property is accessible even if the corresponding model is unreachable.

Get Method:
_get_model_id(self) - The id-ref of the model, or None.

parsed

Get Method:
_get_parsed(self)
Set Method:
_set_parsed(self, parsed)

url

Get Method:
_get_url(self)
Set Method:
_set_url(self, url)