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