IRC log for #storm on 20120720

00:00.21*** join/#storm _mup_ (~mup@li37-90.members.linode.com)
00:17.45*** join/#storm fbru02 (~fbru02@r190-135-0-45.dialup.adsl.anteldata.net.uy)
00:31.21*** join/#storm jamesh__ (~james@58-7-188-190.dyn.iinet.net.au)
01:15.50*** join/#storm fbru02 (~fbru02@r190-135-0-45.dialup.adsl.anteldata.net.uy)
01:51.48*** join/#storm lifeless (~robertc@122.58.129.196)
02:00.13*** join/#storm fbru02 (~fbru02@r190-135-0-45.dialup.adsl.anteldata.net.uy)
02:44.51*** join/#storm lifeless (~robertc@122.58.129.196)
06:06.03*** join/#storm stub (~stub@canonical/launchpad/stub)
07:00.47*** join/#storm esteve (~quassel@h-91-126-88-6.wholesale.rp80.se)
09:07.44*** join/#storm acoconut (~coconut@78.253.221.87.dynamic.jazztel.es)
10:26.32*** join/#storm bigkevmcd (~kevin@87-194-156-112.bethere.co.uk)
10:42.39*** join/#storm fbru02 (~fbru02@r190-135-5-205.dialup.adsl.anteldata.net.uy)
11:37.57acoconutHi guys, I am trying to insert data into a table via storm and I keep getting an error because the primary key is not set. I thought it was set to autoreload! Here is the code: http://pastebin.com/5B4HHzpP can anybody help me?
11:43.36therveacoconut, what's your database? what the SQL schema of your table? can you give a traceback?
11:46.09acoconuttherve, it's postgresql. Here is the SQL schema: http://pastebin.com/MuUEhL4G and here is the traceback: http://pastebin.com/hscT2zYv
11:46.41therveacoconut, your SQL schema doesn't define an autoincrement column
11:47.18therveuse SERIAL instead of INTEGER NOT NULL
11:48.01acoconutoooh ok
11:51.21acoconuttherve yes!!! that worked perfectly! thank you!! :D
11:53.07therveyou're welcome
12:12.56*** join/#storm salgado (~salgado@host14.190-229-178.telecom.net.ar)
12:12.57*** join/#storm salgado (~salgado@canonical/salgado)
12:38.37*** join/#storm jdobrien (~quassel@184.88.20.142)
13:26.31*** join/#storm jamesh (~james@canonical/launchpad/jamesh)
13:49.34*** join/#storm niemeyer (~niemeyer@201.40.152.73)
13:49.34*** mode/#storm [+o niemeyer] by ChanServ
14:55.58*** join/#storm stub (~stub@node-ri7.pool-125-24.dynamic.totbb.net)
14:55.58*** join/#storm stub (~stub@canonical/launchpad/stub)
15:12.10*** join/#storm acoconut (~coconut@78.253.221.87.dynamic.jazztel.es)
15:15.38acoconutHi again guys. I'm really new to storm so I have new questions. I'm getting a disconnect error but I don't think I disconnect at all in my function. Here is the traceback: http://pastebin.com/ChWxAaM9 Here is the SQL schema: http://pastebin.com/MuUEhL4G and here is the code I wrote: http://pastebin.com/5B4HHzpP Does storm disconnect by default after adding things to the store? What's happening?
15:17.54therveacoconut, I think that happens when you call store.close() or something
15:18.46acoconutMmm, that's what I thought to but I never call close()
15:18.59acoconutAll I'm doing different now is that I have this for loop:
15:19.05acoconut223     for answer in essay:
15:19.07acoconut224         form.recordAnswer(email, question_index, answer, 1)
15:19.16acoconutand I get that error
15:19.28acoconutafter the first iteration
15:19.33acoconutthe second one never gets saved to the database
15:21.33thervethere is not enough code in what you're showing
15:21.39thervefor example self.store is not defined
15:21.54therveyou have self.database though?
15:25.57acoconutStore is in a decorator function I believe
15:26.48acoconutcheck this out: http://pastebin.com/Xwq2gEed
15:26.56acoconutI don't know what you mean by self.database
15:27.12acoconutI'm collaborating on an open source project with the google summer of code program
15:27.22acoconutso I'm just adding code to what other people did before
15:50.50*** join/#storm timsmith (~timsmith@216.64.169.240)
18:15.24*** join/#storm milosn (~milosn@5ac0f978.bb.sky.com)
19:22.32*** join/#storm _mup_ (~mup@li37-90.members.linode.com)
21:07.38*** join/#storm magmatt (~Matt@63-235-131-194.dia.static.qwest.net)
23:01.03*** join/#storm fbru02 (~fbru02@r186-52-176-5.dialup.adsl.anteldata.net.uy)

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