Package AEConstants :: Module Profile
[hide private]
[frames] | no frames]

Source Code for Module AEConstants.Profile

  1  ''' 
  2  Profile constants. 
  3   
  4  @var DEFAULT_PROFILE: Name of the default profile to use when none is specified 
  5  @type DEFAULT_PROFILE: string 
  6  @var BUILTIN_PROFILES: Names of built-in, protected profiles 
  7  @type BUILTIN_PROFILES: list of string 
  8  @var DEFAULT_ASSOCIATIONS: Mapping from built-in profile name to L{UIElement}s 
  9    that ship with LSR that should be part of the profile by default 
 10  @type DEFAULT_ASSOCIATIONS: dictionary 
 11  @var GENERATE_PROFILES: Names of profiles to which generated L{Perk}s should be 
 12    added automatically 
 13  @type GENERATE_PROFILES: list of string 
 14   
 15  @author: Peter Parente 
 16  @organization: IBM Corporation 
 17  @copyright: Copyright (c) 2005, 2007 IBM Corporation 
 18  @license: The BSD License 
 19   
 20  All rights reserved. This program and the accompanying materials are made  
 21  available under the terms of the BSD license which accompanies 
 22  this distribution, and is available at 
 23  U{http://www.opensource.org/licenses/bsd-license.php} 
 24  ''' 
 25  # associations for default profiles that ship with LSR 
 26  DEFAULT_ASSOCIATIONS = { 
 27    'user': ['Keyboard',  
 28             'CliqueAudio',  
 29             'IBMSpeech',  
 30             'DECtalkSpeech',  
 31             'EloquenceSpeech',  
 32             'LoquendoSpeech',  
 33             'SwiftSpeech',  
 34             'ThetaSpeech', 
 35             'EspeakSpeech',  
 36             'FreeTTSSpeech',  
 37             'SpeechDispatcher',  
 38             'FestivalSpeech',  
 39             'BrlAPIDevice',  
 40             'ReviewPerk', 
 41             'BasicSpeechPerk',  
 42             'BasicBraillePerk',  
 43             'BookmarkPerk', 
 44             'DefaultDialogPerk',  
 45             'AltShiftPerk',  
 46             'MetacityPerk',  
 47             'GaimPerk',  
 48             'GTerminalPerk',  
 49             'FirefoxPerk', 
 50             'SearchPerk', 
 51             'GKeybindingPerk', 
 52             'GCalcPerk', 
 53             'GEditPerk'], 
 54    'developer' : 
 55            ['Keyboard',  
 56             'CliqueAudio',  
 57             'IBMSpeech',  
 58             'DECtalkSpeech',  
 59             'EloquenceSpeech',  
 60             'LoquendoSpeech',  
 61             'SwiftSpeech',  
 62             'ThetaSpeech', 
 63             'EspeakSpeech',  
 64             'FreeTTSSpeech',  
 65             'SpeechDispatcher',  
 66             'FestivalSpeech',  
 67             'BrlAPIDevice',  
 68             'ReviewPerk', 
 69             'BasicSpeechPerk',  
 70             'BasicBraillePerk',  
 71             'BookmarkPerk', 
 72             'DefaultDialogPerk',  
 73             'AltShiftPerk', 
 74             'DeveloperPerk', 
 75             'MetacityPerk',  
 76             'GaimPerk',  
 77             'GTerminalPerk',  
 78             'FirefoxPerk', 
 79             'RawEventMonitor', 
 80             'TaskMonitor',  
 81             'IOMonitor', 
 82             'SearchPerk', 
 83             'GKeybindingPerk', 
 84             'GCalcPerk', 
 85             'GEditPerk'], 
 86    'monitors' : 
 87            ['RawEventMonitor', 
 88             'TaskMonitor',  
 89             'IOMonitor',  
 90             'Keyboard', 
 91             'ReviewPerk',  
 92             'BasicSpeechPerk',  
 93             'BasicBraillePerk',  
 94             'DefaultDialogPerk',  
 95             'AltShiftPerk',  
 96             'DeveloperPerk',  
 97             'MetacityPerk',  
 98             'GaimPerk',  
 99             'GTerminalPerk',  
100             'FirefoxPerk', 
101             'GKeybindingPerk', 
102             'GCalcPerk', 
103             'GEditPerk'], 
104    'autotest' : 
105            ['TestLogMonitor',  
106             'Keyboard',  
107             'ReviewPerk',  
108             'BasicSpeechPerk',  
109             'BookmarkPerk',  
110             'DefaultDialogPerk',  
111             'AltShiftPerk',  
112             'MetacityPerk', 
113             'GaimPerk',  
114             'GTerminalPerk' 
115             'FirefoxPerk', 
116             'GKeybindingPerk', 
117             'GCalcPerk', 
118             'GEditPerk'], 
119    'login' : 
120            ['Keyboard',  
121             'CliqueAudio',  
122             'IBMSpeech',  
123             'DECtalkSpeech',  
124             'EloquenceSpeech',  
125             'LoquendoSpeech',  
126             'SwiftSpeech',  
127             'ThetaSpeech', 
128             'EspeakSpeech',  
129             'FreeTTSSpeech',  
130             'SpeechDispatcher',  
131             'FestivalSpeech',  
132             'BrlAPIDevice',  
133             'ReviewPerk',  
134             'BasicSpeechPerk',  
135             'BasicBraillePerk',  
136             'AltShiftPerk',  
137             'GdmPerk', 
138             'SearchPerk'], 
139    'mag' : 
140            ['Keyboard',  
141             'GnomeMagDevice',  
142             'BasicMagPerk',  
143             'DefaultDialogPerk', 
144             'AltShiftPerk'] 
145          } 
146  # names of built-in and default LSR profiles 
147  BUILTIN_PROFILES = DEFAULT_ASSOCIATIONS.keys() 
148  DEFAULT_PROFILE = 'user' 
149  GENERATE_PROFILES = ['user', 'developer'] 
150