Re: Something wrong with filteredChildNodes and emb recursive?
Peter Zechmeister <[email protected]>
| Newsgroups | gmane.comp.cms.zms.devel |
|---|---|
| Message-ID | <[email protected]> |
Maybe I am obtrusive, but I still do not have solved this problem. Does anyone have a solution to that? PeterZ Am Mittwoch, den 20.08.2008, 15:11 +0200 schrieb Peter Zechmeister: > Hi, > > filteredChildNodes seems not to work properly with embed recursively > (link) when called within the ZMS. > When called from outside the ZMS it works. > > I have a script outside the ZMS (assume, that e151 is a recursively > embedding link which points to a sub-ZMS): > > # Script: test_filteredChildNodes > > REQUEST = context.REQUEST > zms = context.content > items = zms.e151.filteredChildNodes(REQUEST, zms.PAGES) > print "Number of Items: %s" % len(items) > for item in items: > print item.getId() > return printed > > If called from Zope-ZMI, I get: > Number of Items: 6 > e8 > e35 > e54 > e58 > e62 > e119 > > When called from within the ZMS from a textarea with this code: > Calling Zope-Script: > <dtml-var "test_filteredChildNodes()"> > DTML-Version: > <dtml-in (e151.filteredChildNodes(REQUEST, zms.PAGES)"> > <dtml-var id> > </dtml-in> > > I get: > Calling Zope-Script:↵ > Number of Items: 0↵ > ↵ > ↵ > DTML-Version:↵ > ↵ > ↵ > ↵ > > This is also if I implement the script to a ZMS-action. > > I need this to update my navigation. But it only works if I call the > update-navigation-script from outside of ZMS. Inside of ZMS it does > not > follow the recursively embeddings. > > There are similar problems with getObjProperty! > > ZMS 2.11.0-26 (Build #131c) > ZOPE: (Zope 2.11.1-final, python 2.4.4, linux2) > > Can you fix this? Or tell me, what I am doing wrong please. > > Regards > PeterZ, JKU > > > > > -- Die Fabrik der Zukunft wird nur zwei Angestellte haben: einen Mann und einen Hund. Der Mann ist dafür da, den Hund zu füttern. Der Hund ist dafür da, den Mann daran zu hindern, den Computer zu berühren. W. G. Bennis