More complete handling of 4.2 calls mapped to 4.3 calls.
[plcapi.git] / PLC / Methods / GetSliceAttributeTypes.py
1
2 from PLC.v42Legacy import patch
3 from PLC.v42LegacyAttributeTypes import v42rename, v43rename
4 from PLC.Methods.GetTagTypes import GetTagTypes
5 class GetSliceAttributeTypes(GetTagTypes):
6     """ Legacy version of GetTagTypes. """
7     skip_typecheck = True
8     status = "deprecated"
9     def call(self, auth, *args, **kwds):
10         newargs=[patch(x,v42rename) for x in args]
11         newkwds=dict ( [ (k,patch(v,v42rename)) for (k,v) in kwds.iteritems() ] )
12         results = GetTagTypes.call(self,auth,*newargs,**newkwds)
13         return patch(results,v43rename)