data

data API reference

Created on Nov. 12, 2012

@author: O. Doppelt @author: E. Legros @author: H. Menager @author: B. Neron @author: O. Sallou @license: GPLv3

class mobyle.common.data.AbstractData(doc=None, gen_skel=True, gen_auth_types=True, validate=True, lang='en', fallback_lang='en', schema_2_restore=None)[source]

Abstract super class for all kinds of data

expr_value()[source]

Get the value used for evaluated expressions (precond, ctrl, format, etc.)

class mobyle.common.data.ListData(doc=None, gen_skel=True, gen_auth_types=True, validate=True, lang='en', fallback_lang='en', schema_2_restore=None)[source]

A data formed by a list of data sharing the same type/format

expr_value()[source]

Get the value used for evaluated expressions (precond, ctrl, format, etc.) i.e. the list of its elements expr_values.

class mobyle.common.data.RefData(doc=None, gen_skel=True, gen_auth_types=True, validate=True, lang='en', fallback_lang='en', schema_2_restore=None)[source]

A data whose value is stored on the file system on one or more files

clean()[source]

Clean “text” data from Windows(TM) encoding

expr_value()[source]

Get the value used for evaluated expressions (precond, ctrl, format, etc.) i.e. the list of file names.

class mobyle.common.data.SimpleData(doc=None, gen_skel=True, gen_auth_types=True, validate=True, lang='en', fallback_lang='en', schema_2_restore=None)[source]

A data which has a simple type

class mobyle.common.data.StructData(doc=None, gen_skel=True, gen_auth_types=True, validate=True, lang='en', fallback_lang='en', schema_2_restore=None)[source]

A data formed by a list properties referencing different data

expr_value()[source]

Get the value used for evaluated expressions (precond, ctrl, format, etc.) i.e. the dictionary of properties with their expr_values.

class mobyle.common.data.ValueData(doc=None, gen_skel=True, gen_auth_types=True, validate=True, lang='en', fallback_lang='en', schema_2_restore=None)[source]

A data whose value is stored directly in the object

mobyle.common.data.safe_file_name(file_name, reserved=[])[source]

return a file name which will not cause any potential basic security issue for job execution or collide with “reserved” file names