Trying to run some tests with Python 2.6 I stumbled on a problem that I need help with: an interface that has an attribute named 'with'. The interface in question is defined in zope.app.component.back35: class IAdapterRegistration(IComponentRegistration): ... with = schema.Tuple( title = _("With interfaces"), ... Any suggestions on how to fix this one? -- Sidnei da Silva Enfold Systems http://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214
On Wed, Oct 08, 2008 at 12:35:39AM -0300, Sidnei da Silva wrote:
Trying to run some tests with Python 2.6 I stumbled on a problem that I need help with: an interface that has an attribute named 'with'.
The interface in question is defined in zope.app.component.back35:
class IAdapterRegistration(IComponentRegistration): ... with = schema.Tuple( title = _("With interfaces"), ...
Any suggestions on how to fix this one?
The backwards-compatibility interfaces are supposed to expire after 3 releases (or was it years?), maybe we can simply remove this one? If BBB weren't a consideration, you could rename this attribute to with_, as that seems to be the current convention for names that are also keywords (e.g. ZCML directives that have a 'class' attribute name it 'class_' in the corresponding interface). Marius Gedminas -- H.323 has much in common with other ITU-T standards - it features a complex binary wire protocol, a nightmarish implementation, and a bulk that can be used to fell medium-to-large predatory animals. -- Anthony Baxter
Marius Gedminas wrote:
On Wed, Oct 08, 2008 at 12:35:39AM -0300, Sidnei da Silva wrote:
Trying to run some tests with Python 2.6 I stumbled on a problem that I need help with: an interface that has an attribute named 'with'.
The interface in question is defined in zope.app.component.back35:
class IAdapterRegistration(IComponentRegistration): ... with = schema.Tuple( title = _("With interfaces"), ...
Any suggestions on how to fix this one?
The backwards-compatibility interfaces are supposed to expire after 3 releases (or was it years?), maybe we can simply remove this one?
+1. The deprecation message says it's going away in Zope 3.5, so I suggest ripping all this stuff out on the trunk of zope.app.component and creating a new major release (which would then be Python 2.6 compatible).
participants (3)
-
Marius Gedminas -
Philipp von Weitershausen -
Sidnei da Silva