*** tpb has joined #melange | 00:00 | |
*** monkegjinni has joined #melange | 00:10 | |
*** monkegjinni has quit IRC | 00:12 | |
*** monkegjinni has joined #melange | 00:12 | |
madrazr1 | shikher: POST button? | 00:16 |
---|---|---|
*** asmeurer_ has joined #melange | 00:21 | |
*** rocker has quit IRC | 00:47 | |
*** asmeurer_ has quit IRC | 00:50 | |
*** Niharika has joined #melange | 01:01 | |
*** monkegjinni has quit IRC | 01:10 | |
*** larryxiao has joined #melange | 01:27 | |
*** robbyoconnor has joined #melange | 01:31 | |
*** robbyoconnor has joined #melange | 01:31 | |
*** robbyoconnor has quit IRC | 01:35 | |
*** robbyoconnor has joined #melange | 01:36 | |
*** larryxiao has quit IRC | 01:40 | |
*** mang0 has quit IRC | 01:59 | |
*** larryxiao has joined #melange | 02:00 | |
*** raghunayyar has quit IRC | 02:07 | |
*** SinnerShanky has joined #melange | 02:14 | |
*** robbyoconnor has quit IRC | 02:41 | |
*** robbyoconnor has joined #melange | 02:49 | |
*** robbyoconnor has quit IRC | 02:53 | |
*** robbyoconnor has joined #melange | 02:56 | |
*** jasvir has joined #melange | 02:56 | |
*** SinnerShanky_ has joined #melange | 03:02 | |
*** SinnerShanky has quit IRC | 03:06 | |
*** monkegjinni has joined #melange | 03:08 | |
*** robbyoconnor has quit IRC | 03:08 | |
*** Darrel has quit IRC | 03:12 | |
*** Palash has joined #melange | 03:18 | |
Palash | Hello everyone! I'm a Django developer. Can anyone guide me to gsoc here. I want to contribute by Django development. | 03:19 |
*** monkegjinni has quit IRC | 03:32 | |
*** Palash has quit IRC | 03:32 | |
*** larryxiao has quit IRC | 03:37 | |
*** thej has joined #melange | 03:48 | |
*** SinnerShanky_ has quit IRC | 03:50 | |
*** thej has quit IRC | 03:51 | |
*** manugupt1__ has quit IRC | 03:56 | |
*** larryxiao has joined #melange | 03:59 | |
*** rihbyne has joined #melange | 04:06 | |
*** vimuthf has joined #melange | 04:16 | |
*** tricksy___ has joined #melange | 04:16 | |
*** vijay13 has joined #melange | 04:24 | |
*** thej has joined #melange | 04:24 | |
thej | Hello. My name is Thejdeep. I am interested in the Responsive Layout GSoC project . Any beginner bugs or micro tasks to work on | 04:25 |
madrazr1 | thej: https://code.google.com/p/soc/issues/list?q=label%3ABienvenue | 04:32 |
tpb | <http://ln-s.net/B+G0> (at code.google.com) | 04:32 |
madrazr1 | thej: Hello | 04:32 |
*** madrazr1 is now known as madrazr | 04:33 | |
*** madrazr has joined #melange | 04:34 | |
*** ChanServ sets mode: +o madrazr | 04:34 | |
thej | madrazr1: Hi | 04:34 |
madrazr | thej: Hi | 04:35 |
thej | madrazr: i will try fixing a few beginner bugs given in the above link..thanks | 04:35 |
madrazr | thej: you are welcome | 04:36 |
thej | madrazr: can i work on issue 1700 or is someone already working on it ? | 04:36 |
madrazr | thej: there was a student who was asking questions about the issue | 04:38 |
madrazr | I don't know if he is working on it though | 04:38 |
madrazr | thej: also, read my comment there | 04:38 |
madrazr | thej: also Daniel's | 04:38 |
madrazr | thej: Comments #5 and #6 | 04:38 |
madrazr | thej: it is not clear if that issue should be fixed the way the main description expects | 04:39 |
thej | madrazr: ok sure. if i have any doubts in the description , i will ping you | 04:39 |
madrazr | thej: Ok | 04:39 |
jasvir | madrazr: hello | 04:42 |
madrazr | jasvir: Hi | 04:42 |
*** Extreme has joined #melange | 04:43 | |
jasvir | madrazr: I am working on issue :https://code.google.com/p/soc/issues/detail?id=1923 . And I have posted my idea on how to solve this solve. But didn't get any response. Can you please tell me that is it a good idea or not. | 04:44 |
tpb | <http://ln-s.net/B9iG> (at code.google.com) | 04:44 |
*** vivekjain has joined #melange | 04:48 | |
*** Extreme is now known as Invision | 04:49 | |
jasvir | madrazr: You got it? | 04:57 |
*** nil1511 has joined #melange | 04:58 | |
madrazr | jasvir: get what? | 05:00 |
jasvir | madrazr: My request to review idea in previous message. | 05:02 |
madrazr | jasvir: ah | 05:03 |
madrazr | yeah yeah | 05:03 |
madrazr | wait | 05:03 |
jasvir | jasvir: ok | 05:03 |
jasvir | madrazr: ok :P | 05:04 |
madrazr | I am doing something right now | 05:04 |
madrazr | jasvir: infinite recursion is considered harmful :D | 05:04 |
madrazr | ;-) | 05:04 |
madrazr | jasvir: for your own fun https://www.google.com/search?q=recursion | 05:05 |
tpb | Title: recursion - Google Search (at www.google.com) | 05:05 |
jasvir | madrazr: I know what is recursion. | 05:06 |
jasvir | madrazr: :P | 05:06 |
madrazr | jasvir: the link I gave you, do you know about the easter egg on that page? :P | 05:09 |
madrazr | jasvir: btw, I have replied to your comment on the issue | 05:09 |
jasvir | madrazr: No I don't know about easter egg. | 05:10 |
olly | shame a search for "tail recursion" doesn't say "did you mean 'recursion'?" | 05:10 |
jasvir | madrazr: Ok | 05:10 |
madrazr | jasvir: then you should go see that page ;-) | 05:11 |
jasvir | madrazr: Sure | 05:11 |
madrazr | olly: may be someone in the search team has not come up with something awesome to indicate the "tail" part | 05:13 |
*** thej has quit IRC | 05:13 | |
madrazr | olly: it would be boring and sort of anticlimactic if they put "Did you mean: ..." at the top for tail recurision | 05:13 |
madrazr | *recursion | 05:13 |
jasvir | madrazr: Ok. Now I got it :D | 05:14 |
madrazr | Oh, oh, oh, btw. Full disclosure and some lawyerspeak :P I am am telling all these just as an impressed user. It is neither my employer's opinion nor has anything to do with confidential stuff :) | 05:15 |
*** larryxiao has quit IRC | 05:20 | |
olly | it's documented in wikipedia, so hardly secret - http://en.wikipedia.org/wiki/List_of_Google_hoaxes_and_easter_eggs#Search_Engine | 05:20 |
tpb | <http://ln-s.net/B+HO> (at en.wikipedia.org) | 05:20 |
madrazr | olly: my disclosure was not about the "recursion" easter egg | 05:22 |
madrazr | olly: but anyway, it really doesn't matter | 05:22 |
*** jasvir has left #melange | 05:25 | |
*** vijay13 has quit IRC | 05:28 | |
*** vivekjain has quit IRC | 05:36 | |
*** madrazr has quit IRC | 05:41 | |
*** Niharika1 has joined #melange | 05:59 | |
*** Niharika has quit IRC | 05:59 | |
*** Niharika1 is now known as Niharika | 06:02 | |
*** vivekjain has joined #melange | 06:13 | |
*** Palash has joined #melange | 06:15 | |
*** larryxiao has joined #melange | 06:16 | |
*** Palash has quit IRC | 06:20 | |
*** ashishk has joined #melange | 06:23 | |
*** ashishk has quit IRC | 06:25 | |
*** larryxiao has quit IRC | 06:25 | |
*** rihbyne has quit IRC | 06:30 | |
*** nil1511 has quit IRC | 06:33 | |
*** suranga has quit IRC | 06:35 | |
*** nil1511 has joined #melange | 06:38 | |
*** vivekjain has quit IRC | 06:39 | |
*** jasvir has joined #melange | 06:57 | |
*** Palash has joined #melange | 07:00 | |
*** larryxiao has joined #melange | 07:14 | |
*** larryxiao has quit IRC | 07:21 | |
*** vivekjain has joined #melange | 07:25 | |
*** vivekjain has quit IRC | 07:25 | |
*** ashishk has joined #melange | 07:27 | |
*** denysbutenko has quit IRC | 07:32 | |
*** denysbut_ has joined #melange | 07:32 | |
*** vimuthf has left #melange | 07:35 | |
*** SinnerShanky has joined #melange | 07:46 | |
*** Palash has quit IRC | 07:46 | |
*** shikher has quit IRC | 07:47 | |
*** larryxiao has joined #melange | 07:48 | |
*** ashishk has quit IRC | 07:50 | |
*** rihbyne has joined #melange | 07:51 | |
*** coderbrahmin has joined #melange | 07:57 | |
*** coderbrahmin has left #melange | 07:58 | |
*** Palash has joined #melange | 08:00 | |
*** Palash has quit IRC | 08:05 | |
*** denysbutenko has joined #melange | 08:06 | |
*** vivekjain has joined #melange | 08:07 | |
*** denysbut_ has quit IRC | 08:09 | |
*** SinnerShanky_ has joined #melange | 08:10 | |
*** SinnerShanky has quit IRC | 08:12 | |
*** jigar1 has joined #melange | 08:13 | |
*** jigar1 has left #melange | 08:14 | |
*** SinnerShanky has joined #melange | 08:17 | |
*** randomax has quit IRC | 08:20 | |
*** SinnerShanky_ has quit IRC | 08:20 | |
*** ashishk has joined #melange | 08:42 | |
*** rihbyne has quit IRC | 08:49 | |
*** SinnerShanky_ has joined #melange | 08:56 | |
*** SinnerShanky has quit IRC | 08:59 | |
*** ashishk has quit IRC | 09:05 | |
*** shikher has joined #melange | 09:05 | |
*** piyush_ has quit IRC | 09:07 | |
*** piyush has joined #melange | 09:09 | |
*** ashishk has joined #melange | 09:10 | |
*** SinnerShanky_ has quit IRC | 09:12 | |
*** larryxiao has quit IRC | 09:12 | |
*** SinnerShanky has joined #melange | 09:13 | |
*** jasvir has left #melange | 09:14 | |
*** ashishk has quit IRC | 09:20 | |
*** Palash has joined #melange | 09:24 | |
*** ashishk has joined #melange | 09:24 | |
*** SinnerShanky has quit IRC | 09:29 | |
*** SinnerShanky has joined #melange | 09:30 | |
*** SinnerShanky has quit IRC | 09:34 | |
*** ashishk has quit IRC | 09:36 | |
*** SinnerShanky has joined #melange | 09:37 | |
*** nil1511 has quit IRC | 09:39 | |
*** Niharika has quit IRC | 09:41 | |
*** nil1511 has joined #melange | 09:42 | |
*** rihbyne has joined #melange | 09:42 | |
*** larryxiao has joined #melange | 09:55 | |
*** vivekjain has quit IRC | 10:12 | |
*** tricksy___ has quit IRC | 10:20 | |
*** bmm has joined #melange | 10:27 | |
*** bmm has quit IRC | 10:28 | |
*** jasvir has joined #melange | 10:42 | |
*** rocker has joined #melange | 10:53 | |
*** rocker_ has joined #melange | 10:53 | |
*** rocker has quit IRC | 10:53 | |
*** larryxiao1 has joined #melange | 10:54 | |
*** larryxiao has quit IRC | 10:56 | |
*** bmm has joined #melange | 10:57 | |
*** nil1511 has quit IRC | 10:58 | |
*** denysbutenko has quit IRC | 10:58 | |
bmm | Hi everyone, i am Brian. I am very interested in joining the melange project on gsoc | 10:58 |
*** bmm is now known as mesb | 10:59 | |
*** mesb is now known as bmm | 10:59 | |
*** bmm is now known as man1acbmm | 11:00 | |
man1acbmm | Hi every one, i am Brian, and i am interested in joining the melange project for the gsoc | 11:01 |
*** rihbyne has quit IRC | 11:01 | |
*** man1acbmm has quit IRC | 11:02 | |
*** Palash has quit IRC | 11:12 | |
*** jasvir has left #melange | 11:15 | |
*** coderbrahmin has joined #melange | 11:22 | |
*** coderbrahmin_ has joined #melange | 11:22 | |
*** coderbrahmin has quit IRC | 11:22 | |
*** coderbrahmin_ has quit IRC | 11:22 | |
*** coderbrahmin has joined #melange | 11:22 | |
*** coderbrahmin has quit IRC | 11:30 | |
*** SinnerShanky has quit IRC | 11:32 | |
*** SinnerShanky has joined #melange | 11:33 | |
*** larryxiao1 has quit IRC | 11:35 | |
*** SinnerShanky_ has joined #melange | 11:41 | |
*** SinnerShanky has quit IRC | 11:42 | |
*** anjana has joined #melange | 11:51 | |
*** monkegjinni has joined #melange | 11:55 | |
*** vivekjain has joined #melange | 11:59 | |
*** denysbutenko has joined #melange | 11:59 | |
*** larryxiao has joined #melange | 12:02 | |
*** denysbutenko has quit IRC | 12:03 | |
*** shalini479 has joined #melange | 12:06 | |
shalini479 | hello all | 12:07 |
shalini479 | i am new to melange, would love to contribute, i had this little doubt about cloning the melange directory into my system | 12:08 |
shalini479 | do i need to create my own clone n then setup in my machine? | 12:08 |
shalini479 | or do i just follow the instructions on setup page? ie. https://code.google.com/p/soc/wiki/GettingStarted#Contributing | 12:08 |
shalini479 | ? | 12:08 |
tpb | <http://ln-s.net/B+Wd> (at code.google.com) | 12:08 |
*** coderbrahmin has joined #melange | 12:09 | |
shalini479 | need help.. !! | 12:10 |
*** larryxiao has quit IRC | 12:11 | |
*** denysbutenko has joined #melange | 12:22 | |
*** anjana has left #melange | 12:24 | |
*** denysbutenko has quit IRC | 12:27 | |
*** vivekjain has quit IRC | 12:33 | |
*** coderbrahmin has quit IRC | 12:40 | |
*** RaulT has joined #melange | 12:55 | |
*** coderbrahmin has joined #melange | 12:58 | |
*** Niharika has joined #melange | 13:03 | |
*** larryxiao has joined #melange | 13:07 | |
*** larryxiao has quit IRC | 13:13 | |
*** larryxiao1 has joined #melange | 13:13 | |
*** coderbrahmin has quit IRC | 13:16 | |
*** denysbutenko has joined #melange | 13:23 | |
*** denysbutenko has quit IRC | 13:27 | |
*** shalini479 has left #melange | 13:30 | |
*** coderbrahmin has joined #melange | 13:40 | |
*** raghunayyar has joined #melange | 13:43 | |
*** coderbrahmin has quit IRC | 13:51 | |
*** vivekjain has joined #melange | 13:59 | |
*** devang has joined #melange | 14:05 | |
*** debugger22 has joined #melange | 14:20 | |
*** debugger22 has left #melange | 14:22 | |
*** denysbutenko has joined #melange | 14:24 | |
*** denysbutenko has quit IRC | 14:28 | |
*** devang has quit IRC | 14:50 | |
*** vivekjain has quit IRC | 14:52 | |
*** larryxiao1 has left #melange | 14:58 | |
*** rocker has joined #melange | 15:02 | |
*** anjana has joined #melange | 15:04 | |
*** SinnerShanky_ has quit IRC | 15:05 | |
*** rihbyne has joined #melange | 15:14 | |
*** rihbyne has quit IRC | 15:21 | |
*** denysbutenko has joined #melange | 15:24 | |
*** denysbutenko has quit IRC | 15:29 | |
*** jasvir has joined #melange | 15:52 | |
*** ashishk has joined #melange | 15:58 | |
*** ashishk has quit IRC | 15:59 | |
*** anjana has quit IRC | 15:59 | |
*** devang has joined #melange | 16:11 | |
*** denysbutenko has joined #melange | 16:25 | |
*** denysbutenko has quit IRC | 16:30 | |
*** devang has quit IRC | 16:54 | |
*** devang has joined #melange | 16:57 | |
*** jasvir has left #melange | 17:00 | |
*** SinnerShanky has joined #melange | 17:20 | |
*** denysbutenko has joined #melange | 17:26 | |
*** denysbutenko has quit IRC | 17:30 | |
*** devang has quit IRC | 17:36 | |
*** devang has joined #melange | 17:38 | |
*** devang has quit IRC | 17:45 | |
*** Darrel has joined #melange | 17:46 | |
*** devang has joined #melange | 17:47 | |
*** coderbrahmin has joined #melange | 18:00 | |
*** coderbrahmin has left #melange | 18:00 | |
*** manugupt1 has joined #melange | 18:14 | |
*** manugupt1 has joined #melange | 18:14 | |
*** vivekjain has joined #melange | 18:15 | |
*** asmeurer has joined #melange | 18:18 | |
*** denysbutenko has joined #melange | 18:27 | |
*** devang has quit IRC | 18:27 | |
*** denysbutenko has quit IRC | 18:31 | |
*** devang has joined #melange | 18:32 | |
*** coderbrahmin has joined #melange | 18:33 | |
*** Niharika has quit IRC | 18:35 | |
*** manugupt1 has quit IRC | 18:41 | |
*** manugupt1 has joined #melange | 18:44 | |
*** manugupt1 has joined #melange | 18:44 | |
*** mang0 has joined #melange | 18:47 | |
*** mang0 has joined #melange | 18:47 | |
*** monkegjinni has quit IRC | 18:47 | |
*** ashishk has joined #melange | 18:48 | |
*** manugupt1 has quit IRC | 18:49 | |
*** ashishk has quit IRC | 18:50 | |
*** denysbutenko has joined #melange | 18:53 | |
*** monkegjinni has joined #melange | 18:55 | |
*** devang has quit IRC | 18:55 | |
*** devang has joined #melange | 18:56 | |
*** coderbrahmin_ has joined #melange | 18:58 | |
*** coderbrahmin has quit IRC | 18:58 | |
*** devang has quit IRC | 19:02 | |
*** suranga has joined #melange | 19:08 | |
*** asmeurer has quit IRC | 19:09 | |
*** ashishk has joined #melange | 19:17 | |
*** coderbrahmin_ has quit IRC | 19:31 | |
*** vivekjain has quit IRC | 19:39 | |
*** asmeurer has joined #melange | 19:40 | |
*** ashishk has quit IRC | 19:41 | |
*** coderbrahmin_ has joined #melange | 19:51 | |
*** ashishk has joined #melange | 20:02 | |
*** vivekjain has joined #melange | 20:06 | |
*** coderbrahmin_ has quit IRC | 20:07 | |
*** mudler has quit IRC | 20:27 | |
*** coderbrahmin_ has joined #melange | 20:37 | |
*** sebastian has joined #melange | 20:44 | |
*** asmeurer has quit IRC | 20:47 | |
*** ahsanalishahid has joined #melange | 21:06 | |
*** suranga has quit IRC | 21:15 | |
*** madrazr has joined #melange | 21:19 | |
*** ChanServ sets mode: +o madrazr | 21:19 | |
*** debugger22 has joined #melange | 21:31 | |
*** sebastian has quit IRC | 21:37 | |
*** ashishsfb has joined #melange | 21:41 | |
*** debugger22 has joined #melange | 21:47 | |
shikher | madrazr: hey | 22:05 |
*** debugger22 has left #melange | 22:09 | |
madrazr | shikher: Hi | 22:11 |
shikher | madrazr: I have a few questions today. Yesterday, i was talking about the POST button for program admins. | 22:12 |
shikher | Well it the POST button is the button which makes a POST request for removing admins. | 22:12 |
shikher | Well the* | 22:13 |
madrazr | shikher: Ok | 22:17 |
madrazr | shikher: which page? | 22:17 |
shikher | madrazr: it is the page for viewing program admins. | 22:18 |
madrazr | shikher: URL please | 22:18 |
*** asmeurer__ has joined #melange | 22:18 | |
madrazr | shikher: it is a no-op for me until you give the URLs :) | 22:18 |
shikher | madrazr: I am working on this page, it is an enhancement | 22:18 |
madrazr | shikher: ah Ok | 22:19 |
madrazr | shikher: Ok alright | 22:19 |
madrazr | shikher: what about the POST button on that page? | 22:19 |
shikher | madrazr: I am getting an error. I will pastebin it to you. just give me a sec. | 22:19 |
shikher | madrazr: http://pastebin.com/HhHzkqFb | 22:24 |
tpb | Title: ERROR 2014-03-01 22:24:29,180 gae_django.py:33] Exception in request: Traceb - Pastebin.com (at pastebin.com) | 22:24 |
*** monkegjinni has quit IRC | 22:28 | |
*** asmeurer__ has quit IRC | 22:36 | |
madrazr | shikher: so what's up with this stack trace? | 22:36 |
shikher | madrazr: I am not able to figure out why it is giving incorrect padding. The key is not empty. and I have used a similar line of code in viewing of program admins, for conversion of old key to new. | 22:38 |
shikher | from old key* | 22:38 |
madrazr | shikher: how can I tell anything without seeing the code? | 22:39 |
madrazr | shikher: but anyway, in this particular case | 22:39 |
madrazr | let me make an exception :P | 22:39 |
madrazr | File "/home/kira111/shikher111-melange-soc/build/soc/modules/gsoc/views/program.py", line 345, in removeAdmin | 22:39 |
madrazr | db.run_in_transaction(remove_admin_txn) | 22:39 |
madrazr | is your problem | 22:39 |
madrazr | your remove_admin_txn is probably touching Profiles | 22:40 |
madrazr | which is an NDB model | 22:40 |
shikher | madrazr: yes | 22:40 |
madrazr | through db.run_in_transaction() | 22:40 |
madrazr | which is a regular DB API | 22:40 |
madrazr | you should be using ndb.transaction() instead | 22:41 |
madrazr | or I would much prefer the @ndb.transactional decorator | 22:41 |
shikher | madrazr: okay. I see the problem. | 22:42 |
shikher | madrazr: thanks | 22:43 |
madrazr | shikher: np | 22:43 |
shikher | madrazr: getting same error. http://pastebin.com/E3hAWyxL I have also added the code. | 22:52 |
tpb | Title: def removeAdmin(self, data): for properties in data: if - Pastebin.com (at pastebin.com) | 22:52 |
shikher | madrazr: Now is this error because program is a db property, not an ndb? | 22:58 |
*** vivekjain has quit IRC | 22:59 | |
*** bitgeeky has joined #melange | 23:02 | |
madrazr | shikher: answers specific to your question/problem are | 23:05 |
madrazr | shikher: program = program_key_new.get() | 23:05 |
madrazr | not possible | 23:05 |
madrazr | or may be it is | 23:06 |
madrazr | but I don't see a reason to do it | 23:06 |
madrazr | secondly, profile and program are not in the same entity groups | 23:06 |
madrazr | so you can't be executing queries within the same transaction for them in a non CrossGroup transaction | 23:06 |
madrazr | for both of them in the same transaction I mean | 23:07 |
madrazr | while those things may help | 23:07 |
madrazr | there are several things in the code that may be worth taking a look at | 23:07 |
madrazr | I don't know if this is your code structure that you are going to keep | 23:08 |
madrazr | or if you are going to rework the entire thing | 23:08 |
madrazr | but it at least from my POV now it needs complete rework | 23:08 |
shikher | madrazr: sure | 23:08 |
shikher | madrazr: rework for the transaction you mean, right. | 23:08 |
madrazr | shikher: or may be the entire function removeAdmin() | 23:09 |
*** coderbrahmin_ has quit IRC | 23:09 | |
madrazr | shikher: I am a little surprised to see for properties in data: | 23:09 |
madrazr | entire function is a loop? | 23:09 |
madrazr | what is data? | 23:09 |
madrazr | and what is properties? | 23:09 |
madrazr | where are you getting them from? | 23:09 |
madrazr | and where does this method sit? | 23:10 |
madrazr | and also you call transactions within a loop? | 23:10 |
shikher | madrazr: data contains data about all program admins for current program | 23:10 |
madrazr | shikher: where are you getting it from? | 23:11 |
madrazr | shikher: and what do you mean by data about all program admins? | 23:11 |
madrazr | it is a list of entities? | 23:11 |
madrazr | if you had to described the type, how would you describe? | 23:11 |
shikher | madrazr: in post data, data = parsed = json.loads(data) | 23:12 |
madrazr | shikher: this is part of our list protocol? | 23:13 |
madrazr | shikher: that's what the list sends? | 23:13 |
shikher | madrazr: yes i believe so | 23:13 |
*** trout is now known as variable | 23:14 | |
shikher | madrazr: for the description | 23:16 |
*** RaulT has quit IRC | 23:16 | |
shikher | the post data has all the selected data, in this case all program admins to be removed | 23:17 |
shikher | json.loads(data) is list protocol for loading post data, i think | 23:17 |
shikher | then is send this parsed data to removeAdmin() | 23:18 |
shikher | then in removeAdmin(), properties of each entity in this parsed data is looked at and hence the entities' host_for property is updated | 23:21 |
shikher | i have to iterate, because I am not able to perform the update in one transaction, since I have to remove the program_key from the host_for list for each entity in the POST data | 23:22 |
shikher | madrazr: this is the reference code i used to figure out the flow, http://pastebin.com/dJVT2XwE . It is for accepting proposal. | 23:27 |
tpb | Title: def postAccept(self, data, accept): for properties in data: if 'full - Pastebin.com (at pastebin.com) | 23:27 |
madrazr | shikher: please link the code in our source browser | 23:31 |
madrazr | shikher: copy pasting the code in to the pastebin is neither productive for you | 23:32 |
madrazr | nor for me | 23:32 |
shikher | madrazr: sure | 23:32 |
*** ashishsfb has quit IRC | 23:33 | |
*** rocker has quit IRC | 23:33 | |
*** bitgeeky has quit IRC | 23:33 | |
shikher | madrazr: http://code.google.com/p/soc/source/browse/app/soc/modules/gsoc/views/dashboard.py | 23:34 |
tpb | <http://ln-s.net/B+rm> (at code.google.com) | 23:34 |
*** ashishsfb has joined #melange | 23:36 | |
olly | is it expected that homepages for rejected orgs work? e.g. http://www.google-melange.com/gsoc/org2/google/gsoc2014/damn | 23:40 |
tpb | <http://ln-s.net/B+ry> (at www.google-melange.com) | 23:40 |
madrazr | shikher: it is still not clear to me what is going on here, but anyway, I will let you continue on this work | 23:41 |
madrazr | olly: no | 23:42 |
madrazr | olly: please file an issue | 23:42 |
olly | will do | 23:42 |
madrazr | olly: thanks! | 23:43 |
gevaerts | Isn't that the same as https://code.google.com/p/soc/issues/detail?id=2029 ? | 23:43 |
tpb | <http://ln-s.net/B+s5> (at code.google.com) | 23:43 |
olly | as filed by ... me! | 23:43 |
olly | it's certainly related | 23:43 |
madrazr | gevaerts: probably related | 23:43 |
olly | i'll comment there I think to note this | 23:43 |
madrazr | but they are not exactly the same | 23:43 |
* gevaerts tries to sell a RAM upgrade to olly :) | 23:44 | |
olly | madrazr: or is a separate ticket better? | 23:44 |
gevaerts | madrazr: well, I didn't read the code :) | 23:44 |
madrazr | olly: separate is better | 23:44 |
olly | sure | 23:44 |
madrazr | gevaerts: you don't have to | 23:44 |
gevaerts | Oh, good! | 23:44 |
* gevaerts stops feeling guilty :) | 23:44 | |
madrazr | gevaerts: that's the reason why I am telling you they are related | 23:44 |
madrazr | gevaerts: if I knew you had read the code, I would have taken it for granted that you knew that already | 23:45 |
madrazr | :P | 23:45 |
madrazr | although | 23:45 |
* madrazr suspects olly might have read the code ;-) | 23:46 | |
* gevaerts isn't enough of a python or web person to usefully read the code anyway | 23:46 | |
olly | madrazr: nope | 23:46 |
shikher | madrazr: i can't continue work on this as I am not able to fix tht error. any advice on what i should do? | 23:47 |
madrazr | shikher: a few things | 23:48 |
madrazr | program_key_new = ndb.Key.from_old_key(program_key) | 23:48 |
madrazr | 23:48 | |
madrazr | program = program_key_new.get() | 23:48 |
madrazr | 23:48 | |
madrazr | if not program: | 23:48 |
madrazr | logging.warning("Invalid program_key '%s'", program_key_new) | 23:48 |
madrazr | return | 23:48 |
madrazr | that should be outside the transaction | 23:48 |
madrazr | oops | 23:48 |
madrazr | oops | 23:48 |
madrazr | my apologies! | 23:48 |
madrazr | I just violated the IRC etiquette | 23:48 |
madrazr | sorry about that | 23:49 |
madrazr | shikher: move that code snippet out of the transaction | 23:49 |
shikher | madrazr: ok | 23:49 |
olly | now #2060 | 23:50 |
madrazr | profile = profile_key.get() | 23:50 |
madrazr | if not profile: | 23:50 |
madrazr | should move out of the transaction too | 23:50 |
madrazr | olly: awesome! thanks! | 23:50 |
olly | madrazr: the fact the homepages were working before proposals had been reviewed floated through my brain, and I wondered what happened for rejected orgs now, so tested it | 23:51 |
madrazr | shikher: although this is not required, I think this line is cumbersome and can be made a lot better | 23:51 |
madrazr | shikher: user=user_model.User.query(user_model.User.key.id() == profile.key.id()).get() | 23:51 |
madrazr | shikher: can rewritten as | 23:51 |
madrazr | shikher: user = profile.key.parent() | 23:52 |
madrazr | shikher: how does this even work? if program in user.host_for: | 23:52 |
madrazr | shikher: shouldn't that be if program_key in user.host_for: ? | 23:52 |
*** rocker has joined #melange | 23:52 | |
shikher | madrazr: i have removed the line completely program = program_key_new.get() , and move the other stuff out of transaction. | 23:53 |
shikher | madrazr: oh! sorry! yes that should be program_key | 23:53 |
madrazr | shikher: that should obviate the need for program in the entity form within the transaction | 23:54 |
madrazr | shikher: that is a virtual (line-by-line) rewrite of the entire transaction :P | 23:54 |
madrazr | shikher: but anyway, should fix your exception | 23:54 |
shikher | madrazr: the error still persists. | 23:54 |
madrazr | olly: Oh ok | 23:54 |
madrazr | shikher: Linus Torvalds said (a very controversial quote): "Talk is cheap, show me the code" | 23:55 |
madrazr | :P | 23:55 |
madrazr | Oh man, only if that dude was less any controversial ;-) | 23:55 |
shikher | madrazr: I was in the process, anyways New stack trace. http://pastebin.com/yaQVzLiW . | 23:57 |
tpb | Title: def removeAdmin(self, data): for properties in data: logging.error - Pastebin.com (at pastebin.com) | 23:57 |
shikher | had to google that name. Linux :D | 23:57 |
madrazr | shikher: wait, what did you have to Google for? | 23:58 |
madrazr | oops, *google for? | 23:58 |
shikher | linus torvalds, :D | 23:59 |
madrazr | ah | 23:59 |
madrazr | this line of code is doing the wrong thing: program_key_new = ndb.Key.from_old_key(program_key) | 23:59 |
madrazr | I am assuming program_key is of type string? | 23:59 |
Generated by irclog2html.py 2.12.1 by Marius Gedminas - find it at mg.pov.lt!