/srv/irclogs.ubuntu.com/2011/01/09/#ubuntu-locoteams.txt

t0m4sg1lhola04:59
t0m4sg1lalguien aqui??04:59
=== head_v is now known as head_victim
Ronnieping mhall11912:37
mhall119Ronnie: pong15:16
Ronniemhall119: hey ...15:16
Ronniei was working on a 'supportmap' for django foundations15:17
Ronniebut ran into some troubles15:17
Ronniei also say you made some bugreports to it15:17
Ronniefor example, howto handle the urls.py into the global urls.py15:18
Ronnieand the media directory, how to add items in there15:19
Ronniemhall119: ^15:20
mhall119what do you mean by 'supportmap'?15:20
mhall119each app would have it's own urls.py and ./media/15:21
mhall119we can provide a global urls.py that links to all the apps' urls.py15:22
mhall119probably commented out, so you just uncomment what you'll be using15:22
mhall119something I've done at work is to define a MEDIA_ROOT in each app's __init__.py15:24
Ronnieby supportmap, i mean a google map, where users can add a marker where they live, and add some contact information and otehr stuff15:24
Ronnienew users can get in contact with nearby ubuntu usrs to ask for help15:24
Ronnieits a bug succes in the dutch community15:25
mhall119can you make a generic API, so developers can add any items to a google map?15:25
mhall119I can see a user-specific one being useeful for locos15:25
mhall119but non-loco webapps would probably also have a use for it15:25
mhall119if they can define other items15:25
Ronniemhall119: the generic API is already written (it needs to be extended and optimized tought)15:25
mhall119cool, lets get that into the django foundations15:26
Ronniei use same code (the own jquery maps plugin) on loco as on the supportmap code15:26
Ronniemhall119: at the moment i get the error: ./manage.py pullapps  => Unknown command: 'pullapps'15:27
mhall119are you on the django foundations developers team?15:27
Ronnieno15:27
mhall119what's your LP id?15:28
Ronnieronnie.vd.c15:28
mhall119added15:29
Ronniei see15:29
mhall119do you have bzr_apps locally?15:29
Ronnieno, do i need to to pull apps?15:30
mhall119yeah, it can't pull itself before it's there15:30
mhall119bootstrapping is still a bit of an issue15:31
mhall119I'm working on ways to make that easier15:31
mhall119the way Django handles INSTALLED_APPS doesn't help matters15:32
Ronniemhall119:  i branched now all the apps in foundations, (all in the folder src) but the command still not exists15:33
mhall119is bzr_apps in your INSTALLED_APPS?15:33
mhall119if you're using the foundations settings.py, it should15:34
Ronniemhall119: in settings: import bzr_apps (but the folder is named bzr-apps )15:35
mhall119oh right15:35
mhall119forgot that python doesn't like hyphens in package names15:36
Ronnieif i rename the folder, it works15:36
mhall119I'll rename the series15:37
Ronnieok great15:37
mhall119grrr, except it seems launchpad doesn't like underscores :(15:37
mhall119fail15:37
Ronniehmm, then we need to change the commend to 'bzr branch lp:ubuntu-django-foundations/bzr-apps bzr_apps'15:38
mhall119yeah15:38
Ronnieand if the bzr_apps import fails, show that command15:38
Ronnieor dont use _ or -  at all15:39
mhall119actually, if you use the 'bootstrap' management command, it should do it correctly for you, try that15:39
mhall119bootstrap is in ./common/15:40
Ronnieah, ill try15:40
* mhall119 needs to make a README and INSTALL files15:40
Ronnieindeed l)15:40
Ronniewe need to copy the local_settings stuff from loco too15:43
mhall119good point15:47
cjohnstonmornin16:00
Ronniehey cjohnston :D16:00
cjohnstonwhats goin on today16:05
Ronniea lot if django foundations ideas16:05
Ronnieand i see my merge request are almost brought back to 0 ;)16:07
cjohnstonlol16:10
cjohnstonI have three for ld16:11
Ronniecjohnston: can you reproduce the bug for the calendar banch?16:12
Ronniedaker could not, like me16:12
cjohnstonRonnie: could you look into https://code.launchpad.net/~chrisjohnston/loco-directory/699692/+merge/45477 16:14
cjohnstonits the same as your fix for https://code.launchpad.net/~ronnie.vd.c/loco-directory/697693/+merge/4526316:14
cjohnstonso i think the bug may be introduced with both16:14
Ronniecjohnston: ill have a look16:15
cjohnstonim starting the process for downloading to check the calendar thing again16:15
cjohnstonon 3g today... so itll be a while16:15
Ronniehmm,  downloading from Loco is not the longest time16:17
Ronnieit is the database interaction ;)16:17
cjohnstonDownloading the branch is up to more than 3 minutes16:18
Ronniehmm, ok didnt notive it is that much, here is is less than a sec16:19
czajkowskicjohnston: disney good fun ?16:19
Ronnieill have to eat in a minute, then ill look into the feedback of daker. i guess that also can create new bugs16:19
cjohnstonbbuussyy16:20
cjohnstonczajkowski: ^16:20
czajkowskicjohnston: :)16:22
cjohnstonRonnie: im still importing.. :-/ been doing it since about the time i said bbuussyy17:02
yerkinhi17:15
yerkinpleas help me17:15
cjohnstonwhats up yerkin 17:16
yerkini install ubuntu 10.10 server17:16
yerkinthen i try install yum17:16
yerkinsorry my bad engl17:17
yerkinsorry for my bad engl17:17
cjohnstonTry #ubuntu-server for server help.17:17
yerkini write    apt-get install yum17:18
yerkinok thank you17:18
cjohnstonnp17:19
cjohnstonRonnie: I'm still getting the error on the calendar merge17:21
Ronniecjohnston: can you write step by step what you did?17:22
cjohnstonbranch, syncdb, migrate, init-ld, import-live-data, runserver, merge17:23
cjohnstonthen i click on any of the little calendar icons17:28
Ronnieoke, ill test in a moment, still looking into the problem of the copy17:29
Ronniethe bug that can arise fron dakers solution, is that 2 events are copied at 'the same time' (i.e. before its saved to the database). they both get the same id17:30
cjohnstonwhat about from the initial patch17:33
Ronniei can guess whats going on17:35
Ronniethe view is executed twice, load en POST17:35
cjohnstonic17:36
Ronniein both a copy is made (.save()) but only in the POST, the team is linked17:36
Ronniei have to look into the _new code how to solve it17:36
Ronniebut im now testing the ical17:36
cjohnstonk17:37
Ronniecjohnston: i can reproduce the error indeed17:52
cjohnston:-)17:53
cjohnstonI guess that's a good thing17:53
Ronnieindeed, now i can start debugging :D17:54
yerkintell me how to specify a proxy18:01
yerkinubuntu 10.1018:02
cjohnstonTry a support channel or google please18:05
Ronniecjohnston: fixed the NoneType error for ical18:11
cjohnstoncool18:11
cjohnstondid you push it?18:12
Ronnieyes18:14
Ronniethe problem was an empty description in an event18:15
cjohnstonic18:16
toroshi18:17
cjohnstonhi18:18
dakerRonnie, how ?20:30
Ronniedaker, how what?21:38
daker<Ronnie> cjohnston: i can reproduce the error indeed21:38
Ronniebranch, syncdb, migrate, init-ld, import-live-data, runserver, merge21:39
dakerRonnie, is it the ical error ?21:39
Ronnieyes21:39
Ronniecjohnston: did you test it after my new push?21:39
Ronniebecause your comment is afterwards, but it should be fixed in the new version21:40
cjohnstonRonnie: didnt notice the new commit22:33
cjohnstonone sec22:33
Ronniemhall119: ping22:35
cjohnstonRonnie: no error22:35
Ronniecjohnston: the copy bug is harder than i expected. because TeamEvent subclasses from BaseEvent. i think i need the help from mhall119 to fix this22:36
cjohnstonok22:36
Ronniecjohnston: is there another bug that needs to be solved before the next release?22:37
cjohnstonthe meeting bugs are stoppers22:37
Ronniemhall119:  any advise on this? http://docs.python.org/library/copy.html22:38
Ronniecjohnston: the last one is hard: https://bugs.launchpad.net/loco-directory/+bug/68806422:40
ubot4Launchpad bug 688064 in loco-directory "Add meetings to 'upcoming events' on team's pages (affects: 1) (heat: 4)" [Wishlist,Triaged]22:40
Ronniedaker: ping22:40
dakerYo22:41
Ronniedo you have any advise on the copy bug?22:43
cjohnstonbug #692121 should be fixed before release, bug #686268 22:43
ubot4Launchpad bug 692121 in loco-directory "Team event has been unlinked to loco team on loco.ubuntu.com (affects: 1) (heat: 5)" [High,Confirmed] https://launchpad.net/bugs/69212122:43
ubot4Launchpad bug 686268 in loco-directory "Add the ability to add agenda items (affects: 1) (heat: 5)" [Wishlist,In progress] https://launchpad.net/bugs/68626822:43
Ronnieor the upcoming events page -> include meeting22:43
Ronnie692121 is hard to solve, because the cause in not clear22:44
dakerbug 69212122:44
ubot4Launchpad bug 692121 in loco-directory "Team event has been unlinked to loco team on loco.ubuntu.com (affects: 1) (heat: 5)" [High,Confirmed] https://launchpad.net/bugs/69212122:44
dakeryes22:44
cjohnstonEvents page should not list meetings.. thats what the meeting page is for22:44
cjohnstonon the team page, it should list events and meetings22:45
Ronniecjohnston: 686268 is already merged, why isnt it "Fix committed"22:45
cjohnstonRonnie: it only has the backend22:45
cjohnstonit doesnt have the ui22:45
cjohnstonRonnie: in my mind, 686268 should behave like an event comment.. If you click add agenda item (or something similar), you get a text box at the top of the screen (just like the comment box) and then it records the user who made the comment, the time, etc22:49
cjohnstondo you understand what im sayin Ronnie ?22:51
Ronnieyes22:52
cjohnston:-)22:52
Ronnieill see what i can do tomorrow, got enough for today ;)22:54
cjohnstondaker: would you mind running another test on the ical branch since changes were made? if you approve ill merge22:54
cjohnstonsounds good Ronnie 22:54
cjohnstonWith the bugs that need to be done for the release, I'm too lost to be of much assistance22:55
Ronnieindeed, the complexity is increasing at the end of the road22:55
Ronniealtough the ui shouldnt be that difficult. but i hate css stuff ;)22:56
dakercjohnston, tell me the bug id pls ツ22:56
cjohnstonI'm thinking CSS should be fairly easy, as it should be able to use the css from comments22:56
Ronniedaker: https://code.launchpad.net/~ronnie.vd.c/loco-directory/623288/+merge/4412722:56
cjohnstonRonnie: could you also take a quick look at this one please bug 69666123:00
ubot4Launchpad bug 696661 in loco-directory "Expires Date / Date Expires does not make sense (affects: 1) (heat: 6)" [Low,In progress] https://launchpad.net/bugs/69666123:00
Ronniesure, looking is OK ;)23:01
cjohnstonsorry... that was actually supposed to be for daker.. but you can review it too23:01
cjohnston:-)23:01
Ronniecjohnston: hmm, not much that could go wrong with that merge. but ill do a small test to be sure23:02
cjohnstonty23:03
dakercjohnston, it works for me23:06
dakercjohnston, i'll review the other tomorrow it's 23:10 and i need to go to sleep ツ23:09
Ronniecjohnston: on the page http://localhost:8000/teams/ubuntu-nl/edit its not translated23:13
Ronnieits still "Date Expires"23:13
Ronnieother pages are correct23:15
mhall119Ronnie: can you bring me up to date on what the "copy bug" is?23:23
mhall119wasn't the copy event feature working previously?23:23
Ronniemhall119: sure23:23
Ronnieit had a glitch, there were 2 events created. one without a team23:24
Ronniei even guess that the old (where its copied from) could be changed23:24
mhall119Ronnie: how did it create 2?23:25
Ronniei tried different approaches, but all failed (create a __dict__ from the model, delete the id field, and give the dict as initial)23:25
Ronniemhall119: because the view is called twice, the first copy, and later the POST23:25
mhall119right, but it only get's saved on POST, not on GET23:26
Ronnie2nd method, use python deepcopy => the original event loses some information23:26
Ronniethere was needed a save() also for the GET, because if it has no id, the manytomany rel cannot be linked23:27
Ronniecrashed23:28
mhall119hang on, it had been working23:29
Ronniei thought by using initial=event.__dict__ to solve it23:29
Ronniebut the datetime are not inserted into the form23:29
mhall119okay, let's back this up a bit23:30
mhall119GET shouldn't need the new event created23:30
mhall119it should just use the old event to pre-populate the new event form23:30
cjohnstonit used to work.. then some change (i forget what) broke it.. 23:31
mhall119well then let's figure out what that change was23:31
cjohnstonRonnie:  expires_date = models.DateField(_("Reapproval Date"), null=True, blank=True) doesnt change the date expires?23:32
Ronniemhall119: i guess your right with GET/POST23:32
Ronnieill do a test in a minute23:32
Ronniecjohnston: looks like it didnt, is it hardcoded in the template?23:33
cjohnstonyes23:33
cjohnstonRonnie: do you remember what broke the copy23:35
Ronniecjohnston: did it broke, or wasnt it tested properly?23:35
cjohnstonit works in the live version23:37
mhall119okay, simple fix to the copy event23:39
cjohnston?23:39
Ronniemhall119: your idea seems to work here23:40
mhall119you just needed to get a copy of the teams from the event before you delete the id/pk23:42
mhall119http://pastebin.com/GCx0uba223:43
Ronniemhall119: what abount this solution: https://code.launchpad.net/~ronnie.vd.c/loco-directory/697692-2/+merge/4565423:47
Ronniecjohnston: can you test it?23:47
Ronniecjohnston: i cant find a copy feature in the live version23:48
mhall119Ronnie: I don't think that will work23:48
Ronniewhy not?23:48
mhall119form.save() will save it's instance23:48
mhall119It may be aware of the id fields and set them before saving23:49
cjohnstonRonnie: there is a copy team event23:49
Ronniecjohnston: maybe i have not the rights to make a copy (altough i have rights to create new)23:50
cjohnstonthen you should23:50
cjohnstonI see 'back' 'comment' 'edit details' 'delete' 'copy' 'ical'23:50
cjohnstonin the secondary nav23:51
Ronnielol, was looking at the wrong page (team page). duh23:52
Ronniei think its getting late ;)23:52
mhall119okay Ronnie, it looks like your fix will work, the form doesn't have a separate copy of the event id23:53
Ronniemhall119: it indeed looks like its a reference to the actual model23:54
mhall119I'd put it before form.is_valid() though23:54
mhall119though I don't think it matters23:54
Ronniecjohnston: team_update.html there are still some hardcoded strings, including "date expires"23:54
Ronniemhall119: what happens if the form is not valid?23:55
Ronniecoulnd that break things?23:55
mhall119it'll display the page again with the form as it is23:56
mhall119like I said though, it shouldn't matter either way23:56
Ronnieoke, great23:56
Ronniemhall119: i see my merge is missing the teams=... in meetings/views.py23:58
Ronniecan you add them too, and retest?23:58

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!