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.57 | acoconut | Hi 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.36 | therve | acoconut, what's your database? what the SQL schema of your table? can you give a traceback? |
11:46.09 | acoconut | therve, it's postgresql. Here is the SQL schema: http://pastebin.com/MuUEhL4G and here is the traceback: http://pastebin.com/hscT2zYv |
11:46.41 | therve | acoconut, your SQL schema doesn't define an autoincrement column |
11:47.18 | therve | use SERIAL instead of INTEGER NOT NULL |
11:48.01 | acoconut | oooh ok |
11:51.21 | acoconut | therve yes!!! that worked perfectly! thank you!! :D |
11:53.07 | therve | you'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.38 | acoconut | Hi 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.54 | therve | acoconut, I think that happens when you call store.close() or something |
15:18.46 | acoconut | Mmm, that's what I thought to but I never call close() |
15:18.59 | acoconut | All I'm doing different now is that I have this for loop: |
15:19.05 | acoconut | 223 for answer in essay: |
15:19.07 | acoconut | 224 form.recordAnswer(email, question_index, answer, 1) |
15:19.16 | acoconut | and I get that error |
15:19.28 | acoconut | after the first iteration |
15:19.33 | acoconut | the second one never gets saved to the database |
15:21.33 | therve | there is not enough code in what you're showing |
15:21.39 | therve | for example self.store is not defined |
15:21.54 | therve | you have self.database though? |
15:25.57 | acoconut | Store is in a decorator function I believe |
15:26.48 | acoconut | check this out: http://pastebin.com/Xwq2gEed |
15:26.56 | acoconut | I don't know what you mean by self.database |
15:27.12 | acoconut | I'm collaborating on an open source project with the google summer of code program |
15:27.22 | acoconut | so 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) |