<html><body bgcolor="#FFFFFF"><div>My suggestion appears to work. What would the community suggest as a better solution using the existing object chooser?<br><br><div><br></div></div><div><br>On Feb 10, 2011, at 1:07 PM, Gonzalo Odiard <<a href="mailto:gonzalo@laptop.org">gonzalo@laptop.org</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>Please, don't do it. :(<br><br>Gonzalo<br><br>How does this idea look to the community? Seems hackish to me, but might work?<div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="gmail_quote"><div><br></div><div><font face="'courier new', monospace">errything = datastore.find( {} )[0]</font></div>
<div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace">...</font></div><div class="im"><div><font face="'courier new', monospace"><br>
</font></div><div><span style="border-collapse: collapse;"><font face="'courier new', monospace">dsobject = chooser.get_selected_object( )</font></span></div>
<div><span style="border-collapse: collapse;"><font face="'courier new', monospace"><br></font></span></div></div><div><span style="border-collapse: collapse;"><font face="'courier new', monospace">from_journal = False</font></span></div>
<div><span style="border-collapse: collapse;"><font face="'courier new', monospace">for errything_ds in errything:</font></span></div><div><span style="border-collapse: collapse;"><font face="'courier new', monospace"> if </font></span><span style="border-collapse: collapse; font-family: 'courier new',monospace;">errything_</span><span style="border-collapse: collapse; font-family: 'courier new',monospace;">ds.object_id == dsobject.object_id:</span></div>
<div><span style="border-collapse: collapse;"><font face="'courier new', monospace"> from_journal = True</font></span></div><div><span style="border-collapse: collapse;"><font face="'courier new', monospace"> break</font></span></div>
<div><font face="'courier new', monospace"><span style="border-collapse: collapse;"><br></span></font></div></div>
<br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org"><a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a></a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank"><a href="http://lists.sugarlabs.org/listinfo/sugar-devel">http://lists.sugarlabs.org/listinfo/sugar-devel</a></a><br>
<br></blockquote></div><br>
</div></blockquote></body></html>