'Return true if published in website'

def is_website_published(self):

    if self.get_condition_field():
        return ((self.get(self.get_condition_field()) and True) or False)
    else:
        return True
