2008-7-12
| 22:09 | Newmaniese | well your patch could still work |
| 22:09 | Gulopine | elliott, i'm trying to keep BackwardsIncompatibleChanges to a minimum :( |
| 22:10 | Alex_Gaynor | Yeah, I'm going to spend some more time with my patch right now |
| 22:11 | Newmaniese | Alex_Gaynor: If you are thinking that this is the right direction let me get it so all the tests pass again. and then we can combine patches, test the hell out of it and try to get some support of the core devs |
| 22:11 | jkocherhans | Gulopine: this does not count as official blessing, but I bet you could get away with it. utils is kinda frowned upon by some devs as a dumping ground. :) |
| 22:11 | Gulopine | jkocherhans, i was actually just thinking about moving it, but leaving the old module around with an import and a deprecationwarning :) |
| 22:12 | jkocherhans | I'd be all for that. |
| 22:12 | Gulopine | it'll be interesting to count the DeprecationWarnings that get yanked when 1.0 is blessed |
| 22:12 | Alex_Gaynor | Newmaniese: Ok, the main difference between ours is that yours sets up the urls in the __init__ and mine does them in a getter |
| 22:12 | Gulopine | i'm introducing a crapton myself |
| 22:13 | Newmaniese | Alex_Gaynor: let me pull back up your patch |
| 22:13 | Alex_Gaynor | |
| 22:17 | Newmaniese | Alex_Gaynor: I am sorry, I am dense. I decided to start from scratch and didn't even relize i duped a lot of things you already got done. You kept the root function too |
| 22:18 | Gulopine chuckles looking at get_image_dimensions() | |
| 22:18 | Alex_Gaynor | Just as a refence |
| 22:18 | Alex_Gaynor | to keep track of what I have implemented |
| 22:18 | Newmaniese | I really don't like the root function, it's kind of a hodge podge |
| 22:18 | Alex_Gaynor | it will go away |
| 22:18 | Gulopine | do we really need a break after a return? :) |
| 22:18 | Alex_Gaynor | Anyting still in root() means I don't have it in the URLconf |
| 22:18 | Newmaniese | Yea, like the permissions checking |
| 22:19 | Newmaniese | Let me finish that off and let's regroup |
| 22:19 | elliott | why hadn't the adminsite used urlconfs until now? |
| 22:20 | Alex_Gaynor | Ok, I'm adding the r/ urls now(which are the shortcuts) |
| 22:26 | Gulopine sighs | |
| 22:26 | Gulopine | the better organized i make everthing, the more everything breaks |
| 22:38 | Alex_Gaynor | Argh, why am I getting template daoes not exist: admin/index.html :( |
| 22:38 | Alex_Gaynor | OH SHIT |
| 22:38 | Gulopine | uh oh |
| 22:39 | Gulopine | and i thought *i* was breaking stuff |
| 22:39 | Alex_Gaynor | Hehe, not having admin in installedapps is bad |
| 22:39 | david`bgk | http://code.larlet.fr/doc/django-oauth-provider... my own django sprint for those interested in OAuth |
| 22:42 | Alex_Gaynor | Newmaniese: Ok, mine seems to be working, (minus a bunch of stuff), |
| 22:43 | Alex_Gaynor | I think we need to do the login decorator now |
| 22:43 | Newmaniese | I have that all but done |
| 22:43 | Newmaniese | I am running the tests |
| 22:44 | Alex_Gaynor | |
| 22:45 | ericflo | david`bgk: That's awesome. |
| 22:46 | david`bgk | ericflo, thanks :) |
| 22:49 | Gulopine | david, sweet! i was just gonna start looking into oauth |
| 22:49 | Gulopine | now i don't have to :) |
| 22:50 | david`bgk | heh, do not hesitate if you have any question |
| 22:55 | Alex_Gaynor | http://dpaste.com/63743/ new diff |
| 23:08 | Newmaniese | Alex_Gaynor: Cool, I am just trying to abstract out some of the has_permission function. That is critical and the decorator is trying to wreak havok |
| 23:11 | Alex_Gaynor | Yeah, that's the current cause of all the test failures for me |
| 23:21 | Newmaniese | Alex_Gaynor: It's taking me longer than expected. I am getting a few nasty errors. I am really liking this patch though. it makes a lot of sense. I need to run eat dinner. I will be back later. |
| 23:22 | Alex_Gaynor | Ok, can you post what you have on the decorator so far? |
| 23:23 | Newmaniese | I don't like what I have because it requires has_permission out of the site |
| 23:23 | Newmaniese | issue is that we need self availible somewhere in there |
| 23:24 | Newmaniese | so my last try was in the _get_url function |
| 23:25 | Alex_Gaynor | That won't work because it doesn't have access to request |
| 23:25 | Newmaniese | exactly my conumdrum right now |
| 23:27 | Alex_Gaynor | it should be possible: http://dpaste.com/63760/ |
| 23:28 | Alex_Gaynor | Let me paste what I think it should look like |
| 23:32 | Alex_Gaynor | Does this look right: http://dpaste.com/63761/ I haven't tested it at all, but it seems to make sense(although we'll need a slightly altered version for model_admin since it doesn't get admin_site, instead it can use model_admin.admin_site) |
| 23:34 | ChrisHasenpflug | except line 6 ;) |
| 23:35 | Alex_Gaynor | Like I said, completely untested :P |
| 23:37 | Newmaniese | where adminsite is passed with self right? |
| 23:37 | Newmaniese | you can just return admin_site(request) |
| 23:38 | Alex_Gaynor | Yeah, admin_site is the self param |
| 23:38 | Alex_Gaynor | No, admin_site doesn't have an __call__ method |
| 23:38 | Newmaniese | login returning none should be fixed with this patch too |
| 23:38 | Newmaniese | i am sorry, low blood sugar |
| 23:38 | Newmaniese | I mean admin_site.login(request) |
| 23:39 | Alex_Gaynor | Yeah, I realize that will be fixed, I just meant that that's the analog of the current functionality, does it look right? |
| 23:40 | Newmaniese | yep perfect, let's see if works |
| 23:40 | Alex_Gaynor | Ok, going to implement |
| 23:44 | Alex_Gaynor | God I can't wait for django to drop 2.3 compatibility, decorators ftw |
| 23:44 | Newmaniese | I hear you |
| 23:45 | Alex_Gaynor | Ok, just did sites.py , now I need to make a model admin version and implement it |
| 23:45 | Newmaniese | post it please!?! |
| 23:46 | Gulopine | yeah, seriously |
| 23:46 | Gulopine | (about the decorators) |
| 23:47 | Newmaniese | I am real bad at doing try except finally in my code for 2.3 |
| 23:51 | Alex_Gaynor | Ok, implemented : http://dpaste.com/63782/ |
| 23:52 | Alex_Gaynor | I think there are still 2 test failures, but we're doing better :P |
| 23:52 | ChrisHasenpflug | django officially supports 2.3, but we're not testing against it w/ buildbot, hmmm |
| 23:52 | Alex_Gaynor | tests are broken with 2.3 beecause we use sorted() a few times |
| 23:52 | Alex_Gaynor | I personally say screw it, lets drop 2.3 for 1.0 |
| 23:52 | elliott | agreed |
| 23:53 | ChrisHasenpflug | agreed |
| 23:53 | Newmaniese | Alex_Gaynor: This is great |
| 23:53 | Alex_Gaynor | jacob or someone should post a poll on django-dev or users asking people to vote on whether they need 2.3 support |
| 23:53 | Newmaniese | I will be back in a few to get the kinks ironed out. My stomac is starving |
| 23:53 | elliott | someone will need it |
| 23:53 | Newmaniese | I think we still need it |
| 23:54 | Newmaniese | I still have one box with 2.3 on it |
| 23:54 | Alex_Gaynor | Someone needs it, but if push came to shove could they upgrade? |
| 23:54 | Alex_Gaynor | 2.3 isn't backwards incompatible is it? |
| 23:54 | Alex_Gaynor | err 2.4 |
| 23:55 | Newmaniese | Haha you're more than welcome to come build python 2.4 on my centos box.... |
| 23:55 | Newmaniese | I'll chat with you later |
| 23:55 | Alex_Gaynor | Hehe, ok, see you |
Page 3 of 3
← Previous
(293 total)