Store internally as a string. Provide validation routines.
Bases: lib.formField.Form
Action base class.
Bases: lib.formField.ImageDictionaryField
Bases: core.models.BlenderField
Bases: lib.formField.ImageDictionaryReadFileField
Bases: lib.formField.ImageDictionaryReadFileField
Bases: lib.formField.ImageDictionaryField
Bases: lib.formField.ImageDictionaryReadFileField
Can be overwritten always returns the photo.
If this method is not overwritten a pil method should be required.
Ensures that folder exists. If it can’t create the path, it will log an error in the photo and propose to save it in the desktop folder instead.
Parameters: |
|
---|---|
Returns: | same filename, or on desktop in case of errors |
Return type: | str |
Bases: object
If this method is present, Phatch will only show relevant fields.
Returns: | list of the field labels which are relevant |
---|---|
Return type: | list of strings |
Note
It is very important that the list of labels has EXACTLY the same order as defined in the interface method.
Bases: object
Bases: object
Bases: core.models.OffsetMixin
Returns the negative value of a string expression.
Parameter: | value (str) – int or float expression |
---|---|
Returns: | negative value of expression |
Return type: | str |
>>> negative('5')
'-5'
>>> negative('-5')
'5'