equal
deleted
inserted
replaced
814 |
814 |
815 # walk up the scope to where we need to be |
815 # walk up the scope to where we need to be |
816 for _ in range(depth): |
816 for _ in range(depth): |
817 entity = entity.scope |
817 entity = entity.scope |
818 |
818 |
819 django_args['scope_path'] = entity.key().name() |
819 django_args['scope_path'] = entity.key().id_or_name() |
820 |
820 |
821 self.checkHasActiveRoleForScope(django_args, logic) |
821 self.checkHasActiveRoleForScope(django_args, logic) |
822 |
822 |
823 def checkSeeded(self, django_args, checker_name, *args): |
823 def checkSeeded(self, django_args, checker_name, *args): |
824 """Wrapper to update the django_args with the contens of seed first. |
824 """Wrapper to update the django_args with the contens of seed first. |
1433 |
1433 |
1434 self.checkIsUser(django_args) |
1434 self.checkIsUser(django_args) |
1435 |
1435 |
1436 fields = { |
1436 fields = { |
1437 'link_id': django_args['link_id'], |
1437 'link_id': django_args['link_id'], |
1438 field_name: self.user if user else self.user.key().name() |
1438 field_name: self.user if user else self.user.key().id_or_name() |
1439 } |
1439 } |
1440 |
1440 |
1441 if 'scope_path' in django_args: |
1441 if 'scope_path' in django_args: |
1442 fields['scope_path'] = django_args['scope_path'] |
1442 fields['scope_path'] = django_args['scope_path'] |
1443 |
1443 |