/srv/irclogs.ubuntu.com/2011/02/15/#ubuntu-locoteams.txt

cjohnstoncprofitt: do you remember which bug was relevent to him00:34
cprofittI looked and could not find one00:34
cprofittmhall119: put it in though00:34
cprofittit was something to do with his LP account00:34
cprofittbut I got called away while you guys discussed it with him00:34
cjohnstonI dont see the bug00:39
cjohnstonwas the bug a problem with LD or openid00:39
cjohnstoncprofitt: without more info, I'm going to default that there are some issues with openid and lp and ld's interaction that require work from people outside the LD dev community00:49
cprofittcjohnston: sounds fair...00:51
cprofittI can try to get him to re-construct the problem00:51
cprofitthe is no on right now though 00:51
cprofittthanks cjohnston 00:51
cjohnstonIf you can ask him to try to find the bug00:51
cjohnstonor wait for mhall119 00:51
cjohnstonhes on a date00:51
cprofittI can ask him to do that too00:51
cjohnstonI'm not very familiar with OpenID stuff00:52
cb9hey are there any Ubuntu LoCo teams in  New york City?/ 01:38
cjohnstoncb9: there is a New York team.. take a look at http://loco.ubuntu.com/teams01:40
cb9Yes, but they are located in rochester NY,  that is too far from the City.  I just am really suprised a place like NYC (5 boro's, brooklyn, queens, manhatten, bronx, Staten island)   don't have a group.   01:41
Pendulumcb9: there's not a LoCo for NYC, but there's at least one member of the NY State LoCo who is in NYC01:41
cb9i would like to start one. but not sure where to start 01:42
cjohnstonI know there was an event in the city back in November01:42
Pendulumcb9: my impression is that people have tried, but couldn't get a LoCo for the NYC area to last01:42
Pendulumcjohnston: there was?01:42
cjohnstoncb9: I would suggest instead of starting a new one, just making the team more active in the city01:42
cjohnstonPendulum: yes.. I was invited to go.. was the weekend Hope and I were in town01:42
cb9Damn!  Well  I have made it my life's mission to convert the world to ubuntu , 1 by 1 I will convert the world 01:42
cb9i am not a programmer,  more just a computer geek / desktop tech.   but I have installed it and converted over 100 people already. most of em just use it and arent really into the development of it tho 01:43
cjohnstonSounds good01:43
cjohnstonjust try to get them more active01:43
cjohnstonstart setting up events in the city01:43
cb9Have any ideas on the kind of event i should try to hold? 01:44
cjohnstonWell.. the global jam is coming up01:44
cjohnstonUbuntu Hours01:44
cjohnstonInstallfests01:44
cb9Installfests sound up my alley.01:45
nigelbmhall119: ew02:50
nigelbmhall119: I pushed after uncommit, but it refused to take it02:50
nigelbmhall119: I'll just delete that branch and push a new one.02:51
nigelbmhall119: Fixed.  Sorry about that.  I did that first thing in the morning yesterday.  Wasn't yet awake, alert, and oriented.03:22
HariMenonGreetings, guys... An Ubuntu n00b here trying to get more involved in the community... Was wondering why there is no Connecticut (US) LoCo team...05:54
YoBoYgood morning06:46
nigelbmorning YoBoY 06:56
YoBoYhi nigelb06:59
nigelbmhall119 is probably going to kill me when he wakes up for all the screwups I did on summit :p07:00
dholbachgood morning!07:39
YoBoYmoin dholbach 07:48
dholbachsalut YoBoY07:48
YoBoY14 upcoming events for my team registered in the LD :) 08:38
dholbachnice08:38
YoBoYI just added the global jam in Paris08:40
YoBoYI already have the venue this time, we cant miss another jam ^^"08:40
trinikronoYoBoY: how big does the global jam in paris be?08:42
YoBoY~40 people last time we have done one08:43
YoBoYmost of them come to discover how they can contribute on the workshops we propose08:47
trinikronoYoBoY: sounds like you need a really big venue for this, i have not done one as yet08:50
YoBoYyes, and lot of "teachers" ^^"08:52
trinikronohmm ill have to see if i can get a venue that i can borrow for 3 days otherwise i might have to irc it08:56
locodir-userubuntu studio i386 setup file. i will boot from pendrive so a 2GB pendrive will work, right?10:04
locodir-usersorry i will install on laptop frompendrive10:04
effie_jayxhello :)11:26
mhall119nigelb: nothing you did that can't be fixed12:35
mhall119FYI, if you uncommit a rev, when you push to launchpad again use --overwrite12:36
mhall119YoBoY: are you posting picture on LD of these events?12:36
YoBoYmhall119: no, I don't take pictures, and have always difficulties to have them :] we need to work on that point12:42
nigelbmhall119: ooooh, thank you!12:43
YoBoYmhall119: btw where the pictures should go ? just using the tags on the different services ?12:44
YoBoYok, find it, using the "team account" on one of the services12:46
mhall119yeah team account to get them on your team page12:53
mhall119global events have a picture tag you can use to get them on the global event's page12:53
mhall119dholbach: http://bazaar.launchpad.net/~django-foundations-dev/ubuntu-django-foundations/trunk/view/head:/docs/GettingStarted12:56
mhall119http://bit.ly/ePmT0Q for easier clicking12:56
mhall119now to incorporate the maps app, and make sure the others are in working order12:57
YoBoYhttp://photos.april.org/v/premier_samedi_2011_02/ << our last event photos, on Galery...12:57
mhall119oh, nice venue12:58
YoBoYyes :) we really are Lucky to have it, they have space, network, fiber internet connexion, and they support us. We do our big Ubuntu Party in this venue.13:02
dholbachmhall119, great work!14:46
allenapHi, the Ubuntu Washington LoCo has two pages. One of them points to a team that no longer exists, so I wondered if someone could delete it? More details here: https://answers.launchpad.net/loco-directory/+question/14546615:00
dakerallenap, i think czajkowski can do it15:01
allenapdaker: Tip-top, thank you.15:02
czajkowskiallenap: aye we know 15:02
czajkowskinothing we can do about it though, it's a db issue 15:02
czajkowskinothing the council can do 15:02
cjohnstonczajkowski: cant merge it?15:03
czajkowskicjohnston: nope seemingly not 15:03
cjohnstondoes it give an error?15:03
czajkowskicjohnston: I don't know. going by what I was told. 15:03
czajkowskicjohnston: ask dholbach 15:03
cjohnstonook15:03
dholbacha db issue?15:04
dholbachteam admins/owner should be able to merge the teams15:04
dholbachthere should be a "merge teams" option there15:04
nigelbo/15:30
mhall119nigelb: in summit/schedule/views.py line ~11215:30
mhall119you're taking today's date, and converting it to localtime?15:31
mhall119but in Slot.objects.filter you're comparing it to data stored in UTC15:31
mhall119also, wouldn't it be easier to just check in by_date if date is a string or a date, rather than converting a date to a string only to convert it back again?15:32
nigelbmhall119: oh, right.15:33
nigelbfoo, I tried to minize chnages to by_date15:33
mhall119nigelb: am I misunderstanding the localization calls you're doing on the date?15:33
nigelbmhall119: ok, I'll try to explain my logic15:34
nigelbtake today's date at the summit location -> feed to by_date -> viola15:34
nigelbmhall119: also, that schedule.calculate() should not be there15:35
nigelbsorry15:35
mhall119but is converted_date in localtime or utc time?15:35
nigelbthat was mistake from today15:35
nigelbconverted_date is localtime15:35
mhall119why no schedule.calculate?15:35
nigelbbecause if a schedule doesn't exist, schedule.calculate() redirects to a 40415:36
mhall119ok15:36
nigelbcan you remove it or do you wnt me to remove and push again?15:37
mhall119okay, so if converted_date is in localtime, won't start_utc__lte give the wrong calculations?15:37
mhall119shouldn't you convert it to UTC time?15:37
mhall119nigelb: I'll remove it once I understand the rest15:37
nigelbIt shouldn't15:38
nigelbwe're not trying to get the scedule right for UTC time15:38
nigelbwe're trying to get the scedule right for local time15:38
nigelblike for example, if the event was in a place where the UTC 0000 was in the middle of the day15:38
mhall119okay, but 2011-02-15 PST is going to be 2011-02-16 UTC15:38
nigelb /today would change only in the afternoon15:39
nigelblets just assume that by_date would take a date as input15:39
nigelband it would return the scedule for that date15:39
nigelbthat's its job and it does it perfectly15:39
mhall119okay, so by_date gets 2011-02-1515:39
mhall119but we want all slows between 2011-02-15 0000 and 2359 localtime15:40
mhall119which won't be the same slots as 0000 to 2359 UTC time15:41
nigelbright15:41
mhall119say we have a slot defined at 2011-02-16 0200-0300 UTC15:41
mhall119will that show up for /today on 2011-02-15 for a summit on PST?15:42
* nigelb goes crazy with tz calculation15:42
nigelbgimme a minute15:42
mhall119yeah, they'll do that do you15:42
nigelbmhall119: hah, hilarious bit is, you gave me the Slot.filter function.15:44
nigelbNo wonder I'm clueless15:45
mhall119:(15:45
nigelbOk, so how do I figure out if a session is happening today?15:45
nigelbI check if the start_date and end_date is between my dates in local time, right?15:46
mhall119convert the localtime to it's UTC value, then that in the filter15:46
nigelbso delocalize right?15:47
mhall119or just don't localize it15:48
mhall119I'm pretty sure that datetime.datetime.now is in UTC already15:48
nigelbyes, but I'm localizing that15:49
mhall119wait, no, that won't work15:49
nigelbso, I was supposed to delocalize inside by_date15:49
nigelbI screwed up.15:49
mhall119yeah15:49
mhall119actually don't even need to do that15:50
nigelbwhy not?15:50
mhall119since you localize in /today before getting the date15:50
nigelbyup15:50
mhall119you'll be passing a date object that is the local date15:50
nigelbright, but searching with UTV15:50
nigelb*UTC15:51
* mhall119 hates tz15:51
nigelbMe too15:51
mhall119okay,  it's the string converting that's screwing this all up15:52
nigelbhow?15:52
mhall119pass by_date a localized datetime.date object, then pass that through summit.delocalize15:52
mhall119because by_date wasn't aware of the timezone of the date15:53
mhall119it needs to know15:53
nigelbbut by_date accepts a string15:53
mhall119let it take a string or a date15:53
mhall119if it's a date, use it directly, if it's a string, parse it to a date like you are now15:53
nigelbokay15:53
nigelbbut wait15:53
nigelbwhat's wrong with what I'm doing now?15:53
* nigelb headdesks crying about TZ15:54
mhall119you're passing by_date "2011-02-15", but by_date doesn't know what that is in UTC15:54
mhall119because it doesn't know what timezone you're talking about15:54
nigelbI'm assuming that when we put a date, its always local15:54
nigelbwhich makes sense15:55
nigelbwherever you are, you put the date local to the summit to get that day's schedule15:55
nigelb(does that make sense?)15:55
mhall119yes15:56
nigelbso in /today, I get local date for today and send it to by_date15:56
nigelbwhich then UTC-izes it and gets the schedule for that day15:56
nigelbwait15:57
nigelbthat sounds wrong15:57
mhall119okay, you know what....you might have been right all along15:57
nigelbmhall119: skip the /today for now15:58
nigelbI want to think of this better and make sure its write15:58
nigelbor I'll cause a bigger problem than I tried to solve15:58
nigelb(which was to prevent manual change of dates for all the screens around the venue)15:58
mhall119nigelb: let me test your branch out and see if I can make it break16:02
mhall119but i think it may be alright afterall16:02
nigelbI'm guessing it will fail16:02
nigelbI just realized that.16:02
Ronniemhall119: any progress on django foundations? (share media files, template directory, urls.py etc?)17:06
mhall119Ronnie: yes17:13
mhall119http://bazaar.launchpad.net/~django-foundations-dev/ubuntu-django-foundations/trunk/view/head:/docs/GettingStarted17:14
Ronnieyes, i saw the changes17:14
Ronniebut i still do not see any concept for projects to define their own urls, media files etc17:15
Ronniei hope the developerweek does increase the knowlegde of django in our community, we can use a lot of help :)17:17
mhall119Ronnie: yeah, I don't have that yet, just the bootstrapping process17:20
mhall119I was planning on everything else being in self-contained apps17:20
mhall119so you'd add your own media and templates in an app17:20
mhall119with urls for them17:20
Ronniebut the 'combiner' of the apps should add links in the main settings/urls.py and link the media dir. i think (but i cant think of a good way) that apps should be added by only adding their bzr location into the settings file17:22
Ronnieso i think the writer of the apps should add some extra code to make that work17:23
Ronnieif there is some sort of general API, or method to do this, that will help the speed of developing apps very much17:23
Ronniebut its very hard to write an own 'framework'17:24
mhall119I could put something in the main settings and urls that'll wire up anything in INSTALLED_APPS17:40
mhall119or BZR_APPS17:40
mhall119or some other list17:40
Ronniemhall119: for app in BZR_APPS: from app.settings import *17:46
Ronnieso the app can specify the own settings (like local_settings)17:46
mhall119Ronnie: that wouldn't work, once app's settings would overwrite the other...17:46
RonnieTEMPLATE_CONTEXT_PROCESSORS and TEMPLATE_DIRS supports +=17:47
mhall119right17:47
Ronniethe same is for urls.py which also supports +=17:47
mhall119let me play with it and see what happens17:48
Ronniefor the media we can execute the command 'ln -s'17:48
dakerAlanBell, what the hell is that ????!!!18:13
dakerwtf!!!18:13
dakerwoooaaa18:13
dakerwtf!!!18:13
AlanBelldaker: what?18:15
AlanBell!netsplit | daker 18:16
ubot4daker: netsplit is when two IRC servers of the same network (like freenode) disconnect from each other, so users on one server stop seeing users on the other. If this is happening now, just relax and enjoy the show. See http://en.wikipedia.org/wiki/Netsplit18:16
AlanBelldid you mean that?18:16
dakeryes18:16
AlanBellrest assured, it wasn't me :)18:18
Ronniemhall119: this could work: http://paste.ubuntu.com/567423/ (but fails on package launchpad)18:21
=== _CrazyLemon is now known as CrazyLemon
Ronniemhall119: template dir is not needed, django searches the app/templates folder automatic (/me hopes for non collisions)18:38
mhall119Ronnie: correct, we don't need it for templates19:12
mhall119there's a better way of importing than calling exec though19:13
Ronniethis is what i got now (broken atm) http://paste.ubuntu.com/567436/19:13
Ronnienot that im aware of19:13
Ronniemaybe __import__(name)19:13
mhall119__import__19:13
mhall119yeah19:13
Ronniebut its limited19:13
mhall119limited how?19:15
Ronnieyou have to import the whole package, somehow that did not work here19:15
mhall119Ronnie: take a look at https://bitbucket.org/mhall119/django-extauth/src/8a2807276dcc/extauth/roles.py#cl-33319:16
Ronniemhall119: is that method better than exec?19:20
mhall119I think so19:20
mhall119I generally don't like concatenating strings and executing them19:20
Ronniemhall119: are you willing to write the __import__ path?19:21
Ronniepath = part19:21
mhall119Ronnie: sure19:35
Ronnieit will be a good step for foundations19:36
mhall119I'm not sure we need media directories being symlinked, i think each app can manage their own, and apache handlers can be done for each19:37
Ronniemhall119: but then you need to reconfigure apache each time you add an app (altough it could be a better solution, but harder for the 'end user')19:39
Ronnieand other developers need to change urls.py to include static_serving19:41
mhall119static serving should be enabled by default in all our provided apps, then the user can decide which if any to handle through apache instead19:42
Ronniebut how to handle the static file serving of different apps automaticcly?19:43
mhall119each app would set of their own urls.py for static serving19:43
Ronniemhall119: but then you cant use {{ MEDIA_URL }} for them?19:45
mhall119no, each app would have to provide their own19:49
mhall119which, granted, is not ideal either19:49
Ronnieand how would you translate {{ MY_APP_MEDIA_URL }} to a disk location or web location. i have not much experience with apache, but i guess its not easy to do19:51
mhall119I haven't thought too much on that yet, but you bring up very good points19:52
mhall119I can see maybe ln -s $APP_PATH/media $PROJECT_PATH/$APP_LABEL/media19:53
mhall119correction: $PROJECT_PATH/APP_MEDIA/$APP_LABEL19:53
mhall119so "myapp/media" would get linked to "myproject/APP_MEDIA/myapp"19:54
mhall119or something like that19:54
mhall119similar to what you were doing19:55
Ronnieyes, but i also do not know how thats handled with apache and user rights (chmod)19:55
mhall119there'd probably have to be some kind of management command to do it19:56
mhall119./manage.py addappmedia19:56
mhall119or something19:56
Ronnieyea, thats better than in settings.py (which is exec 4 times on startup)19:56
mhall119yeah, settings does get execed a lot19:56
=== ianmcorvidae|alt is now known as ianmcorvidae
=== Nafallo_ is now known as Nafallo
=== AlanChicken is now known as AlanBell
locodir-userhi21:48
locodir-userto hall21:48
YoBoYhum... the locodir-users never stay enought time, i wonder if we don't have to add a note in the webirc page to explain they have to wait more than 1 minutes before leaving ^^"21:51
mhall119hmmm, might not be a bad idea21:52
dakermhall119, cjohnston Ronnie is the media folder should inside or outside the project folder ? (it's a general question) 22:37
Ronniei always keep it inside, but thats just a habit. never tought about it22:38
Ronnieis there any reason why you want to get it out of the project folder?22:39
dakerRemeber Erato ? i had a discussion about it with doctormo22:39
dakerand he said that the media folder should always outside the project folder22:40
dakeralso he said that the only projet he had see and has a media folder inside the project folder is LD22:41
dakers/see/seen22:41
dakeranyone ?22:46
Ronnieyes, i still remember erato, too bad there is not progress22:46
Ronniei think it could be a risk for your code, if someone breaks out of the media directory, and thereby can access the source files22:47
dakera risk if i place it outside ?22:48
Ronnienot, but harder to configure i guess22:49
Ronnienot very hard tought22:49
Ronnie-t22:49
Ronniebut when collaborating, there should be a common directory 22:50
Ronnieor you have to add the directory in local_settings (if you have that one configured)22:51
Ronnieill go to sleep, good luck daker22:53
dakerok thx22:53
mhall119optimally your media would exist on a dedicated media server23:52
mhall119in reality, you rarely get that option23:52
mhall119I've always kept my media in my project folder23:54

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