[mapserver-commits] r12039 - trunk/mapserver/mapscript/python
svn at osgeo.org
svn at osgeo.org
Thu Aug 11 06:46:17 EDT 2011
Author: unicoletti
Date: 2011-08-11 03:46:17 -0700 (Thu, 11 Aug 2011)
New Revision: 12039
Modified:
trunk/mapserver/mapscript/python/pymodule.i
Log:
Patch for #3940: some constructors still uses old-style args
Modified: trunk/mapserver/mapscript/python/pymodule.i
===================================================================
--- trunk/mapserver/mapscript/python/pymodule.i 2011-08-10 23:07:15 UTC (rev 12038)
+++ trunk/mapserver/mapscript/python/pymodule.i 2011-08-11 10:46:17 UTC (rev 12039)
@@ -159,16 +159,16 @@
/* The bogus "if 1:" is to introduce a new scope to work around indentation
handling with pythonappend in different versions. (#3180) */
%feature("pythonappend") layerObj %{if 1:
- if args and len(args)!=0:
- self.p_map=args[0]
+ if map:
+ self.p_map=map
else:
self.p_map=None%}
/* The bogus "if 1:" is to introduce a new scope to work around indentation
handling with pythonappend in different versions. (#3180) */
%feature("pythonappend") classObj %{if 1:
- if args and len(args)!=0:
- self.p_layer=args[0]
+ if layer:
+ self.p_layer=layer
else:
self.p_layer=None%}
More information about the mapserver-commits
mailing list