Re: newsessions

2007-03-14 Thread Afternoon
> 2. I have an ethernet connection @home and I sometimes log in to our > private web apps from home. Any 'c00l hacker' is able to scan network > traffic, get my session id and use it to join to my session too just > because there is absolutely no checking who uses session. We added ip > checking

Re: Some kind of django.contrib.stats?

2007-02-07 Thread Afternoon
The problem of server and application level stats is that they are fairly easy to implement and attractive, but they're hideously inaccurate. First you have to ignore robot traffic, then you have to accurately sessionise, then build the reporting interface, which must be very powerful if it is to

Re: Handling exceptions raised while processing requests from django.test.client.Client

2007-01-22 Thread Afternoon
Also, I forgot to say, a quick grep of the Django code reveals that the db rollback code is currently the only listener for the got_request_exception signal. I've moved the signal dispatch line outside of the if statement in the base handler with the effect that it is now always dispatched as you

Re: Handling exceptions raised while processing requests from django.test.client.Client

2007-01-21 Thread Afternoon
I've attached a new patch and got to the bottom of the test case that failed. I'm not 100% comfortable with my diagnosis and remedy however and I'm happy to look at it again if the solution is problematic. If a ticket master is able to take a quick look at the patch and the notes that would be gre

Re: Client.raw_post

2007-01-21 Thread Afternoon
OK, I've added tests and documentation to the patch and removed the default for the type argument to raw_post. All tests pass with this patch applied to the current Django SVN version. Please let me know if any more changes are needed. Ben --~--~-~--~~~---~--~~ Y

Re: Feature request for newforms: HTML 4

2007-01-12 Thread Afternoon
This seems a long way to go for the want of removing a few forward-slashes. XHTML has become the defacto standard for Django, which is great, but the vast majority of pages are still HTML 4. So if there's to be one standard it should be that. --~--~-~--~~~---~--~

Client.raw_post

2006-12-18 Thread Afternoon
A little while ago there was a discussion[1] about test cases that post raw data such as XML or JSON to a view. Russ suggested adding a raw_post method to the test Client to facilitate such tests. I've created a ticket and uploaded a patch that does just this. http://code.djangoproject.com/ticket

Handling exceptions raised while processing requests from django.test.client.Client

2006-12-18 Thread Afternoon
Currently any exception raised by a view or other request machinery while handling a request from the test client is hidden from the requesting test case by Django's exception views (500, error debug). I have created a patch and a ticket for an enhancement which reraises exceptions with the origin

Re: django.contrib.formtools: High-level abstractions of common form tasks

2006-12-11 Thread Afternoon
We are definitely interested in sharing, that was our initial intention. The code is by no means finished, but my colleague Tom will post an interim version and some notes on our design soon. Hopefully it will be interesting. --~--~-~--~~~---~--~~ You received t

Re: Using test.client.Client.post with body?

2006-10-04 Thread Afternoon
> Client.raw_post(path, payload, payload_type='text/json') +1 I have a testing apparatus, which I built for a pre-MR project, I use it to submit SOAP-style XML requests and all kinds of stuff. I'm looking to port the project to MR and the tests to your test framework at some point in the future,

Re: Ticket #2773: django.views.defaults.server_error should use RequestContext

2006-09-22 Thread Afternoon
Ivan, you're right to note that I can supply my own view. I will do that. James, why are context processors not able to handle exceptions and fall back to basic output, i.e. return an empty dictionary? I don't mean to waste anyone's time with this, I should have looked harder for the previous di

Re: Ticket #2773: django.views.defaults.server_error should use RequestContext

2006-09-21 Thread Afternoon
> 500 errors are bad; it's bail out time when they happen. I disagree. For background, I have a context processor which simply pushes a dictionary of standard items, such as URLBASE for media and links, to all templates. It's very unlikely that an error will have occurred which makes this a bad

Ticket #2773: django.views.defaults.server_error should use RequestContext

2006-09-20 Thread Afternoon
Just a quick note to say I've added a ticket and patch to modify django.views.defaults.server_error to use RequestContext instead of Context, thus making context-processor-generated context available to 500 pages. Ben --~--~-~--~~~---~--~~ You received this

Re: django.shortcuts (was Re: Proposal: Django namespace simplification)

2006-01-17 Thread Afternoon
mport render_to_response, get_object_or_404, get_list_or_404 Afternoon, man about the Internet -- http://aftnn.org/

Re: Admin URLs in magic-removal branch

2005-12-14 Thread Afternoon
bigger sites, actual admins go to /admin/ and can control a bunch of stuff. Lesser admins, e.g. content editors, could just be pointed at /admin/mycmsproject/cms/. Afternoon, man about the Internet -- http://aftnn.org/

Re: Admin URLs in magic-removal branch

2005-12-14 Thread Afternoon
ng more likely, I think it's important to build namespace scope in now. I fully support making everything namespaced to the project and the app. Afternoon, man about the Internet -- http://aftnn.org/

Context.__contains__

2005-12-13 Thread Afternoon
return False + def __delitem__(self, key): "Delete a variable from the current context" del self.dicts[0][key] Afternoon, man about the Internet -- http://aftnn.org/

Re: HttpResponseRedirect and relative URLs

2005-12-13 Thread Afternoon
I have a similar problem, app dev is at http://localhost/myapp/, deployment is at http://mywebsite.com/. I have added an URLBASE to settings.py and that's imported and used throughout my app. It would be nice for this to be created automatically by Django and made available through the A

Re: Potentially confusing urlconf error messages

2005-12-11 Thread Afternoon
pattern logic appropriately. ____ Afternoon, man about the Internet -- http://aftnn.org/

Re: Django Ajax Redux

2005-12-10 Thread Afternoon
On 10 Dec 2005, at 13:49, hugo wrote: Let's try something different and first provide problem solutions, and _then_ extract a framework out of them. +1 Afternoon, man about the Internet -- http://aftnn.org/

Re: Ticket #714

2005-12-09 Thread Afternoon
like UserForeignKey, which can then accept the new options? Would this be a good place to put anything else? Afternoon, man about the Internet -- http://aftnn.org/

Re: "Magic" model module change proposal

2005-12-06 Thread Afternoon
ove away from that anyway. ____ Afternoon, man about the Internet -- http://aftnn.org/

Ticket #714

2005-12-01 Thread Afternoon
I'd like to have a go at creating a fix for ticket #714: access to id of current user on admin. I have no idea what I'm doing though. Could anyone offer some guidance on how I might go about solving this problem? ____ Afternoon, man about the Intern

Re: Automatic password creation

2005-12-01 Thread Afternoon
Great, thanks. On 1 Dec 2005, at 20:27, Wilson wrote: Here's the ticket you're looking for: http://code.djangoproject.com/ticket/61 ____ Afternoon, man about the Internet -- http://aftnn.org/

Automatic password creation

2005-12-01 Thread Afternoon
0 users. Access is controlled centrally and there's some churn in userbase, so a non-developer will have to create and modify users regularly. Do I have to tell them that Django can't do this? ____ Afternoon, man about the Internet -- http://aftnn.org/