Package timedrive :: Package background :: Module loadarchive :: Class LoadArchive
[frames] | no frames]

Class LoadArchive


Background class that retrieves remote file lists and notifies the user of its progress.

Nested Classes

Inherited from PyQt4.QtCore.QThread: Priority

Instance Methods
 
__init__(self, parent=None)
Initialize LoadArchive class
 
FromSettings(self, settings, restore_time=None)
Load a remote archive from the settings
 
FromUrl(self, archiveUrl, gnu_passphrase, S3_AccessId=None, S3_SecretKey=None)
Load a remote archive from a valid Url
 
FromTimeline(self, settings, restore_time)
Loads the archive based on existing settings and a valid restore_time
 
GetFileList(self, archive_url, gnu_passphrase, restore_time=None, sync=True, S3_AccessId=None, S3_SecretKey=None, S3_BucketType=None)
Convenience method for retrieving a hierarchical file structure for all files in the specified archive.
QStandardItemModel (PyQt class)
ParseDirectoryStructure(self, path_iter, archive_url, gnu_passphrase, restore_time=None)
Parses the directory structure of supplied path_iter
 
run(self)
Primary method of the thread.

Inherited from backgroundtask.BackgroundTask: questionPrompt, setupTaskProgress, start, taskComplete, taskError, toggleControls, updateTaskProgress

Inherited from PyQt4.QtCore.QThread: currentThread, currentThreadId, exec_, exit, finished, idealThreadCount, isFinished, isRunning, msleep, priority, quit, setPriority, setStackSize, setTerminationEnabled, sleep, stackSize, started, terminate, terminated, usleep, wait, yieldCurrentThread

Inherited from PyQt4.QtCore.QObject: blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr, trUtf8

Inherited from sip.simplewrapper: __delattr__, __getattribute__, __new__, __setattr__

Inherited from object: __format__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__, __subclasshook__

Class Variables

Inherited from PyQt4.QtCore.QThread: HighPriority, HighestPriority, IdlePriority, InheritPriority, LowPriority, LowestPriority, NormalPriority, TimeCriticalPriority

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Properties

Inherited from backgroundtask.BackgroundTask: default_message, restart, stop, task_name

Inherited from object: __class__

Method Details

__init__(self, parent=None)
(Constructor)

 

Initialize LoadArchive class

Parameters:
  • parent (BackgroundTask Object)
Overrides: object.__init__

FromSettings(self, settings, restore_time=None)

 

Load a remote archive from the settings

Parameters:
  • settings (Settings Object)
  • restore_time () - default=None

FromUrl(self, archiveUrl, gnu_passphrase, S3_AccessId=None, S3_SecretKey=None)

 

Load a remote archive from a valid Url

Parameters:
  • archiveUrl (String)
  • gnu_passphrase (String)
  • S3_AccessId (String) - default=None
  • S3_SecretKey (String) - default=None

FromTimeline(self, settings, restore_time)

 

Loads the archive based on existing settings and a valid restore_time

Parameters:
  • settings (Settings Object)
  • restore_time ()

GetFileList(self, archive_url, gnu_passphrase, restore_time=None, sync=True, S3_AccessId=None, S3_SecretKey=None, S3_BucketType=None)

 

Convenience method for retrieving a hierarchical file structure for all files in the specified archive. The list is generated by examining the signature only. Returns a QStandardItem with all associated files as children.

ParseDirectoryStructure(self, path_iter, archive_url, gnu_passphrase, restore_time=None)

 

Parses the directory structure of supplied path_iter

Parameters:
  • path_iter (PathIteration object @param path_iter (duplicity class))
Returns: QStandardItemModel (PyQt class)
modelFileList (QStandardItemModel) that contains data regarding the files in the currently selected archive.

run(self)

 

Primary method of the thread. Checks to see if it needs to create a file list from the local settings or a supplied Url from the advanced restore options dialog. Returns a list of QStandardItemModels for all of the folders in the backup. If loading a remote archive, the list will only contain one entry.

Overrides: PyQt4.QtCore.QThread.run