On 8/27/06, Ian Holsman <[EMAIL PROTECTED]> wrote:
> I would be +1 on this if it included the site domain in the user-agent.
> having it this way will just cause wikipedia to block it when a
> single badly behaving django-bot uses it.

Great idea, Ian. I agree that this patch should use the site domain in
the user-agent. However, that's a slight problem, because the patch is
to the validator framework, which knows nothing about Web requests.

We could change it to be a validator class, rather than a function,
taking the domain in its __init__() -- but that would be
backwards-incompatible. We could use settings.SITE_ID, but that relies
on that being set (and activated), plus it's coupled to the database
layer/site app. Any other ideas?

Adrian

-- 
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to