예제 #1
0
 def get_tags(self, strict=False):
     tags = ACLTags()
     if not strict or not self.login:
         tags.update(self.s_tokens)
     if not strict or self.login:
         tags.update(self.l_tokens)
     if self.login:
         tags['login'] = self.login
     tags['name'] = self.name
     return tags
예제 #2
0
 def get_tags(self):
     tags = ACLTags()
     tags.update(self.siteinfo.get_tags())
     return tags