Difference between revisions of "Development Team/Activities/Compatibility"
Jump to navigation
Jump to search
(New page: As an example, instead of: if sugar.version >= 0.82: keyHash = util.sha_data(key) else: keyHash = util._sha_data(key) you would code: if hasattr(util, 'sha_data'): key...) |
m (DevelopmentTeam/Activities/Compatibility moved to Development Team/Activities/Compatibility: deCamel casing) |
(No difference)
|
Revision as of 15:44, 17 March 2009
As an example, instead of:
if sugar.version >= 0.82: keyHash = util.sha_data(key) else: keyHash = util._sha_data(key)
you would code:
if hasattr(util, 'sha_data'): keyHash = util.sha_data(key) else: keyHash = util._sha_data(key)