> I would then write a simple decorator which checks the backends for > that flag to determine if we should do a login_required or has_perm > check. > Because a real pluggable app would want to support both :) No it wouldn't. It would either use the permission system or the decorator for login_required (which would require an extra field on the model…). The checking for `supports_anonymous_users` in 3rd party apps doesn't make sense as backends which supporting it, don't necessarily need to provide a permission system for that app… (For one system I take the common permissions from ldap and another app uses a custom in database system, all running of the same Django install)
-- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.