Exemple #1
0
 def is_valid_context(self, context):
     customer = get_customer_from_context(context)
     return bool(context.get("page")) and bool(not customer.is_anonymous)
Exemple #2
0
 def is_valid_context(self, context):
     customer = get_customer_from_context(context)
     return (isinstance(customer, PersonContact) if customer else False)
Exemple #3
0
 def is_valid_context(self, context):
     customer = get_customer_from_context(context)
     return bool(customer.is_anonymous)
Exemple #4
0
 def is_valid_context(self, context):
     customer = get_customer_from_context(context)
     return isinstance(customer, CompanyContact) if customer else False
Exemple #5
0
 def is_valid_context(self, context):
     customer = get_customer_from_context(context)
     return (isinstance(customer, PersonContact) if customer else False)
Exemple #6
0
 def is_valid_context(self, context):
     customer = get_customer_from_context(context)
     return bool(not customer.is_anonymous)