root / cloudcms / astakos_cms.py @ c1468bcc
History | View | Annotate | Download (571 Bytes)
1 |
from feincms.module.page.extensions.navigation import NavigationExtension, \ |
---|---|
2 |
PagePretender
|
3 |
from django.utils.translation import ugettext as _ |
4 |
|
5 |
ASTAKOS_NAVIGATION = ( |
6 |
('Profile', 'astakos-profile'), |
7 |
('Change password', 'astakos-profile') |
8 |
) |
9 |
|
10 |
class AstakosNavigationExtension(NavigationExtension): |
11 |
name = _('astakos pages')
|
12 |
|
13 |
def children(self, page, **kwargs): |
14 |
from django.core.urlresolvers import reverse |
15 |
for title, url in dict(ASTAKOS_NAVIGATION).iteritems(): |
16 |
yield PagePretender(title=title, url='/im/profile') |