Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 13 lines (10 sloc) 0.443 kb
e5cce60 @chrisglass Encoding changes for the rest of the CMS stuff.
chrisglass authored
1 # -*- coding: utf-8 -*-
bda49b2 @digi604 menu_levels working. nav-extenders correctly hiding if not assigned
digi604 authored
2 from menus.base import Menu
3 from django.core.exceptions import ValidationError
4
5 class CMSAttachMenu(Menu):
6 cms_enabled = True
38225bb @digi604 testsuite working again
digi604 authored
7 name = None
bda49b2 @digi604 menu_levels working. nav-extenders correctly hiding if not assigned
digi604 authored
8
9 def __init__(self, *args, **kwargs):
10 super(CMSAttachMenu, self).__init__(*args, **kwargs)
11 if self.cms_enabled and not self.name:
12 raise ValidationError("the menu %s is a CMSAttachMenu but has no name defined!" % self.__class__.__name__)
Something went wrong with that request. Please try again.