Package comodit_client :: Package api :: Module application :: Class ApplicationFile

Class ApplicationFile


Application's file resource. This resource represents a file of the operating system. This is a special application resource: it is also a ComodIT entity with an associated collection. Rules when dealing with ComodIT entities should therefore be followed.


See Also: Entity

Instance Methods

Inherited from files.FileEntity: get_content, read_content, set_content

Inherited from entity.Entity: __init__, create, delete, dump, load, refresh, rename, show, update

Inherited from util.json_wrapper.JsonWrapper: dump_json, get_json, get_real_json, load_json, print_json, set_json

Inherited from object: __long__, __native__, __nonzero__, __unicode__, next

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

Properties
string owner
File's owner name.
string group
File's group name.
string mode
File mode (in the form of 3 or 4 octal digits).
string file_path
File's absolute path.
File template
File's template.

Inherited from files.FileEntity: content_url

Inherited from entity.Entity: client, description, identifier, label, name, url, uuid

Inherited from object: __class__

Property Details

owner

File's owner name.

Get Method:
unreachable.owner(self) - File's owner name.
Set Method:
unreachable.owner(self, owner) - Sets file's owner name.
Type:
string

group

File's group name.

Get Method:
unreachable.group(self) - File's group name.
Type:
string

mode

File mode (in the form of 3 or 4 octal digits).

Get Method:
unreachable.mode(self) - File mode (in the form of 3 or 4 octal digits).
Type:
string

file_path

File's absolute path.

Get Method:
unreachable.file_path(self) - File's absolute path.
Type:
string

template

File's template. Note that this template is not associated to any collection.

Get Method:
unreachable.template(self) - File's template.
Set Method:
unreachable.template(self, template) - Sets file's template.
Type:
File