equal
deleted
inserted
replaced
|
1 # |
|
2 # Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net> |
|
3 # All Rights Reserved. |
|
4 # |
|
5 # This software is subject to the provisions of the Zope Public License, |
|
6 # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. |
|
7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED |
|
8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|
9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS |
|
10 # FOR A PARTICULAR PURPOSE. |
|
11 # |
|
12 |
|
13 __docformat__ = 'restructuredtext' |
|
14 |
|
15 # import standard library |
|
16 |
|
17 # import interfaces |
|
18 |
|
19 # import packages |
|
20 from zope.interface import Interface |
|
21 |
|
22 |
|
23 class IResources(Interface): |
|
24 """Get list of CSS and Javascript resources associated with given context""" |
|
25 |
|
26 def get_resources(self): |
|
27 """Include page resources |
|
28 |
|
29 The best way to handle resources is to use Fanstatic to automatically |
|
30 include CSS and Javascript tags |
|
31 """ |