summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/lib-scriptpackages/Explorer/__init__.py
blob: 967bc0e5a9236e5a610801670f7e6be98dfa2b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
"""
Package generated from /Applications/Internet Explorer.app
"""

from warnings import warnpy3k
warnpy3k("In 3.x, the Explorer module is removed.", stacklevel=2)

import aetools
Error = aetools.Error
import Standard_Suite
import URL_Suite
import Netscape_Suite
import Microsoft_Internet_Explorer
import Web_Browser_Suite
import Required_Suite


_code_to_module = {
    '****' : Standard_Suite,
    'GURL' : URL_Suite,
    'MOSS' : Netscape_Suite,
    'MSIE' : Microsoft_Internet_Explorer,
    'WWW!' : Web_Browser_Suite,
    'reqd' : Required_Suite,
}



_code_to_fullname = {
    '****' : ('Explorer.Standard_Suite', 'Standard_Suite'),
    'GURL' : ('Explorer.URL_Suite', 'URL_Suite'),
    'MOSS' : ('Explorer.Netscape_Suite', 'Netscape_Suite'),
    'MSIE' : ('Explorer.Microsoft_Internet_Explorer', 'Microsoft_Internet_Explorer'),
    'WWW!' : ('Explorer.Web_Browser_Suite', 'Web_Browser_Suite'),
    'reqd' : ('Explorer.Required_Suite', 'Required_Suite'),
}

from Standard_Suite import *
from URL_Suite import *
from Netscape_Suite import *
from Microsoft_Internet_Explorer import *
from Web_Browser_Suite import *
from Required_Suite import *

def getbaseclasses(v):
    if not getattr(v, '_propdict', None):
        v._propdict = {}
        v._elemdict = {}
        for superclassname in getattr(v, '_superclassnames', []):
            superclass = eval(superclassname)
            getbaseclasses(superclass)
            v._propdict.update(getattr(superclass, '_propdict', {}))
            v._elemdict.update(getattr(superclass, '_elemdict', {}))
        v._propdict.update(getattr(v, '_privpropdict', {}))
        v._elemdict.update(getattr(v, '_privelemdict', {}))

import StdSuites

#
# Set property and element dictionaries now that all classes have been defined
#
getbaseclasses(application)

#
# Indices of types declared in this module
#
_classdeclarations = {
    'capp' : application,
}


class Explorer(Standard_Suite_Events,
        URL_Suite_Events,
        Netscape_Suite_Events,
        Microsoft_Internet_Explorer_Events,
        Web_Browser_Suite_Events,
        Required_Suite_Events,
        aetools.TalkTo):
    _signature = 'MSIE'

    _moduleName = 'Explorer'

    _elemdict = application._elemdict
    _propdict = application._propdict