Commit 8413ccb7 authored by Jeremy Hylton's avatar Jeremy Hylton

cleanup and typos

parent 4356fa64
...@@ -6,39 +6,33 @@ from ZPublisher.HTTPResponse import HTTPResponse ...@@ -6,39 +6,33 @@ from ZPublisher.HTTPResponse import HTTPResponse
class DummyObjectBasic(Implicit): class DummyObjectBasic(Implicit):
""" Dummy class with docstring. """Dummy class with docstring."""
"""
def _setObject(self, id, object): def _setObject(self, id, object):
setattr(self, id, object) setattr(self, id, object)
return getattr(self, id) return getattr(self, id)
def view(self): def view(self):
""" Atrribute with docstring. """Attribute with docstring."""
"""
return 'view content' return 'view content'
class DummyObjectWithDefault(DummyObjectBasic): class DummyObjectWithDefault(DummyObjectBasic):
""" Dummy class with docstring. """Dummy class with docstring."""
"""
def index_html(self): def index_html(self):
""" Atrribute with docstring. """Attribute with docstring."""
"""
return 'index_html content' return 'index_html content'
class DummyObjectWithDefaultNone(DummyObjectWithDefault): class DummyObjectWithDefaultNone(DummyObjectWithDefault):
""" Dummy class with docstring. """Dummy class with docstring."""
"""
index_html = None index_html = None
class DummyObjectWithBPTH(DummyObjectBasic): class DummyObjectWithBPTH(DummyObjectBasic):
""" Dummy class with docstring. """Dummy class with docstring."""
"""
def __before_publishing_traverse__(self, object, REQUEST): def __before_publishing_traverse__(self, object, REQUEST):
if REQUEST['_test_counter'] < 100: if REQUEST['_test_counter'] < 100:
...@@ -50,8 +44,7 @@ class DummyObjectWithBPTH(DummyObjectBasic): ...@@ -50,8 +44,7 @@ class DummyObjectWithBPTH(DummyObjectBasic):
class DummyObjectWithBD(DummyObjectBasic): class DummyObjectWithBD(DummyObjectBasic):
""" Dummy class with docstring. """Dummy class with docstring."""
"""
def __browser_default__(self, REQUEST): def __browser_default__(self, REQUEST):
if REQUEST['_test_counter'] < 100: if REQUEST['_test_counter'] < 100:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment