2008-7-16

00:48 brosner
why is http://code.djangoproject.com/browser/django/tr... only checking for a single underscore when really it should be checking for double underscores? am i missing something here?
00:56 mattmcc
...Good question.
00:57 brosner
my ModelAdmin validation tests catch it. must have been an oversight due to the face that code isn't tested
00:57 brosner
s/face/fact/
00:58 mattmcc
Hooray for unit tests finding bugs.
00:59 brosner
:)
02:13 brosner
Newmaniese: you see my comment?
02:14 Newmaniese
brosner: nope must've missed it, where at?
02:14 brosner
02:14 brosner
just posted it
02:15 Newmaniese
hmm, didn't get to my email somehow. let me wade back into that. Thanks for looking at it
02:16 brosner
yeah want to get it done tonight
02:20 Newmaniese
brosner: I moved the delete test cookie up because both of the two cases have test cookies that should be deleted. I am now sure why I used is_authenticated as opposed to is_active. Looking into that a little deeper
02:26 Newmaniese
brosner: the patch doesn't apply cleanly now any way. Should I include those international exception formatting/ugettext?
02:26 brosner
ideally, don't include anything not directly apart of making what simon did better
02:28 brosner
it doesn't seem either of those things i mentioned are directly related are they?
02:31 Newmaniese
nope definitely not, i'll take them out
02:31 brosner
thanks
02:31 brosner
you are welcome to file a new ticket if they are problems. just describe them well
02:31 brosner
:)
02:34 Newmaniese
yea, I will leave that in Malcolm or Simon's hands, I only follow what I think are the rules, I really have never actually needed translations stuff. I am sure that stuff will get ironed out quickly.
02:35 Newmaniese
brosner: I am looking at the is_authenticated and i got that from the has_permission function
02:35 Newmaniese
even though it was is_active before
02:36 Newmaniese
Should the has_permission check for is_active?
02:36 brosner
no it only needs to be checked on login
02:37 brosner
well maybe not
02:37 brosner
at this point that has always been the case so dont worry about it. just file a ticket
02:37 brosner
unless someone already did (likely)
02:38 Newmaniese
Ok, just with default admin that shouldn;t be a problem but if there were custom login functions there could be a security issue. but yea it is in the old admin
02:39 brosner
i am thinking the patch that calls self.root is the correct way. is there any problems that might crop up re-running those checks prior to the self.login call?
02:40 brosner
any possibility self.login gets call again?
02:41 Newmaniese
and it gets into a loop? I don't think so because it checks in the root function for is_authenticated (always true if there is a user after login) and is_staff
02:42 Newmaniese
if the user isn't staff they get spit out before it recalls root
02:42 Newmaniese
I just uploaded a new patch that applies cleanly, gets rid of the extra stuff and uses is_active instead
02:44 Newmaniese
I agree with the root function because it is essentially the same request that was going through before the session expired or whatever
02:45 brosner
ok last question
02:45 brosner
err two
02:45 brosner
so deleting the test cookie earlier is fixing a problem related to this?
02:45 brosner
i don't see it as such
02:46 Newmaniese
it wasn't a problem. it just left the test cookie there if there was post data
02:48 brosner
and last question, what happens when self.root_path goes away?
02:51 Newmaniese
I was looking at that over the weekend, with the patch Alex Gaynor and I were working on. That's a good question.
02:52 brosner
does it make the exception one a little bit more forward thinking
02:53 Newmaniese
We could just implement the same system that the admin site now uses with a decorator. I don't think the exception is much better because the error handling is still in the root fuction
02:57 brosner
alright well since that is likely post-1.0 i'll just commit this
02:59 Newmaniese
Looking at the patch Alex and I did we could copy the current admin code almost verbatum. I agree though it would be too diffiuclt to try to fix this for forward compatiblity right now because in the root function we are not aware of the view that would be served if the user had been properly logged in
03:11 Newmaniese
brosner: this might be too late, I am just looking at auth code and realizing when auth.login is called the last_login is set. We can get rid of the two lines that do that in the admin login section
03:11 Newmaniese
I can open a ticket if it is too late
03:46 brosner
open a ticket
03:47 brosner
and didn't realize you said nearly 30 minutes ago ;)
03:50 Newmaniese
brosner: All good! I wanted to thank you one more time for your work on NFA. It is pretty fricken awesome and I know you put a ton of time into it. I, on a very personal level, really appreciate it.
03:52 brosner
thanks Newmaniese. i just want to see this sucker merged :) you going to DjangoCon?
03:54 Newmaniese
I can't wait to go back to using django-trunk:) I would love to get to DjangoCon. I need to convince my bosses for a plane ticket to Calif. (if I can secure a ticket first of course) I am getting married in a couple of weeks and have no extra money :(
03:56 brosner
ah hopefully it works out. and congratulations on the upcoming marriage :)
03:57 Newmaniese
Thanks man
03:58 empty
Newmaniese: congrats man. Want to borrow my "Just Married" shirt? I'm not using it these days. :P
04:00 Newmaniese
empty: sure, thanks for the offer! It's getting a little intimidating right now and of course I have to get a site launched between now and then ...
04:00 empty
hehe
10:38 reppel
Sorry if i ask this here but I've been asking this for days in the users channel with no luck!
10:38 reppel
I have a xmlfield which i want to filter somewhat before presenting it in the admin/change_list_results.html page. So basically i want to alter the string representation of this field. What is the place where I'm supposed to do this?
14:31 david`bgk
I just read the nfa status update, that's great!
15:01 empty
david`bgk: yep I think we all owe the NewForms-Admin team a bunch of beer at djangocon. :)
15:02 brosner
:)
15:04 david`bgk
well, it'll probably be a virtual one from me but congratualitions to the team :)
15:05 david`bgk
congratulations*
15:05 jezdez
maby I should check if I can send a case of beer with ups
15:07 empty
jezdez: cheaper to call a local liquor store and have it delivered :P
15:07 jezdez
hah, good point
15:07 brosner
but surely they dont have the good/rare german beer... ;)
15:07 jezdez
did you hear that InBev bough Anheuser-Busch?
15:07 jezdez
s/bough/bought/
15:08 jezdez
oh wait, we are in #django-dev
15:08 jezdez
sorry ^^
15:08 empty
bdd
15:08 jezdez
indeed, lol
15:33 brosner
does this look correct for newforms-admin dealing with inner Admin classes, http://dpaste.com/65373/ ?
15:51 brosner
jkocherhans: i am looking at #5609 and wondering if this even worth it? those classes were coming from how oldforms rendered fields.
15:51 DjangoBot
15:53 jkocherhans
brosner: I think it's worth fixing, but it sounds like a PITA
15:53 brosner
yeah...
15:53 brosner
;)
15:53 jkocherhans
I think a lot of admin hackers are relying on those classes
15:54 jkocherhans
but that said, it probably isn't *entirely* and nfa problem... a huge part of it is just newforms
15:54 jkocherhans
s/and/an/
15:55 brosner
yeah. maybe it can be a known issue going into 1.0-alpha that we should definitely mark as pre-1.0
16:32 brosner
jkocherhans: i think you came in after i asked about http://dpaste.com/65373/ -- what do you think?
16:33 jkocherhans
brosner: do you know if there's any precedent for linking to docs in error messages? seems like it would be *really* helpful in this case.
16:33 brosner
yeah i was thinking the same thing, but wasn't sure about that
16:34 brosner
i only see this being in there for the pre-1.0 releases
16:34 brosner
so i wouldn't think it would be a bad thing
16:34 jkocherhans
what happens at 1.0? just no error?
16:35 brosner
i would think so.
16:35 brosner
or maybe its worth for a whole release?
16:35 brosner forgot to put this in the status update ;)
16:58 HenrikV
When the excellent extensible command structure was implemented, was __call__ considered instead of handle?
17:26 jezdez
HenrikV: I think it was considered but then decided for a handle_<command-type> style methods to make it more readable