[Zope3-dev] defining interfaces

Steve Alexander steve@cat-box.net
Tue, 08 Apr 2003 17:26:27 +0200


> I do have one question, which prompted the "not clear" comment regarding
> interface organization: 
> 
> - What is the thought behind having two "file.py" files under
> zope/app/interfaces? The second is in the "content" package.

The one in the 'content' package is the interface for the IFile content 
time. This is the kind of thing that you add when you want to upload 
some file into Zope using a browser.

The other one is "used for file-system and
file-system-like representations of objects, such as file-system
synchronization, FTP, PUT, and WebDAV."

(That's from the docstring.)

So, the former is a content type in itself.
The latter is part of the mechanisms for presenting things via FTP and 
WebDAV and if you export things from the ZODB to appear on the filesystem.


> And a second, somewhat unrelated, but still curious:
> 
> - Why are some classes defined multiple times in
> zope/app/content/sql.py?

That's an error. Someone who knows the code should remove the duplicates.

--
Steve Alexander