| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
pycommon.gmBorg.cBorg --+
|
gmPlaceholderHandler
Returns values for placeholders.
- patient related placeholders operate on the currently active patient
- is passed to the forms handling code, for example
Return values when .debug is False:
- errors with placeholders return None
- placeholders failing to resolve to a value return an empty string
Return values when .debug is True:
- errors with placeholders return an error string
- placeholders failing to resolve to a value return a warning string
There are several types of placeholders:
injectable placeholders
- they must be set up before use by set_placeholder()
- they should be removed after use by unset_placeholder()
- the syntax is like extended static placeholders
- they are listed in _injectable_placeholders
variant placeholders
- those are listed in known_variant_placeholders
- they are parsed into placeholder, data, and maximum length
- the length is optional
- data is passed to the handler
Note that this cannot be called from a non-gui thread unless
wrapped in wx.CallAfter().
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Static Methods | |
|
Inherited from |
| Class Variables | |
escape_style = property(lambda x: x, _set_escape_style)
|
|
escape_function = property(lambda x: x, _set_escape_function)
|
|
placeholder_regex = property(lambda x: default_placeholder_reg
|
|
first_order_placeholder_regex = property(lambda x: first_order
|
|
second_order_placeholder_regex = property(lambda x: second_ord
|
|
third_order_placeholder_regex = property(lambda x: third_order
|
|
| Properties | |
|
Inherited from |
| Method Details |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Map self['placeholder'] to self.placeholder. This is useful for replacing placeholders parsed out of documents as strings. Unknown/invalid placeholders still deliver a result but it will be glaringly obvious if debugging is enabled. |
| Class Variable Details |
placeholder_regex
|
first_order_placeholder_regex
|
second_order_placeholder_regex
|
third_order_placeholder_regex
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Oct 5 03:56:18 2013 | http://epydoc.sourceforge.net |