[Zope3-dev] Re: Object Status Info

Stephan Richter srichter@cbu.edu
Tue, 09 Apr 2002 23:05:36 -0500


> > What do you think?
>
>I think adapters are the key.  Adapt objects to IFileAccessMode,
>IOwnership, IGroupOwnership, IObjectSize, and IFileTimes.  (Those names
>might not be right, but they are a start.)  Perhaps there might even be an
>"IUnix_ls" view that looks up those adapters, supplying a default when
>there is no adapter found.

First I wanted to reject this idea, since it adds just so many more 
interfaces, but now I think this might not be a bad idea. This way the 
VFSFileView (implments IVFSFilePublisher) object can implement all of these 
interfaces and can be reused for many other things.

>One thing to keep in mind is that although most FTP clients ask for
>extended listings, they don't actually do anything with most of the
>information besides show it to the user.  The size is probably the only
>field (besides the name) that influences the behavior of the client.

No. WS FTP uses the "d" in the modes to determine whether it is a dir or 
not. It also uses the mod time of course.

Regards,
Stephan

--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development & Technical Project Management