*** tpb has joined #melange | 00:00 | |
*** dmitrig01 is now known as dmitrig01|afk | 00:45 | |
*** penyaskito_ has joined #melange | 00:53 | |
*** penyaskito has quit IRC | 00:57 | |
*** tlarsen has joined #melange | 00:59 | |
*** ChanServ sets mode: +o tlarsen | 00:59 | |
*** tlarsen has quit IRC | 01:01 | |
*** r0bby has quit IRC | 01:29 | |
*** dmitrig01|afk has quit IRC | 02:18 | |
*** mithro has joined #melange | 02:29 | |
*** ChanServ sets mode: +v mithro | 02:29 | |
*** mithro has quit IRC | 04:01 | |
*** penyaskito_ is now known as penyaskito | 04:15 | |
*** MatthewWilkes has joined #melange | 06:06 | |
*** mithro has joined #melange | 06:35 | |
*** ChanServ sets mode: +v mithro | 06:35 | |
*** SRabbelier has joined #melange | 11:14 | |
*** ChanServ sets mode: +v SRabbelier | 11:14 | |
*** solydzajs_ has joined #melange | 12:07 | |
durin42 | SRabbelier: we have a working buildbot! | 12:12 |
---|---|---|
*** solydzajs has quit IRC | 12:24 | |
*** solydzajs_ is now known as solydzajs | 12:40 | |
*** ChanServ sets mode: +v solydzajs | 12:40 | |
SRabbelier | durin42: awesome :) | 12:46 |
SRabbelier | durin42: cool! what was wrong with it? :D | 12:46 |
durin42 | SRabbelier: a lot of things *sigh* | 12:52 |
SRabbelier | durin42: do share? | 12:54 |
durin42 | mostly, the timeout for find was too low | 12:57 |
SRabbelier | durin42: hehe, lol; kind of a silly bug | 13:10 |
SRabbelier | durin42: I mean, not really a technical thing | 13:10 |
solydzajs | so now we need to write some tests :-) | 13:36 |
MatthewWilkes | Hey, we're writing tests for a simple subclass of dict atm, you have it easy | 14:09 |
MatthewWilkes | ;) | 14:10 |
*** webchick has joined #melange | 14:32 | |
*** solydzajs has quit IRC | 14:55 | |
*** MatthewWilkes has quit IRC | 14:57 | |
durin42 | SRabbelier: yeah, my next step is to figure out how to convince nose to give me what we want for coverage output | 15:45 |
SRabbelier | durin42: hehe, what's wrong with it? | 15:52 |
*** webchick has quit IRC | 15:52 | |
durin42 | Our app modules don't get listed | 16:00 |
durin42 | tho, that could be that we don't have tests for them | 16:00 |
SRabbelier | durin42: hehehe, lol | 16:00 |
*** r0bby has joined #melange | 16:07 | |
*** Lennie has joined #melange | 16:15 | |
*** ChanServ sets mode: +v Lennie | 16:15 | |
* Lennie slaps SRabbelier around a bit with a small Imperial-Class Stardestroyer | 16:16 | |
SRabbelier | Lennie: lol | 16:16 |
Lennie | SRabbelier: lost again :( | 16:16 |
SRabbelier | Lennie: I thought you only watched House, not Lost? :p | 16:17 |
Lennie | SRabbelier: funny men ;p | 16:17 |
SRabbelier | :D | 16:17 |
SRabbelier | Lennie: so what's your problem? | 16:17 |
Lennie | SRabbelier: Just poking to say I lost again :P | 16:17 |
SRabbelier | Lennie: so what's you lost on? | 16:17 |
Lennie | SRabbelier: I also took a small look at example_text | 16:17 |
SRabbelier | Lennie: any luck? | 16:17 |
Lennie | SRabbelier: Some game including a ball a net and 12 players? | 16:17 |
SRabbelier | Lennie: ooooh, *snickers*, sorry | 16:18 |
* SRabbelier slow today | 16:18 | |
Lennie | SRabbelier: 'small' look | 16:18 |
Lennie | SRabbelier: I tried to hax something, but failed :P | 16:18 |
SRabbelier | Lennie: so how badly did you lose? :P | 16:19 |
SRabbelier | Lennie: and what's the excuse this time? ;) | 16:19 |
Lennie | SRabbelier: once again not badle | 16:19 |
Lennie | SRabbelier: 1st set, 2 points difference, 2nd set 4 points difference | 16:19 |
Lennie | SRabbelier: 3rd set was a complete disaster though :p' | 16:19 |
SRabbelier | Lennie: heheh, ashame :P | 16:20 |
Lennie | SRabbelier: http://icanhascheezburger.com/2008/12/12/funny-pictures-melt-in-ur-heart-not-in-ur-hand/ | 16:26 |
Lennie | cute :p | 16:26 |
tpb | <http://ln-s.net/2ZRN> (at icanhascheezburger.com) | 16:26 |
SRabbelier | Lennie: yup :) | 16:34 |
SRabbelier | Lennie: btw, do you want to try to do the example_text thing? | 16:41 |
Lennie | SRabbelier: No time atm | 16:42 |
SRabbelier | Lennie: or should I have another look at it | 16:42 |
Lennie | SRabbelier: working on notifications a bit | 16:42 |
SRabbelier | Lennie: ok, np | 16:42 |
Lennie | SRabbelier: Leslie likes it :D | 16:42 |
SRabbelier | Lennie: awesome :) | 16:42 |
Lennie | SRabbelier: Stupid appspot login servers :( | 17:27 |
SRabbelier | Lennie: what about them? | 17:30 |
Lennie | SRabbelier: lol | 17:30 |
Lennie | SRabbelier: up again now after 15 mins :P | 17:30 |
SRabbelier | Lennie: heh, they were all down? | 17:30 |
Lennie | yeah | 17:31 |
*** webchick has joined #melange | 17:51 | |
*** webchick has quit IRC | 17:53 | |
*** Lennie has quit IRC | 18:12 | |
lyaunzbe | Srabbelier: Hey. Can i bother you with a question for one sec? | 18:27 |
SRabbelier | lyaunzbe: ofcourse | 18:28 |
lyaunzbe | oh sorry nvm for the moment. | 18:28 |
SRabbelier | lyaunzbe: hehe, np :) | 18:29 |
lyaunzbe | SRabbelier: Is the example_text issue (http://tinyurl.com/68wdqq) you were talking about earlier being worked on by someone else atm? | 18:36 |
tpb | Title: Issue 144 - soc - Google Code (at tinyurl.com) | 18:36 |
SRabbelier | lyaunzbe: not yet | 18:37 |
SRabbelier | lyaunzbe: I was going to, but if you are interested...? | 18:37 |
lyaunzbe | Yes i would like to very much. Im not entirely sure where to start though. | 18:37 |
SRabbelier | lyaunzbe: in that case, feel free! | 18:37 |
SRabbelier | lyaunzbe: ok, the pointers from Todd should be a good place to get started | 18:39 |
lyaunzbe | Okay thanks. Ill check that out. | 18:40 |
SRabbelier | lyaunzbe: feel free to ask me for any help | 18:40 |
SRabbelier | lyaunzbe: don't hesitate to e-mail if I'm not in IRC :) | 18:41 |
SRabbelier | (usually that means I'm sleeping, or forgot to turn it back on in the morning ;) ) | 18:41 |
*** MatthewWilkes has joined #melange | 18:42 | |
lyaunzbe | Srabbelier: I added the if hasattr(model_prop, 'example_text'): | 19:15 |
lyaunzbe | self.fields[field_name].example_text = model_prop.example_text | 19:15 |
lyaunzbe | woops | 19:15 |
lyaunzbe | meant to format that | 19:15 |
SRabbelier | lyaunzbe: ok, does it do anything? :D | 19:16 |
lyaunzbe | well see thats the thing. I dont get any errors, but im not sure what changes i should be looking for. Fields that have (required) next to them dont look any different. | 19:16 |
SRabbelier | lyaunzbe: ofcourse, you'll need to add that in the as_table method | 19:17 |
MatthewWilkes | SRabbelier: Want to me to anything on the i18n patch? | 19:24 |
SRabbelier | MatthewWilkes: I dunno, I've been waiting for Pawel to review it; I think I'm just going to apply and be done with it tomorrow :) | 19:25 |
MatthewWilkes | ok, I'm sprinting over the weekend so have reduced availability, but will be on here so feel free to ping me if there are conflicts or whatever | 19:25 |
SRabbelier | MatthewWilkes: will do | 19:26 |
MatthewWilkes | Don't want to leave you in conflict resolution hell :) | 19:26 |
SRabbelier | MatthewWilkes: it probably needs rebasing on latest master, but I think I can do it :) | 19:26 |
lyaunzbe | Srabbelier: I added the example_test field basically following the way that help_text was added (http://pastebin.com/m3078e235). No error messages, but now all the forms show nothing except a blank page and the 'save changes' button. | 19:42 |
tpb | Title: Python pastebin - collaborative debugging tool (at pastebin.com) | 19:42 |
SRabbelier | lyaunzbe: mhhh, not sure there | 19:43 |
SRabbelier | lyaunzbe: I'll have to apply your patch and try it out | 19:44 |
SRabbelier | lyaunzbe: didy ou look at the html? | 19:44 |
SRabbelier | lyaunzbe: is it correct? | 19:44 |
lyaunzbe | You mean the source html for the form pages, right? | 19:46 |
SRabbelier | lyaunzbe: yes | 19:46 |
lyaunzbe | I'm pretty sure it isn't because it is only generating the cancel and save changes buttons. | 19:47 |
SRabbelier | lyaunzbe: have a look | 19:47 |
SRabbelier | lyaunzbe: is there nothing there at all? | 19:47 |
SRabbelier | lyaunzbe: could be that it is there but improper html | 19:47 |
SRabbelier | lyaunzbe: looks like you didn't add example_text to def _html_output_with_required(self, normal_row, error_row, row_ender, help_text_html, required_html, errors_on_separate_row): | 19:48 |
SRabbelier | lyaunzbe: so it raises an error because it can't do the _html_output... call | 19:48 |
SRabbelier | lyaunzbe: but Django catches all errors, and instead displays nothing | 19:48 |
lyaunzbe | oh okay thanks. Ill fix that. | 19:49 |
SRabbelier | lyaunzbe: ok :) | 19:49 |
lyaunzbe | SRabbelier: Nothing changed in either the html or the actual form. I tested it and it seems that as soon as i set DEF_EXAMPLE_TEXT_HTML = u'%s' and then pass it to the_html_output_with_required() method, without even using it inside the method, it messes up the html. | 20:06 |
SRabbelier | lyaunzbe: put some traces in your code | 20:07 |
SRabbelier | lyaunzbe: does it get to the end of _html_output.... | 20:07 |
lyaunzbe | SRabbelier: Sorry, I'm not sure how to do traces in something like this. Could you please explain? | 20:11 |
SRabbelier | lyaunzbe: import logging | 20:11 |
SRabbelier | logging.info("My message here ") | 20:11 |
*** mithro has quit IRC | 20:14 | |
*** mithro has joined #melange | 20:15 | |
*** ChanServ sets mode: +v mithro | 20:15 | |
*** MatthewWilkes has quit IRC | 20:18 | |
lyaunzbe | Sorry, where would this message appear? Ive never used the logging module for python :( | 20:19 |
SRabbelier | lyaunzbe: in your console if you're running dev_appserver.py | 20:19 |
SRabbelier | lyaunzbe: if you're running on appspot it'll be in the regular log | 20:19 |
lyaunzbe | Okay that helped alot. It seems as if there is something wrong with the statement "example_text = example_text_html % force_unicode(field.example_text)". | 20:35 |
SRabbelier | lyaunzbe: split it up | 20:35 |
SRabbelier | lyaunzbe: first do the extraction of field.example_text | 20:36 |
SRabbelier | then the % operator | 20:36 |
SRabbelier | and finally the assignment | 20:36 |
SRabbelier | lyaunzbe: also, it might help to print example_text_html and the result of the force_unicode call | 20:37 |
lyaunzbe | Im guessing i would output it to the log? | 20:37 |
SRabbelier | lyaunzbe: ofcourse :) | 20:37 |
lyaunzbe | Excuse my tendency to ask the dumbest questions :P | 20:38 |
SRabbelier | lyaunzbe: this is basic debugging skills; once you know it you'll be good for the rest of your programming career. I have no problem teaching you :) | 20:39 |
*** dmitrig01|afk has joined #melange | 20:41 | |
*** ChanServ sets mode: +v dmitrig01|afk | 20:41 | |
lyaunzbe | Srabbelier: Okay, Im almost positive there is a problem with the field.example_text because i cant extract it. However, im not sure how I would print the result of the extraction. I dont think you can just do "logging.info(print force_unicode( field.example_text))". | 20:55 |
SRabbelier | lyaunzbe: nonono, drop the print | 20:55 |
SRabbelier | lyaunzbe: you want logging.info(foo) | 20:56 |
SRabbelier | and then do | 20:56 |
SRabbelier | foo = field.example_text | 20:56 |
SRabbelier | then, if that seems to work | 20:56 |
SRabbelier | change it to | 20:56 |
SRabbelier | foo = force_unicode(field.example_test) | 20:56 |
lyaunzbe | Okay. I did that and the log message doesn't print anything. | 20:59 |
lyaunzbe | Something msut be wrong with that field. | 20:59 |
SRabbelier | lyaunzbe: are you setting it? :P | 21:00 |
lyaunzbe | Srabbelier: Hmm. Well, from reading what todd.larsen said, I just added example_text as an arbitrary attribute. I just followed they way help_text was made. | 21:07 |
SRabbelier | lyaunzbe: that should work | 21:07 |
SRabbelier | lyaunzbe: can you log dir(field) then? | 21:07 |
lyaunzbe | It seems as though alturin may have had the same problems as me. In the issue thread he says "tracing told me that the self.fields attribute was updated, but when I tried to access the value in the code it never showed anything." | 21:07 |
SRabbelier | lyaunzbe: thati s me | 21:08 |
SRabbelier | **that is | 21:08 |
lyaunzbe | oh lol | 21:08 |
* SRabbelier really needs to use [email protected] for melange | 21:08 | |
lyaunzbe | dammit. Im guessing it is a problem that example_text isn't in dir(field) :( | 21:10 |
SRabbelier | lyaunzbe: what field are you looking at then ;) | 21:10 |
SRabbelier | lyaunzbe: is the field the one you set the example_text for? | 21:10 |
lyaunzbe | What do you mean? Shouldn't example_text be in dir(field) if i set it the exact same way as help_text? | 21:13 |
SRabbelier | lyaunzbe: except help_text is set for all fields, and I reckon you didn't set example_text for all fields | 21:14 |
lyaunzbe | SRabbelier: Sorry, im having trouble understanding. If help_text is set for all fields, then my example_text should also be set for all fields, since everywhere in the code where help_text is mentioned so is example_text. | 21:26 |
SRabbelier | lyaunzbe: ah, ok; in that case I'm not sure what's wrong | 21:26 |
SRabbelier | lyaunzbe: send me your changes, and i will look at it tomorrow | 21:26 |
SRabbelier | I'm off to bed now :) | 21:26 |
lyaunzbe | Okay. Thanks for all your help. | 21:27 |
SRabbelier | lyaunzbe: good luck! | 21:27 |
SRabbelier | lyaunzbe: you can also ask around on #appengine and #django | 21:27 |
SRabbelier | lyaunzbe: especially Arachnid on #appengine knows a lot | 21:28 |
SRabbelier | g'night all :) | 21:28 |
*** SRabbelier has quit IRC | 21:28 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!