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 (moved Walter is a wanker 12/Activities/Compatibility to Development Team/Activities/Compatibility over redirect: revert) |
(4 intermediate revisions by 4 users not shown) | |
(No difference)
|
Latest revision as of 20:32, 23 February 2010
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)