def default_scenario_cms(): default_moderate_state() page = make_page('Home', 0) body = make_layout('Body') footer = make_layout('Footer') make_section(page, body) make_section(page, footer) page_info = make_page('Information', 1) make_section(page_info, body)
def init_layout(name): """Create a layout if it doesn't already exist.""" try: result = Layout.objects.get(slug=slugify(name)) except Layout.DoesNotExist: result = make_layout(name) return result
def setUp(self): default_moderate_state() page = make_page('home', 0) body = make_layout('body') self.section = make_section(page, body)