Esempio n. 1
0
 def __call__(self, context, kw):
     s1, s2 = self.strings
     if macros.has_macro(s1):
         s1 = macros.process(s1, context, kw)
     if macros.has_macro(s2):
         s1 = macros.process(s2, context, kw)
     return s1 == s2
Esempio n. 2
0
 def __call__(self, context, kw):
     if macros.has_macro(member_str):
         member_str = macros.process(self.member_str, context, kw)
     member_id = int(member_str)
Esempio n. 3
0
 def __call__(self, context, kw):
     s1 = macros.process(self.s1, context, kw)
     return s1 == str(context.user_id)