2008-7-12
| 21:08 | Gulopine | heh |
| 21:08 | Gulopine | no, i was kinda hoping #7667 would get a test prior to a fix going in |
| 21:08 | DjangoBot | |
| 21:08 | Alex_Gaynor | I start watching a video for 30 min and 5 commits happen! |
| 21:09 | Gulopine | fs-rf might have already taken care of it, but i haven't gotten a chance to really play around with it yet |
| 21:09 | Gulopine | and can you help me figure out why the "func =" line was moved? |
| 21:10 | Gulopine | maybe i'm just having a slow day, but i can't see a reason |
| 21:10 | Alex_Gaynor | Sure, I'll take a look |
| 21:10 | Gulopine | it may be as simple as "because it was in the patch" :) |
| 21:11 | Alex_Gaynor | It was just moved, it's still there :P |
| 21:13 | Gulopine | alex, i realize that :) i just wasn't sure *why* it was moved |
| 21:14 | Gulopine | it might've just been an efficiency thing, i suppose |
| 21:14 | Gulopine | no sense getting the function if there's no valid file available |
| 21:14 | Gulopine | i know i've snuck things like that into patches before :( |
| 21:16 | Alex_Gaynor | Hehe |
| 21:16 | Gulopine | not that it much matters, it's gone after fs-rf anyway |
| 21:18 | Alex_Gaynor can't wait to see that commit message: Fixed #5631 | |
| 21:18 | DjangoBot | |
| 21:18 | Alex_Gaynor | Err, 5361 |
| 21:20 | Gulopine | hahahah |
| 21:20 | Gulopine | you think that'll be good? hang on, i'll show you what it'll be like |
| 21:20 | Alex_Gaynor braces | |
| 21:23 | Gulopine | Fixed #5361, #3567, #3621, #4345, #5619, #5655, #6450; refs #2983, #3119, #4339, #4948, #5485, #5966, #6009, #6390 |
| 21:23 | DjangoBot | |
| 21:23 | DjangoBot | |
| 21:23 | DjangoBot | |
| 21:23 | DjangoBot | |
| 21:23 | DjangoBot | |
| 21:23 | DjangoBot | |
| 21:23 | DjangoBot | |
| 21:23 | DjangoBot | |
| 21:23 | DjangoBot | |
| 21:23 | DjangoBot | |
| 21:23 | DjangoBot | |
| 21:23 | DjangoBot | |
| 21:23 | DjangoBot | |
| 21:23 | DjangoBot | |
| 21:23 | DjangoBot | |
| 21:23 | Gulopine watches DjangoBot suffer | |
| 21:23 | Alex_Gaynor | Oh god, what have you done! |
| 21:23 | ericflo | You are evil |
| 21:23 | ChrisHasenpflug seeks cover | |
| 21:23 | Gulopine | not evil. just thorough |
| 21:24 | ericflo congratulates brosner for writing a bot that can handle Gulopine's tickets :) | |
| 21:24 | jkocherhans | Gulopine: stop using the DjangoBot to flood the channel! it doesn't know any better. ;) |
| 21:24 | Gulopine | yeah, seriously |
| 21:24 | ericflo | awww, brosner isn't here lol |
| 21:24 | mattmcc | The bot needs a saturation filter. :) |
| 21:24 | insin | Gulopine is a good man, Jeffrey... and thorough |
| 21:24 | ChrisHasenpflug watches as the bot gets kick'd for flooding | |
| 21:24 | ericflo | haha |
| 21:24 | Gulopine | wow, look at all the people who come running when DjangoBot goes postal |
| 21:24 | Alex_Gaynor | The DjangoBot is so naive |
| 21:25 | ericflo | It'd be funny if the bot had auto kicking features, and kicked itself |
| 21:25 | Gulopine | and yeah, i guess *this* is why brosner never got around to implementing commit messages |
| 21:27 | Honza | hey guys, is the sprint still going on? do you want any help anywhere? everybody has gone to bed here in vilnius, so I have nothing to do ;) |
| 21:30 | Newmaniese | RegexURLResolver has anyone ever thought that it could receive a module, not just a string? It would be a pretty simple change in the _get_urlconf_module function to check it |
| 21:31 | Newmaniese | I am looking into reverse urls in NFA and thinking that the only reason we need that crazy root function is because RegexURLResolver doesn't accept modules directly |
| 21:31 | Gulopine | or objects |
| 21:31 | Newmaniese | yea exactly |
| 21:31 | Alex_Gaynor | Newmaniese: Yeah, I had to make a small change to make it work, it's kind of a dumb change though, there are way better ways/places to d it |
| 21:31 | Gulopine | i talked with malcolm about it quite a while ago, but we never got anywhere |
| 21:31 | Honza | Newmaniese: I am thinking why should it even be modules? why not just something that has .urlpatterns (or the urlpatterns themselves) |
| 21:31 | Alex_Gaynor | It can be done with just 2 lines |
| 21:32 | Alex_Gaynor | Well, any object will work, module objects are just objects after all |
| 21:32 | Alex_Gaynor | Want me to submit an independent ticket about it? |
| 21:32 | Newmaniese | I will write a patch, then I have a rough refactoring of NFA urls written that works with reverse and multiple admins |
| 21:32 | Newmaniese | Alex_Gaynor: i have it done |
| 21:33 | Alex_Gaynor | Newmaniese: Yeah, it was done in the dpasted work I had, butit was ugly, I pretty much just prefilled the cache to prevent it from even doing an __import__ |
| 21:33 | Alex_Gaynor | You got all the reverses in /dealt with the self.root_path issues? |
| 21:34 | ChrisHasenpflug | forgive my ignorance, i'm just getting up to speed with django internals, but would what you're talking about relate to #285? |
| 21:34 | DjangoBot | |
| 21:34 | Alex_Gaynor | No this has to do with newforms admin and making it use urlconfs, instead of the hacky stuff it does now |
| 21:34 | Newmaniese | well if the RegexURLResolver accepted objects, we can just include the url conf in site object and pass it directly in the url conf |
| 21:34 | Newmaniese | as an include |
| 21:35 | Gulopine | what malcolm and i discussed was somehow making it accept arbitrary objects with a resolve() method |
| 21:35 | Gulopine | that could then use whatever logic made sense, regex or otherwise |
| 21:35 | ChrisHasenpflug | thanks, Alex. I'm anxious to see 285 hit and solve so many problems with the way i have some servers configured :-) |
| 21:35 | Newmaniese | let me finish things off and clean up a touch and I'll put it to dpaste and give you a chance to rip it apart |
| 21:36 | Alex_Gaynor | Nice :P |
| 21:36 | Gulopine | but that was really only a few-minute thing back in december |
| 21:37 | Alex_Gaynor | Well, what we are looking for is the ability to just stick any object that has a urlpatterns property in an include(), instead of just strings |
| 21:41 | Gulopine | hrm |
| 21:41 | Gulopine | i was looking for the ability to replace include() entirely :) |
| 21:41 | Gulopine | slap in an object instance instead |
| 21:41 | Gulopine | (which is what nfa does already) |
| 21:42 | Gulopine | but without having to specify (.*) at the end and all that nonsense |
| 21:45 | Honza | and withou reverse working |
| 21:46 | Alex_Gaynor | :P |
| 21:52 | Gulopine | well, malcolm did also insist that they also provide a .reverse() method |
| 21:52 | Gulopine | but meh, i don't have the time to put into it |
| 22:02 | Newmaniese | Ok this is still really rough, It will need some string formatting for multiple admin sites and I am thinking about writing a decorator in the site object that will provide the auth checking. Also I am noticing a few print statements that need to be cleaned out. Tests fail due to the lack of permission checking (that's next on my list). Anyways tell me what you think: http://dpaste.com/63722/ |
| 22:04 | Newmaniese | so the url conf would go back to url(r'^admin/', include(admin.site)) |
| 22:06 | Alex_Gaynor | Ok, the patch looks right(although it's missing a few files it feels like, it doesn't have the model admin stuff for example), also we need to add back the urls at r/ |
| 22:07 | Gulopine so wants to move django.utils.images into django.core.files.images :( | |
| 22:08 | Newmaniese | Alex_Gaynor: Why do I need to touch Model Admin? |
| 22:08 | Newmaniese | and the r/ is in the urlconf |
| 22:08 | elliott | what better a time? |
| 22:08 | Alex_Gaynor | Well, we wnat ModelAdmin urls to be reversable as welll, if you take a look at my patch the ModelAdmin uses a psuedo urlconf as well |
| 22:09 | Newmaniese | ahh gotcha |