PageRenderTime 314ms CodeModel.GetById 171ms app.highlight 6ms RepoModel.GetById 135ms app.codeStats 0ms

/Lib/plat-mac/lib-scriptpackages/Explorer/__init__.py

http://unladen-swallow.googlecode.com/
Python | 84 lines | 59 code | 16 blank | 9 comment | 4 complexity | 7e6d53eda855d994b516bb732dd73f2e MD5 | raw file
 1"""
 2Package generated from /Applications/Internet Explorer.app
 3"""
 4
 5from warnings import warnpy3k
 6warnpy3k("In 3.x, the Explorer module is removed.", stacklevel=2)
 7
 8import aetools
 9Error = aetools.Error
10import Standard_Suite
11import URL_Suite
12import Netscape_Suite
13import Microsoft_Internet_Explorer
14import Web_Browser_Suite
15import Required_Suite
16
17
18_code_to_module = {
19    '****' : Standard_Suite,
20    'GURL' : URL_Suite,
21    'MOSS' : Netscape_Suite,
22    'MSIE' : Microsoft_Internet_Explorer,
23    'WWW!' : Web_Browser_Suite,
24    'reqd' : Required_Suite,
25}
26
27
28
29_code_to_fullname = {
30    '****' : ('Explorer.Standard_Suite', 'Standard_Suite'),
31    'GURL' : ('Explorer.URL_Suite', 'URL_Suite'),
32    'MOSS' : ('Explorer.Netscape_Suite', 'Netscape_Suite'),
33    'MSIE' : ('Explorer.Microsoft_Internet_Explorer', 'Microsoft_Internet_Explorer'),
34    'WWW!' : ('Explorer.Web_Browser_Suite', 'Web_Browser_Suite'),
35    'reqd' : ('Explorer.Required_Suite', 'Required_Suite'),
36}
37
38from Standard_Suite import *
39from URL_Suite import *
40from Netscape_Suite import *
41from Microsoft_Internet_Explorer import *
42from Web_Browser_Suite import *
43from Required_Suite import *
44
45def getbaseclasses(v):
46    if not getattr(v, '_propdict', None):
47        v._propdict = {}
48        v._elemdict = {}
49        for superclassname in getattr(v, '_superclassnames', []):
50            superclass = eval(superclassname)
51            getbaseclasses(superclass)
52            v._propdict.update(getattr(superclass, '_propdict', {}))
53            v._elemdict.update(getattr(superclass, '_elemdict', {}))
54        v._propdict.update(getattr(v, '_privpropdict', {}))
55        v._elemdict.update(getattr(v, '_privelemdict', {}))
56
57import StdSuites
58
59#
60# Set property and element dictionaries now that all classes have been defined
61#
62getbaseclasses(application)
63
64#
65# Indices of types declared in this module
66#
67_classdeclarations = {
68    'capp' : application,
69}
70
71
72class Explorer(Standard_Suite_Events,
73        URL_Suite_Events,
74        Netscape_Suite_Events,
75        Microsoft_Internet_Explorer_Events,
76        Web_Browser_Suite_Events,
77        Required_Suite_Events,
78        aetools.TalkTo):
79    _signature = 'MSIE'
80
81    _moduleName = 'Explorer'
82
83    _elemdict = application._elemdict
84    _propdict = application._propdict