From 86c79f4372d7b2e7640a26473c7a4d331cdf7d16 Mon Sep 17 00:00:00 2001 From: yo mama Date: Mon, 21 Sep 2015 18:47:01 -0700 Subject: run_examples works --- lib/Pb/Break/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/Pb/Break') diff --git a/lib/Pb/Break/__init__.py b/lib/Pb/Break/__init__.py index cf12cc2..d8faa14 100755 --- a/lib/Pb/Break/__init__.py +++ b/lib/Pb/Break/__init__.py @@ -28,7 +28,7 @@ class PbBreak(Pb): #FIXME in db gallery "expanded" : "false" } def __init__(self, **kwargs): - super(PbBreak,self).__init__(); + super(PbBreak,self).__init__(**kwargs); _definitions = { 'username': { 'type': 'string' }, 'breaktype': { 'type': 'string' }, @@ -59,6 +59,8 @@ class PbBreak(Pb): #FIXME in db gallery self.filename, self.filepath = self._filename_filepath_create(url=self.params.url.url, extension=self.params.finalformat) self._conversion_file = self._tempfilepath_create(namepart="conversion", extension=self.params.breaktype) + self._db_url_param = str(self.params.url['url']) + def _get_breaktype(self, key): #{{{ conversion table breaktypeTranslate = { -- cgit v1.2.3-70-g09d2