[Sugar-devel] [ANNOUNCE] Please update your activity info files for deprecated fields

2009-02-20 Thread Simon Schampijer
Dear activity developers,

there are two deprecated fields in the activity.info [1]

'service_name' is deprecated please use 'bundle-id' instead.

'class' is deprecated and you should use the 'exec' command instead. The 
reason for the switch is that the exec command follows better the 
general freedesktop standard [2]

The sooner you get this in the better. Deprecated things get dropped at 
some point, latest with the next major release (in this case 1.0) - you 
will be informed again of course.

Thanks,
Simon

[1] 
http://sugarlabs.org/go/DevelopmentTeam/Almanac/Activity_Bundles#.info_file_format
[2] 
http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-0.9.3.html
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [ANNOUNCE] Please update your activity info files for deprecated fields

2009-02-20 Thread Simon Schampijer
Simon Schampijer wrote:
 Dear activity developers,
 
 there are two deprecated fields in the activity.info [1]
 
 'service_name' is deprecated please use 'bundle-id' instead.

Sorry, this should be 'bundle_id'.

Thanks to Walter for notifying,
Simon
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [ANNOUNCE] Please update your activity info files for deprecated fields

2009-02-20 Thread Gary C Martin
On 20 Feb 2009, at 11:14, Simon Schampijer wrote:

 Dear activity developers,

 there are two deprecated fields in the activity.info [1]

 'service_name' is deprecated please use 'bundle-id' instead.

 'class' is deprecated and you should use the 'exec' command instead.  
 The
 reason for the switch is that the exec command follows better the
 general freedesktop standard [2]

Thanks, didn't know about that change in spec... was just about to  
alter my 'class' to 'exec', but before I do, how far back does exec  
support go in Sugar? I don't want to break backwards compatibility for  
current deployments.

Would you recommend I put both class and exec line in the .info file?

--Gary

 The sooner you get this in the better. Deprecated things get dropped  
 at
 some point, latest with the next major release (in this case 1.0) -  
 you
 will be informed again of course.

 Thanks,
Simon

 [1]
 http://sugarlabs.org/go/DevelopmentTeam/Almanac/Activity_Bundles#.info_file_format
 [2]
 http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-0.9.3.html
 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [ANNOUNCE] Please update your activity info files for deprecated fields

2009-02-20 Thread Simon Schampijer
Gary C Martin wrote:
 On 20 Feb 2009, at 11:14, Simon Schampijer wrote:
 
 Dear activity developers,

 there are two deprecated fields in the activity.info [1]

 'service_name' is deprecated please use 'bundle-id' instead.

 'class' is deprecated and you should use the 'exec' command instead. The
 reason for the switch is that the exec command follows better the
 general freedesktop standard [2]
 
 Thanks, didn't know about that change in spec... was just about to alter 
 my 'class' to 'exec', but before I do, how far back does exec support go 
 in Sugar? I don't want to break backwards compatibility for current 
 deployments.
 
 Would you recommend I put both class and exec line in the .info file?
 
 --Gary

Good point Gary! We are doing fine in this regard. 0.82 will work and 
previous versions as well, when looking at the timestamps when this was 
put in.

Thanks,
Simon

[eri...@beet sugar-toolkit]$ git-blame -L 143,169 
src/sugar/bundle/activitybundle.py
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 143)
6073a396 sugar/bundle/activitybundle.py (Marco Pesenti Gritti 2007-10-09 
13:15:06 +0200 144) if cp.has_option(section, 'bundle_id'):
6073a396 sugar/bundle/activitybundle.py (Marco Pesenti Gritti 2007-10-09 
13:15:06 +0200 145) self._bundle_id = cp.get(section, '
6073a396 sugar/bundle/activitybundle.py (Marco Pesenti Gritti 2007-10-09 
13:15:06 +0200 146) # FIXME deprecated
6073a396 sugar/bundle/activitybundle.py (Marco Pesenti Gritti 2007-10-09 
13:15:06 +0200 147) elif cp.has_option(section, 'service_na
6073a396 sugar/bundle/activitybundle.py (Marco Pesenti Gritti 2007-10-09 
13:15:06 +0200 148) self._bundle_id = cp.get(section, '
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 149) else:
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 150) raise MalformedBundleException(
6073a396 sugar/bundle/activitybundle.py (Marco Pesenti Gritti 2007-10-09 
13:15:06 +0200 151) 'Activity bundle %s does not sp
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 152) self._path)
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 153)
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 154) if cp.has_option(section, 'name'):
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 155) self._name = cp.get(section, 'name'
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 156) else:
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 157) raise MalformedBundleException(
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 158) 'Activity bundle %s does not sp
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 159)
6ebe910e sugar/bundle/activitybundle.py (Marco Pesenti Gritti 2007-10-08 
14:56:12 +0200 160) # FIXME class is deprecated
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 161) if cp.has_option(section, 'class'):
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 162) self.activity_class = cp.get(sectio
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 163) elif cp.has_option(section, 'exec'):
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 164) self.bundle_exec = cp.get(section,
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 165) else:
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 166) raise MalformedBundleException(
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 167) 'Activity bundle %s must specif
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 168) self._path)
f377d6e5 sugar/bundle/activitybundle.py (Dan Winship  2007-09-20 
12:20:21 -0400 169)
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel