root/cpsskins/branches/jmo-perspectives/utils.py

Revision 2784, 0.9 kB (checked in by jmorliaguet, 3 years ago)

- made it possible to refer to resources, so that we can write:

stylecolor? = resource(u'red')

instead of:

stylecolor? = u'#ff0000'

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 ##############################################################################
2 #
3 # Copyright (c) 2005-2006 Nuxeo and Contributors.
4 # All Rights Reserved.
5 #
6 # This software is subject to the provisions of the Zope Public License,
7 # Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
8 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
9 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
10 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
11 # FOR A PARTICULAR PURPOSE.
12 #
13 ##############################################################################
14 """
15
16 $Id$
17 """
18 __docformat__ = "reStructuredText"
19
20 from zope.component import queryUtility, getUtility
21
22 from cpsskins.setup.interfaces import IResourceManager
23 from cpsskins.thememanager import IThemeManagementFolder
24
25 THEMES_MANAGER_NAME = 'themes'
26
27 def getThemeManager():
28     return queryUtility(IThemeManagementFolder, THEMES_MANAGER_NAME)
29
Note: See TracBrowser for help on using the browser.