From e7d397472c7f6f6ba7b911ae8afff9bcb6a56b92 Mon Sep 17 00:00:00 2001 From: Pepper Date: Thu, 5 Mar 2015 04:35:02 -0500 Subject: working better now --- test2.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test2.py') diff --git a/test2.py b/test2.py index 7562b21..42a9cfb 100644 --- a/test2.py +++ b/test2.py @@ -4,5 +4,11 @@ import pprint p = Pb_Api_ImPattern() params = p.params() -#params.param("image_url").value("http://hello") -#pprint.pprint(params.as_hash()) +params.param("image_url").value = "http://hello" +print params +params.randomize() +pprint.pprint(params.as_hash()) +# well something like this how do you feel about it? seems right? yep looks good, need to go over ranomization and defaults a bit, but core is ready to use lets just look at randomization for a second? sure +# works, but i think need to reconsider default somehow, it should be something like set_by_user to make sure user set that, and not automated default, or something like that. why is it better to use set by user? well default doesn't say much about value, and in intialization we say that values passed is default, which is not really true. to find difference ( and make randomize() code clearer) it should be somehting like if not el.set_by_user: el.randomize() +# yeahh ok +# well like this, but need to check randomization, keep selecting 1.png weird -- cgit v1.2.3-70-g09d2