# -*- coding: utf-8 -*- """ pyClanSphere.plugins.war.privileges ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module contains a list of used privileges for the war plugin. :copyright: (c) 2009 - 2010 by the pyClanSphere Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from pyClanSphere.api import lazy_gettext from pyClanSphere.privileges import Privilege, ENTER_ADMIN_PANEL __all__ = ['PLUGIN_PRIVILEGES'] PLUGIN_PRIVILEGES = {} def _register(name, description, privilege_dependencies=None): """Register a new module privilege.""" priv = Privilege(name, description, privilege_dependencies) PLUGIN_PRIVILEGES[name] = priv globals()[name] = priv __all__.append(name) _register('WAR_MANAGE', lazy_gettext(u'can manage war-related stuff'), ENTER_ADMIN_PANEL)
# -*- coding: utf-8 -*- """ pyClanSphere.plugins.shoutbox.privileges ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module contains a list of used privileges for the shoutbox plugin. :copyright: (c) 2009 - 2010 by the pyClanSphere Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from pyClanSphere.api import lazy_gettext from pyClanSphere.privileges import Privilege __all__ = ['PLUGIN_PRIVILEGES'] PLUGIN_PRIVILEGES = {} def _register(name, description, privilege_dependencies=None): """Register a new module privilege.""" priv = Privilege(name, description, privilege_dependencies) PLUGIN_PRIVILEGES[name] = priv globals()[name] = priv __all__.append(name) _register('SHOUTBOX_MANAGE', lazy_gettext(u'can manage shoutbox entries'))
# -*- coding: utf-8 -*- """ pyClanSphere.plugins.bulletin_board.privileges ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module contains a list of available privileges for the board plugin. :copyright: (c) 2009 - 2010 by the pyClanSphere Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from pyClanSphere.api import lazy_gettext from pyClanSphere.privileges import Privilege, ENTER_ADMIN_PANEL __all__ = ['PLUGIN_PRIVILEGES'] PLUGIN_PRIVILEGES = {} def _register(name, description, privilege_dependencies=None): """Register a new module privilege.""" priv = Privilege(name, description, privilege_dependencies) PLUGIN_PRIVILEGES[name] = priv globals()[name] = priv __all__.append(name) _register('BOARD_MODERATE', lazy_gettext(u'can moderate posts')) _register('BOARD_MANAGE', lazy_gettext(u'can manage forums'), ENTER_ADMIN_PANEL)
""" pyClanSphere.plugins.news.privileges ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module contains a list of used privileges for the news plugin. :copyright: (c) 2009 - 2010 by the pyClanSphere Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from pyClanSphere.api import lazy_gettext from pyClanSphere.privileges import Privilege, ENTER_ADMIN_PANEL __all__ = ['PLUGIN_PRIVILEGES'] PLUGIN_PRIVILEGES = {} def _register(name, description, privilege_dependencies=None): """Register a new module privilege.""" priv = Privilege(name, description, privilege_dependencies) PLUGIN_PRIVILEGES[name] = priv globals()[name] = priv __all__.append(name) _register('NEWS_CREATE', lazy_gettext(u'can create news'), ENTER_ADMIN_PANEL) _register('NEWS_EDIT', lazy_gettext(u'can edit non-selfwritten news'), ENTER_ADMIN_PANEL) _register('NEWS_PUBLIC', lazy_gettext(u'can work on published items or publish new ones'), NEWS_EDIT) _register('NEWS_DELETE', lazy_gettext(u'can delete news'), ENTER_ADMIN_PANEL)
""" pyClanSphere.plugins.gamesquad.privileges ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module contains a list of available privileges for the gamesquad plugin. :copyright: (c) 2009 - 2010 by the pyClanSphere Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from pyClanSphere.api import lazy_gettext from pyClanSphere.privileges import Privilege, ENTER_ADMIN_PANEL __all__ = ['PLUGIN_PRIVILEGES'] PLUGIN_PRIVILEGES = {} def _register(name, description, privilege_dependencies=None): """Register a new module privilege.""" priv = Privilege(name, description, privilege_dependencies) PLUGIN_PRIVILEGES[name] = priv globals()[name] = priv __all__.append(name) _register('GAME_MANAGE', lazy_gettext(u'can manage games'), ENTER_ADMIN_PANEL) _register('SQUAD_MANAGE_MEMBERS', lazy_gettext(u'can manage squad memberships'), ENTER_ADMIN_PANEL) _register('SQUAD_MANAGE', lazy_gettext(u'can manage squads'), SQUAD_MANAGE_MEMBERS) _register('LEVEL_MANAGE', lazy_gettext(u'can add/edit/remove memberlevel groups'), ENTER_ADMIN_PANEL)