diff options
| author | Pepper <pepper@scannerjammer.com> | 2015-03-05 04:35:02 -0500 |
|---|---|---|
| committer | Pepper <pepper@scannerjammer.com> | 2015-03-05 04:35:02 -0500 |
| commit | e7d397472c7f6f6ba7b911ae8afff9bcb6a56b92 (patch) | |
| tree | ed4e7c9f107f9227eccfec9ccb6f21d1b851845f /test2.py | |
| parent | 6b00d986288c735e0dba400a3ac02e4809279de2 (diff) | |
working better now
Diffstat (limited to 'test2.py')
| -rw-r--r-- | test2.py | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |
