Register icon app with app registry add additional literals
This commit is contained in:
7
apps/icons/icons.py
Normal file
7
apps/icons/icons.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from .literals import DRAW_AIRBRUSH
|
||||
from . import Icon
|
||||
|
||||
icon_icons_app = Icon(DRAW_AIRBRUSH)
|
||||
|
||||
@@ -3,28 +3,31 @@
|
||||
#DEFAULT_ICON_SET = fat_cow.ID
|
||||
DEFAULT_ICON_SET = 'fat_cow'
|
||||
|
||||
#APP = 'app'
|
||||
#BACKUPS = 'backups'
|
||||
#ERROR = 'error'
|
||||
#ICONS = 'icons'
|
||||
#SETTINGS = 'settings'
|
||||
|
||||
APPLICATION_VIEW_ICONS = 'application_view_icons'
|
||||
CD_BURN = 'cd_burn'
|
||||
COG = 'cog'
|
||||
CROSS = 'cross'
|
||||
DRAW_AIRBRUSH = 'draw_airbrush'
|
||||
ERROR = 'error'
|
||||
GROUP = 'user',
|
||||
GROUP_ADD = 'user_add'
|
||||
GROUP_EDIT = 'user_edit'
|
||||
GROUP_DELETE = 'user_delete'
|
||||
GROUP_ADD = 'group_add'
|
||||
GROUP_EDIT = 'group_edit'
|
||||
GROUP_DELETE = 'group_delete'
|
||||
GROUP_KEY = 'group_key'
|
||||
KEY = 'key'
|
||||
KEY_GO = 'key_go'
|
||||
KEY_ADD = 'key_add'
|
||||
KEY_DELETE = 'key_delete'
|
||||
LOCK = 'lock'
|
||||
MEDAL_GOLD = 'medal_gold'
|
||||
MEDAL_GOLD_ADD = 'medal_gold_add'
|
||||
MEDAL_GOLD_DELETE = 'medal_gold_delete'
|
||||
PICTURES = 'pictures'
|
||||
PLUGIN = 'plugin'
|
||||
TICK = 'tick'
|
||||
USER = 'user'
|
||||
USER_ADD = 'user_add'
|
||||
USER_EDIT = 'user_edit'
|
||||
USER_DELETE = 'user_delete'
|
||||
|
||||
WRENCH = 'wrench'
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from .icons import icon_icons_app
|
||||
|
||||
name = 'icons'
|
||||
label = _(u'Icons')
|
||||
#app.set_dependencies(['app_registry'])
|
||||
description = _(u'Handles the registration and rendering of icons and sprites.')
|
||||
dependencies = ['app_registry']
|
||||
icon = icon_icons_app
|
||||
|
||||
@@ -10,14 +10,23 @@ DICTIONARY = {
|
||||
APPLICATION_VIEW_ICONS: 'application_view_icons.png',
|
||||
CD_BURN: 'cd_burn.png',
|
||||
COG: 'cog.png',
|
||||
CROSS: 'cross.png',
|
||||
DRAW_AIRBRUSH: 'draw_airbrush.png',
|
||||
ERROR: 'error.png',
|
||||
GROUP: 'group.png',
|
||||
GROUP_ADD: 'group_add.png',
|
||||
GROUP_EDIT: 'group_edit.png',
|
||||
GROUP_DELETE: 'group_delete.png',
|
||||
GROUP_KEY: 'group_key.png',
|
||||
KEY: 'key.png',
|
||||
KEY_GO: 'key_go.png',
|
||||
KEY_ADD: 'key_add.png',
|
||||
KEY_DELETE: 'key_delete.png',
|
||||
MEDAL_GOLD: 'medal_gold_1.png',
|
||||
MEDAL_GOLD_ADD: 'medal_gold_add.png',
|
||||
MEDAL_GOLD_DELETE: 'medal_gold_delete.png',
|
||||
PICTURES: 'pictures.png',
|
||||
PLUGIN: 'plugin.png',
|
||||
TICK: 'tick.png',
|
||||
WRENCH: 'wrench.png',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user