That definitely works. I will go ahead and pull the branch. How do you want to structure the documentation ?<div><br></div><div><br><br><div class="gmail_quote">On Wed, Nov 10, 2010 at 8:32 AM, Jamu Kakar <span dir="ltr">&lt;<a href="mailto:jkakar@kakar.ca">jkakar@kakar.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Nachiketa,<br>
<br>
(Please use &#39;Reply all&#39; to make sure the list is included when you<br>
respond to messages)<br>
<br>
Great, glad to hear it!  We&#39;d would *love* help with documentation,<br>
it&#39;s a real sore spot for the project.  I&#39;ve started a branch:<br>
<br>
lp:~jkakar/storm/documentation<br>
<br>
With some very basic beginning work at putting a manual in place.<br>
Maybe we can work together to develop and outline for it and then<br>
start to fill in sections?<br>
<br>
Thanks,<br>
<font color="#888888">J.<br>
</font><div><div></div><div class="h5"><br>
On Wed, Nov 10, 2010 at 3:22 PM, Nachiketa Mishra &lt;<a href="mailto:nmishra@uab.edu">nmishra@uab.edu</a>&gt; wrote:<br>
&gt; This is great.<br>
&gt; Thanks a lot. This worked perfectly. As I love storm, can I help in<br>
&gt; documentation ?<br>
&gt; Nachiketa<br>
&gt;<br>
&gt; On Wed, Nov 10, 2010 at 8:02 AM, Jamu Kakar &lt;<a href="mailto:jkakar@kakar.ca">jkakar@kakar.ca</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi Nachiketa,<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Nov 10, 2010 at 2:57 PM, Nachiketa Mishra &lt;<a href="mailto:nmishra@uab.edu">nmishra@uab.edu</a>&gt; wrote:<br>
&gt;&gt; &gt; I have a type table with name, category_name and description and some<br>
&gt;&gt; &gt; audit<br>
&gt;&gt; &gt; columns. With Storm I am trying to just get these three columns. I am<br>
&gt;&gt; &gt; new to<br>
&gt;&gt; &gt; Storm and I am not able to figure out from the get_select_expr api<br>
&gt;&gt; &gt; documentation, how to just fetch these three columns.<br>
&gt;&gt;<br>
&gt;&gt; Unless you want to perform a subselect, you don&#39;t need to use<br>
&gt;&gt; get_select_expr.  Given a class:<br>
&gt;&gt;<br>
&gt;&gt; class Thing(Storm):<br>
&gt;&gt;<br>
&gt;&gt;    __storm_table__ = &quot;thing&quot;<br>
&gt;&gt;<br>
&gt;&gt;    id = Int(primary=True)<br>
&gt;&gt;    name = Unicode()<br>
&gt;&gt;    category_name = Unicode()<br>
&gt;&gt;    description = Unicode()<br>
&gt;&gt;    audit_stuff = Unicode()<br>
&gt;&gt;<br>
&gt;&gt; You can get just the columns you want with:<br>
&gt;&gt;<br>
&gt;&gt; result = store.find(Thing)<br>
&gt;&gt; result = result.values(Thing.name, Thing.category_name, Thing.description)<br>
&gt;&gt; for name, category_name, description in result:<br>
&gt;&gt;    print name, category_name, description<br>
&gt;&gt;<br>
&gt;&gt; The ResultSet.values method is handy when you have a result set that<br>
&gt;&gt; would normally yield objects, but for which you only want columns.  If<br>
&gt;&gt; you know you&#39;ll only ever want columns from the result set you can<br>
&gt;&gt; specify them in the call to find:<br>
&gt;&gt;<br>
&gt;&gt; result = store.find((Thing.name, Thing.category_name, Thing.description))<br>
&gt;&gt; for name, category_name, description in result:<br>
&gt;&gt;    print name, category_name, description<br>
&gt;&gt;<br>
&gt;&gt; I hope this helps!<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; J.<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>