summaryrefslogtreecommitdiff
path: root/Pb_Api/Params.py
diff options
context:
space:
mode:
authoryo mama <pepper@scannerjammer.com>2015-03-11 02:51:58 -0700
committeryo mama <pepper@scannerjammer.com>2015-03-11 02:51:58 -0700
commita5123bfab06f7fd8884b9b4f12f579dceec43aa1 (patch)
tree5120729cadf48ce97caeb90c34b850308c9a9f21 /Pb_Api/Params.py
parentd9651ca5fb6c655afbe88a014c8bb8a8f000a70d (diff)
finished OOP rewriteOOP
Diffstat (limited to 'Pb_Api/Params.py')
-rw-r--r--Pb_Api/Params.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Pb_Api/Params.py b/Pb_Api/Params.py
index 29bb423..4fcc113 100644
--- a/Pb_Api/Params.py
+++ b/Pb_Api/Params.py
@@ -1,3 +1,4 @@
+import sys
import pprint
class Pb_Api_Params(object):
def __init__(self):
@@ -24,13 +25,13 @@ class Pb_Api_Params(object):
def api(self, cls):
self._api = cls
- #does this really have to be here in Pb_Api_Params? seems confusing though yeah it has to be here because ImPattern inherits from it? impatter params
def execute(self):
return self.api.call(self)
def is_ready(self):
for p in self.params:
- if not p.is_ready():
+ if not p.is_ready and not p.default:
+ sys.stderr.write("param not ready: {}".format(p))
return 0
return 1
def as_hash(self):