Support dropped for activity.info fields 'service_name' and 'class'
You have to use 'bundle_id' and 'exec' instead now.
This commit is contained in:
parent
3f68813dd6
commit
e11b7d3196
@ -149,9 +149,6 @@ class ActivityBundle(Bundle):
|
|||||||
|
|
||||||
if cp.has_option(section, 'bundle_id'):
|
if cp.has_option(section, 'bundle_id'):
|
||||||
self._bundle_id = cp.get(section, 'bundle_id')
|
self._bundle_id = cp.get(section, 'bundle_id')
|
||||||
# FIXME deprecated
|
|
||||||
elif cp.has_option(section, 'service_name'):
|
|
||||||
self._bundle_id = cp.get(section, 'service_name')
|
|
||||||
else:
|
else:
|
||||||
raise MalformedBundleException(
|
raise MalformedBundleException(
|
||||||
'Activity bundle %s does not specify a bundle id' %
|
'Activity bundle %s does not specify a bundle id' %
|
||||||
@ -163,10 +160,7 @@ class ActivityBundle(Bundle):
|
|||||||
raise MalformedBundleException(
|
raise MalformedBundleException(
|
||||||
'Activity bundle %s does not specify a name' % self._path)
|
'Activity bundle %s does not specify a name' % self._path)
|
||||||
|
|
||||||
# FIXME class is deprecated
|
if cp.has_option(section, 'exec'):
|
||||||
if cp.has_option(section, 'class'):
|
|
||||||
self.activity_class = cp.get(section, 'class')
|
|
||||||
elif cp.has_option(section, 'exec'):
|
|
||||||
self.bundle_exec = cp.get(section, 'exec')
|
self.bundle_exec = cp.get(section, 'exec')
|
||||||
else:
|
else:
|
||||||
raise MalformedBundleException(
|
raise MalformedBundleException(
|
||||||
|
Loading…
Reference in New Issue
Block a user