Skip to content

Instantly share code, notes, and snippets.

@abg
Created May 15, 2011 02:37
Show Gist options
  • Save abg/972845 to your computer and use it in GitHub Desktop.
Save abg/972845 to your computer and use it in GitHub Desktop.
holland-sqlite.patch
--- a/plugins/holland.backup.sqlite/holland/backup/sqlite.py
+++ b/plugins/holland.backup.sqlite/holland/backup/sqlite.py
@@ -11,13 +11,13 @@ LOG = logging.getLogger(__name__)
CONFIGSPEC="""
[sqlite]
databases = force_list(default=list())
-binary = string(default=/usr/bin/sqlite3)
+binary = string(default="/usr/bin/sqlite3")
[compression]
method = option('none', 'gzip', 'pigz', 'bzip2', 'lzop', default='gzip')
inline = boolean(default=yes)
level = integer(min=0, max=9, default=1)
-""".splitlines()
+"""
class SQLitePlugin(BackupPlugin):
def __init__(self, name):
@@ -120,7 +120,7 @@ class SQLitePlugin(BackupPlugin):
def configspec(self):
"""Configspec that the sqlite plugin accepts"""
- return ConfigSpec.parse(CONFIGSPEC)
+ return Configspec.from_string(CONFIGSPEC)
def plugin_info(self):
"""Sqlite Plugin Metadata"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment