[Interface-dev] [Fwd: Re: Interfaces status and coordination]

Jim Fulton jim at zope.com
Thu Jun 3 16:04:06 EDT 2004


Glyph Lefkowitz wrote:
> On Thu, 2004-06-03 at 06:38, Steve Alexander wrote:
> 
> 
>>$ python -c "import this" | grep only
>>There should be one-- and preferably only one --obvious way to do it.
> 
> 
> I understand that, but even in only *my* use cases, there are four
> separate "it"s.  I want to format methods for calling from the web,
> provide schemas for database persistence, verify constraints on remote
> method calls, and provide serialization instructions for remote method
> calls.  While some of these sound the same, there are subtle differences
> that require a variety of different hints to each system.  I don't yet
> have enough experience with any of these systems to unify them, so I
> think it would be premature to try to design a complete solution at this
> point.
> 
> Currently any attempt to annotate an interface with extra information
> results in a "zope.interface.exceptions.InvalidInterface: Concrete
> attribute" error.  I would like to be able to get at the function
> objects so at least I can annotate *them* with some information.

In theory, interfaces coudl be created from XML or from Python code
that didn't involve Python functions.  I don't want to rely on
keeping function objects around.

I promise that I'll make a proposal for this within the next few weeks.
Hopefully, this will meet your needs. :)

In the proposal, I'll sugest both a nevow style and another style
that doesn't involve default arguments. Once the proposal is written
down, we can consider what style or styles we want.

Jim


-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org



More information about the Interface-dev mailing list