At 04:19 PM 10/23/2001 -0500, Kendall Clark wrote: >Hmm, this is interesting. > >It suggests a generic WebDAVServlet which has, as a mixin (?), a >default DavFileStore class, which can be replaced by a DavSqlStore >class. WebDAVServlet would only know about and use the generic methods >of the DAVStore interface, which would be variously implemented, >depending on which mixin one used. > >(Though I suspect that things are bit more complex than this, given >Webware's sophistication about managing urlspace.) > >One Webware config file nicety that suggests itself is masking off >particular parts of urlspace as using a particular DavStore, something >like: > >EnableDav /scratch FileStore >EnableDav /articles/* SqlStore
I'm no WebDav expert, but yes, it sounds like WebDavServlet would be a subclass of HTTPServlet. You might want your WebDevStore to be an instance that the servlet refers to rather than inherits from. That makes it easier for users of the servlet to set up any stand-in object they desire for webdav storage. And yes, having an abstract WebDavStore class is an excellent idea. You might even require stores to inherit it so that you can put concrete code there such as convenience methods. Some people preach you should never do that, but the pay off for being able to add such convenience methods and rely on the existence of certain methods can be substantial. Also, Python allows multiple inheritance so it's not as if you are taking the developer's ability to use other superclasses away. If and how a subclass of WebDavStore could tie into MiddleKit is something I don't know, mostly due to my lack of knowledge and experience with WebDav. Regarding Webware's URL handling, it isn't as sophisticated (or as flexible) as you might think. We'll address that in a future release, but I want to kick 0.6 out the door soon because it's head-and-shoulders above 0.5. -Chuck _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
