diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-06-06 14:03:57 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-06-06 14:03:57 +0000 |
commit | 52372fa4379d87a47330087934b8120794e66560 (patch) | |
tree | 4543006f2d02231b57cc0e90e73fc986d567ba3b /bindings/python/lang.py | |
parent | 692e2985974febda3c83e87e63b7541d6b663f2f (diff) | |
download | lasso-52372fa4379d87a47330087934b8120794e66560.tar.gz lasso-52372fa4379d87a47330087934b8120794e66560.tar.xz lasso-52372fa4379d87a47330087934b8120794e66560.zip |
Bindings: keep retro compatibility for member field names
* Special kludge price go to PHP:
methods name are insensitive so nothing to do here, BUT, if you use
getters/setters then your objects fields can be case insensitive too
;-) (DNS, dns, DnS, dNs all maps to get_dns ).
Diffstat (limited to 'bindings/python/lang.py')
-rw-r--r-- | bindings/python/lang.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bindings/python/lang.py b/bindings/python/lang.py index 54d6812f..c3b1a53f 100644 --- a/bindings/python/lang.py +++ b/bindings/python/lang.py @@ -430,6 +430,9 @@ if WSF_SUPPORT: print >> fd, ' _lasso.%s_%s_set(self._cptr, value)' % ( klassname, mname) print >> fd, ' %s = property(get_%s, set_%s)' % (mname, mname, mname) + old_mname = old_format_as_camelcase(m[1]) + if mname != old_mname: + print >> fd, ' %s = %s' % (old_mname, mname) print >> fd, '' # first pass on methods, getting accessors |