Store internally as a string. Provide validation routines.
Bases: lib.formField.Form
Action base class.
Bases: lib.formField.ImageDictionaryField
Bases: core.models.BlenderField
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 |
Method used for resuming when a batch was interrupted. Check if this image has been done already.
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
Method used for resuming when a batch was interrupted. For metadata there is no way to know if this image has been done already, so return False by default.
Always force overwrite as we want to store the tags in existing images.
Bases: object
Bases: core.models.OffsetMixin
Returns the negative value of a string expression.
Parameters: |
|
---|---|
Returns: | negative value of expression |
Return type: | str |
>>> negative('5')
'-5'
>>> negative('-5')
'5'