Ignore:
Timestamp:
22 Jul 2010, 01:09:58 (14 years ago)
Author:
uli
Message:

Move ITestContent out of the content setup and make it module-wide
available. Again, the coverage-detector complains about interfaces
with attributes like 'self', so we have to act.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/ulif-fasttables/src/waeup/sirp/widgets/tests/test_objectwidget.py

    r5307 r5308  
    2626    implements(ITestContact)
    2727
     28class ITestContent(Interface):
     29    foo = Object(
     30        ITestContact,
     31        title = u'Foo Title',
     32        description = u'',
     33        )
     34   
    2835class ObjectWidgetInputErrorView(object):
    2936    implements(IWidgetInputErrorView)
     
    5360                       IInputWidget)
    5461       
    55         class ITestContent(Interface):
    56             foo = self._FieldFactory(
    57                     ITestContact,
    58                     title=title,
    59                     description=desc
    60                     )
    6162        class TestObject(object):
    6263            implements(ITestContent)
Note: See TracChangeset for help on using the changeset viewer.