Z-1.10.3, method invocation by URL: why doesn't this work?
Hi there, I just again hit the limited borders of my wanaabe zope zenism: (for reasons you wouldn't like to read the answer to your obvious question 'Why?' ;-) I'm still stuck to Zope-1.10.3) I thought of the following: Have a method 'framify' that inserts headers & footers 'round a document's body. Call it like /folder1/folder2/dtmldoc1/framify (just for aesthetics; args DO work, but I really like that URLism) and it displays dtmldoc1 in a nice, headered and footered version. But this wouldn't work, since I get this: <error> Bobo has encountered a problem publishing your object. Cannot locate object at: http://exit:9673/Zope/tomtest/nummer_2/framify Traceback (innermost last): File /mnt/universe/home/zope/Zope-1.10.3-src/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /mnt/universe/home/zope/Zope-1.10.3-src/lib/python/ZPublisher/Publish.py, line 420, in publish (Info: /tomtest/nummer_2/framify) File /mnt/universe/home/zope/Zope-1.10.3-src/lib/python/ZPublisher/Publish.py, line 270, in debugError NotFound: (see above) </error> So, what is the difference to e.g. 'manage', which can be called that way? Would I need an external method? Does it have to be 'built in' into a class or Product to work that way? Please spend me Zenlightment! -- MfG: Thomas Riedl | Linux Information Systems AG | http://www.linux-ag.de Tom.Riedl@Linux-AG.de | "Linux is our business" | Tel: 089/99 34 12-0 Tel.: 089/99 34 12-11 | | Fax: 089/99 34 12-99
Hi Zopesters! First of all the question: Is the behaviour mentioned below an intended one, i.e.: Can't 1.20.3 _really_ fulfill those wishes of mine? LOTIA tom. ============================================================== Trying to answer my own question of last friday, I tried this: I created a method ' framify', which serves as a 'layout template' method. I call up my doCONTENTuments (e.g., pure content) like this: http://somehost:someport/Zope/some/area/doc0001/framify o With ZServer/2.0.0b5, this works OK, they are nicely 'rendered' by 'framify'. o With ZAP/1.10.3, I get a traceback like this: [Traceback] Bobo has encountered a problem publishing your object. Cannot locate object at: http://www.linux-ag.de:8080/Zope/tomtest/mytest/framify Traceback (innermost last): File /mnt/universe/home/zope/Zope-1.10.3-src/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /mnt/universe/home/zope/Zope-1.10.3-src/lib/python/ZPublisher/Publish.py, line 420, in publish (Info: /tomtest/mytest/framify) File /mnt/universe/home/zope/Zope-1.10.3-src/lib/python/ZPublisher/Publish.py, line 270, in debugError NotFound: (see above) [Traceback] Framify: ================================================== <!--#unless no_not_again--> <html> <!-- some header stuff--> <!--#call "REQUEST.set('no_not_again', 1)"--> <!--#var "_.getitem(_['id'], 1)"--> <!-- some footer stuff--> </html> <!--#/unless--> ================================================== FYI: I don't want to clutter my doCONTENTuments with things like '<!--#var some_header--> ....' stuff. I also don't want to make 'framify' a parent's folder's method named 'index_html' including 'content_html' and create lots of subfolders with a single 'dontent_html' doc in them. -- MfG: Thomas Riedl | Linux Information Systems AG | http://www.linux-ag.de Tom.Riedl@Linux-AG.de | "Linux is our business" | Tel: 089/99 34 12-0 Tel.: 089/99 34 12-11 | | Fax: 089/99 34 12-99
participants (1)
-
Thomas Riedl