Revert "Support dropped for activity.info fields 'service_name' and 'class'"

This reverts commit e11b7d3196.
This commit is contained in:
Simon Schampijer 2010-08-17 16:57:02 +02:00
parent 4dc2b3db23
commit acd8095a29

View File

@ -149,6 +149,9 @@ class ActivityBundle(Bundle):
if cp.has_option(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:
raise MalformedBundleException(
'Activity bundle %s does not specify a bundle id' %
@ -160,7 +163,10 @@ class ActivityBundle(Bundle):
raise MalformedBundleException(
'Activity bundle %s does not specify a name' % self._path)
if cp.has_option(section, 'exec'):
# FIXME class is deprecated
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')
else:
raise MalformedBundleException(