def insert(self):
ret = True<EOL>schema = self.schema<EOL>fields = self.depopulate(False)<EOL>q = self.query<EOL>q.set_fields(fields)<EOL>pk = q.insert()<EOL>if pk:<EOL><INDENT>fields = q.fields<EOL>fields[schema.pk.name] = pk<EOL>self._populate(fields)<EOL><DEDENT>else:<EOL><INDENT>ret = False<EOL><DEDENT>return ret<EOL>
persist the field values of this orm