if you know the answer just email me at jonathandesp@atomasoft.com (my site is almost ready at www.atomasoft.com , there are 2 pages to write + the search engine to fix, is it possible for zope to use -> http://www.htdig.org/ ?) I'd like to know something: In the article here: http://www.zope.org/Documentation/How-To/ZCatalogTutorial they are talking about this: In the source of report, find the following line:: <tr><!--#var title--></tr> Replace it with this:: <tr> <a href="<!--#var "catalog.getpath(data_record_id_)"-->"> <!--#var title--> </a> </tr> ____________________ What can happen when I don't have this "<tr><!--#var title--></tr>" ? In my management view at "report" Also, where I can edit "getpath", where is this file ? "Fortunately, ZCatalog provides a utility function for going from result objects to the object's path. It is called, aptly enough, getpath. getpath expects to be passed the unique integer identifier of the cataloged object. Results store that id as data_record_id_." Commit this change, and perform another search. Now the title can be clicked on to take you to the full page. "I cannot commit this change because I don't find "<tr><!--#var title--></tr>" first of all, secondly I cannot find "getpath", and I don't know what to do inside the file "getpath", what I need to edit etc..
Jonathan Desp wrote:
if you know the answer just email me at jonathandesp@atomasoft.com (my site is almost ready at www.atomasoft.com , there are 2 pages to write + the search engine to fix, is it possible for zope to use -> http://www.htdig.org/ ?)
I don't think HTDig can index Zope content because Zope content isn't available via the filesystem.
I'd like to know something:
In the article here:
http://www.zope.org/Documentation/How-To/ZCatalogTutorial
they are talking about this:
In the source of report, find the following line::
<tr><!--#var title--></tr>
Replace it with this::
<tr> <a href="<!--#var "catalog.getpath(data_record_id_)"-->"> <!--#var title--> </a> </tr>
____________________
What can happen when I don't have this "<tr><!--#var title--></tr>" ? In my management view at "report"
The tutorial still uses the old DTML "SSI-style" syntax. This syntax has been replaced with another that would make this line look like: <dtml-var title> You would replace it with: <a href="<dtml-var "catalog.getpath(data_record_id_)">"> <dtml-var title>
Also, where I can edit "getpath", where is this file ?
It's not a file. It's a method of the catalog object. In Python. You don't need to edit it.
"Fortunately, ZCatalog provides a utility function for going from result objects to the object's path. It is called, aptly enough, getpath. getpath expects to be passed the unique integer identifier of the cataloged object. Results store that id as data_record_id_."
Commit this change, and perform another search. Now the title can be clicked on to take you to the full page.
"I cannot commit this change because I don't find "<tr><!--#var title--></tr>" first of all, secondly I cannot find "getpath", and I don't know what to do inside the file "getpath", what I need to edit etc..
_______________________________________________ Zope maillist - Zope@zope.org 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 )
On Mon, 17 Jul 2000, Chris McDonough wrote:
Jonathan Desp wrote:
if you know the answer just email me at jonathandesp@atomasoft.com (my site is almost ready at www.atomasoft.com , there are 2 pages to write + the search engine to fix, is it possible for zope to use -> http://www.htdig.org/ ?)
I don't think HTDig can index Zope content because Zope content isn't available via the filesystem.
htDig does not index files on filesystem; exactly other way around - it index sites via HTTP/FTP. I've never tried it on Zope, and I DO expect problems - Zope really had problems with robots 'cause Zope does not send redirect on folderish objects (to force trailing slashes). But if all your HREFs contain neccessary trailing slashes, I am pretty sure htDig will happily index your site. Oleg. (All opinions are mine and not of my employer) ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
Oleg Broytmann wrote:
problems - Zope really had problems with robots 'cause Zope does not send redirect on folderish objects (to force trailing slashes).
Thanks for rubbing that raw nerve again ;-) Oleg describes the defacto handling of folderish objects over the web... That BASE tag is not it ;P Since all objects in Zope are folderish, they should all get redirected if they don't have a / on the end. I'm sure there are complications... </RANT> Chris ;-)
On Mon, 17 Jul 2000, Chris Withers wrote:
Since all objects in Zope are folderish, they should all get redirected if they don't have a / on the end.
Documents/Methods aren't, m? And I certainly don't want trailing slash on url like http://my.zope/site/file.html :) Oleg. (All opinions are mine and not of my employer) ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
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
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? Anyway the URL looks bad; and robots will create directory for it instead of file. Oleg. (All opinions are mine and not of my employer) ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
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
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
"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:
I wonder what index_html that is then? :S Chris
On Mon, 24 Jul 2000, Chris Withers wrote:
I belive that it is returning:
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. """
On Wed, 26 Jul 2000, R. David Murray wrote:
On Mon, 24 Jul 2000, Chris Withers wrote:
I belive that it is returning:
I wonder what index_html that is then? :S
From lib/python/OFS/Image.py (which also implements generic file object):
What about for DTML methods, Documents and other types of object? cheers, Chris
participants (5)
-
Chris McDonough -
Chris Withers -
Jonathan Desp -
Oleg Broytmann -
R. David Murray