1
2
3
4
5
6
7
8
9
10
11
12
13
14 """__init__
15
16 Initializer for ZenTableManager
17
18 $Id: __init__.py,v 1.3 2004/04/04 23:56:49 edahl Exp $"""
19
20 __version__ = 0.5
21 __revision__ = "$Revision: 1.3 $"[11:-2]
22
23
24 from Products.Five.browser import BrowserView
25 from ZenTableManager import ZenTableManager
26 from ZenTableManager import manage_addZenTableManager
27
28 try:
29 from Products.CMFCore.DirectoryView import registerDirectory
30 registerDirectory('skins', globals())
31 except ImportError: pass
32
34 """
35 Reread in portlet source on startup. If this is the initial load, and
36 objects don't exist yet, don't do anything.
37 """
38 if hasattr(app, 'zport') and hasattr(app.zport, 'ZenPortletManager'):
39 app.zport.ZenPortletManager.update_source()
40
42 registrar.registerClass(
43 ZenTableManager,
44 permission="Add ZenTableManager",
45 constructors = (manage_addZenTableManager,),
46 icon = "ZenTableManager_icon.gif"
47 )
48 update_portlets(registrar._ProductContext__app)
49
50
51 import FileGzipper
52 if 0:
53 FileGzipper = None
54
57 return self.context.unrestrictedTraverse('++resource++extjs')[name]
58