Skip to content

Commit

Permalink
Fix example analytics adapter.
Browse files Browse the repository at this point in the history
  • Loading branch information
cluther committed Dec 5, 2011
1 parent d3b20b2 commit a3a92c1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions CONTENT/analytics.py
Expand Up @@ -9,7 +9,14 @@
from .ExampleComponent import ExampleComponent


class ExampleComponentReportable(Reportable):
class BaseReportable(Reportable):
"""Abstract base class for our customer IReportable implementations."""

def __init__(self, context):
self.context = context


class ExampleComponentReportable(BaseReportable):
implements(IReportable)
adapts(ExampleComponent)

Expand All @@ -24,7 +31,7 @@ def reportProperties(self):
"""
return [
('attributeOne', 'int',
self.context.attribuetOne, MARKER_LENGTH),
self.context.attributeOne, MARKER_LENGTH),

('attributeTwo', 'string',
self.context.attributeTwo, DEFAULT_STRING_LENGTH),
Expand Down

0 comments on commit a3a92c1

Please sign in to comment.