[Zope] Acquisition loops and web robots
I have run into several cases where authors at our site have accidentally employed acquisition to link documents in such a way that an infinite tree of URLS are possible - for example: /a/foo contains a link to "b/bar" /b/bar contains a link to "a/foo" This really causes a problem with our web indexer (htdig) hits the site and indexes pages like: /a/b/a/b/a/b/a/b/a/b/a/b ... a/foo Has anyone found a way to avoid these sort of problems - other then just not indexing zope sites? I already limit htdig with the max_hop_count setting, but that it tricky to tune correctly (and still index all valid files). Martin --- Martin Andrews [EMAIL PROTECTED] ___ 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] FOR loops?
This ought to be easy: dtml-in through a list of entries. Each entry has a string and a number which indicates its level of indentation, so "Root",0; "Main",1; "Sub",2 and so on. Presenting these in a SELECT input I want to show the indentation so it's easy to see and use. Obvious answer is to use nbsp; characters to pad the values thus: select dtml-in sequence option value="whatever" for loop=0 to entry-indent-value nbsp; /for entry-string-value /dtml-in /select So where does Zope hide its FOR loop? Can't find the bugger anywhere! -- Andy Gates, Learning and Research Technology [EMAIL PROTECTED] - ICQ#74362415 ___ 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] FOR loops?
+[ Andy Gates ]- | This ought to be easy: ... | Presenting these in a SELECT input I want to show the indentation so | it's easy to see and use. Obvious answer is to use nbsp; characters | to pad the values thus: You have to drop to the python level I'm afraid... | | select | dtml-in sequence | option value="whatever" | for loop=0 to entry-indent-value dtml-in "_.range(entry_indent_value)" | nbsp; /dtml-in | /for | entry-string-value | /dtml-in | /select | | So where does Zope hide its FOR loop? Can't find the bugger anywhere! You can find these things... you just have to know what you're looking for... -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ 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] FOR loops?
select dtml-in sequence option value="whatever" for loop=0 to entry-indent-value nbsp; /for entry-string-value /dtml-in /select instead of `for' use : dtml-in "_.range(0,_['entry-indent-value'])" ... /dtml-in PM ___ 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] FOR loops?
Andy Gates wrote: select dtml-in sequence option value="whatever" for loop=0 to entry-indent-value nbsp; /for entry-string-value /dtml-in /select So where does Zope hide its FOR loop? Can't find the bugger anywhere! You already did. dtml-in is FOR. As in Python's "for v in list". Use dtml-in "_.range(0, _['entry-indent-value']" /dtml-in Phill ___ 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 )