--- Log opened Sat Apr 26 00:00:10 2008
00:04 < teamon> hi, why it is like that?
00:04 < teamon> >> Product.new.tax = nil
00:04 < teamon> NoMethodError: undefined method `key' for nil:NilClass
00:16 < teamon> anyone?
00:44 < myobie> how close is datamapper to 0.9 ?
02:32 < zond_hme0> ping
02:50 < dkubb> zond_hme0: whom are you pinging?
02:52 * afrench ducks and hides from impending grammar police invasion
02:55 < dkubb> afrench: I think a grammar policeman would get booted pretty quickly in IRC, or at least lose their mind :)
02:58 < zond_hme0> dkubb: people pinged me a few hours back
02:58 < dkubb> ahh
02:58 < zond_hme0> dkubb: i just wanted to make them aware that i was alive :)
02:58 < zond_hme0> dkubb: but now i have to go sleep, its 4 am here...
02:58 < dkubb> good night
02:59 < zond_hme0> thanks, good night to you too, whenever its night for you :D
03:02 < myobie> benburkert: your automigrations are looking cool, do you mind to merge in the latest dm-core from sam so i can steal your current branch and play? ;)
03:02 < myobie> i understand if you are busy
03:26 < benburkert> myobie: yea, give me a few minutes
03:26 < myobie> benburkert: take your time
03:26 < myobie> and thanx
03:38 < flazz> is it correct to say in a has_many/belongs_to setting something as the parent does not imply setting that somethings children?
03:47 < myobie> flazz: i guess what you mean is that the only record that is updates is the child? (the one with the _id field)
03:48 < flazz> sort of, child.parent=the_parent, only updates the child; the_parent.children << child only updates the_parent
03:49 < flazz> is that the correct behavior? or am i doing something wrong?
03:51 < myobie> flazz: the_parent.children << child would set the child's parent_id column
03:51 < myobie> do you mean that the save callbacks are not being called how you want?
03:56 < flazz> i'm not calling save at this point?
03:56 < flazz> the callbacks will set these?
03:57 < myobie> flazz: well, in my mind, << would call save, but child.parent would not
03:57 < myobie> but i am not sure
03:59 < benburkert> myobie: ok, i just pushed
03:59 < myobie> benburkert: cool
03:59 < myobie> benburkert: do you know anything about the way sti works with datamapper?
03:59 < benburkert> myobie: i wasn't able to fix 7 failures due in the new transaction stuff
03:59 < myobie> ah, ok
03:59 < benburkert> sti?
03:59 < myobie> single table inheritance
04:00 < benburkert> no, sorry
04:00 < flazz> myobie: STI, Foo, Bar < Foo
04:00 < myobie> yeah, in 0.9 it's pretty weird
04:00 < flazz> at least according to the docs
04:00 < myobie> i can't actually figure out what's going on
04:00 < flazz>
http://datamapper.org/docs/misc.html04:01 < myobie> flazz: yeah, but in 0.9 i get errors if i set a property on a subclass
04:01 < benburkert> myobie: what's the issue?
04:01 < benburkert> myobie: can you pastie them
04:01 < myobie> i think it's cause dm uses class vars to track the properties, and they are not avail in the subclass
04:01 < benburkert> yea, that's probably it
04:01 < myobie>
http://pastie.caboo.se/18711204:02 < myobie> causes all sorts of issues
04:02 < myobie> if i include DataMapper::Resource into the subclass, i can then set properties, but it forgets the parent classes properties
04:03 < myobie> im not sure how to overcome the issue
04:11 < afrench> so.....how does one install the newest data_objects adapters?
04:17 < benburkert> afrench: from the do dir, i run "git pull && ./make_release.sh && sudo gem install pkg/*"
04:17 < afrench> I think I just did that, but manually
04:17 < afrench> not using make_release.sh
04:24 < myobie> afrench: i just did sudo rake install
04:24 < myobie> i think
04:24 < afrench> s'ok, I got it ;-)
04:24 < afrench> was mostly just asking because it wasn't immediately obvious
04:24 < flazz> how can i implement a has_many_and_belongs_to (tree) association?
04:27 < myobie> flazz: you look at is_tree?
04:27 < flazz> no
04:27 < myobie> look in the dm source, there is an is directory
04:27 < flazz> DataMapper::Associations?
04:27 < flazz> ok
04:28 < myobie> i have been meaning to make a is_nested_set, but i just havn't had the time
04:28 < myobie> i recommend nested set over tree
04:28 < flazz> myobie: thanks
04:29 < afrench> myobie: agreed....far better
04:33 < afrench> anyone know why I'm getting A TON of spec failures because sqlite3 is saying its unable to open database file?
04:33 < flazz> can sqlite open the database file itself?
04:34 < afrench> there is no databasefile
04:41 < myobie> afrench: you could use sqlite3 to create the database file
04:42 < myobie> just sqlite3 databasename
04:42 < myobie> i htink
04:43 < afrench> it drops me into an sqlite3 session, but when I just exit out without doing anything, the file doesn't get created
04:43 < afrench> oh, I lie, yes it does
04:45 < afrench> very nice
04:45 < afrench> je suis un happy camper
06:23 < hubbub> [dm-core/master] Use File.expand_path with require to ensure the path is normalized
07:03 < jackdempsey> hey all...anyone up?
07:04 < jackdempsey> wondering if anyone knows what happened to dm-merb
07:05 < jackdempsey> used to have it in dm-more
07:09 < be9> jackdempsey: seems it was renamed to merb_datamapper
07:10 < jackdempsey> yea
07:10 < jackdempsey> problem is some code still is trying to require it as dm-merb
07:10 < be9> then what happened to dm-merb hasn't happened to this code :)
07:10 < jackdempsey>
http://pastie.caboo.se/18715407:12 < jackdempsey> ah
07:12 < jackdempsey> lib/merb-core/core_ext/kernel.rb: when 'dm_core' then 'dm-merb'
07:12 < jackdempsey> that hasn't changed yet i guess
07:20 < jackdempsey> anyone use latest dm stuff on a ubuntu dapper drake?
07:20 < jackdempsey> Pathname doesn't seem to work right for me
11:40 < teamon> is there a way to customize @product.categories << method (Products has_many :categories)
12:13 < teamon> is this channel empty..?
12:14 < yaroslav> its saturday
12:15 < teamon> yesterday was same...
12:18 < teamon> u really dont know? :/
13:02 < Somebee> teamon: You using 0.3?
13:03 < teamon> yes
13:03 < teamon> someone here said that i should use 0.3 instead of not finished 0.9
13:04 < teamon> i really like the DM way but it seams to be really unfinished
13:04 < teamon> also the property :default is not working
13:07 < teamon> i guess i`ll have to use AR :/
13:08 < Somebee> teamon: I have never used 0.3. Trying to use 0.9 for a project now.. 0.9 is still unfinished, but it seems relatively stable for the basic functionality
13:08 < teamon> how to get it?
13:09 < Somebee> teamon: you're using merb or rails?
13:09 < teamon> merb
13:10 < Somebee> teamon:
http://merb.4ninjas.org/ check out "getting started". But there are some quirks atm.. the automigrate does not work, so you must make tables manually, and you might have some troubles installing it
13:11 < teamon> :/
13:11 < Somebee> took me 1-2 hours to get everything up and going, as there was some problems (needed merb_datamapper 0.9.3 instead of 0.9.2 and some other stuff)
13:11 < teamon> so i will use AR for now.
13:12 < teamon> but i think there should be some information on datamapper site "please do not use it yet" ;)
13:13 < teamon> i will wait for finished version, thanks for explaining
13:16 < Somebee> teamon: I know, its a little problematic with the 0.3v being public, and a 0.9 version that is very different :-)
13:16 < Somebee> But it'll be worth the wait :P
13:17 < teamon> i know it :) it looks great for me
13:17 < Somebee> guys, can I just use my own fork of dm-core by adding it as a submodule in merbproject/gems ??
13:18 < wycats> Somebee: no
13:19 < Somebee> wycats: Is there a relatively simple way to do it? Making merb use a fork of dm-core instead of gem?
13:20 < wycats> you gotta create the gem and then gem install -i it
13:20 < Somebee> hmm, ok
13:34 < teamon> hm do you know what to automaticli migrate database with autotest?
14:51 < Somebee> wycats: is it intentional that the merb_datamapper plugin in merb-plugins does not work with dm-core 0.9.0? There are some changes needed to get it working. I've pushed them to my fork, but I know that someone has fixed it earlier to, as I have a merb_datamapper 0.9.3 get installed
14:51 < wycats> Somebee: you need to use merb_datamapper in dm-more
14:51 < wycats> they took ownership of it
14:52 < Somebee> wycats: ah, ok. So thats where I have it from... will this be removed in merb-plugins then? I guess I need to remove it from framework/merb-plugins to get it to use the 0.9.3-gem
14:53 < wycats> Somebee: probably
15:05 < wycats> any progress on Query::Path?
16:08 < mcolyer> is there a way to create manual migrations with dm right now?
16:16 < smoofles> mcolyer: I'm new to DM, but I've only seen a migration that creates the tables/fields
16:16 < smoofles> and I think it's destructive, too (so data gets lost if any was in the table already)
16:16 < smoofles> rake dm:db:migrate, I think
16:17 < mcolyer> smoofles: did you mean the automigrate! thing?
16:17 < smoofles> er, jap
16:17 < smoofles> right, the one I did in the merb console
16:18 < mcolyer> smoofles: yeah, I don't want to use that one as you said its destructive and I am hoping to run migrations on a production database
16:18 < smoofles> I think any more complicated migrations are comming in 0.9, if I understood it correctly
16:20 < smoofles> hm, I'd try a "backup database, migrate, re-load data" then, but not sure if it's something you should be doing on a live production db
16:47 < smoofles> is the datamapper property :class something that will grow into polymorphic associations or does it have a completely different meaning?
18:05 < wycats> how's Query::Path coming along?
19:08 < wycats> hey guys
19:08 < ior3k> wycats: hey
19:08 < wycats> so how's Query::Path?
19:09 < ior3k> wycats: what about it?
19:09 < ior3k> is it broken?
19:09 < wycats> does it work?
19:09 < wycats> if so, how does it work?
19:10 < ior3k> Query::Path encapsulates an array of relationships
19:10 < ior3k> you use it to do those Zoo.all(
Zoo.animals.name => 'tiger')
19:11 < wycats> how does it work internally?
19:11 < wycats> How does a query object look if there are Query::Path objects inside
19:12 < ior3k> the
Zoo.animals.name thing returns Query::Paths, and they are chained through method_missing
19:12 < ior3k> the last field is a property from the right model
19:12 < ior3k> and that is used to create the join, I think
19:12 < ior3k> at least, this is the idea I have
19:13 < wycats> does it actually work?
19:13 < wycats> today?
19:13 < ior3k> yup
19:13 < ior3k> guyvdb_ was the one that implemented it
19:33 < afrench> was there any progress on merb_datamapper use_orm :datamapper debate?
19:34 * afrench trying to write a merb 0.9 + DM 0.9 app and hit that barrier
19:40 < ior3k770> afrench: use :datamapper is the way
19:40 < afrench> I totally just got it working, actually
19:40 < afrench> I had frozen dm-more into the project and it couldn't find merb_datamapper
19:40 < afrench> so I refroze merb_datamapper individually and it worked
19:41 < ior3k770> and this was the last version from git?
19:41 < afrench> yeah, I think
--- Log opened Sat Apr 26 22:29:39 2008
23:14 < ior3k770> Anyone know of a good introductory math book.
23:14 < ior3k770> ?
23:15 < ior3k770> There's very little about math that I remember, and I'd like to refresh my memory
23:25 < mcolyer> does association saving work for other people in v0.3.0? (aka post = Post[1]; comment = post.comments.build)
23:58 < wycats> benburkert: you around?
23:58 < benburkert> wycats: yea
23:58 < wycats> how do I get automigs?
23:58 < wycats> I cloned your automigs branch
23:58 < wycats> but there's no DM.auto_migrate!
23:59 < benburkert> DM.auto_migrate! or DataMapper.auto_migrate!
--- Log closed Sun Apr 27 00:00:03 2008