ZopeTime: several errors on 2.6.1
Hi! I encounter several errors relating to ZopeTime: Zope-2.6.1, ZWiki-0.16 http://openspirit.homelinux.net/ Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module OFS.DTMLMethod, line 126, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module OFS.DTMLDocument, line 124, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_With, line 76, in render Module DocumentTemplate.DT_Var, line 219, in render KeyError: ZopeTime This line causes the error: <dtml-var ZopeTime fmt="aCommon"> ----- http://openspirit.homelinux.net/noowiki/IssueTracker Traceback (innermost last): * Module ZPublisher.Publish, line 98, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.ZWiki.ZWikiPage, line 220, in __call__ * Module Products.ZWiki.ZWikiPage, line 232, in _render * Module Products.ZWiki.ZWikiPage, line 415, in render_stxprelinkdtmlhtml * Module OFS.DTMLDocument, line 131, in __call__ * Module DocumentTemplate.DT_String, line 474, in __call__ * Module OFS.DTMLMethod, line 119, in __call__ * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_Let, line 76, in render * Module DocumentTemplate.DT_Let, line 76, in render * Module DocumentTemplate.DT_In, line 705, in renderwob * Module DocumentTemplate.DT_Let, line 75, in render * Module DocumentTemplate.DT_Util, line 201, in eval __traceback_info__: _ * Module <string>, line 2, in f NameError: global name 'ZopeTime' is not defined I tried some debugging: I used the profiler the first time, so i don't know if the cumtime of Publish.py is exceptional, but it seems to me as if it is. ncalls tottime percall cumtime percall filename:lineno(function) 60 0.020 0.000 14.570 0.243 profile:0() 60 0.010 0.000 14.550 0.242 Publish.py:134(publish_module) 60 0.000 0.000 14.550 0.242 Publish.py:304(pm) 60 0.060 0.001 14.360 0.239 Publish.py:49(publish) 58 0.010 0.000 13.050 0.225 mapply.py:32(mapply) 58 0.000 0.000 13.030 0.225 Publish.py:38(call_object) ... I noted some links i found here: http://openspirit.homelinux.net/noowiki/zope/ZopeTime I have a test instance with same config and content and it has no problems... strange :-/ Do you have any ideas? So don't hesitate to tell me! :-) best regards, Florian -- Florian Konnertz --- http://www.florian-konnertz.de http://openspirit.homelinux.net/noowiki/FrontPage Improved ZWiki about all topics, especially consciousness research and wisdom traditions
--On Dienstag, 11. März 2003 14:54 +0100 Florian Konnertz <florian.konnertz@web.de> wrote:
Hi!
I encounter several errors relating to ZopeTime: Zope-2.6.1, ZWiki-0.16
http://openspirit.homelinux.net/
Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module OFS.DTMLMethod, line 126, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module OFS.DTMLDocument, line 124, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_With, line 76, in render Module DocumentTemplate.DT_Var, line 219, in render KeyError: ZopeTime
This line causes the error: <dtml-var ZopeTime fmt="aCommon">
Take a look at the the parameters that can be passed to time.strftime(). aCommon is invalid. -aj
Andreas Jung wrote:
--On Dienstag, 11. März 2003 14:54 +0100 Florian Konnertz <florian.konnertz@web.de> wrote:
Hi!
I encounter several errors relating to ZopeTime: Zope-2.6.1, ZWiki-0.16
http://openspirit.homelinux.net/
Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module OFS.DTMLMethod, line 126, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module OFS.DTMLDocument, line 124, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_With, line 76, in render Module DocumentTemplate.DT_Var, line 219, in render KeyError: ZopeTime
This line causes the error: <dtml-var ZopeTime fmt="aCommon">
Take a look at the the parameters that can be passed to time.strftime(). aCommon is invalid.
Hmmm... But why does it work on my testserver? Florian -- Florian Konnertz --- http://www.florian-konnertz.de http://openspirit.homelinux.net/noowiki/FrontPage Improved ZWiki about all topics, especially consciousness research and wisdom traditions
Hi, sorry if you got this msg twice. I miss my first copy. Andreas Jung wrote:
--On Dienstag, 11. März 2003 14:54 +0100 Florian Konnertz <florian.konnertz@web.de> wrote:
Hi!
I encounter several errors relating to ZopeTime: Zope-2.6.1, ZWiki-0.16
http://openspirit.homelinux.net/
Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module OFS.DTMLMethod, line 126, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module OFS.DTMLDocument, line 124, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_With, line 76, in render Module DocumentTemplate.DT_Var, line 219, in render KeyError: ZopeTime
This line causes the error: <dtml-var ZopeTime fmt="aCommon">
Take a look at the the parameters that can be passed to time.strftime(). aCommon is invalid.
But why does it works on my testserver? Is this still correct: Zope uses its own DateTime instead of time? I tried also the newest DateTime.py from cvs, but it had no effect. BTW, I have many DocumentTemplate, and strftime related errors now on my site and no idea why they suddenly appeared. I moved to a new server and a new Zope-2.6.1 yesterday and at first it worked fine. It drives me mad!! &:-< But i will solve this problems !!!! (Thanks for listening!) :-) Florian -- Florian Konnertz --- http://www.florian-konnertz.de http://openspirit.homelinux.net/noowiki/FrontPage Improved ZWiki about all topics, especially consciousness research and wisdom traditions
Florian Konnertz wrote at 2003-3-11 14:54 +0100:
I encounter several errors relating to ZopeTime: Zope-2.6.1, ZWiki-0.16
http://openspirit.homelinux.net/
Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module OFS.DTMLMethod, line 126, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module OFS.DTMLDocument, line 124, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_With, line 76, in render Module DocumentTemplate.DT_Var, line 219, in render KeyError: ZopeTime
Apparently, the root of your web site is not found (this "Application" object defines "ZopeTime"). Usually this means, that a DTML object is called without its positional parameters. Unfortunately, the new tracebacks do not longer tell about the objects affected. I expect the "OFS.DTMLDocument, line 124" to be the culprit (more precisely, the code in the DTML Method that calls this DTML Document).
This line causes the error: <dtml-var ZopeTime fmt="aCommon">
Check, how this DTML object is called. Read the "Calling DTML objects" section in <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> Dieter
Hi Dieter, Dieter Maurer wrote:
Florian Konnertz wrote at 2003-3-11 14:54 +0100:
I encounter several errors relating to ZopeTime: Zope-2.6.1, ZWiki-0.16
http://openspirit.homelinux.net/
Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module OFS.DTMLMethod, line 126, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module OFS.DTMLDocument, line 124, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_With, line 76, in render Module DocumentTemplate.DT_Var, line 219, in render KeyError: ZopeTime
Apparently, the root of your web site is not found (this "Application" object defines "ZopeTime"). Ok. - Very enlightening! :) My mind isn't object-orientated enough yet. ;-)
Usually this means, that a DTML object is called without its positional parameters.
Unfortunately, the new tracebacks do not longer tell about the objects affected. I expect the "OFS.DTMLDocument, line 124" to be the culprit (more precisely, the code in the DTML Method that calls this DTML Document). Document? - Shouldn't it read: "...that calls this DTML object" - if i got the above explanation right (?)
So i'll do some LOG before line 124 now LOG("bself",TRACE,bself) 124 r=apply(HTML.__call__, (self, bself, REQUEST), kw) do you think this is right?
This line causes the error: <dtml-var ZopeTime fmt="aCommon">
Check, how this DTML object is called.
Read the "Calling DTML objects" section in
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
Excellent explained. :) I already read about half of your book some weeks ago, i guess i should read the rest ASAP :)
Dieter
Thanks a lot Dieter. If you read this soon could you give me another debugging tip or correct my suggestion above, please? Florian -- Florian Konnertz --- http://www.florian-konnertz.de http://openspirit.homelinux.net/noowiki/FrontPage Improved ZWiki about all topics, especially consciousness research and wisdom traditions
Florian Konnertz wrote at 2003-3-12 02:20 +0100:
Hi Dieter,
Dieter Maurer wrote:
Florian Konnertz wrote at 2003-3-11 14:54 +0100:
I encounter several errors relating to ZopeTime: Zope-2.6.1, ZWiki-0.16
http://openspirit.homelinux.net/
Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module OFS.DTMLMethod, line 126, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module OFS.DTMLDocument, line 124, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_With, line 76, in render Module DocumentTemplate.DT_Var, line 219, in render KeyError: ZopeTime
Apparently, the root of your web site is not found (this "Application" object defines "ZopeTime"). Ok. - Very enlightening! :) My mind isn't object-orientated enough yet. ;-)
Usually this means, that a DTML object is called without its positional parameters.
Unfortunately, the new tracebacks do not longer tell about the objects affected. I expect the "OFS.DTMLDocument, line 124" to be the culprit (more precisely, the code in the DTML Method that calls this DTML Document). Document?
Yes, I see (in the traceback) that is is a DTML Document: Module OFS.DTMLDocument, line 124, in __call__
- Shouldn't it read: "...that calls this DTML object" - if i got the above explanation right (?)
The DTML Documents seems to be called wrong (from the DTML Method).
So i'll do some LOG before line 124 now LOG("bself",TRACE,bself) 124 r=apply(HTML.__call__, (self, bself, REQUEST), kw) do you think this is right?
No. This time a LOG message does not help much. If I am right, then you should look at the DTML Methods source and check whether the DTML Document is called correctly. Dieter
Dieter Maurer wrote:
Florian Konnertz wrote at 2003-3-12 02:20 +0100:
Hi Dieter,
Dieter Maurer wrote:
Florian Konnertz wrote at 2003-3-11 14:54 +0100:
I encounter several errors relating to ZopeTime: Zope-2.6.1, ZWiki-0.16
http://openspirit.homelinux.net/
Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module OFS.DTMLMethod, line 126, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module OFS.DTMLDocument, line 124, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_With, line 76, in render Module DocumentTemplate.DT_Var, line 219, in render KeyError: ZopeTime
Apparently, the root of your web site is not found (this "Application" object defines "ZopeTime"). Ok. - Very enlightening! :) My mind isn't object-orientated enough yet. ;-)
Usually this means, that a DTML object is called without its positional parameters.
Unfortunately, the new tracebacks do not longer tell about the objects affected. I expect the "OFS.DTMLDocument, line 124" to be the culprit (more precisely, the code in the DTML Method that calls this DTML Document). Document?
Yes, I see (in the traceback) that is is a DTML Document:
Module OFS.DTMLDocument, line 124, in __call__
- Shouldn't it read: "...that calls this DTML object" - if i got the above explanation right (?)
The DTML Documents seems to be called wrong (from the DTML Method).
So i'll do some LOG before line 124 now LOG("bself",TRACE,bself) 124 r=apply(HTML.__call__, (self, bself, REQUEST), kw) do you think this is right?
No. This time a LOG message does not help much.
If I am right, then you should look at the DTML Methods source and check whether the DTML Document is called correctly. But how can i find out if not by logging? The source is the regular zope source (see traceback) and it always worked in 2.5.0 and for several days in 2.6.1.
Florian -- Florian Konnertz --- http://www.florian-konnertz.de http://openspirit.homelinux.net/noowiki/FrontPage Improved ZWiki about all topics, especially consciousness research and wisdom traditions
participants (3)
-
Andreas Jung -
Dieter Maurer -
Florian Konnertz