You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
457 B

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from cms.toolbar_base import CMSToolbar
from cms.toolbar_pool import toolbar_pool
from .segment_pool import segment_pool
@toolbar_pool.register
class SegmentToolbar(CMSToolbar):
def populate(self):
segment_pool.get_segments_toolbar_menu(
self.request.user,
self.request.toolbar,
csrf_token=self.request.COOKIES.get('csrftoken')
)