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 |
|
|