Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
 def setUp(self):
     default_moderate_state()
     page = make_page('home', 0)
     body = make_layout('body')
     self.section = make_section(page, body)