*** tpb has joined #melange | 00:00 | |
*** asmeurer has joined #melange | 00:18 | |
*** Darrel has quit IRC | 00:37 | |
*** bitgeeky has quit IRC | 01:14 | |
*** monkegjinni has quit IRC | 01:30 | |
*** monkegjinni has joined #melange | 01:30 | |
*** asmeurer has quit IRC | 01:54 | |
*** monkegjinni has quit IRC | 02:50 | |
*** robbyoconnor has joined #melange | 04:44 | |
*** MatthewWilkes is now known as mwilkes|away | 06:16 | |
*** madrazr has quit IRC | 07:00 | |
*** Darrel has joined #melange | 07:47 | |
*** robbyoconnor has quit IRC | 10:10 | |
*** mwilkes|away is now known as MatthewWilkes | 12:20 | |
*** MatthewWilkes is now known as mwilkes|away | 12:38 | |
*** Niharika has joined #melange | 13:27 | |
*** RoonyH has joined #melange | 13:28 | |
Niharika | Hello! | 13:28 |
---|---|---|
RoonyH | Niharika: hello! | 13:29 |
*** bitgeeky has joined #melange | 13:49 | |
*** bitgeeky has quit IRC | 13:56 | |
*** bitgeeky has joined #melange | 13:56 | |
*** RoonyH has quit IRC | 14:31 | |
*** RoonyH has joined #melange | 15:09 | |
*** RoonyH has joined #melange | 15:33 | |
*** jasvir has joined #melange | 15:35 | |
jasvir | hello everyone. After doing git pull, a typeError is introduced. Here is the error: http://202.164.53.122/~jasvir/error.png and here is traceback: http://dpaste.com/1590885/ | 15:46 |
tpb | Title: dpaste: #1590885: TypeError at /gsoc/homepage/google/gsoc2014, by Django (at dpaste.com) | 15:46 |
*** RoonyH has quit IRC | 16:16 | |
*** robbyoconnor has joined #melange | 16:25 | |
*** robbyoconnor has quit IRC | 16:28 | |
*** jasvir has left #melange | 16:34 | |
*** carols has joined #melange | 17:09 | |
*** Niharika has quit IRC | 17:11 | |
*** jasvir has joined #melange | 17:16 | |
jasvir | hello everyone. After doing git pull, an error has been introduced in melange running locally in my system. Here is the error: http://202.164.53.122/~jasvir/error.png and here is traceback: http://dpaste.com/1590885/ | 17:17 |
tpb | Title: dpaste: #1590885: TypeError at /gsoc/homepage/google/gsoc2014, by Django (at dpaste.com) | 17:18 |
*** micole has joined #melange | 18:00 | |
*** micole has joined #melange | 18:00 | |
*** micole has left #melange | 18:01 | |
*** nikam08 has joined #melange | 18:03 | |
*** madrazr has joined #melange | 18:05 | |
*** ChanServ sets mode: +o madrazr | 18:05 | |
nikam08 | Hi! I am learning python and django. I also know html and css. I would love to contribute and apply my skills. Where can I start as a begginer? I have gone through http://code.google.com/p/soc/wiki/MelangeIntro . | 18:06 |
tpb | Title: MelangeIntro - soc - An introduction to Melange - SoC (Spice of Creation) - Google Project Hosting (at code.google.com) | 18:06 |
madrazr | nikam08: best thing to do is to go to our issue tracker https://code.google.com/p/soc/issues/list and see if there is anything that interests you for you to work on | 18:08 |
tpb | Title: Issues - soc - SoC (Spice of Creation) - Google Project Hosting (at code.google.com) | 18:08 |
madrazr | practicing by doing the real work is one of the best ways to go | 18:09 |
jasvir | hello everyone. After doing git pull, an error has been introduced in melange running locally in my system. Here is the error: http://202.164.53.122/~jasvir/error.png and here is traceback: http://dpaste.com/1590885/ | 18:09 |
tpb | Title: dpaste: #1590885: TypeError at /gsoc/homepage/google/gsoc2014, by Django (at dpaste.com) | 18:09 |
jasvir | please help me to solve it | 18:09 |
madrazr | jasvir: how much of homework have you already done? | 18:10 |
madrazr | (asking to understand where to start, so that I don't have to repeat things you already know) | 18:11 |
nikam08 | madrazr: Thanks:) I'll set up the environment and start with some easy ones. | 18:13 |
madrazr | nikam08: sure | 18:13 |
jasvir | I was reading documentation and trying to understand listed issues at code.google. Then I do git pull to get latest code. | 18:14 |
jasvir | and this error introduced. | 18:14 |
*** nikam08 has left #melange | 18:14 | |
madrazr | jasvir: Ok | 18:14 |
madrazr | jasvir: as an exercise, can I ask you to look at the stack trace and try to figure out where the error is happening? | 18:15 |
madrazr | stack trace gives you a very useful information | 18:15 |
jasvir | error is at line 63 in soc/build/summerofcode/logic/timeline.py | 18:17 |
madrazr | jasvir: awesome | 18:17 |
madrazr | open that file in your test editor and look at that line of code? | 18:17 |
jasvir | in function createTimelineDict | 18:17 |
jasvir | i already had a look at this line | 18:18 |
madrazr | and? | 18:18 |
*** RoonyH has joined #melange | 18:18 | |
jasvir | error is due to addition of two variable. But I am not getting how to remove this. In my django apps, this error occurs when I try to add and object and some variable. | 18:19 |
jasvir | but not getting how to tackle this one | 18:20 |
madrazr | jasvir: correct | 18:20 |
madrazr | as you see from the error message | 18:20 |
madrazr | the error is due to timeline_helper.timeline.accepted_students_announced_deadline being none | 18:20 |
jasvir | yeah | 18:20 |
madrazr | jasvir: now you need to backtrack to see why timeline_helper.timeline.accepted_students_announced_deadline is None | 18:21 |
madrazr | jasvir: I can tell you the answer right away | 18:21 |
madrazr | jasvir: but what's the fun in that | 18:21 |
madrazr | jasvir: we want our GSoC students to learn | 18:21 |
madrazr | understand our code base | 18:21 |
jasvir | let me to do that. | 18:21 |
jasvir | yes. | 18:21 |
madrazr | jasvir: coool | 18:21 |
madrazr | jasvir: ask questions, I will be around the whole day | 18:21 |
jasvir | ok | 18:21 |
*** RoonyH has quit IRC | 18:27 | |
*** jasvir has left #melange | 18:29 | |
*** jasvir has joined #melange | 18:33 | |
bear | question - I'm filling out this year's questionnaire and I want to view our past year's answers - the web app is giving me this error: "This page is inactive before 2012-02-27 19:00:00 and after 2012-03-09 23:00:00" | 18:36 |
*** RoonyH has joined #melange | 18:36 | |
bear | this is for GSoC | 18:36 |
madrazr | bear: which questionnaire? | 18:37 |
madrazr | bear: Oh you mean organization application? | 18:39 |
bear | yes | 18:39 |
bear | I was able to view the past application, but there is also a questionairre that goes along with it | 18:40 |
bear | and that I cannot view from prior years | 18:40 |
madrazr | bear: not sure what is the difference between application and questionnaire according to you | 18:40 |
madrazr | bear: but that read-only page is broken | 18:41 |
jasvir | I think timeline_helper is holding NULL value which is coming from soc.modules.gsoc.views.helper.request_data.TimelineHelper. Am I right? | 18:41 |
madrazr | bear: if you need to access last year's data | 18:41 |
bear | when you visit the page for past orgs, it has 3 tabs on top | 18:41 |
bear | one is application, one is questionaire and the other I forget | 18:41 |
madrazr | bear: please email our mailing list | 18:41 |
madrazr | bear: I can pull the data out for you | 18:41 |
bear | what is the mailing list | 18:41 |
madrazr | bear: [email protected] or melange-soc-dev@ | 18:42 |
bear | it seems someone else has already posted the same question | 18:43 |
madrazr | bear: yes, it is known to be broken | 18:43 |
madrazr | bear: and we are working on fixing it | 18:44 |
bear | k, let me get my org id and link and post to that thread | 18:44 |
madrazr | bear: if you follow those posts, you will see that we have sent them the data offline | 18:44 |
bear | yep, catching up on that now | 18:44 |
madrazr | bear: cool! | 18:44 |
bear | madrazr - ok, reply posted to that top thread "Can't access organization questionnaire from previous years" | 18:47 |
bear | thanks again | 18:47 |
madrazr | bear: awesome, I see the post, working on it | 18:49 |
* bear hugs madrazr | 18:49 | |
* bear will be AFK for a short bit | 18:50 | |
*** asmeurer has joined #melange | 19:00 | |
jasvir | madrazr: I think timeline_helper is holding NULL value which is coming from soc.modules.gsoc.views.helper.request_data.TimelineHelper. Am I right? | 19:05 |
madrazr | jasvir: perfect | 19:07 |
madrazr | jasvir: backtrack more | 19:07 |
madrazr | jasvir: that is still not the source of the problem | 19:08 |
jasvir | ok | 19:10 |
madrazr | bear: I need more information from you (check email) | 19:10 |
*** asmeurer has quit IRC | 19:10 | |
madrazr | bear: ah nevermind | 19:10 |
madrazr | I see the reply now | 19:10 |
madrazr | good timing :D | 19:11 |
*** RoonyH has quit IRC | 19:15 | |
*** bitgeeky is now known as bitgeeky|afk | 19:19 | |
jasvir | madrazr: timeline | 19:35 |
jasvir | oops sorry. Pressed enter by mistake. | 19:35 |
jasvir | madrazr: timeline_helper is holding two values, next_deadline and current_timeline. | 19:36 |
jasvir | next_dealine contains ('Org Application Starts', None) adn current_timeline contains 'offseason' | 19:37 |
madrazr | jasvir: what line are you looking at? | 19:39 |
madrazr | also what file (full path)? There are multiple modules in which timeline_helper exists | 19:40 |
jasvir | madrazr:soc.modules.gsoc.views.helper.request_data | 19:41 |
*** bitgeeky|afk is now known as bitgeeky | 19:43 | |
jasvir | madrazr: I am looking at file soc.modules.gsoc.views.helper.request_data | 19:45 |
jasvir | madrazr: I am not getting why timeline.accepted_students_announced_deadline is holding None value. :( | 19:59 |
madrazr | jasvir: you know that the problem is, accepted_students_announced_deadline is None | 20:06 |
madrazr | jasvir: you need to figure out where that is coming from | 20:06 |
madrazr | jasvir: you know that timeline_helper.timeline.accepted_students_announced_deadline is None | 20:07 |
jasvir | madrazr: but I am not getting from where the value is coming. | 20:07 |
jasvir | yes | 20:07 |
madrazr | jasvir: and now you know that the variable timeline_helper in that line is an instance of class TimelineHelper that you are looking at now | 20:07 |
jasvir | I know that it is None | 20:07 |
madrazr | which has an instance attribute called timeline | 20:07 |
madrazr | timeline_helper is not None? | 20:07 |
jasvir | no. timeline_helper.timeline.accepted_students_announced_deadline is None | 20:08 |
madrazr | jasvir: correct | 20:08 |
madrazr | and you know TimelineHelper class should have a class member/attribute called timeline, correct? | 20:08 |
madrazr | because there is an access to timeline_helper.timeline | 20:08 |
jasvir | yes | 20:09 |
madrazr | jasvir: what is that value? | 20:09 |
madrazr | jasvir: what is it defined as? | 20:09 |
madrazr | jasvir: and where is that defined? | 20:09 |
jasvir | in request_data.py | 20:09 |
madrazr | jasvir: hint - think about class inheritance | 20:09 |
madrazr | jasvir: you need to be more specific when you mention the file name or class name | 20:10 |
jasvir | sorry for that | 20:10 |
madrazr | because we use the convention of using the same name across different modules | 20:10 |
madrazr | bear: sigh! sigh for ourselves! | 20:10 |
madrazr | bear: this is so broken | 20:11 |
madrazr | bear: what years have you submitted your applications before? | 20:11 |
madrazr | 2010, 2011 and 2012 I am guessing | 20:11 |
madrazr | correct? | 20:11 |
jasvir | timeline is defined in soc/modules/gsoc/views/helper/request_data.py | 20:11 |
jasvir | madrazr: I think I am not able to convey what I am trying to say. | 20:19 |
*** RoonyH has joined #melange | 20:34 | |
madrazr | jasvir: and what is timeline defined as, may be paste that line of code here? | 20:44 |
madrazr | jasvir: more hints, the timeline attribute of TimelineHelper is not defined in soc/modules/gsoc/views/helper/request_data.py's TimelineHelper class | 20:45 |
jasvir | madrazr: here is the timeline: http://paste.ubuntu.com/6893453/ | 20:45 |
tpb | Title: Ubuntu Pastebin (at paste.ubuntu.com) | 20:45 |
madrazr | but in its parent class | 20:45 |
madrazr | which is soc.views.helper.request_data.TimelineHelper | 20:46 |
madrazr | if you look at the _ _init_ _ method of that parent class you will see where timeline gets defined | 20:46 |
madrazr | jasvir: but anyway | 20:47 |
madrazr | ultimately timline points to a timeline entity in our datastore which in this case is defined by the model soc.modules.gsoc.models.timeline.Timeline | 20:47 |
madrazr | jasvir: the problem you are seeing is because this Timeline entity for GSoC 2014 in your instance is not filled | 20:48 |
madrazr | jasvir: if you visit /gsoc/timeline/google/gsoc2014 in your web app | 20:48 |
madrazr | you will see a form with values | 20:48 |
madrazr | fill in all the values | 20:48 |
madrazr | you should see this problem go away | 20:48 |
jasvir | madrazr: thanks for your help. Error has gone and best part is a new error is introduced: 'NoneType' object has no attribute 'isoformat' | 20:53 |
jasvir | madrazr: Now I am going to remove this one | 20:53 |
bear | madrazr I believe that is correct | 20:54 |
jasvir | and hope that, this time I'll solve it by my own. :) | 20:54 |
*** RoonyH has quit IRC | 20:55 | |
*** RoonyH has joined #melange | 20:56 | |
*** micole has joined #melange | 20:58 | |
*** micole has joined #melange | 20:58 | |
*** micole has left #melange | 20:58 | |
madrazr | jasvir: where are you seeing that error? | 21:05 |
madrazr | bear: figured that out, you have my email I guess? | 21:06 |
bear | yes | 21:06 |
madrazr | with the data you were looking for? | 21:06 |
bear | thanks | 21:06 |
madrazr | bear: great! | 21:06 |
madrazr | bear: no problem | 21:07 |
jasvir | madrazr: here is the error: http://202.164.53.122/~jasvir/error2.png and here is traceback: http://dpaste.com/1591403/ | 21:09 |
tpb | Title: dpaste: #1591403: AttributeError at /gsoc/homepage/google/gsoc2014, by Django (at dpaste.com) | 21:10 |
madrazr | jasvir: what do you take screenshots with? | 21:10 |
madrazr | jasvir: are you using something like awesomescreenshot? | 21:10 |
madrazr | jasvir: if not highly recommended and when you, capture whole page instead of only visible part | 21:11 |
madrazr | it is much easier to debug | 21:11 |
madrazr | jasvir: that was just a protip | 21:11 |
madrazr | jasvir: Oh I see (this error) | 21:11 |
jasvir | No. I am using just default functionality. | 21:12 |
jasvir | oh, from next time I'll use this awesomescreenshot. | 21:12 |
madrazr | jasvir: Oh you should definitely use something like awesomescreenshot then | 21:12 |
madrazr | about the error | 21:12 |
madrazr | see the recent discussion on Melange mailing list about this | 21:12 |
madrazr | this is because org app does not exist | 21:12 |
madrazr | jasvir: dcrodman submitted a patch to seed_db today to fix this | 21:13 |
madrazr | jasvir: see this https://code.google.com/p/soc/source/detail?r=7f79dfa1f1dbe8819ecc567b9ab4d3cc8e23a645# | 21:13 |
tpb | <http://ln-s.net/AotQ> (at code.google.com) | 21:13 |
madrazr | jasvir: just pull latest Melange | 21:14 |
madrazr | jasvir: build it | 21:14 |
madrazr | and run seed_db again | 21:14 |
madrazr | jasvir: along with setting timeline again | 21:14 |
madrazr | jasvir: you should be able to see this error go away | 21:14 |
madrazr | jasvir: also one good patch/opportunity for you to contribute to Melange right away is | 21:15 |
madrazr | you can update seed_db to include the timeline values for all those fields you set manually in the form now | 21:15 |
madrazr | jasvir: you can do this since you just saw how that works | 21:16 |
jasvir | ok. I'll start working on it just after building it. | 21:17 |
jasvir | Is it ok? | 21:18 |
madrazr | jasvir: of course, at your own pace | 21:19 |
*** jasvir has quit IRC | 21:29 | |
*** jasvir has joined #melange | 21:30 | |
*** RoonyH has quit IRC | 21:56 | |
*** micole has joined #melange | 22:45 | |
*** micole has joined #melange | 22:45 | |
*** micole has left #melange | 22:47 | |
jasvir | I have prepared a patch for seed_db. As It is not seedig values for GSoCTimeline() which is extension of basic timeline. | 23:22 |
*** bitgeeky has quit IRC | 23:33 | |
jasvir | Should I send a mail on mailing list or report an issue and attach patch file? | 23:33 |
*** jasvir_ has joined #melange | 23:37 | |
*** jasvir has quit IRC | 23:38 | |
*** jasvir_ has quit IRC | 23:38 | |
*** jasvir has joined #melange | 23:39 | |
jasvir | I got disconnected due to some network problem. | 23:40 |
jasvir | So I was asking, should I send a mail on mailing list or use issue tracker? | 23:41 |
carols | jasvir: if you have a question, send it to the mailing list. if you know this is a bug, file an issue. | 23:41 |
jasvir | carols: Actualy I have made an patch for enhancing functionality in seed_db. | 23:44 |
carols | jasvir: great, then it goes in the issue tracker. | 23:44 |
jasvir | carols: Ok. Thanks | 23:45 |
carols | yw | 23:45 |
*** carols has quit IRC | 23:54 | |
jasvir | I have added issue: Issue 2021 | 23:58 |
Generated by irclog2html.py 2.12.1 by Marius Gedminas - find it at mg.pov.lt!