Re: [Zope] Re: Folderish objects and that BASE tag...
On Mon, 24 Jul 2000, Chris Withers wrote: I belive that it is returning: http://my.zope/site/file.html/index_html I wonder what index_html that is then? :S From lib/python/OFS/Image.py (which also implements generic file object): def index_html(self, REQUEST, RESPONSE): """ The default view of the contents of a File or Image. Returns the contents of the file or image. Also, sets the Content-Type HTTP header to the objects content type. """ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Folderish objects and that BASE tag...
"R. David Murray" wrote: On Mon, 17 Jul 2000, Chris Withers wrote: If you go to: http://my.zope/site/file.html/ It will just return the DTML document :-) I wonder if it is redirecting to http://my.zope/site/file.html? I belive that it is returning: http://my.zope/site/file.html/index_html I wonder what index_html that is then? :S Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Folderish objects and that BASE tag...
On Mon, 17 Jul 2000, Chris Withers wrote: If you go to: http://my.zope/site/file.html/ It will just return the DTML document :-) I wonder if it is redirecting to http://my.zope/site/file.html? I belive that it is returning: http://my.zope/site/file.html/index_html --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Folderish objects and that BASE tag...
Oleg Broytmann wrote: Documents/Methods aren't, m? Yes they are... http://site/com/folder/object may now look like a folder to you, but what if you want to excecute a method on a folder? It becomes: http://site/com/folder/object/method So, in effect, object should be treated as a 'folderish' thing from a web-y point of view :S And I certainly don't want trailing slash on url like http://my.zope/site/file.html :) Why not? It'd then get the default file for: http://my.zope/site/file.html/ Which would return the contents of file.html anyway... Not very well explained but I don't think I'm missign anything... cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Folderish objects and that BASE tag...
Oleg Broytmann wrote: On Mon, 17 Jul 2000, Chris Withers wrote: And I certainly don't want trailing slash on url like http://my.zope/site/file.html :) Why not? It'd then get the default file for: http://my.zope/site/file.html/ What is "defaul file" if file.html is DTML Document? If you go to: http://my.zope/site/file.html/ It will just return the DTML document :-) I wonder if it is redirecting to http://my.zope/site/file.html? Anyway the URL looks bad; and robots will create directory for it instead of file. Well, it's either that or the BASE tag that I can see, and that BASE tag causes far worse problems :( Any better idea are very welcome! :-) Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )