*** tpb has joined #melange | 00:00 | |
*** mithro has joined #melange | 00:07 | |
*** ChanServ sets mode: +v mithro | 00:07 | |
*** mithro has quit IRC | 00:28 | |
*** dmitrig01 has quit IRC | 00:51 | |
*** madrazr has left #melange | 01:04 | |
*** mithro has joined #melange | 01:22 | |
*** ChanServ sets mode: +v mithro | 01:22 | |
*** BarryCarlyon has quit IRC | 02:12 | |
*** BarryCarlyon has joined #melange | 02:12 | |
*** summatusmentis has joined #melange | 02:13 | |
*** madrazr has joined #melange | 02:50 | |
*** madrazr has left #melange | 02:54 | |
*** mithro has quit IRC | 02:56 | |
*** solydzajs has joined #melange | 03:27 | |
*** ChanServ sets mode: +o solydzajs | 03:27 | |
*** mithro has joined #melange | 03:57 | |
*** ChanServ sets mode: +v mithro | 03:57 | |
*** mithro has quit IRC | 04:06 | |
*** glaksmono has quit IRC | 04:09 | |
*** mithro has joined #melange | 04:23 | |
*** ChanServ sets mode: +v mithro | 04:23 | |
*** mithro has quit IRC | 04:33 | |
*** solydzajs has quit IRC | 04:38 | |
*** mithro has joined #melange | 04:46 | |
*** ChanServ sets mode: +v mithro | 04:46 | |
*** solydzajs has joined #melange | 05:16 | |
*** ChanServ sets mode: +o solydzajs | 05:16 | |
*** solydzajs has quit IRC | 05:37 | |
*** solydzajs has joined #melange | 05:38 | |
*** ChanServ sets mode: +o solydzajs | 05:38 | |
*** Merio has joined #melange | 07:03 | |
*** madrazr has joined #melange | 07:05 | |
*** penyaskito_ has joined #melange | 07:07 | |
*** solydzajs has quit IRC | 07:09 | |
*** solydzajs has joined #melange | 07:09 | |
*** ChanServ sets mode: +o solydzajs | 07:09 | |
madrazr | hello all, I spoke to srabblier a couple of days back about how and where(I mean which feature or bug) to start contributing for Melange | 07:14 |
---|---|---|
madrazr | and he told me that some of the new comers will be given a demo of what Melange is now | 07:14 |
madrazr | can anyone please tell me when can that be done? I badly want to start contributing to Melange somehow :P | 07:15 |
*** penyaskito has quit IRC | 07:19 | |
solydzajs | madrazr: yes we would like to make a demo and show you the workflow during this weekend | 07:24 |
solydzajs | madrazr: you still there ? | 07:25 |
madrazr | solydzajs: yeah | 07:25 |
madrazr | solydzajs: Ok, weekend would drag things I believe, if some minor task is assigned to me so I can just keep looking around the code and cry for help here when I don't understand things | 07:25 |
madrazr | so I better understand when the demo is given | 07:25 |
madrazr | how about the idea? | 07:25 |
solydzajs | madrazr: did you checkout the code already ? you have GAE installed and Melange instance running ? | 07:30 |
madrazr | solydzajs: yeah | 07:30 |
madrazr | solydzajs: I am also following the development before the summit, but haven't been able to find out where and how to start contributing and also had not enough time :( | 07:31 |
*** solydzajs has quit IRC | 07:38 | |
*** solydzajs has joined #melange | 07:38 | |
*** ChanServ sets mode: +o solydzajs | 07:38 | |
*** BarryCarlyon has quit IRC | 07:53 | |
*** bcarlyon|laptop has joined #melange | 07:55 | |
*** bcarlyon|laptop is now known as BarryCarlyon | 07:56 | |
solydzajs | BarryCarlyon: are you interested in contribution too ? | 07:59 |
*** SRabbelier|Uni has joined #melange | 08:13 | |
*** ChanServ sets mode: +v SRabbelier|Uni | 08:13 | |
*** mib_koh766 has joined #melange | 08:16 | |
*** mib_koh766 is now known as atula | 08:56 | |
*** atula is now known as atulagrwl | 08:56 | |
*** atulagrwl has left #melange | 08:57 | |
*** atulagrwl has joined #Melange | 09:15 | |
*** mithro has quit IRC | 10:16 | |
*** solydzajs_ has joined #melange | 10:29 | |
*** solydzajs has quit IRC | 10:47 | |
*** solydzajs has joined #melange | 10:50 | |
*** ChanServ sets mode: +o solydzajs | 10:50 | |
*** solydzajs_ has quit IRC | 11:09 | |
*** Merio has quit IRC | 11:34 | |
*** atulagrwl has quit IRC | 11:51 | |
*** atulagrwl has joined #Melange | 11:53 | |
*** atulagrwl has quit IRC | 12:02 | |
*** tlarsen has joined #melange | 12:20 | |
*** ChanServ sets mode: +o tlarsen | 12:20 | |
*** solydzajs has quit IRC | 12:32 | |
*** solydzajs has joined #melange | 12:38 | |
*** ChanServ sets mode: +o solydzajs | 12:38 | |
tlarsen | How does a User edit their own profile in the current app? | 12:46 |
tlarsen | All I have under my "User (self)" sidebar menu is a "Notifications" item. | 12:46 |
tlarsen | There is no "Profile" item for some reason. | 12:46 |
solydzajs | tlarsen: Sverre just committed a fix | 12:46 |
tlarsen | Ah, OK. | 12:47 |
solydzajs | tlarsen: I'm going to test if it works now | 12:47 |
tlarsen | I just patched it in and it seems to be working. | 12:47 |
*** Lennie has joined #melange | 12:49 | |
*** ChanServ sets mode: +v Lennie | 12:49 | |
Lennie | hi folks | 12:50 |
Lennie | Was watching Obama's speech ^_ ^ | 12:50 |
*** Lennie has left #melange | 12:53 | |
*** Lennie has joined #melange | 12:53 | |
*** ChanServ sets mode: +v Lennie | 12:53 | |
solydzajs | tlarsen: are you in conference call already ? | 12:56 |
tlarsen | No. | 12:57 |
tlarsen | 3 minutes | 12:57 |
solydzajs | tlarsen: Sverre's patch works too, if your solution is better you can replace it :-) | 12:58 |
tlarsen | tlarsen: I don't have one, I patched in his. | 12:59 |
solydzajs | tlarsen: oh you patched it from SVN I guess ;-) | 12:59 |
solydzajs | tlarsen: is there anybody on the conference call already ? | 13:01 |
tlarsen | Yes, Leslie and I are there. | 13:02 |
tlarsen | SRabbelier|Uni: So, what is the correct way to get the Site singleton, so that I can get the ToS scope_path and link_id? | 13:02 |
tlarsen | Leslie just left the call, to switch to Chris' office. | 13:02 |
SRabbelier|Uni | heya | 13:03 |
Lennie | I'm on hold ^_^ | 13:03 |
tlarsen | I want to display a link to the site-wide ToS if they exist. | 13:03 |
SRabbelier|Uni | it keeps saying the conference code is invalid | 13:03 |
SRabbelier|Uni | Lennie: what code did you use? | 13:03 |
Lennie | the one in the calendar | 13:04 |
Lennie | keep trying | 13:04 |
Lennie | it failed me once aswell | 13:04 |
SRabbelier|Uni | 40014904 ? | 13:04 |
tlarsen | Dial-in number:866.457.4646 | 13:04 |
Lennie | the one in the calendar | 13:04 |
tlarsen | Yes, that is the code. | 13:04 |
*** mrs_spearce has joined #melange | 13:04 | |
*** mrs_spearce has left #melange | 13:05 | |
SRabbelier|Uni | ok *shrugs* | 13:05 |
SRabbelier|Uni | *tries again* | 13:05 |
SRabbelier|Uni | ok, I'm in | 13:06 |
tlarsen | Lennie: How do I get the Site singleton? Is there an accepted way? | 13:07 |
Lennie | I'll help you after the call :) | 13:09 |
tlarsen | There are no tags in the schema. | 13:21 |
Lennie | tlarsen: entity = self._logic.getFromFields(link_id=self._logic.DEF_SITE_LINK_ID) | 13:32 |
tlarsen | Actually, it is: | 13:35 |
tlarsen | site_settings = site.logic.getFromFields(link_id=site.logic.DEF_SITE_LINK_ID) | 13:35 |
tlarsen | Your code only works if you are insite the site entity itself. :) | 13:35 |
tlarsen | (I already figured this out myself, sorry.) | 13:35 |
tlarsen | It seems to me that there should be a special method in singleton logic classes that returns the singleton. | 13:36 |
tlarsen | I will probably add one. | 13:36 |
Lennie | just add one in the logic | 13:38 |
Lennie | makes it easy | 13:38 |
Lennie | ^_^ | 13:38 |
tlarsen | OK, now I can get the site settings singleton in the soc.views.models.user.User._editGet(). | 13:44 |
tlarsen | Err, that should have been soc.views.models.user.View._editGet(). | 13:44 |
tlarsen | So, how do I pass something into super(View, self)._editGet() so that it would be in the form context? | 13:45 |
tlarsen | Should I add a parameter to base.View._editGet() where additional context stuff can be added? | 13:46 |
Lennie | you are talking about something that should be in the context of the html when it's being rendered right? | 13:49 |
tlarsen | Yes, in _editGet(), I am grabbing the site settings to see if the ToS is there. | 13:49 |
tlarsen | I want to put that tos_doc into the template context. | 13:49 |
tlarsen | I don't see a way to do it. | 13:49 |
SRabbelier|Uni | tlarsen: I don't think that's the place to do it though | 13:50 |
SRabbelier|Uni | tlarsen: user_self doesn't even use base.View | 13:50 |
tlarsen | SRabbelier|Uni: I am not talking about user_self.py | 13:50 |
SRabbelier|Uni | tlarsen: if you want I can look at this ToS stuff | 13:50 |
tlarsen | I am talking about user.py | 13:51 |
SRabbelier|Uni | tlarsen: and get it done before friday | 13:51 |
tlarsen | I said so in the path I provided above. | 13:51 |
tlarsen | SRabbelier|Uni: Are you saying you want to take over the ToS feature implementation? | 13:52 |
SRabbelier|Uni | tlarsen: well, I'm working on Clubs atm | 13:52 |
SRabbelier|Uni | tlarsen: but I'm saying if it doesn't work out you should let me know | 13:52 |
tlarsen | SRabbelier|Uni: Ugh. Why does asking a question about how to do something on the IRC channel mean that I don't want to work on it? | 13:52 |
SRabbelier|Uni | nvm, sorry :) | 13:53 |
tlarsen | SRabbelier|Uni: Help would be telling me how to get something in a sub-class _editGet() into the context of base.View.editGet() so that it could be used in the template. | 13:53 |
tlarsen | SRabbelier|Uni: I don't currently see a way to do that, and I don't want to override base.View.editGet() if I don't have to. | 13:53 |
SRabbelier|Uni | atm you can't | 13:54 |
tlarsen | So, back to my original question: | 13:54 |
SRabbelier|Uni | tlarsen: you could add the context param to _editGet I guess? | 13:54 |
tlarsen | Can I add a context=None parameter to _editGet(). | 13:54 |
tlarsen | Ah, that is what I was asking. | 13:54 |
SRabbelier|Uni | tlarsen: just add it as a regular parameter | 13:55 |
SRabbelier|Uni | tlarsen: since you'll be specifying it in base always | 13:55 |
tlarsen | An alternative is just to override editGet() and editPost(), "head-patching" their parameter lists. | 13:55 |
SRabbelier|Uni | tlarsen: no need for a default value | 13:55 |
SRabbelier|Uni | nah, that sounds ugly | 13:55 |
tlarsen | Yes, but it changes less existing code. | 13:55 |
SRabbelier|Uni | tlarsen: it'd be a one-liner | 13:56 |
tlarsen | I'll have to add a context parameter to *every* _editGet() and _editPost() otherwise. | 13:56 |
SRabbelier|Uni | in base.py | 13:56 |
SRabbelier|Uni | ah, sure | 13:56 |
SRabbelier|Uni | oh, you mean | 13:56 |
tlarsen | I can do it either way, but this changes the "framework" API if I add a parameter to _editGet() and _editPost(). | 13:57 |
SRabbelier|Uni | def editPost(...): | 13:57 |
SRabbelier|Uni | context['foo'] = bar | 13:57 |
SRabbelier|Uni | return super(View,self).editPost(..) | 13:57 |
SRabbelier|Uni | like that? | 13:57 |
tlarsen | My way just head-patches the call to editGet() and editPost() in just the class that needs to monkey with the context. | 13:57 |
SRabbelier|Uni | that's fine, we do that all over the place | 13:57 |
tlarsen | SRabbelier|Uni: Yes. | 13:57 |
SRabbelier|Uni | tlarsen: go for it | 13:57 |
* SRabbelier|Uni was confused by the term "head-patching" | 13:57 | |
tlarsen | A "head" patch is when you replace an existing entry point (e.g. method), so something, and then call the original one. | 13:59 |
tlarsen | A "tail" patch is a similar replacement, but you call the original first and *then* mess with the result before returning. | 14:00 |
tlarsen | Ever patched IRQ vectors before? | 14:00 |
durin42 | Some part of me really wants to get into hardware work | 14:02 |
SRabbelier|Uni | tlarsen: ok, we do that all over :) | 14:08 |
tlarsen | Just a warning: if I get asked by Chris to do a bunch of Google-internal stuff related to GSoC launch on Melange, I will *not* be able to work on *any* features. | 14:14 |
tlarsen | I only have one day per week in my current obligations to devote to Melange. | 14:14 |
Lennie | just be sure to let someone know :) | 14:22 |
tlarsen | Well, I am working on ToS stuff today. Let's see how far I get. | 14:22 |
Lennie | k | 14:23 |
Lennie | I'm off | 14:23 |
Lennie | last exam tomorrow | 14:23 |
tlarsen | I suspect that someone will need to pick it up and finish it. | 14:23 |
Lennie | cya :) | 14:23 |
Lennie | Sverre is ready to do that | 14:23 |
Lennie | if the need arises | 14:23 |
*** Lennie has quit IRC | 14:25 | |
tlarsen | I've never been part of an external launch at Google before, so Chris knows way more about it than me. | 14:26 |
tlarsen | Remember: I always work on internal tools, nothing user-facing (other than the GSoC web app, which was already "launched"). | 14:26 |
tlarsen | As Chris mentioned in the call, GSoC apparently bypassed much of the real launch oversight. | 14:27 |
*** lhawthorn has joined #melange | 14:43 | |
SRabbelier|Uni | tlarsen: ok | 14:43 |
*** lhawthorn is now known as lh | 14:43 | |
SRabbelier|Uni | tlarsen: don't worry about it | 14:43 |
*** ChanServ sets mode: +o lh | 14:43 | |
lh | solydzajs: ping | 14:43 |
*** solydzajs has quit IRC | 14:44 | |
*** solydzajs has joined #melange | 14:45 | |
*** ChanServ sets mode: +o solydzajs | 14:45 | |
lh | solydzajs: wb. i have some requirements from chris | 14:45 |
solydzajs | lh: ok | 14:46 |
SRabbelier|Uni | lh: is it bad? | 14:46 |
SRabbelier|Uni | :P | 14:46 |
lh | SRabbelier|Uni: not really | 14:46 |
SRabbelier|Uni | lh: ok ^__^ | 14:46 |
lh | talking to pawel via google talk - he is having trouble with irc | 14:47 |
SRabbelier|Uni | ok | 14:47 |
tlarsen | SRabbelier|Uni: Is there a place where /document/show can be derived, rather than me hard-coding it? (e.g. something in the params dict...) | 14:49 |
tlarsen | I'd like to add some sort of getShowUrl() or getPublicUrl() type of method to base.View. | 14:50 |
tlarsen | Ah, it looks like it is in views.helper.redirects. | 14:52 |
SRabbelier|Uni | tlarsen: mhhh, what do you mean though? | 15:01 |
SRabbelier|Uni | tlarsen: I'm unclear as to what you're trying to do? | 15:02 |
tlarsen | I was trying to get rid of a hard-coded /document/show/%s/%s link. | 15:15 |
tlarsen | I wanted to do it the "right way". | 15:15 |
tlarsen | Anyway, I figured it out myself. | 15:15 |
tlarsen | Have we documented anywhere what we are using to be sure we don't have circular imports? | 15:21 |
SRabbelier|Uni | tlarsen: pylint | 15:30 |
SRabbelier|Uni | tlarsen: you can ask solydzajs on how to use it / what it says when you have a circular import | 15:30 |
tlarsen | It would be nice if this was documented in the wiki. :) | 15:30 |
tlarsen | Having to ask a person how to use pre-submit tests is not nice. | 15:31 |
SRabbelier|Uni | tlarsen: poke solydzajs about that :D | 15:31 |
solydzajs | if you run do_pylint you can see cyclic imports in Refactoring section of the output | 15:31 |
tlarsen | solydzajs: Can you mention this in the testing wiki topics somewhere? | 15:32 |
solydzajs | tlarsen: yes | 15:32 |
tlarsen | Thanks. | 15:32 |
tlarsen | $ scripts/pylint/do_pylint.sh | 15:33 |
tlarsen | scripts/pylint/do_pylint.sh: 27: Syntax error: "(" unexpected | 15:33 |
solydzajs | oh did I break it ? | 15:34 |
SRabbelier|Uni | nice | 15:34 |
SRabbelier|Uni | you didn't test? :p | 15:34 |
solydzajs | I did | 15:34 |
solydzajs | one sec | 15:34 |
SRabbelier|Uni | tlarsen: try running from scripts/pylint$ ./do_pylint.sh | 15:35 |
SRabbelier|Uni | solydzajs: can you turn off R0801: 1: Similar lines in 2 files | 15:37 |
SRabbelier|Uni | solydzajs: it's only giving bogus results anyway | 15:37 |
tlarsen | SRabbelier|Uni: Ugh. That is yucky. | 15:40 |
solydzajs | ok will do | 15:40 |
tlarsen | I tend to sit in the root of the project and edit and run things from there (a habit learns from years of dev at Google, where the tools work from the root of things). | 15:40 |
SRabbelier|Uni | tlarsen: *shrugs*, not my script :P | 15:41 |
SRabbelier|Uni | tlarsen: btw, it works for me running from root directory | 15:42 |
*** madrazr has quit IRC | 15:49 | |
*** madrazr has joined #melange | 15:51 | |
*** MatthewWilkes has joined #melange | 15:55 | |
tlarsen | Ugh. example_text cannot be HTML? | 16:02 |
tlarsen | Sigh. | 16:02 |
SRabbelier|Uni | tlarsen: it can | 16:29 |
SRabbelier|Uni | tlarsen: mark_safe it first | 16:29 |
SRabbelier|Uni | tlarsen: (I think) | 16:29 |
SRabbelier|Uni | tlarsen: either that, or do so in the template | 16:29 |
tlarsen | SRabbelier|Uni: http://code.google.com/p/soc/source/detail?r=1436 | 16:45 |
tpb | <http://ln-s.net/2k25> (at code.google.com) | 16:45 |
tlarsen | SRabbelier|Uni: That is what happens when you wait 27 minutes to reply to me :) | 16:45 |
solydzajs | tlarsen: I have the university list from Leslie. I'm wondering how we should implement that | 16:49 |
solydzajs | tlarsen: we just have school name and country | 16:50 |
solydzajs | tlarsen: without any additional data | 16:50 |
tlarsen | Some sort of import URL? | 16:50 |
tlarsen | Create otherwise empty School entities? | 16:50 |
tlarsen | No idea, really. | 16:50 |
tlarsen | We never had them be "groups" before. | 16:50 |
solydzajs | well we can change the model | 16:51 |
solydzajs | that's not a problem | 16:51 |
solydzajs | we don't use it yet anyway | 16:51 |
solydzajs | it doesn't have to be a group | 16:51 |
solydzajs | Oh I got one email :-) | 16:53 |
solydzajs | maybe they fixed Google Code ;-) | 16:54 |
*** mithro has joined #melange | 17:04 | |
*** ChanServ sets mode: +v mithro | 17:04 | |
tlarsen | solydzajs: Changing the #!/bin/sh to #!/bin/bash makes your do_pylint script work on Ubuntu 8.10. | 17:14 |
tlarsen | solydzajs: Is ( a "bash-ism"? | 17:14 |
solydzajs | tlarsen: oh! nice, you want to commit the fix ? | 17:15 |
solydzajs | bash is fine with me | 17:15 |
tlarsen | The output of pylint is very noisy. Where was I supposed to look for circular imports again? | 17:16 |
solydzajs | but it works for me on OS X with !/bin/sh too | 17:16 |
tlarsen | Yes, but /bin/sh is not /bin/bash on Ubuntu. | 17:16 |
solydzajs | after all warnings and errors | 17:16 |
solydzajs | before the tables | 17:16 |
tlarsen | I am guessing that OS X /bin/sh (BSD) is not Ubuntu /bin/sh (GNU) either. | 17:17 |
solydzajs | tlarsen: look for R0401 | 17:17 |
solydzajs | tlarsen: R0401:Cyclic import (%s). Used when a cyclic import between two or more modules is detected. | 17:17 |
tlarsen | OK, good, I don't have any of those. | 17:17 |
tlarsen | "Pattern not found" :) | 17:18 |
solydzajs | :-) | 17:18 |
SRabbelier|Uni | lh, solydzajs: did you two talk on Melange stuff? | 17:45 |
MatthewWilkes | hey guys, I'm not going to be around on the 25th, am in Berlin for the weekend, can someone be sure to log #melange so I can go over it after? | 18:04 |
SRabbelier|Uni | MatthewWilkes: we're already logged, yes? | 18:08 |
MatthewWilkes | ah, so we are | 18:08 |
SRabbelier|Uni | MatthewWilkes: ^__^ | 18:08 |
MatthewWilkes | that was easy | 18:08 |
SRabbelier|Uni | :D | 18:08 |
SRabbelier|Uni | I love quick fixes like that :P | 18:09 |
*** solydzajs has quit IRC | 18:12 | |
*** kubota has joined #melange | 18:20 | |
*** kubota has left #melange | 18:21 | |
lh | SRabbelier|Uni: we did | 18:23 |
*** tlarsen has quit IRC | 18:24 | |
*** tlarsen has joined #melange | 18:25 | |
*** ChanServ sets mode: +o tlarsen | 18:25 | |
*** SRabbelier|Uni has quit IRC | 18:36 | |
*** mithro has quit IRC | 18:42 | |
*** mithro has joined #melange | 18:45 | |
*** ChanServ sets mode: +v mithro | 18:45 | |
*** MatthewWilkes has quit IRC | 19:53 | |
* r0bby looks around | 20:14 | |
* tlarsen stares back at r0bby | 20:43 | |
*** mithro has quit IRC | 20:56 | |
*** madrazr has quit IRC | 21:18 | |
*** mithro has joined #melange | 21:22 | |
*** ChanServ sets mode: +v mithro | 21:22 | |
*** dmitrig01|afk has joined #melange | 21:54 | |
*** ChanServ sets mode: +v dmitrig01|afk | 21:54 | |
*** madrazr has joined #melange | 22:01 | |
*** SRabbelier|Uni has joined #melange | 23:40 | |
*** ChanServ sets mode: +v SRabbelier|Uni | 23:40 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!