diff options
author | Leif Johansson <leifj@sunet.se> | 2010-08-04 14:59:39 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2010-08-04 14:59:39 +0200 |
commit | 3735f9ce8a6e879de207557e56afd77bd3d6e98a (patch) | |
tree | 70f3544b8d0a4ee391f8556ac59aa1c31e441584 /coip/apps | |
parent | ea75f8631ff2ec264115bd921d84d1a07bf5cfa6 (diff) |
removed debugging
Diffstat (limited to 'coip/apps')
-rw-r--r-- | coip/apps/name/models.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coip/apps/name/models.py b/coip/apps/name/models.py index e803c0b..ab72d66 100644 --- a/coip/apps/name/models.py +++ b/coip/apps/name/models.py @@ -99,7 +99,7 @@ class Name(models.Model): link.data = '' save = True for p in perm: - pprint(p) + #pprint(p) if link.data.find(p) == -1: link.data = link.data+p save = True @@ -128,7 +128,7 @@ class Name(models.Model): self.link(part,NameLink.part_of,None) def has_permission(self,user,perm): - pprint("has_permission %s %s %s" % (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)) # user is superuser or acl is on implicit group or user is member of acl group @@ -199,7 +199,7 @@ def walkto(root,nameparts,autocreate=False): name = None for n in nameparts: (a,eq,v) = n.partition('=') - pprint("walkto %s -> %s" % (root,n)) + #pprint("walkto %s -> %s" % (root,n)) if v: attribute = Attribute.objects.get(name=a) try: |