diff options
| author | Jack Jansen <jack.jansen@cwi.nl> | 2003-04-12 22:27:11 (GMT) |
|---|---|---|
| committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-04-12 22:27:11 (GMT) |
| commit | 3576066cad445e0b3870766fa661b534f9799de7 (patch) | |
| tree | a0251816bb4ef3bbc54468d20e752a3896a9f827 /Lib/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py | |
| parent | 7b01a83488ebe1969b416d579e7df58576bb3c44 (diff) | |
| download | cpython-3576066cad445e0b3870766fa661b534f9799de7.zip cpython-3576066cad445e0b3870766fa661b534f9799de7.tar.gz cpython-3576066cad445e0b3870766fa661b534f9799de7.tar.bz2 | |
Oops, _propdeclarations and friends are needed: gensuitemodule uses them
to lookup properties declared in base classes. Looking at it I'm not sure
what the official scope if the property codes is, maybe it is only the
(OSA) class in which they are used. But giving them global scope hasn't been
a problem so far.
Regenerated the standard suites, which are now also space-indented.
Diffstat (limited to 'Lib/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py')
| -rw-r--r-- | Lib/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py | 79 |
1 files changed, 46 insertions, 33 deletions
diff --git a/Lib/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py b/Lib/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py index 1f6af42..5c245da 100644 --- a/Lib/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py +++ b/Lib/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py @@ -12,28 +12,28 @@ _code = 'sevs' class System_Events_Suite_Events: - pass + pass class application(aetools.ComponentItem): - """application - The System Events application """ - want = 'capp' + """application - The System Events application """ + want = 'capp' class _Prop__3c_Inheritance_3e_(aetools.NProperty): - """<Inheritance> - All of the properties of the superclass. """ - which = 'c@#^' - want = 'capp' + """<Inheritance> - All of the properties of the superclass. """ + which = 'c@#^' + want = 'capp' class _Prop_folder_actions_enabled(aetools.NProperty): - """folder actions enabled - Are Folder Actions currently being processed? """ - which = 'faen' - want = 'bool' + """folder actions enabled - Are Folder Actions currently being processed? """ + which = 'faen' + want = 'bool' class _Prop_properties(aetools.NProperty): - """properties - every property of the System Events application """ - which = 'pALL' - want = '****' + """properties - every property of the System Events application """ + which = 'pALL' + want = '****' class _Prop_system_wide_UI_element(aetools.NProperty): - """system wide UI element - the UI element for the entire system """ - which = 'swui' - want = 'uiel' + """system wide UI element - the UI element for the entire system """ + which = 'swui' + want = 'uiel' # element 'alis' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'cdis' as ['name', 'indx', 'rele', 'rang', 'test'] # element 'cfol' as ['name', 'indx', 'rele', 'rang', 'test'] @@ -56,30 +56,43 @@ import Folder_Actions_Suite import Login_Items_Suite import Processes_Suite application._privpropdict = { - '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, - 'folder_actions_enabled' : _Prop_folder_actions_enabled, - 'properties' : _Prop_properties, - 'system_wide_UI_element' : _Prop_system_wide_UI_element, + '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, + 'folder_actions_enabled' : _Prop_folder_actions_enabled, + 'properties' : _Prop_properties, + 'system_wide_UI_element' : _Prop_system_wide_UI_element, } application._privelemdict = { - 'UI_element' : Processes_Suite.UI_element, - 'alias' : Disk_2d_Folder_2d_File_Suite.alias, - 'application_process' : Processes_Suite.application_process, - 'desk_accessory_process' : Processes_Suite.desk_accessory_process, - 'disk' : Disk_2d_Folder_2d_File_Suite.disk, - 'document' : Standard_Suite.document, - 'file' : Disk_2d_Folder_2d_File_Suite.file, - 'folder' : Disk_2d_Folder_2d_File_Suite.folder, - 'folder_action' : Folder_Actions_Suite.folder_action, - 'item' : Disk_2d_Folder_2d_File_Suite.item, - 'login_item' : Login_Items_Suite.login_item, - 'process' : Processes_Suite.process, - 'window' : Standard_Suite.window, + 'UI_element' : Processes_Suite.UI_element, + 'alias' : Disk_2d_Folder_2d_File_Suite.alias, + 'application_process' : Processes_Suite.application_process, + 'desk_accessory_process' : Processes_Suite.desk_accessory_process, + 'disk' : Disk_2d_Folder_2d_File_Suite.disk, + 'document' : Standard_Suite.document, + 'file' : Disk_2d_Folder_2d_File_Suite.file, + 'folder' : Disk_2d_Folder_2d_File_Suite.folder, + 'folder_action' : Folder_Actions_Suite.folder_action, + 'item' : Disk_2d_Folder_2d_File_Suite.item, + 'login_item' : Login_Items_Suite.login_item, + 'process' : Processes_Suite.process, + 'window' : Standard_Suite.window, } # # Indices of types declared in this module # _classdeclarations = { - 'capp' : application, + 'capp' : application, +} + +_propdeclarations = { + 'c@#^' : _Prop__3c_Inheritance_3e_, + 'faen' : _Prop_folder_actions_enabled, + 'pALL' : _Prop_properties, + 'swui' : _Prop_system_wide_UI_element, +} + +_compdeclarations = { +} + +_enumdeclarations = { } |
