<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">&lt;<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>&gt;</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">&gt; We do have an existing mechanism for handling boolean variables in a sane<br>


&gt; way, as an FYI.<br>
&gt;<br>
&gt; LICENSE_CREATE_PACKAGE[type] = &quot;boolean&quot;<br>
&gt;<br>
&gt; LICENSE_CREATE_PACKAGE = &quot;1&quot;<br>
&gt; oe.data.typed_value(d, &#39;LICENSE_CREATE_PACKAGE&#39;) == True<br>
&gt; LICENSE_CREATE_PACKAGE = &quot;0&quot;<br>
&gt; oe.data.typed_value(d, &#39;LICENSE_CREATE_PACKAGE&#39;) == False<br>
<br>
</div></div>I did the same and now it&#39;s failing with:<br>
AttributeError: &#39;str&#39; object has no attribute &#39;getVarFlag&#39;<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>