Example #1
0
          fieldNames = batch['data'].keys()

          for field in self.fields(fieldNames).values():
            field.setIsCommitting(False)

    error = None

    try:
      self._afterCommit(sgBatchData, sgBatchResult, sgCommitData, sgCommitError)
    except Exception, e:
      error = e

    batchDataCopy = copy.deepcopy(sgBatchData)

    try:
      ShotgunORM.afterEntityCommit(self, batchDataCopy, sgBatchResult, sgCommitData, sgCommitError)
    except Exception, e:
      if error == None:
        error = e

    if error != None:
      raise error

  def _beforeCommit(self, sgBatchData, sgCommitData):
    '''
    Subclass portion of SgEntity.beforeCommit().

    ** The Entity is locked down when this is called **

    Args:
      * (dict) sgBatchData:
Example #2
0
          fieldNames = batch['data'].keys()

          for field in self.fields(fieldNames).values():
            field.setIsCommitting(False)

    error = None

    try:
      self._afterCommit(sgBatchData, sgBatchResult, sgCommitData, sgDryRun, sgCommitError)
    except Exception, e:
      error = e

    batchDataCopy = copy.deepcopy(sgBatchData)

    try:
      ShotgunORM.afterEntityCommit(self, batchDataCopy, sgBatchResult, sgCommitData, sgDryRun, sgCommitError)
    except Exception, e:
      if error == None:
        error = e

    if error != None:
      raise error

  def _beforeCommit(self, sgBatchData, sgCommitData, sgDryRun):
    '''
    Subclass portion of SgEntity.beforeCommit().

    ** The Entity is locked down when this is called **

    Args:
      * (dict) sgBatchData: