Data management classes

class core.data.Data(**kwargs)[source]

Bases: object

exists()[source]
get_documentation()[source]
is_same_data(other)[source]
move(new_path)[source]
read()[source]
rename(new)[source]
save()[source]
code
content
default_file_name = 'filename.ext'
default_name = 'Data'
extension = 'ext'
filename[source]
icon = 'Crystal_Clear_app_kcmdf.png'
mimetype = None
name[source]
pattern = '*.ext'
class core.data.DataFactory(name, description='', editors=None, includes=None, **kargs)[source]

Bases: openalea.core.node.AbstractFactory

Data representation as factory

clean_files()[source]

Remove files depending of factory

get_pkg_data()[source]

Return the associated PackageData object

get_writer()[source]

Return the writer class

instantiate(call_stack=[])[source]

Return a node instance

Parameters:call_stack -- the list of NodeFactory id already in call stack (in order to avoid infinite recursion)
instantiate_widget(node=None, parent=None, edit=False, autonomous=False)[source]

Return the corresponding widget initialized with node

is_data()[source]
is_valid()[source]

Return True if the factory has associated data. Else raise an exception

class core.data.DataNode(packagedata, editors=None, includes=[])[source]

Bases: openalea.core.node.Node

Node representing a Data

changed(path)[source]

Call listeners

monitor_file(filename)[source]

Enable file monitoring

to_script()[source]
class core.data.PackageData(pkg_name, filename, package=None)[source]

Bases: object

String representing a package data

class core.data.PyDataFactoryWriter(factory)[source]

Bases: object

DataFactory python Writer

datafactory_template = '\n$NAME = DataFactory(name=$PNAME,\n description=$DESCRIPTION,\n editors=$EDITORS,\n includes=$INCLUDES,\n )\n'
class core.data.PythonFile(**kwargs)[source]

Bases: core.data.Data

get_documentation()[source]
default_file_name = 'script.py'
default_name = 'Python'
extension = 'py'
icon = ':/images/resources/Python-logo.png'
mimetype = 'text/x-python'
pattern = '*.py'

Previous topic

<no title>

Next topic

<no title>

This Page