IRC log for #storm on 20110222

00:23.01*** join/#storm m4v (~znc@unaffiliated/m4v)
00:36.13*** join/#storm fcorrea (~fcorrea@189-54-100-52-nd.cpe.vivax.com.br)
01:04.16*** join/#storm danilos (~danilo@cable-178-148-38-107.dynamic.sbb.rs)
01:04.16*** join/#storm danilos (~danilo@canonical/launchpad/danilos)
01:32.11*** join/#storm jamesh (~james@canonical/launchpad/jamesh)
01:40.14*** join/#storm marienz_ (~marienz@freenode/staff/marienz)
02:05.55*** join/#storm sidnei (~sidnei@201-35-132-95.cslce701.dsl.brasiltelecom.net.br)
04:25.03*** join/#storm suzan_shakya (~suzan_sha@110.44.126.19)
04:25.50suzan_shakyaHi all, can someone tell me what is the difference between store.commit() and store.flush()
04:33.40*** join/#storm jdobrien (~john@50-88-19-25.res.bhn.net)
04:46.21*** part/#storm suzan_shakya (~suzan_sha@110.44.126.19)
06:37.34*** join/#storm stub (~stub@125.24.116.250.adsl.dynamic.totbb.net)
06:37.34*** join/#storm stub (~stub@canonical/launchpad/stub)
06:43.29*** part/#storm jamesh (~james@canonical/launchpad/jamesh)
06:43.55*** join/#storm jamesh (~james@canonical/launchpad/jamesh)
07:40.15*** join/#storm wallyworld (~quassel@27-33-46-253.static.tpgi.com.au)
07:48.58*** join/#storm wallyworld (~quassel@27-33-46-253.static.tpgi.com.au)
08:06.30*** join/#storm zmijunkie (~sascha@business-188-111-082-104.static.arcor-ip.net)
08:07.54*** join/#storm niemeyer (~niemeyer@189-10-154-99.pltce701.dsl.brasiltelecom.net.br)
08:21.01*** join/#storm jkakar (~jkakar@27.Red-213-97-209.staticIP.rima-tde.net)
09:00.28*** join/#storm bigjools (~quassel@82-71-93-254.dsl.in-addr.zen.co.uk)
09:00.28*** join/#storm bigjools (~quassel@canonical/launchpad/bigjools)
11:03.29*** join/#storm bac (~bac@cpe-173-095-180-040.nc.res.rr.com)
11:04.24*** join/#storm bac (~bac@canonical/launchpad/bac)
11:33.18*** join/#storm jdobrien (~john@50-88-19-25.res.bhn.net)
12:19.26*** join/#storm jkakar (~jkakar@27.Red-213-97-209.staticIP.rima-tde.net)
13:54.04*** join/#storm fcorrea (~fcorrea@187.3.22.136)
14:20.36*** join/#storm jkakar_ (~jkakar@27.Red-213-97-209.staticIP.rima-tde.net)
14:46.50*** join/#storm jkakar (~jkakar@27.Red-213-97-209.staticIP.rima-tde.net)
14:57.34*** join/#storm jkakar (~jkakar@27.Red-213-97-209.staticIP.rima-tde.net)
15:21.18*** join/#storm jkakar (~jkakar@27.Red-213-97-209.staticIP.rima-tde.net)
15:27.32*** join/#storm jkakar_ (~jkakar@27.Red-213-97-209.staticIP.rima-tde.net)
15:53.14*** join/#storm jkakar (~jkakar@27.Red-213-97-209.staticIP.rima-tde.net)
16:13.19*** join/#storm magmatt (~Matt@74-92-245-181-Utah.hfc.comcastbusiness.net)
16:15.17*** part/#storm bac (~bac@canonical/launchpad/bac)
16:31.07*** join/#storm jdobrien (~john@rrcs-97-79-119-8.se.biz.rr.com)
16:38.45*** join/#storm jdobrien (~john@rrcs-97-79-119-8.se.biz.rr.com)
16:43.48*** join/#storm jkakar (~jkakar@27.Red-213-97-209.staticIP.rima-tde.net)
17:33.55*** join/#storm keppla (~keppla@i577B141C.versanet.de)
17:39.29*** join/#storm webmaven (~webmaven@c-68-49-170-15.hsd1.dc.comcast.net)
17:45.00*** join/#storm fcorrea (~fcorrea@187.3.22.136)
17:56.55*** join/#storm jkakar (~jkakar@227.Red-79-153-89.dynamicIP.rima-tde.net)
18:14.42*** part/#storm magmatt (~Matt@74-92-245-181-Utah.hfc.comcastbusiness.net)
18:38.36*** join/#storm jdobrien (~john@12.186.157.74)
18:40.34*** join/#storm zmijunkie (~sascha@business-188-111-082-104.static.arcor-ip.net)
19:12.34*** join/#storm marienz (~marienz@freenode/staff/marienz)
19:27.13*** join/#storm niemeyer (~niemeyer@187.91.6.130)
19:34.00*** join/#storm jdobrien (~john@50-88-19-25.res.bhn.net)
19:42.01*** join/#storm magmatt (~Matt@74-92-245-181-Utah.hfc.comcastbusiness.net)
19:48.57magmattIs it possible to use a method in store.find?  Like this: http://paste.pocoo.org/show/342954/
19:50.12marienzmagmatt: I'd be surprised, as store.find normally translates into an sql SELECT query
19:50.49magmattmarienz: I thought as much.  Should that find with a method raise an exception, then?
19:51.10marienzit just reads to me as a thing that doesn't really make sense
19:51.39marienzI'd file this under "undefined behavior" (so it might raise an exception, or it might not) but I've not thought about it that much
19:52.07magmattokay, thanks
19:52.40marienzactually, "Foo.isOdd == True" is going to turn into False before Store.find sees it
19:52.51magmattoh?
19:52.58magmattoh
19:53.18magmattand if you do Foo.id == 10 it turns into some kind of storm thing
19:53.25magmattI wondered how that worked
19:53.44marienzFoo.id is a storm-specific descriptor, which allows it to return a storm-specific object from comparisons, which Store.find then uses
19:54.13marienzFoo.isOdd is just going to give you an unbound method, which compares nonequal to True
19:54.20marienzso that syntax there just can't work
19:54.48magmattgot it, and trying to catch that wouldn't make sense
19:55.02magmattbecause the method just got a True/False passed in
19:55.08marienzalso, storm can't really do any "better" here than you manually filtering the produced objects
19:55.45marienz(also, your example isOdd should have s/id/self.id/, presumably)
19:57.58magmattoops, yes
20:42.21*** join/#storm john__ (~john@50-88-19-25.res.bhn.net)
21:00.10*** join/#storm niemeyer (~niemeyer@187.91.6.130)
21:00.10*** join/#storm danilos (~danilo@canonical/launchpad/danilos)
21:00.10*** join/#storm vvinet (~vince@2001:470:8829:4500:227:eff:fe25:ee64)
21:05.08*** join/#storm wallyworld_ (~quassel@27-33-46-253.static.tpgi.com.au)
21:08.59*** join/#storm jamesh (~james@canonical/launchpad/jamesh)
21:09.29*** join/#storm wallyworld_ (~quassel@27-33-46-253.static.tpgi.com.au)
21:09.29*** join/#storm vvinet (~vince@2001:470:8829:4500:227:eff:fe25:ee64)
21:09.29*** join/#storm danilos (~danilo@canonical/launchpad/danilos)
21:09.29*** join/#storm niemeyer (~niemeyer@187.91.6.130)
21:09.29*** join/#storm 5EXAB9F6A (~john@50-88-19-25.res.bhn.net)
21:09.29*** join/#storm magmatt (~Matt@74-92-245-181-Utah.hfc.comcastbusiness.net)
21:09.29*** join/#storm jdobrien (~john@50-88-19-25.res.bhn.net)
21:09.29*** join/#storm marienz (~marienz@freenode/staff/marienz)
21:09.29*** join/#storm fcorrea (~fcorrea@187.3.22.136)
21:09.29*** join/#storm webmaven (~webmaven@c-68-49-170-15.hsd1.dc.comcast.net)
21:09.29*** join/#storm keppla (~keppla@i577B141C.versanet.de)
21:09.29*** join/#storm sidnei (~sidnei@201-35-132-95.cslce701.dsl.brasiltelecom.net.br)
21:09.29*** join/#storm m4v (~znc@unaffiliated/m4v)
21:09.29*** join/#storm wgrant (~wgrant@ubuntu/member/wgrant)
21:09.30*** join/#storm therve (~therve@sd-20169.dedibox.fr)
21:09.30*** join/#storm thumper (~thumper@canonical/launchpad/thumper)
21:09.30*** join/#storm yosafbridge (~yosafbrid@li125-242.members.linode.com)
21:09.30*** join/#storm bob2 (rob@unaffiliated/bob2)
21:09.30*** join/#storm rrerolle (~rrerolle@neonex.fr)
21:09.30*** join/#storm CrummyGummy (~meh@li185-28.members.linode.com)
21:16.05*** join/#storm infobot (~infobot@rikers.org)
21:16.05*** topic/#storm is The Storm Python ORM - http://storm.canonical.com/ - 0.18 released! || Review branches: https://code.launchpad.net/storm/+activereviews || IRC logs: http://ibot.rikers.org/#storm/ || API documentation: http://people.canonical.com/~jkakar/storm/
21:50.28*** join/#storm vvinet (~vince@2001:470:8829:4500:227:eff:fe25:ee64)
21:50.28*** join/#storm danilos (~danilo@canonical/launchpad/danilos)
21:50.28*** join/#storm niemeyer (~niemeyer@187.91.6.130)
22:10.16*** part/#storm magmatt (~Matt@74-92-245-181-Utah.hfc.comcastbusiness.net)
22:35.44*** join/#storm jdobrien (~john@50-88-19-25.res.bhn.net)
22:41.27*** join/#storm wallyworld_ (~quassel@114.73.97.172)
23:00.56*** join/#storm niemeyer (~niemeyer@187.91.81.108)
23:30.47*** join/#storm fcorrea (~fcorrea@189-54-100-52-nd.cpe.vivax.com.br)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.