Esempio n. 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)
Esempio n. 2
0
 def is_valid_context(self, context):
     customer = get_customer_from_context(context)
     return (isinstance(customer, PersonContact) if customer else False)
Esempio n. 3
0
 def is_valid_context(self, context):
     customer = get_customer_from_context(context)
     return bool(customer.is_anonymous)
Esempio n. 4
0
 def is_valid_context(self, context):
     customer = get_customer_from_context(context)
     return isinstance(customer, CompanyContact) if customer else False
Esempio n. 5
0
 def is_valid_context(self, context):
     customer = get_customer_from_context(context)
     return (isinstance(customer, PersonContact) if customer else False)
Esempio n. 6
0
 def is_valid_context(self, context):
     customer = get_customer_from_context(context)
     return bool(not customer.is_anonymous)