[Zope3-Users] Re: viewlets for specific interfaces (SOLVED - kind of...)

2006-09-15 Thread Luis De la Parra
Luis De la Parra wrote: > > if I visist my_music_file.mp3/index.html I want to see the user comments > to my new song on the bottom of the page, and if I visit > my_photo.jpg/index.html I want to to see a box with info such as > shutter-speed, apperture, etc, and a box with the user comments...

Re: [Zope3-Users] Re: viewlets for specific interfaces

2006-09-15 Thread Stephan Richter
On Thursday 14 September 2006 14:21, Luis De la Parra wrote: > wow. thanks for the offer... maybe I'm doing something wrong somewhere else > then. I'm attaching a minimal package which (does not) work(s) for me: Here is you problem: You registered the page "viewlet.html" as follows: For some

Re: [Zope3-Users] Re: viewlets for specific interfaces

2006-09-15 Thread Stephan Richter
On Thursday 14 September 2006 14:21, Luis De la Parra wrote: > I then change my configure.zcml as described, and none of the above links > shows "hello" anymore.. I would expect /viewlet.html to show an empty > message, and /file.txt/viewlet.html to display "hello" again.. Are you sure, file.txt p

[Zope3-Users] Re: viewlets for specific interfaces

2006-09-14 Thread Luis De la Parra
hello, wow. thanks for the offer... maybe I'm doing something wrong somewhere else then. I'm attaching a minimal package which (does not) work(s) for me: as a first step I add a zope.app.file.File called "file.txt" to my site root, then I visit these two links, and both show "Hello" http://loca

[Zope3-Users] Re: viewlets for specific interfaces

2006-09-14 Thread Luis De la Parra
hello, yes. I guess that would do the trick, but I'd be moving configuration into the code, which I think belongs in the zcml... (which sometimes can be a good thing, but I think this particular configuration fits better in the zcml) what is the pourpose of the "for" option in the zcml directive