A collection of macros available to rowmakers.
NOTE: All macros should return only one single physical python line,
or they will mess up the calculation of what constructs caused errors.
|
|
|
|
|
macro_fullPath(self)
returns an expression expanding to the full path of the current
input file. |
source code
|
|
|
macro_inputRelativePath(self,
liberalChars=' True ' )
see grammars.common.GrammarMacroMixin |
source code
|
|
|
macro_rowsProcessed(self)
returns an expression giving the number of records already
delivered by the grammar. |
source code
|
|
|
|
|
macro_property(self,
propName)
returns an expression giving the value of the property propName
on the current DD. |
source code
|
|
|
|
|
|
|
|
|
macro_lastSourceElements(self,
numElements)
returns an expression calling rmkfuncs.lastSourceElements on
the current input path. |
source code
|
|
|
macro_rootlessPath(self)
returns an expression giving the current source's path with
the resource descriptor's root removed. |
source code
|
|
|
macro_inputSize(self)
returns an expression giving the size of the current source. |
source code
|
|
|
macro_docField(self,
name)
returns an expression giving the value of the column name in the
document row. |
source code
|
|
|
macro_qName(self)
returns the qName of the table we are currently parsing into. |
source code
|
|
Inherited from base.macros.StandardMacroMixin :
macro_RSTservicelink ,
macro_RSTtable ,
macro_decapitalize ,
macro_getConfig ,
macro_internallink ,
macro_magicEmpty ,
macro_metaSeq ,
macro_metaString ,
macro_rdId ,
macro_rdIdDotted ,
macro_schema ,
macro_test ,
macro_today ,
macro_upper ,
macro_urlquote
Inherited from base.macros.MacroPackage :
execMacro ,
expand ,
getExpander ,
listMacros ,
macro_quote ,
macro_reSub ,
macro_sql_standardPubDID ,
macro_sqlquote
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__init__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|