Created
May 15, 2011 02:37
-
-
Save abg/972845 to your computer and use it in GitHub Desktop.
holland-sqlite.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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