/[thuban]/branches/WIP-pyshapelib-bramz/libraries/pyshapelib/dbflibmodule.c
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/libraries/pyshapelib/dbflibmodule.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2452 by bh, Mon May 17 15:47:57 2004 UTC revision 2453 by bh, Mon Dec 13 17:57:04 2004 UTC
# Line 529  typedef        struct Line 529  typedef        struct
529           */           */
530          %pragma(python) addtomethod="__class__:if not dbflibc._have_commit: del commit"          %pragma(python) addtomethod="__class__:if not dbflibc._have_commit: del commit"
531    
532            /* The __del__ method generated by the old SWIG version we're
533             * tries to access self.thisown which may not be set at all when
534             * there was an exception during construction.  Therefore we
535             * override it with our own version.
536             * FIXME: It would be better to upgrade to a newer SWIG version
537             * or to get rid of SWIG entirely.
538             */
539            %pragma(python) addtoclass = "
540        def __del__(self,dbflibc=dbflibc):
541            if getattr(self, 'thisown', 0):
542                dbflibc.delete_DBFFile(self)
543        "
544    
545    
546      }      }
547  } DBFFile;  } DBFFile;
548    

Legend:
Removed from v.2452  
changed lines
  Added in v.2453

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26