Language for Commands description

Objects used in catalogs

These objects are the bricks of the code_aster language of commands. The objects used in the description of commands are exported/wrapped to ensure backward compatibility with the previous versions.

For example, the catalogs are using BLOC and FACT instead of Bloc and FactorKeyword that are the Syntax Objects internally used.

class code_aster.Cata.Language.Syntax.PROC_ETAPE(curDict)[source]

Bases: Procedure

class code_aster.Cata.Language.Syntax.Translation[source]

Bases: object

Class to dynamically assign a translation function.

The package Cata must stay independent. So the translation function will be defined by code_aster or by AsterStudy.

__init__()[source]
set_translator(translator)[source]

Define the translator function.

Parameters:

translator (function) – Function returning the translated string.

__call__(arg)[source]

Return the translated string

__getstate__()[source]

Does not support pickling.

__setstate__(dummy)[source]

Does not support pickling.