# Set up a command factory based on the configuration setting |
# Set up a command factory based on the configuration setting |
|
|
executable = importObject( |
executable = importObject( |
config.getProperty('peak.running.app', parent, None) |
config.getProperty(parent, 'peak.running.app', None) |
) |
) |
|
|
if executable is None: |
if executable is None: |
def interpret(self, name): |
def interpret(self, name): |
|
|
if not naming.URLMatch(name): |
if not naming.URLMatch(name): |
name = "config:peak.running.shortcuts.%s/" % name |
name = PropertyName("peak.running.shortcuts." + name) |
|
|
try: |
try: |
factory = naming.lookup(name, self) |
factory = self.lookupComponent(name) |
except exceptions.NameNotFound, v: |
except exceptions.NameNotFound, v: |
raise InvocationError(v) |
raise InvocationError(v) |
|
|