"""ZStorm-aware schema manager."""
import transaction

from storm.schema import Schema


class ZStormCommitter(object):
    """A L{Schema} committer that uses Zope's transaction manager."""

    def commit(self):
        transaction.commit()

    def rollback(self):
        transaction.abort()


class ZSchema(Schema):
    """Convenience for creating L{Schema}s that use a L{ZStormCommitter}."""

    def __init__(self, creates, drops, deletes, patch_package):
        committer = ZStormCommitter()
        super(ZSchema, self).__init__(creates, drops, deletes, patch_package,
                                      committer)

"""ZStorm-aware schema manager."""
import transaction

from storm.schema import Schema


class ZCommitter(object):
    """A L{Schema} committer that uses Zope's transaction manager."""

    def commit(self):
        transaction.commit()

    def rollback(self):
        transaction.abort()


class ZSchema(Schema):
    """Convenience for creating L{Schema}s that use a L{ZCommitter}."""

    def __init__(self, creates, drops, deletes, patch_package):
        committer = ZCommitter()
        super(ZSchema, self).__init__(creates, drops, deletes, patch_package,
                                      committer)

Fix docstring and class name
Fix docstring and class name
  """ZStorm-aware schema manager."""
  import transaction
  
  from storm.schema import Schema
  
  
- class ZStormCommitter(object):
+ class ZCommitter(object):
      """A L{Schema} committer that uses Zope's transaction manager."""
  
      def commit(self):
          transaction.commit()
  
      def rollback(self):
          transaction.abort()
  
  
  class ZSchema(Schema):
-     """Convenience for creating L{Schema}s that use a L{ZStormCommitter}."""
+     """Convenience for creating L{Schema}s that use a L{ZCommitter}."""
  
      def __init__(self, creates, drops, deletes, patch_package):
-         committer = ZStormCommitter()
+         committer = ZCommitter()
          super(ZSchema, self).__init__(creates, drops, deletes, patch_package,
                                        committer)
  
Fix docstring and class name
## Code Before:
"""ZStorm-aware schema manager."""
import transaction

from storm.schema import Schema


class ZStormCommitter(object):
    """A L{Schema} committer that uses Zope's transaction manager."""

    def commit(self):
        transaction.commit()

    def rollback(self):
        transaction.abort()


class ZSchema(Schema):
    """Convenience for creating L{Schema}s that use a L{ZStormCommitter}."""

    def __init__(self, creates, drops, deletes, patch_package):
        committer = ZStormCommitter()
        super(ZSchema, self).__init__(creates, drops, deletes, patch_package,
                                      committer)

## Instruction:
Fix docstring and class name
## Code After:
"""ZStorm-aware schema manager."""
import transaction

from storm.schema import Schema


class ZCommitter(object):
    """A L{Schema} committer that uses Zope's transaction manager."""

    def commit(self):
        transaction.commit()

    def rollback(self):
        transaction.abort()


class ZSchema(Schema):
    """Convenience for creating L{Schema}s that use a L{ZCommitter}."""

    def __init__(self, creates, drops, deletes, patch_package):
        committer = ZCommitter()
        super(ZSchema, self).__init__(creates, drops, deletes, patch_package,
                                      committer)
