vi.actions.file

Module Contents

Classes

FileSelectUploader

Small wrapper around <input type="file">.

AddNodeAction

Adds a new directory to a tree.simple application.

AddLeafAction

Allows uploading of files using the file dialog.

EditAction

Provides editing in a tree.simple application.

DownloadAction

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(self, 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(self, sender=None)
createDir(self, dialog, dirName)
onMkDir(self, req)
resetLoadingState(self)
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(self, sender=None)
resetLoadingState(self)
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(self)
onDetach(self)
onSelectionActivated(self, table, selection)
onSelectionChanged(self, table, selection, *args, **kwargs)
static isSuitableFor(module, handler, actionName)
onClick(self, sender=None)
editDir(self, dialog, dirName)
resetLoadingState(self)
class vi.actions.file.DownloadAction(*args, **kwargs)

Bases: flare.button.Button

Allows downloading files from the server.

onAttach(self)
onDetach(self)
onSelectionChanged(self, table, selection, *args, **kwargs)
static isSuitableFor(module, handler, actionName)
onClick(self, sender=None)
disableViUnloadingWarning(self, *args, **kwargs)
enableViUnloadingWarning(self, *args, **kwargs)
doDownload(self, fileData)
resetLoadingState(self)