problem with NeoBoard and breadcrumbs
Hi, I call the following method in my standard_html_header and it works fine everywhere except in the NeoBoard page: (simple breadcrumbs) <dtml-call "REQUEST.set('rev', [])"> <dtml-in PARENTS skip_unauthorized> <dtml-call "rev.insert(0, _['sequence-item'])"> </dtml-in> <dtml-in rev> <a href="<dtml-var "_['sequence-item'].absolute_url()">" class="nav_link"> <dtml-var title_or_id> </a> <dtml-unless sequence-end>:</dtml-unless> </dtml-in> I get an infinite recursion error when I try to view any NeoBoard page. Does anybody know why this crops up?? I cant figure out what is there in NeoB that might cause this error as it does not happen anywhere else. Also if I comment out the abovementioned code and put in just <dtml-var "_.len(PARENTS)"> the NeoBoard page shows the right number of parents in my case (4). So why do I get a infinite recursion error when there are a finite number of parents?? TIA AM -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
Aseem Mohanty writes:
I call the following method in my standard_html_header and it works fine everywhere Then you are lucky! except in the NeoBoard page:
Keep in mind: You should not use "_[...]" when you want the result to be used as Zope object. "_[...]" will call the result, if it happens to be callable. You will not get the object but its rendering! Use "_.getitem(...)" in this case.
... <dtml-call "rev.insert(0, _['sequence-item'])"> ... <dtml-in rev> <a href="<dtml-var "_['sequence-item'].absolute_url()">" ...
Dieter
participants (2)
-
Aseem Mohanty -
Dieter Maurer