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"><<a href="mailto:jkakar@kakar.ca">jkakar@kakar.ca</a>></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 'Reply all' to make sure the list is included when you<br>
respond to messages)<br>
<br>
Great, glad to hear it! We'd would *love* help with documentation,<br>
it's a real sore spot for the project. I'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 <<a href="mailto:nmishra@uab.edu">nmishra@uab.edu</a>> wrote:<br>
> This is great.<br>
> Thanks a lot. This worked perfectly. As I love storm, can I help in<br>
> documentation ?<br>
> Nachiketa<br>
><br>
> On Wed, Nov 10, 2010 at 8:02 AM, Jamu Kakar <<a href="mailto:jkakar@kakar.ca">jkakar@kakar.ca</a>> wrote:<br>
>><br>
>> Hi Nachiketa,<br>
>><br>
>> On Wed, Nov 10, 2010 at 2:57 PM, Nachiketa Mishra <<a href="mailto:nmishra@uab.edu">nmishra@uab.edu</a>> wrote:<br>
>> > I have a type table with name, category_name and description and some<br>
>> > audit<br>
>> > columns. With Storm I am trying to just get these three columns. I am<br>
>> > new to<br>
>> > Storm and I am not able to figure out from the get_select_expr api<br>
>> > documentation, how to just fetch these three columns.<br>
>><br>
>> Unless you want to perform a subselect, you don't need to use<br>
>> get_select_expr. Given a class:<br>
>><br>
>> class Thing(Storm):<br>
>><br>
>> __storm_table__ = "thing"<br>
>><br>
>> id = Int(primary=True)<br>
>> name = Unicode()<br>
>> category_name = Unicode()<br>
>> description = Unicode()<br>
>> audit_stuff = Unicode()<br>
>><br>
>> You can get just the columns you want with:<br>
>><br>
>> result = store.find(Thing)<br>
>> result = result.values(Thing.name, Thing.category_name, Thing.description)<br>
>> for name, category_name, description in result:<br>
>> print name, category_name, description<br>
>><br>
>> The ResultSet.values method is handy when you have a result set that<br>
>> would normally yield objects, but for which you only want columns. If<br>
>> you know you'll only ever want columns from the result set you can<br>
>> specify them in the call to find:<br>
>><br>
>> result = store.find((Thing.name, Thing.category_name, Thing.description))<br>
>> for name, category_name, description in result:<br>
>> print name, category_name, description<br>
>><br>
>> I hope this helps!<br>
>><br>
>> Thanks,<br>
>> J.<br>
><br>
><br>
</div></div></blockquote></div><br></div>