[00:06] what do you mean? [00:08] the TeamEventForm(......) in meetings/views.py is missing team=team_event.teams.all() [00:14] oh, ok, I wasn't looking at meetings/ stuff, just events/ [07:00] good morning [14:55] good morning [14:58] morning dholbach [14:58] hey Ronnie [15:03] dholbach: are you good with Django? [15:05] Ronnie, I'm not a pro - what help do you need? [15:05] in this bug: https://bugs.launchpad.net/loco-directory/+bug/688064 2 different models need to be sorted on date. and the top 5 must be displayed in the template. [15:05] Launchpad bug 688064 in loco-directory "Add meetings to 'upcoming events' on team's pages (affects: 1) (heat: 4)" [Wishlist,Triaged] [15:05] the top 5 is mixed of the 2 models [15:05] for example 4 for model 1 and 1 for model 2 [15:05] ah, hm [15:06] I guess there's no easy way [15:06] you might have to "mix" them yourself [15:07] so write my own date-sorting script [15:07] sorted(top_meetings[:5]+top_events[:5])[:5] [15:07] or something like that :) [15:07] morning everyone [15:08] mornin mhall119 [15:08] hey mhall119 [15:08] and for both models, write a sort of view function, which can be called from the template [15:09] Ronnie: sounds like the best way is to get the top 5 from each, put them into a list, and then sort them by date and grab the top 5 [15:09] ok, ill work on that one [15:09] yep, sounds good [15:28] morning mhall119 [15:43] howdy [15:43] morning nigelb [15:43] howdy mhall119 [15:43] working on summit now :) [15:45] mhall119: http://twitter.com/#!/timmartin2/status/23365017839599616 [15:46] nigelb: I saw that in Gwibber this morning, it make me laugh [15:46] hehe [15:46] lovely one it is ;0 [15:46] ;) [15:59] dholbach, mhall119: does one of oyu have a nice sorting script [15:59] i think i can write one myself, but i know there are optimized versions [16:00] can i use the __cmp__ etc functions or would that break django [16:01] I'd use a multi-dimensional list and use sort(key=operator.itemgetter()) [16:04] Ronnie: Qsort, bubblesort [16:09] Ronnie: sort on the command line? :P [16:09] ah right django stuff. :P [16:10] dholbach: that worked [16:10] lp:~ronnie.vd.c/loco-directory/688064 [16:10] can somebody test this fix [16:10] im going to eat [16:38] mhall119: hey, got a few mins to debug something? [16:38] http://dpaste.com/303655/ [16:39] http://dpaste.com/303657/ --> code [17:00] nigelb: bug number please [17:01] cjohnston: can you view this page with a blank loco-directory branch? http://localhost:8000/teams/ubuntu-is [17:01] for me it gives: Caught AttributeError while rendering: 'NoneType' object has no attribute 'replace' [17:01] cjohnston: bug 668532 [17:01] Launchpad bug 668532 in summit "/today page to display current day's schedule (affects: 2) (dups: 1) (heat: 14)" [Undecided,In progress] https://launchpad.net/bugs/668532 [17:01] i guess because the team has no name [17:02] Ronnie: lunch.. and helping nigelb.. ill ping you when i get a second. :-) [17:02] cjohnston: sure, thxc [17:02] your buddy is here [17:07] TrickyJ: I thought you were going to work on that loco-directory bug for us [17:11] cjohnston: I am sorry i would love to work on it but u know i dont have computer at home and in office i have very limited access :( by EOM i am purchasing new laptop and then i will start working on it, [17:11] cool [17:13] Hmmm :) i cannot even install MIRC on my office computer i am using Webchat Ubuntu LoCo Teams IRC Chat [17:16] nigelb: can I see your urls.py? [17:17] no. its top secret [17:17] :P [17:17] mhall119: hang on [17:18] nigelb: nevermind, I think I know what the problem is anywa [17:18] http://dpaste.com/303751/ [17:18] nigelb: by_date is still decorated with @summit_required, which means you need to pass the summit_name, not the summit instance [17:19] oh [17:19] so remove the @summit_required [17:19] btw, what the decoration mean? [17:19] no, don't remove @summit_required [17:19] a decoraction wraps a function in another function [17:20] when you call by_date(), you're actually calling summit_required(by_date) [17:20] Ah. [17:21] change "return by_date(request, summit, attendee, today)" to "return by_date(summit.name, today)" and see if that works [17:22] cjohnston, have you seen my comment ? https://code.launchpad.net/~chrisjohnston/loco-directory/699692/+merge/45477 [17:23] Aloha [17:23] mhall119: now I get a 404 [17:23] ya.. we did some talking about it last night.. I think mhall119 had a fix [17:23] but I do have a view when I look at that date [17:23] everyone stop talking about czajkowski, she's here now [17:23] * czajkowski hugs cjohnston [17:24] :-) [17:24] LoL [17:24] cjohnston: 14 items are gone off my to do list today [17:24] I've got more [17:24] just added 2 on for tomorow, so that's not bad going for a Monday [17:25] Ready for me to add more stuff to your todo [17:28] cjohnston: yeah if you like [17:28] hehe [17:29] only thing I've to do tomorrow is write a talk and sort out catering for a conference [17:29] the latter is simple [17:32] daker: https://code.launchpad.net/~ronnie.vd.c/loco-directory/697692-2/+merge/45654 (also the copy event / copy meeting bug) [17:32] Ronnie, not for now pls ツ [17:33] k [17:33] nigelb: pastebin? [17:33] mhall119: of the view? [17:34] mhall119: I just get "No Summit matches the given query. [17:34] Ronnie: bug 693912 [17:34] hmmm.... [17:34] Launchpad bug 693912 in loco-directory "Export does not export entire event name (affects: 1) (heat: 5)" [Undecided,New] https://launchpad.net/bugs/693912 [17:35] mhall119: got it! [17:35] mhall119: had to pass request :D [17:35] oh, right, duh [17:35] lol [17:36] cjohnston: marked mine as duplicate [17:36] :-) [17:37] mhall119: http://bazaar.launchpad.net/~summit-hackers/summit/trunk/annotate/head%3A/summit/schedule/models/summitmodel.py#L75 [17:37] is it possible for a team to not have a name? [17:38] mhall119: does ^^ that function help get the local time correctly? [17:38] or is that only an issue because of bug 693912 [17:38] Launchpad bug 693912 in loco-directory "Export does not export entire event name (affects: 2) (dups: 1) (heat: 11)" [Undecided,New] https://launchpad.net/bugs/693912 [17:38] cjohnston: no, every team should have a name [17:38] nigelb: looks like it does [17:38] local to the summit venue anyway [17:38] mhall119: right... so im thinking that bug is only because of the export bug.. [17:38] mhall119: where does it get the localtz of the summit venue? [17:39] * nigelb feels particulraly silly. [17:39] nigelb: from the Summit object's timezone field [17:40] when someone creates a new Summit, they specify the timezone [17:40] mhall119: ah, self.timezone() [17:41] so, now if I want to call this function, in the view, I'd do modelname.function? [17:41] self.timezone is a field, not a function [17:41] cjohnston: its possible, because the model has: null=True (it has no blank=True, so in forms you must supply a name). but technically its possible [17:41] nigelb: http://bazaar.launchpad.net/~summit-hackers/summit/trunk/annotate/head:/summit/schedule/models/summitmodel.py#L58 [17:42] mhall119: no, I meant if I want to call the localize function [17:42] in the view, you'd call summitinstance.localize(datetime) [17:42] aha [17:43] PHP to python is oddly confusing in the OOPS area [17:43] yes it is [17:43] mostly because python has a decent OO model [17:44] heh [17:46] W00T!!! got the Ubuntu table cloth and PVC banner!! [17:46] They look awesome! [17:52] :D [17:52] so glad teams are liking them [17:57] mhall119: ok, it works [17:58] mhall119: I suppose we need a "No UDS ongoing" page and do we want to autorefresh the schedule every hour or so? [17:58] (that way, far lesser manual intervention of the screen for which we're making the modification in the first place... [18:00] There should be an auto refresh on the today page.. IIRC there is on the daily pages... [18:00] but also bug #668528 [18:00] Launchpad bug 668528 in summit "Display the time the schedule page was last refreshed (affects: 1) (heat: 6)" [Undecided,In progress] https://launchpad.net/bugs/668528 [18:02] cjohnston: i'm working on thta into one merge [18:15] mhall119: wanna review this? https://code.edge.launchpad.net/~nigelbabu/summit/fix-today/+merge/45276 [18:15] nigelb: maybe later [18:16] mhall119: sure, thanks [18:16] I'll head to bed then :) [18:17] g'night [21:01] mhall119: I think bug 700527 is a really bad idea anytime that there will be teams involved [21:01] Launchpad bug 700527 in ubuntu-django-foundations "Separate userprofile from launchpad (affects: 1) (heat: 6)" [Medium,New] https://launchpad.net/bugs/700527 [21:04] cjohnston: I'm looking for ways to say one app depends on another, such that if you use 'teams' you must also be using 'userprofile' [21:04] but the intention of the separation was to allow 'userprofile' to be used, even when 'launchpad' is not [21:04] what are some use cases for that? [21:05] any time a developer doesn't want to require launchpad accounts for users [21:05] which, given comments we've gotten about LD, seems to be frequent enough to warrant a separation if it's not too difficult [21:06] I'm just not sure in the ubuntu world, what situations that would be relevant to I guess [21:08] OMG! Ubuntu [21:08] stack exchange [21:09] family.ubuntu-fl.org [21:17] mhall119: what is the target audience for the foundation. i tought loco's which wat to use it in comination with launchpad [21:29] Ronnie: any community-created website, not just for locos [21:30] it should also help us minimize duplication between LD, summit, HOF and others [21:30] ok, thx for the clarification mhall119 [21:30] no problem [21:41] mhall119: would it be possible to setup one user profiles app, and allow anyone to pull off of it? [21:41] and would that be more prudent [21:45] cjohnston: should the userporfile a separate app, or standard / build-in the foundation [21:53] I could see seperate so that you dont have it there if you dont need the userprofiles [21:53] as long as its easially integrated in [21:54] are there any use cases that userprofiles arent nessecairy? [22:02] cjohnston: that's kind of what the bug was for [22:03] all apps (except common) will be optional for ubuntu-django-foundations