Lost the path to my DTMLFile in my product
Hello, I've written a python product that loads DTML pages from a /dtml folder in my product... works fine. When I moved my environment to Linux, Zope is still looking on my old heirarchy. Error Log Snippet: 2004-08-31T07:23:24 PROBLEM(100) ZPublisher DTML file 'C:\Apollo1-Zope-271\Products\WWWedding\dtml/index_html.dtml' could not be read ------ 2004-08-31T07:29:29 PROBLEM(100) ZPublisher DTML file 'C:\Apollo1-Zope-271\Products\WWWedding\dtml/wwroot.dtml' could not be read ------ 2004-08-31T07:29:42 PROBLEM(100) ZPublisher DTML file 'C:\Apollo1-Zope-271\Products\WWWedding\dtml/wwroot.dtml' could not be read ------ 2004-08-31T07:29:53 PROBLEM(100) ZPublisher DTML file 'C:\Apollo1-Zope-271\Products\WWWedding\dtml/wwroot.dtml' could not be read Old instances of my product have this problem, in my code it seems to be a relative call... how do I get Zope to find the linux products resources. Thanks in advance, -Jon Cyr cyrj@cyr.info
Jonathan Cyr wrote at 2004-8-31 13:06 -0500:
I've written a python product that loads DTML pages from a /dtml folder in my product... works fine.
When I moved my environment to Linux, Zope is still looking on my old heirarchy.
Error Log Snippet:
2004-08-31T07:23:24 PROBLEM(100) ZPublisher DTML file 'C:\Apollo1-Zope-271\Products\WWWedding\dtml/index_html.dtml' could not be read
This means that somewhere in your product, there is still the old path. -- Dieter
Dieter Maurer wrote:
Jonathan Cyr wrote at 2004-8-31 13:06 -0500:
I've written a python product that loads DTML pages from a /dtml folder in my product... works fine.
When I moved my environment to Linux, Zope is still looking on my old heirarchy.
Error Log Snippet:
2004-08-31T07:23:24 PROBLEM(100) ZPublisher DTML file 'C:\Apollo1-Zope-271\Products\WWWedding\dtml/index_html.dtml' could not be read
This means that somewhere in your product, there is still the old path.
Maybe delete the old .pyc files? Johan -- Colliberty Easy Publisher created by Johan Carlsson Email: johanc@easypublisher.com
Johan Carlsson wrote at 2004-9-2 06:45 +0200:
Dieter Maurer wrote:
When I moved my environment to Linux, Zope is still looking on my old heirarchy.
Error Log Snippet:
2004-08-31T07:23:24 PROBLEM(100) ZPublisher DTML file 'C:\Apollo1-Zope-271\Products\WWWedding\dtml/index_html.dtml' could not be read
This means that somewhere in your product, there is still the old path.
Maybe delete the old .pyc files?
Maybe, try it. -- Dieter
Problem Solved, I wrote a refresh method within the class, that resets all of the DTMLFile values... since new instances work, the new refresh calls also work. Not a great solution, but liveable. Thank You for your help, -Jon Dieter Maurer wrote:
Johan Carlsson wrote at 2004-9-2 06:45 +0200:
Dieter Maurer wrote:
When I moved my environment to Linux, Zope is still looking on my old heirarchy.
Error Log Snippet:
2004-08-31T07:23:24 PROBLEM(100) ZPublisher DTML file 'C:\Apollo1-Zope-271\Products\WWWedding\dtml/index_html.dtml' could not be read
This means that somewhere in your product, there is still the old path.
Maybe delete the old .pyc files?
Maybe, try it.
Deleted .pyc... No Luck. As for declaring the path... I am using the DTMLFile method, and I never have defined a path explicitly, this is something Zope has done, and is holding on to... I wish to refresh it, but have no idea how Zope had done it in the first place. New instances of the product work fine... but imported instances do not. Only the DTMLFile "pointers" are wrong. Is there any Documentation on the globals() parameter given to DTMLFile, can I refresh this for an older instance. -Jon Johan Carlsson wrote:
Dieter Maurer wrote:
Jonathan Cyr wrote at 2004-8-31 13:06 -0500:
I've written a python product that loads DTML pages from a /dtml folder in my product... works fine.
When I moved my environment to Linux, Zope is still looking on my old heirarchy.
Error Log Snippet:
2004-08-31T07:23:24 PROBLEM(100) ZPublisher DTML file 'C:\Apollo1-Zope-271\Products\WWWedding\dtml/index_html.dtml' could not be read
This means that somewhere in your product, there is still the old path.
Maybe delete the old .pyc files? Johan
Is there a setting in zope.conf for telling zope where to look DTML resources? -Jon Jonathan Cyr wrote:
Deleted .pyc... No Luck.
As for declaring the path... I am using the DTMLFile method, and I never have defined a path explicitly, this is something Zope has done, and is holding on to... I wish to refresh it, but have no idea how Zope had done it in the first place.
New instances of the product work fine... but imported instances do not. Only the DTMLFile "pointers" are wrong.
Is there any Documentation on the globals() parameter given to DTMLFile, can I refresh this for an older instance.
-Jon
Johan Carlsson wrote:
Dieter Maurer wrote:
Jonathan Cyr wrote at 2004-8-31 13:06 -0500:
I've written a python product that loads DTML pages from a /dtml folder in my product... works fine.
When I moved my environment to Linux, Zope is still looking on my old heirarchy.
Error Log Snippet:
2004-08-31T07:23:24 PROBLEM(100) ZPublisher DTML file 'C:\Apollo1-Zope-271\Products\WWWedding\dtml/index_html.dtml' could not be read
This means that somewhere in your product, there is still the old path.
Maybe delete the old .pyc files? Johan
------------------------------------------------------------------------
_______________________________________________ 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 )
participants (3)
-
Dieter Maurer -
Johan Carlsson -
Jonathan Cyr