diff options
| author | yo mama <pepper@scannerjammer.com> | 2015-09-21 18:47:01 -0700 |
|---|---|---|
| committer | yo mama <pepper@scannerjammer.com> | 2015-09-21 18:47:01 -0700 |
| commit | 86c79f4372d7b2e7640a26473c7a4d331cdf7d16 (patch) | |
| tree | 8c2815ee8f72524708248a30b8c91377678ad00a /lib/Pb/Grid | |
| parent | b29b0ec5f11dd66434cbdfba5287c4777d7f8ac9 (diff) | |
run_examples works
Diffstat (limited to 'lib/Pb/Grid')
| -rwxr-xr-x | lib/Pb/Grid/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Pb/Grid/__init__.py b/lib/Pb/Grid/__init__.py index 2f7ae4b..b940d5c 100755 --- a/lib/Pb/Grid/__init__.py +++ b/lib/Pb/Grid/__init__.py @@ -22,7 +22,7 @@ class PbGrid(Pb): 'trim' : 'true' } def __init__(self, **kwargs ): - super(PbGrid,self).__init__(); + super(PbGrid,self).__init__(**kwargs); _definitions = { 'width': { 'type':'int' }, 'height': { 'type':'int' }, @@ -57,6 +57,8 @@ class PbGrid(Pb): else: self.filename, self.filepath = self._filename_filepath_create(extension=self.params.finalformat) + self._db_url_param = str(filter(lambda n: n, [ self.params.imageinstead, self.params.planebgimage, self.params.bgimage, "NULL"])[0]) + #makes a canvas file...step 1 (if not bgimage) def _make_canvas(self): dimensions = "{}x{}".format( |
