summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-01 13:51:25 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-01 13:51:25 +0200
commit901fb9b878c4c26b1265d2d445b8f44742319117 (patch)
treed426df58e9ade788a93e7c3c6f0e564f33a0b33e
parent111d906b0d9ebc0383f03add75954e4a6dfc01c0 (diff)
trying to get username in
-rwxr-xr-xphotoblaster/modules/pbgenerate/__init__.py11
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'],