I have a page referenced from index_html which displays fine on its own or linked to from the home page using the Test option in ZMI, but when trying to access it directly I get a 'Resource not found' error. Is this a permission problem? And what do I need to change to access it? I'm only a newbie so there could be any number of things which I have overlooked. -- John
From within the ZMI, while you are looking at (ie. editing) the index_html dtml method, click on the 'Security' tab and make sure the 'View' option in the 'Anonymous' column is checked (assuming that you want to give public access to the index_html page).
Jonathan ----- Original Message ----- From: "John Poltorak" <jp@warpix.org> To: <zope@zope.org> Sent: February 5, 2004 5:10 AM Subject: [Zope] Page only accessible via ZMI
I have a page referenced from index_html which displays fine on its own or linked to from the home page using the Test option in ZMI, but when trying to access it directly I get a 'Resource not found' error.
Is this a permission problem? And what do I need to change to access it?
I'm only a newbie so there could be any number of things which I have overlooked.
-- John
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
The index_html appears publicly accessible, even though 'View' is not checked. What I can't access is a another page in the same folder. I've just found the problem... It's to do with addressing pages in the same folder as index_html. I thought I could reference them as "page_1" but it looks as though it should be "current_folder/page_1". Have I got that right? -- John On Thu, Feb 05, 2004 at 07:30:18AM -0500, Small Business Services wrote:
From within the ZMI, while you are looking at (ie. editing) the index_html dtml method, click on the 'Security' tab and make sure the 'View' option in the 'Anonymous' column is checked (assuming that you want to give public access to the index_html page).
Jonathan
----- Original Message ----- From: "John Poltorak" <jp@warpix.org> To: <zope@zope.org> Sent: February 5, 2004 5:10 AM Subject: [Zope] Page only accessible via ZMI
I have a page referenced from index_html which displays fine on its own or linked to from the home page using the Test option in ZMI, but when trying to access it directly I get a 'Resource not found' error.
Is this a permission problem? And what do I need to change to access it?
I'm only a newbie so there could be any number of things which I have overlooked.
-- John
John Poltorak wrote at 2004-2-5 10:10 +0000:
I have a page referenced from index_html which displays fine on its own or linked to from the home page using the Test option in ZMI, but when trying to access it directly I get a 'Resource not found' error.
Is this a permission problem? And what do I need to change to access it?
Usually, you do not get a "Resouce not found" as an indication of a permission problem. Usually, you get an "Unauthorized" exception (in some places you get a "KeyError" as some people think this were a good idea). Carefully check the URL that give you the error. Almost surely, it is wrong. -- Dieter
On Thu, Feb 05, 2004 at 07:42:23PM +0100, Dieter Maurer wrote:
Usually, you do not get a "Resouce not found" as an indication of a permission problem. Usually, you get an "Unauthorized" exception (in some places you get a "KeyError" as some people think this were a good idea).
Carefully check the URL that give you the error. Almost surely, it is wrong.
Yes, you are correct. It was due to me incorrectly referring to a file in the same folder as index_html. I had specified the link as href="filename", but when I changed it to href="foldername/filename" it worked OK. Somehow this does not seem to be the best way of doing it. What is the recommended way of referring to a file in the same folder?
-- Dieter
-- John
John Poltorak wrote at 2004-2-5 19:25 +0000:
On Thu, Feb 05, 2004 at 07:42:23PM +0100, Dieter Maurer wrote:
... Carefully check the URL that give you the error. Almost surely, it is wrong.
Yes, you are correct. It was due to me incorrectly referring to a file in the same folder as index_html.
I had specified the link as href="filename", but when I changed it to href="foldername/filename" it worked OK.
Somehow this does not seem to be the best way of doing it. What is the recommended way of referring to a file in the same folder?
Usually, you should be able to use trivial URL references (of the form "filename"). When you use the implicit "index_html" URL, this depends on a correct "base" tag. Due to bugs (recently, I met such a bug in CMF/Plone), the "base" tag generation is sometimes "forgotten". -- Dieter
participants (3)
-
Dieter Maurer -
John Poltorak -
Small Business Services