original_docstring: Start a transaction on the given app.
  
      Args:
        app: A string representing the app for which to start the transaction.
        allow_multiple_eg: True if transactions can span multiple entity groups.
  
      Returns:
        A datastore_pb.Transaction for the created transaction
      
docstring: Start a transaction on the given app.
docstring_tokens: Start a transaction on the given app .
code: def BeginTransaction(self, app, allow_multiple_eg):
      """Start a transaction on the given app.
  
      Args:
        app: A string representing the app for which to start the transaction.
        allow_multiple_eg: True if transactions can span multiple entity groups.
  
      Returns:
        A datastore_pb.Transaction for the created transaction
      """
      Check(not (allow_multiple_eg and isinstance(
          self._consistency_policy, MasterSlaveConsistencyPolicy)),
            'transactions on multiple entity groups only allowed with the '
            'High Replication datastore')
      txn = self._BeginTransaction(app, allow_multiple_eg)
      self._txn_map[id(txn)] = txn
      transaction = datastore_pb.Transaction()
      transaction.set_app(app)
      transaction.set_handle(id(txn))
      return transaction
code_tokens: def BeginTransaction ( self , app , allow_multiple_eg ) : Check ( not ( allow_multiple_eg and isinstance ( self . _consistency_policy , MasterSlaveConsistencyPolicy ) ) , 'transactions on multiple entity groups only allowed with the ' 'High Replication datastore' ) txn = self . _BeginTransaction ( app , allow_multiple_eg ) self . _txn_map [ id ( txn ) ] = txn transaction = datastore_pb . Transaction ( ) transaction . set_app ( app ) transaction . set_handle ( id ( txn ) ) return transaction
short_docstring: Start a transaction on the given app.
short_docstring_tokens: Start a transaction on the given app .
comment: """Start a transaction on the given app.
  
      Args:
        app: A string representing the app for which to start the transaction.
        allow_multiple_eg: True if transactions can span multiple entity groups.
  
      Returns:
        A datastore_pb.Transaction for the created transaction
      """