# Path: arangodb/transaction/action.py
# class DocumentAction(TransactionAction):
#     """
#     """
# 
#     def __init__(self, action_type, collection_name, document_data, _id=''):
#         """
#         """
# 
#         super(DocumentAction, self).__init__(action_type)
# 
#         self.collection_name = collection_name
#         self.document_data = document_data
#         self._id = _id
# 
#     @classmethod
#     def create(cls, collection_name, document_data):
#         """
#         """
# 
#         return cls(action_type='create', collection_name=collection_name, document_data=document_data)
# 
#     @classmethod
#     def update(cls, collection_name, _id, document_data):
#         """
#         """
# 
#         return cls(action_type='update', collection_name=collection_name, document_data=document_data, _id=_id)


from arangodb.transaction.action import DocumentAction


class TransactionCollection(object):
    """
    """

    def __init__(self, name, transaction):
        """
        """

        self.name = name
        self.transaction = transaction

    def create_document(self, data):
        """
        """


# Path: arangodb/transaction/action.py
# class DocumentAction(TransactionAction):
#     """
#     """
# 
#     def __init__(self, action_type, collection_name, document_data, _id=''):
#         """
#         """
# 
#         super(DocumentAction, self).__init__(action_type)
# 
#         self.collection_name = collection_name
#         self.document_data = document_data
#         self._id = _id
# 
#     @classmethod
#     def create(cls, collection_name, document_data):
#         """
#         """
# 
#         return cls(action_type='create', collection_name=collection_name, document_data=document_data)
# 
#     @classmethod
#     def update(cls, collection_name, _id, document_data):
#         """
#         """
# 
#         return cls(action_type='update', collection_name=collection_name, document_data=document_data, _id=_id)


# Path: arangodb/transaction/api.py
from arangodb.transaction.action import DocumentAction



class TransactionCollection(object):
    """
    """

    def __init__(self, name, transaction):
        """
        """

        self.name = name
        self.transaction = transaction

    def create_document(self, data):
        """
        """


        action = DocumentAction.create(collection_name=self.name, document_data=data)