vi.actions.file
Module Contents
Classes
Small wrapper around <input type="file">. |
|
Adds a new directory to a tree.simple application. |
|
Allows uploading of files using the file dialog. |
|
Provides editing in a tree.simple application. |
|
Allows downloading files from the server. |
- class vi.actions.file.FileSelectUploader(*args, **kwargs)
Bases:
flare.html5.Input
Small wrapper around <input type=”file”>. Creates the element; executes the click (=opens the file dialog); runs the callback if a file has been selected and removes itself from its parent.
- onChange(event)
- class vi.actions.file.AddNodeAction(*args, **kwargs)
Bases:
flare.button.Button
Adds a new directory to a tree.simple application.
- static isSuitableFor(module, handler, actionName)
- onClick(sender=None)
- createDir(dialog, dirName)
- onMkDir(req)
- resetLoadingState()
- class vi.actions.file.AddLeafAction(*args, **kwargs)
Bases:
flare.button.Button
Allows uploading of files using the file dialog.
- static isSuitableFor(module, handler, actionName)
- onClick(sender=None)
- resetLoadingState()
- class vi.actions.file.EditAction(*args, **kwargs)
Bases:
flare.button.Button
Provides editing in a tree.simple application. If a directory is selected, it opens a dialog for renaming that directory, otherwise the full editWidget is used.
- onAttach()
- onDetach()
- onSelectionActivated(table, selection)
- onSelectionChanged(table, selection, *args, **kwargs)
- static isSuitableFor(module, handler, actionName)
- onClick(sender=None)
- editDir(dialog, dirName)
- resetLoadingState()
- class vi.actions.file.DownloadAction(*args, **kwargs)
Bases:
flare.button.Button
Allows downloading files from the server.
- onAttach()
- onDetach()
- onSelectionChanged(table, selection, *args, **kwargs)
- static isSuitableFor(module, handler, actionName)
- onClick(sender=None)
- disableViUnloadingWarning(*args, **kwargs)
- enableViUnloadingWarning(*args, **kwargs)
- doDownload(fileData)
- resetLoadingState()