2011-07-31 10:46:29 +02:00
|
|
|
|
#!/usr/bin/env python
|
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
"""
|
2013-02-16 16:19:20 +01:00
|
|
|
|
openslides.utils.template
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
2011-07-31 10:46:29 +02:00
|
|
|
|
|
2012-04-25 22:29:19 +02:00
|
|
|
|
Useful template functions for OpenSlides.
|
2011-07-31 10:46:29 +02:00
|
|
|
|
|
2013-02-16 16:19:20 +01:00
|
|
|
|
:copyright: 2011–2013 by OpenSlides team, see AUTHORS.
|
2011-07-31 10:46:29 +02:00
|
|
|
|
:license: GNU GPL, see LICENSE for more details.
|
|
|
|
|
"""
|
|
|
|
|
|
2012-03-18 17:11:58 +01:00
|
|
|
|
|
|
|
|
|
class Tab(object):
|
2013-09-25 12:53:44 +02:00
|
|
|
|
"""
|
|
|
|
|
Entry for the main menu of OpenSlides.
|
|
|
|
|
"""
|
2013-02-16 16:19:20 +01:00
|
|
|
|
def __init__(self, title='', app='', stylefile='', url='', permission=True, selected=False):
|
2012-03-18 17:11:58 +01:00
|
|
|
|
self.title = title
|
2012-09-05 00:20:28 +02:00
|
|
|
|
self.app = app
|
2013-02-16 16:19:20 +01:00
|
|
|
|
self.stylefile = stylefile
|
|
|
|
|
self.url = url
|
2012-03-18 17:11:58 +01:00
|
|
|
|
self.permission = permission
|
|
|
|
|
self.selected = selected
|