RE: [Zope-dev] getpath not working
-----Original Message----- From: Jason Spisak [mailto:webmaster@mtear.com] Sent: Thursday, July 22, 1999 3:21 PM To: Michel Pelletier Subject: Re: [Zope-dev] getpath not working
Michel,
Just to make sure I just did a CVS update 11:18 PST, and the inability for the Catalog to use Catalog.getpath outside the Catalog folder, even using <!--#with--> has basically halted my progress. What is the status on that? I have tried every possible way to get that method to work outside the Catalog folder and nothing works. Do I have to destroy objects that were created prior to a fix?
I can't reproduce this. <!--#var "Catalog.getpath(1)"--> all by itself, not in the Catalog folder, works dandy. Can you do this? also: <!--#with "Catalog"--> <!--#var "getpath(1)"--> <!--#/with--> works fine too. Note the quotes, otherwise, Zope wants to call the catalog instead of just give you the object. -Michel PS: you won't need to destroy any object for almost any type of fix. We try to avoid that.
Hoping,
Jason Spisak webmaster@mtear.com
Michel, I deleted my old Catalog and put in a new one, now I get the Control_Panel as record (1), but only as the SuperUser. Try logging in as another user, even with all the permissions allowed, and it still gives the getpath error that I sent you. I don't know what could be involved. It's not authorization, just a differrent user. I don't get the basic auth box. Let me know if you can reproduce this and it will explain a lot. All my best, Jason Spisak webmaster@mtear.com
Michel, If I have multiple types (say ZClasses Foo and Bar) with the property "city" indexed, then they all show up in the UniqueValuesFor in a select list. But if I select a city in that list that is indexed becuase of an instance of Bar, and my report is asking only for meta_type['Foo'], I get back all Foo's rather than "No Results". I should get back nothing, correct? Also, have you nailed down that getpath problem? All my best, Jason Spisak webmaster@mtear.com
Jason Spisak wrote:
Michel,
If I have multiple types (say ZClasses Foo and Bar) with the property "city" indexed, then they all show up in the UniqueValuesFor in a select list. But if I select a city in that list that is indexed becuase of an instance of Bar, and my report is asking only for meta_type['Foo'], I get back all Foo's rather than "No Results". I should get back nothing, correct?
Yup, but I'd have to see your DTML. -Michel
participants (2)
-
Jason Spisak -
Michel Pelletier