Steffen Hausmann wrote at 2003-4-2 22:25 +0200:
....
Thus, pass in a real "REQUEST" rather than "None". You can use "self.REQUEST".
That works, but there is another Problem, with another function.
getItem(self, metaType, verband, REQUEST=None): for object in self.brkCatalog({'meta_type':metaType}): path = re.match("(.*)/edit/.+?/.+?", object.getObject().absolute_url())
The request that is passed to the funktion by a dtml-in call looks ok (it is not None), but another AttributeError occurs.
AttributeError: 'None' object has no attribute 'absolute_url'
Apparently, "getObject()" returned "None". Call "getPath()" instead and see what is strange with the path. If "getPath()" returns None, too, then you have a catalog inconsistency. If you get a true path, you can try to find out why "unrestrictedTraverse" is unable to resolve it into an object.
... This does also work with the old RewriteRule.
"CatalogAware" (rather than "CatalogPathAware") is known to have issues with virtual hosting. Maybe, this lies behind your problem. Viele Grüße Dieter