is a mixin providing some macros for scripting's MacroExpander.
The class mixing in needs to provide its resource descriptor in the rd
attribute.
|
|
macro_RSTservicelink(self,
serviceId,
title=None)
a link to an internal service; id is
<rdId>/<serviceId>/<renderer>, title, if given, is
the anchor text. |
source code
|
|
|
|
macro_RSTtable(self,
tableName)
adds an reStructured test link to a tableName pointing to its table
info. |
source code
|
|
|
|
macro_decapitalize(self,
aString)
returns aString with the first character lowercased. |
source code
|
|
|
|
|
|
|
macro_internallink(self,
relPath)
an absolute URL from a path relative to the DC root. |
source code
|
|
|
|
|
|
|
macro_metaSeq(self,
metaKey,
default='',
joiner=', ')
returns all values of metaKey on the current macro expander joined by
joiner. |
source code
|
|
|
|
|
|
|
macro_rdId(self)
the identifier of the current resource descriptor. |
source code
|
|
|
|
macro_rdIdDotted(self)
the identifier for the current resource descriptor with slashes
replaced with dots (so they work as the "host part" in
URIs. |
source code
|
|
|
|
macro_schema(self)
the schema of the current resource descriptor. |
source code
|
|
|
|
macro_test(self,
*args)
always "test macro expansion". |
source code
|
|
|
|
macro_today(self)
today's date in ISO representation. |
source code
|
|
|
|
|
|
|
macro_urlquote(self,
string)
wraps urllib.quote. |
source code
|
|
|
Inherited from 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__
|