diff options
author | Leif Johansson <leifj@sunet.se> | 2010-12-11 00:53:50 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2010-12-11 00:53:50 +0100 |
commit | 41c7ad662c72c975ed6b3b23f33210b2c55efa07 (patch) | |
tree | 92bafbcebfc5df2c9a2f7955d561e078fcc096df | |
parent | 2765ac53fc2a79962a3388bc660a35c8e355a05c (diff) |
log has_permission calls
-rw-r--r-- | coip/apps/name/models.py | 2 | ||||
-rw-r--r-- | coip/apps/userprofile/utils.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/coip/apps/name/models.py b/coip/apps/name/models.py index 16c4e4a..c46d6aa 100644 --- a/coip/apps/name/models.py +++ b/coip/apps/name/models.py @@ -129,7 +129,7 @@ class Name(models.Model): self.link(part,NameLink.part_of,None) def has_permission(self,user,perm): - logging.warning(pformat(self,user,perm)) + logging.warn(pformat(self,user,perm)) #pprint("has_permission %s %s %s" % (self,user,perm)) # TODO: reverse order of test for production system - will spead-up superuser-test and it is cheap #pprint(NameLink.objects.filter(src=self,type=NameLink.access_control,data=perm,dst__memberships__user=user)) diff --git a/coip/apps/userprofile/utils.py b/coip/apps/userprofile/utils.py index 92d839c..d3854f6 100644 --- a/coip/apps/userprofile/utils.py +++ b/coip/apps/userprofile/utils.py @@ -10,7 +10,7 @@ from pprint import pformat def request_profile(request): if request.user.is_authenticated(): - logging.warning(pformat(request.META)) + logging.warn(pformat(request.META)) if request.META.has_key('REMOTE_USER'): return UserProfile.objects.get(identifier=request.META['REMOTE_USER']) else: |