- def delete(self, commit = True):
- assert 'type' in self
-
- # Clean up miscellaneous join tables
- for table in ['nodenetworks', 'network_types']:
- self.api.db.do("DELETE FROM " + table + \
- " WHERE type = %(type)s",
- self)
-
- if commit:
- self.api.db.commit()
-