core.dbtransfer
¶
Module Contents¶
Classes¶
Functions¶
|
Processes 100 Entries and calls the next batch |
|
|
|
Processes 100 Entries and calls the next batch |
- class core.dbtransfer.DbTransfer¶
Bases:
object
- _checkKey(self, key, export=True)¶
Utility function to compare the given key with the keys stored in our conf in constant time :param key: The key we should validate :type key: str :param export: If True, we validate against the export-key, otherwise the import-key :type export: bool :returns: True if the key is correct, False otherwise
- listModules(self, key)¶
- getCfg(self, module, key)¶
- getAppId(self, key, *args, **kwargs)¶
- getUploads(self, field_name=None)¶
Get uploads sent to this handler. Cheeky borrowed from blobstore_handlers.py - © 2007 Google Inc.
- Args:
field_name: Only select uploads that were sent as a specific field.
- Returns:
A list of BlobInfo records corresponding to each upload. Empty list if there are no blob-info records for field_name.
- upload(self, oldkey, *args, **kwargs)¶
- getUploadURL(self, key, *args, **kwargs)¶
- storeEntry(self, e, key)¶
- hasblob(self, blobkey, key)¶
- storeEntry2(self, e, key)¶
- static genDict(obj)¶
- exportDb(self, cursor=None, key=None, *args, **kwargs)¶
- exportBlob(self, cursor=None, key=None)¶
- exportBlob2(self, cursor=None, key=None)¶
- iterValues(self, module, cursor=None, key=None)¶
- iterValues2(self, module, cursor=None, key=None)¶
- getEntry(self, module, id, key=None)¶
- class core.dbtransfer.TaskExportKind¶
Bases:
viur.core.tasks.CallableTaskBase
- key = exportkind¶
- name = Export data kinds to other app¶
- descr = Copies the selected data to the given target application¶
- direct = True¶
- canCall(self)¶
- dataSkel(self)¶
- execute(self, module, target, importkey, *args, **kwargs)¶
- core.dbtransfer.iterExport(module, target, importKey, cursor=None)¶
Processes 100 Entries and calls the next batch
- core.dbtransfer.exportItems(module, target, importKey, startCursor, endCursor)¶
- class core.dbtransfer.TaskImportKind¶
Bases:
viur.core.tasks.CallableTaskBase
- key = importkind¶
- name = Import data kinds from other app¶
- descr = Copies the selected data from the given source application¶
- direct = True¶
- canCall(self)¶
- dataSkel(self)¶
- execute(self, module, source, exportkey, *args, **kwargs)¶
- core.dbtransfer.iterImport(module, target, exportKey, cursor=None, amount=0)¶
Processes 100 Entries and calls the next batch