Value can be any string.
More...
|
| | __init__ (self, name, fallback=None) |
| | Initialize the default value.
|
|
| get_value (self) |
| | Return the string representation of the string, or None.
|
| | __repr__ (self) |
| | Convert to string.
|
| | __str__ (self) |
| | Convert to string.
|
|
| | vs_validate (key, configuration, fallback=None, prefix=None) |
| | Check if there is an override with a vs_ prefix.
|
|
|
| name = name |
| | Name of the validator.
|
|
|
| value = StringProperty("_value") |
| | String value.
|
◆ __init__()
| makeprojects.validators.VSStringProperty.__init__ |
( |
| self, |
|
|
| name, |
|
|
| fallback = None ) |
Initialize the default value.
- Parameters
-
| name | Name of the validator |
| fallback | Default value, None is acceptable |
◆ __repr__()
| makeprojects.validators.VSStringProperty.__repr__ |
( |
| self | ) |
|
Convert to string.
- Returns
- Value as a string
◆ __str__()
| makeprojects.validators.VSStringProperty.__str__ |
( |
| self | ) |
|
Convert to string.
- Returns
- Value as a string
◆ vs_validate()
| makeprojects.validators.VSStringProperty.vs_validate |
( |
| key, |
|
|
| configuration, |
|
|
| fallback = None, |
|
|
| prefix = None ) |
|
static |
Check if there is an override with a vs_ prefix.
Check if the configuration has a key of "vs_" + prefix + key in the configuration and if not found or None, use the fallback as is.
- Parameters
-
| key | Name of the XML attribute key |
| configuration | configuration to scan for an override |
| fallback | Value to use in case there is no override. |
| prefix | String to insert after "vs_" |
- Returns
- VSStringProperty instance