IRC log for #storm on 20071203

00:00.15*** join/#storm wallflower (n=wallflow@ip-205-246-113-216.pool.grokthis.net)
00:12.57*** join/#storm bozzo (n=bozzo@BSN-77-50-216.dial-up.dsl.siol.net)
00:41.50*** join/#storm Fujitsu (n=fujitsu@ubuntu/member/fujitsu)
01:52.23*** join/#storm WebMaven (n=webmaven@nv-65-173-64-133.dhcp.embarqhsd.net)
06:07.28*** join/#storm michelp (n=michelp@69-30-72-119.dq1sf.easystreet.com)
06:51.07*** join/#storm jukart (n=jukart@194.183.146.181)
07:10.11*** join/#storm jayesh_ (n=jayesh@203.123.188.10)
07:17.38*** join/#storm weatherman (n=weatherm@204-174-36-245.unknown-dhcp802.dsl.ucc-net.ca)
07:17.38weathermantest
07:47.46*** join/#storm dobee (n=dobeee@194.183.146.186)
08:11.16*** join/#storm bozzo (n=bozzo@85.10.14.223)
10:15.05*** join/#storm bigdog (n=scmikes@72-197-8-8-arpa.cust.cinci.current.net)
10:52.41*** join/#storm benoitc (i=benoitc@enki.osbud.net)
10:52.48benoitchi
11:18.35*** join/#storm niemeyer (n=niemeyer@201-10-91-193.ctame705.dsl.brasiltelecom.net.br)
13:06.01*** join/#storm jamesh (n=james@canonical/launchpad/jamesh) [NETSPLIT VICTIM]
13:55.01*** join/#storm Fujitsu (n=fujitsu@ubuntu/member/fujitsu)
14:08.28*** join/#storm jamesh (n=james@canonical/launchpad/jamesh)
14:22.59*** join/#storm oubiwann (n=oubiwann@209-181-152-131.omah.qwest.net)
14:32.44benoitchow can i have multiple foreign key in one object ?
14:35.12*** join/#storm statik (n=emurphy@189.66.188.72.cfl.res.rr.com)
14:39.04radixbenoitc: do you need to know how to declare it in your schema or in your storm properties?
14:39.52benoitcin storm properties
14:40.10benoitcindeed :$
14:40.35radixbenoitc: I assume you're talking about Reference, then?
14:40.59benoitchum maybe
14:41.16benoitcyes indeed
14:41.27benoitcbut in tutorial i only see sublcassing sample
14:41.34radixsubclassing? now I'm confused
14:41.36benoitcfor fk
14:41.49radixoh
14:41.53radixthe subclassing is just incidental
14:42.07radixthe Reference is what's important.
14:42.26benoitcso how could I do  ? Referebce(cls1.id, cls2.id) ?
14:42.35benoitcReference
14:43.07radixbenoitc: Reference(my_id_to_the_other_guy, OtherGuy.id)
14:43.18benoitcradix: thanks :)
14:43.50benoitcnow i could find my way, storm seems very powerfull
14:43.53*** join/#storm jayesh_ (n=jayesh@203.123.188.10)
14:43.57benoitccompared to some other orm I used
14:47.08radixcool :)
14:50.30*** join/#storm lymxz (n=lymxz@123.116.115.69)
14:51.39*** part/#storm lymxz (n=lymxz@123.116.115.69)
15:27.02*** join/#storm Zenom (n=Zenom@unaffiliated/aj1973)
15:28.14*** join/#storm Zenom (n=Zenom@unaffiliated/aj1973)
16:04.28*** join/#storm oubiwann (n=oubiwann@209-181-152-131.omah.qwest.net)
16:13.51*** join/#storm tarjei (n=tarjeih@mail2.bergfald.no)
16:15.14tarjeihowdy, is it possible to have a referenceset with extra queryparamters? Something like set = ReferenceSet(Queue.id, Queue.status == 'done' ) ?
16:27.32benoitcmmm could we do self references ? eg, parent = Reference(Theclass.id, Theclass.id)
16:27.36benoitc?
16:27.55radixbenoitc: yes, except that's probably not what the Reference will end up looking like
16:28.10radixbenoitc: more like parent = Reference(parent_id, id)
16:28.26benoitcah yes indeed
16:28.27benoitcthanks
16:28.33radixtarjei: you can't encode that directly into the ReferenceSet, but ReferenceSet has a .find method which allows you to refine the set of items.
16:32.19*** join/#storm lymxz (n=lymxz@123.116.115.69)
16:33.55radixniemeyer: I don't understand where the 1s are coming from in the example on the mailing list
16:34.23radixI mean, I understand that that guy didn't declare his schema properly, but that doesn't explain why storm is trying to insert 1 into those fields
16:34.50radixohh whoops
16:34.57radixthe Reference is declared on id, that's probably not right :)
16:35.15radixok, yeah, duh. never mind
16:35.34niemeyerradix: Yeah.. I've answered in the ML
16:35.51*** part/#storm lymxz (n=lymxz@123.116.115.69)
16:36.47radixoh. so did I :)
16:37.27niemeyerradix: That's effective support :-)
16:38.05niemeyerradix: Sorry.. I've missed your question here while I was answering his mail..
16:38.16radixsure, no problem. I figured it out anyway :)
16:47.25tarjeiradix: ok, so I can do obj.itsReferencset.find(OtherObj.something == 5) , ok, that works. Thanks
16:47.37radixtarjei: cool.
17:32.45*** join/#storm dobee (n=dobeee@81-223-53-162.dornbirn.xdsl-line.inode.at)
18:46.52*** join/#storm jukart (n=jukart@85-124-221-45.static.xdsl-line.inode.at)
18:56.41*** join/#storm jukart_ (n=jukart@85-124-221-45.static.xdsl-line.inode.at)
19:01.25benoitcmmm how do you do to manage creation of tables ? do you have in code a code.execute ? or anything else ?
19:05.14radixbenoitc: we just create our tables with store.execute, yes.
19:14.24aa_radix: do you think storm will ever have table creation built-in?
19:16.36radixaa_: I'm still not working on it :)
19:17.03aa_perhaps a separate lib might be better for it?
19:17.16aa_that's the real question I am trying to ask I guess
19:17.46radixaa_: if you can manage to implement it, then I do recommend putting up for review for inclusion in storm
19:18.12radixwhere to put it is a simple problem, how to implement it is a harder one
19:19.27aa_yeah, I guess
19:20.34aa_I did do an example implementation just for sqlite, but I thought someone took it a bit further. I wish I could remmember who
19:21.45radixhmm. I don't think whoever it was is here right now
19:22.54aa_ironically, I am now using my toy implementation
19:23.16aa_and even worse I also added postgres support
19:23.36aa_but I am really far too clueless about databases to do it right :(
19:25.03radixaa_: apparently the initial draft of AutomaticSchemaGeneration was written by someone named Rafael
19:25.12aa_Rafael, that's it
19:25.58aa_radix: sadly, this one feature is the only thing tempting me to go back to sqla
19:26.19aa_that's not in itself a motivational factor, but I guess if that's how I feel, others might feel the same
19:28.47*** join/#storm oubiwann (n=oubiwann@209-181-152-131.omah.qwest.net)
19:28.51radixaa_: I'm sorry for that, I guess
19:29.14radixaa_: I'm not very against including schema generation in storm, but it's not something I'm interested in doing myself unfortunately
19:30.00aa_nah, I would probably attempt it properly myself before going back to sqla
19:30.44aa_I'm a guest for dinner, so it will be a perfect opportunity to switch off and think about it :)
19:35.18radix:)
20:28.13*** join/#storm michelp (n=michelp@69-30-72-119.dq1sf.easystreet.com)
21:05.36*** join/#storm jml (n=jml@li2-200.members.linode.com)
21:09.24*** join/#storm thumper (n=tim@125-236-193-95.adsl.xtra.co.nz)
22:14.17*** join/#storm bozzo (n=bozzo@BSN-210-221-45.dial-up.dsl.siol.net)
22:15.01*** join/#storm bozzo (n=bozzo@BSN-210-221-45.dial-up.dsl.siol.net)
22:39.32aa_so can someone chat to me about the ideal way to aut create a table? I am looking through the expr stuff and it seems that perhaps CREATE TABLE should be a CreateTable Expr, with a compile_create_table. Is that an insane idea?
22:40.17*** join/#storm bitsbam (n=nephish@69.55.24.17)
22:40.29bitsbamhey there all
22:40.52bitsbamhow do i know how many rows are returned in a ResultSet ?
22:40.54aa_hi bitsbam
22:41.21aa_.count ?
22:41.40jkakarbitsbam: result.count() will do what you want.
22:41.44bitsbamas in ResultSet.count? or count()
22:41.47bitsbamah, thanks
22:41.50jkakarnp
22:42.05bitsbamgreat wrapper you guys have here
22:42.22jkakarWorking with Storm is awesome, yes. :)
23:18.01*** part/#storm bitsbam (n=nephish@69.55.24.17)
23:18.52*** join/#storm tjs (n=tjs@203.206.162.25)
23:19.00tjsMorning :)
23:20.20tjsafter a month and a half of 'lets migrate our app from zope 3.2 to 3.4 and buildout/zope project, I finally get to come back to our storm migration :)
23:24.04jkakarHeya tjs
23:25.26tjshey
23:34.28*** join/#storm dobee (n=dobeee@81-223-53-162.dornbirn.xdsl-line.inode.at)

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