<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 29, 2013 at 8:59 AM, Martin Jansa <span dir="ltr"><<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb adM"><div class="im">> We do have an existing mechanism for handling boolean variables in a sane<br>
> way, as an FYI.<br>
><br>
> LICENSE_CREATE_PACKAGE[type] = "boolean"<br>
><br>
> LICENSE_CREATE_PACKAGE = "1"<br>
> oe.data.typed_value(d, 'LICENSE_CREATE_PACKAGE') == True<br>
> LICENSE_CREATE_PACKAGE = "0"<br>
> oe.data.typed_value(d, 'LICENSE_CREATE_PACKAGE') == False<br>
<br>
</div></div>I did the same and now it's failing with:<br>
AttributeError: 'str' object has no attribute 'getVarFlag'<br>
<br>
here is last version<br>
<a href="http://bpaste.net/show/73667/" target="_blank">http://bpaste.net/show/73667/</a></blockquote></div><br>Ah, I probably remembered the argument order for typed_value wrong :)<br>-- <br>Christopher Larson</div></div>