I always have some problems with the dtml syntax. Here is the guilty: MyFoderA MyFolderB MyDTMLMethod <dtml-var "PARENTS"> results: [<Folder instance at 01AE5340>, <Folder instance at 01AB4A10>, <Application instance at 01A74FA0>] MyFoderA MyFolderB MyDTMLMethod <dtml-var "PARENTS[0].id"> results: MyFolderB Fine. MyFoderA MyFolderB MyDTMLMethod <dtml-var "PARENTS[0]"> results: Zope Error Zope has encountered an error while publishing this resource. Resource not found Sorry, the requested Zope resource does not exist. Check the URL and try again. **************************** I expected something like: <Folder instance at 01AE5340>. Maybe it's not a very useful Method, but I try to understand. Many times, writing very basic script I came across with this kind of problem. I dont understand and feel really stupid. I read comments about the learning curve. Some said that it's better to know python. I know python, I never feel stupid with python. I usually understand when I make a mistake. A more complete reference documentation and step by step tutorial would be nice. As I understand it, DC primary targets are massive Web Sites. On the other side there are developpers that work on the source or can afford spending a lot of time reading it. Maybe there are also programmers or small and middle sized businesses that would like to use Zope to build their Web application but need a good documentation. I am one them, and surely I would pay for a good documentation. Has DC or anyone else, planned to ship this kind of service: A CLEAR DOCUMENTATION. Thanks *************************** Oscar Picasso picasso@videotron.ca ***************************
Picasso, I hear you and I'm with you all the way on this one.
MyFoderA MyFolderB MyDTMLMethod <dtml-var "PARENTS[0]"> results: Zope Error Zope has encountered an error while publishing this resource.
Resource not found
Sorry, the requested Zope resource does not exist. Check the URL and try again. ****************************
I expected something like: <Folder instance at 01AE5340>. Maybe it's not a very useful Method, but I try to understand.
I would have expected the same.
Many times, writing very basic script I came across with this kind of problem.
I calculated that last week I wasted over 2 hours each and every day due to things not doing what I expected them to do - and worse still I can't understand exactly why the errors occur. 9 times out of 10 it's due to acquisition.
I dont understand and feel really stupid.
Not that it's any consolation but I think there are a boatload of us :)
I read comments about the learning curve. Some said that it's better to know python. I know python, I never feel stupid with python. I usually understand when I make a mistake.
Precisely - and that's so important.
A more complete reference documentation and step by step tutorial would be nice. As I understand it, DC primary targets are massive Web Sites. On the other side there are developpers that work on the source or can afford spending a lot of time reading it.
Maybe there are also programmers or small and middle sized businesses that would like to use Zope to build their Web application but need a good documentation.
Actually, I would say that Zope (and hence DC) targets websites of all sizes. I've seen only small-to-medium public sites being built with Zope so far.
I am one them, and surely I would pay for a good documentation. Has DC or anyone else, planned to ship this kind of service: A CLEAR DOCUMENTATION.
Well, I think they all realise this and people are working on it. One thing I would add though : in pure Python, the tracebacks are very good and, as you mentioned, it's easy to see where you went wrong. This is most important : making mistakes is good if you learn from them ! But most the time with problems like you describe, I find that I just keep messing around with stuff like DTML-WITH and PARENTS until it works, and it's mainly by fluke. Hence the repeated waste of time. Hang in there dude - there are other Python guys who are struggling with this too. I know, that's not a consolation when your code is blowing up and you don't know why, but things'll get better (I hope). chas
picasso@videotron.ca wrote:
Fine.
MyFoderA MyFolderB MyDTMLMethod <dtml-var "PARENTS[0]"> results: Zope Error Resource not found
I expected something like: <Folder instance at 01AE5340>.
It's not only what I also expected, it's what I *got* when I tried it. I suspect you made a mistake somewhere. -Michel
MyFoderA MyFolderB MyDTMLMethod <dtml-var "PARENTS[0]"> ..... I expected something like: <Folder instance at 01AE5340>.
It's not only what I also expected, it's what I *got* when I tried it. I suspect you made a mistake somewhere.
I tried it again. I feel a little shy to say it didn't work. Maybe I made a typo, but I don't see it. I think I don't feel comfortable with the text area. here is a copy and paste of my DTMLMethod: #### DTML Method at /MyFolderA / MyFolderB / test Id test Title Size 23 bytes Last modified 1999/10/03 18:49:1.8 US/Eastern ####texte area <dtml-var "PARENTS[0]"> I'd tried either to click on the view button and to access it with: http://localhost:8080//MyFolderA/MyFolderB/test In both cases I got: Zope Error Zope has encountered an error while publishing this resource. Resource not found Sorry, the requested Zope resource does not exist. Check the URL and try again. ---------------------------------------------------------------------------- ---- Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File C:\Program Files\Xenata\lib\python\ZPublisher\Publish.py, line 214, in publish_module File C:\Program Files\Xenata\lib\python\ZPublisher\Publish.py, line 179, in publish File C:\Program Files\Xenata\lib\python\Zope\__init__.py, line 201, in zpublisher_exception_hook (Object: ElementWithAttributes) File C:\Program Files\Xenata\lib\python\ZPublisher\Publish.py, line 167, in publish File C:\Program Files\Xenata\lib\python\ZPublisher\HTTPResponse.py, line 299, in setBody File C:\Program Files\Xenata\lib\python\ZPublisher\HTTPResponse.py, line 510, in notFoundError NotFound: (see above) *************************** Oscar Picasso picasso@videotron.ca ***************************
participants (3)
-
chas -
Michel Pelletier -
picasso@videotron.ca