diff options
| -rwxr-xr-x | photoblaster/modules/pbgenerate/__init__.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/photoblaster/modules/pbgenerate/__init__.py b/photoblaster/modules/pbgenerate/__init__.py index 93a76c1..c38e011 100755 --- a/photoblaster/modules/pbgenerate/__init__.py +++ b/photoblaster/modules/pbgenerate/__init__.py @@ -20,7 +20,6 @@ _DISPOSE_PARAMS = ["None", "Previous", "Background"] _DISPOSE_DEFAULT = "None" _HUE_DEFUALT = '100' -print('<<<<<<<<<<<<<<<<<<<<<<<<<<_________') class PbGenerate(ModuleBase): example_params = { """Example params. Used with the classmethod Pb.run_example""" @@ -58,7 +57,6 @@ class PbGenerate(ModuleBase): Used to assert the value-types of the incoming parameters. Types are defined as in their individual params classes. """ - print('<<<<<<<<<<<<<<<<<<<<<<<<<<') _definitions = { # IMAGES 'url': {'type': 'img_url'}, @@ -130,6 +128,15 @@ class PbGenerate(ModuleBase): elif self.params.transparent: self.tag = "%s:%s" % (self.tag, "transparent") + print('HERE WE ARE') + print("username: {}".format(str(self.params.username))) + if str(self.params.username): + print("username: {}".format(str(self.params.username))) + if self.params.background: + self.params.background.set_username(str(self.params.username)) + if self.params.url: + self.params.url.set_username(str(self.params.username)) + self.set_output_file( File.from_url( self.params.url['url'], |
