def after_insert(self, record): model.update_user_groups(record) if record.send_invitation: model.send_invitation(record)
def after_insert(self, record): model.update_user_groups(record)
def before_update(self, record): record['status'] = 'A' record['updated'] = now() record['updated_by'] = self.collection.user._id update_user_groups(record)