コード例 #1
0
ファイル: ooBase.py プロジェクト: duallain/OpenObject
    def _copy_with_args(self, searchTuples, searchExists, args, objectName):
        """
        Does a copy and then adds some extra information.
        """
        obj = Object(self.cnx, objectName)
        results = obj.search(searchTuples)
        new_id = obj.copy(results[0])

        if self._exists(searchExists, objectName):
            return True
        else:
            return self._update_no_search(new_id, args, objectName)