web/views/tabs.py
changeset 4085 002ba2a3bb13
parent 4023 eae23c40627a
child 4237 87d9431243ad
equal deleted inserted replaced
4084:69739e6ebd2a 4085:002ba2a3bb13
    63     """a tab mixin
    63     """a tab mixin
    64     """
    64     """
    65 
    65 
    66     @property
    66     @property
    67     def cookie_name(self):
    67     def cookie_name(self):
    68         return str('%s_active_tab' % self._cw.config.appid)
    68         return str('%s_active_tab' % self._cw.vreg.config.appid)
    69 
    69 
    70     def active_tab(self, default):
    70     def active_tab(self, default):
    71         if 'tab' in self._cw.form:
    71         if 'tab' in self._cw.form:
    72             return self._cw.form['tab']
    72             return self._cw.form['tab']
    73         cookies = self._cw.get_cookie()
    73         cookies = self._cw.get_cookie()