[Zope3-Users] unexpected ':' char in declaration

Florian Lindner mailinglists at xgm.de
Thu Nov 11 03:50:33 EST 2004


Hello,
I call:

http://localhost:8080/++skin++centershock/eventfolder/event1/event.html

and this prints out:

A system error occurred.

In the server log: (please see at the end of the mail)

event.html is registered as follows:

	<page
		for="CS.interfaces.IEvent"
		name="event.html"
		permission="zope.Public"
		layer="centershock"
		template="event.pt" />


Mmhh, what other information do you need? I really don't understand the 
error and where it occurs.
And why does favicon is not found. It think it's provided by the 
rotterdam layer since my layer is registered as follows:

<layer name="centershock" />
<skin name="centershock" layers="centershock rotterdam default" />

Thanks,

Florian



2004-11-11T12:44:24 INFO root Startup time: 1.963 sec real, 1.956 sec CPU
------
2004-11-11T12:44:29 ERROR root PageTemplateFile: Error in template: 
Compilation failed
HTMLParser.HTMLParseError: unexpected ':' char in declaration, at line 
2, column
  3
------
2004-11-11T12:44:29 ERROR root PageTemplateFile: Error in template: 
Compilation failed
HTMLParser.HTMLParseError: unexpected ':' char in declaration, at line 
2, column
  3
------
2004-11-11T12:44:29 ERROR root PageTemplateFile: Error in template: 
Compilation failed
HTMLParser.HTMLParseError: unexpected ':' char in declaration, at line 
2, column
  3
------
2004-11-11T12:44:29 ERROR SiteError 
http://localhost:8080/++skin++centershock/ev
entfolder/event1/event.html
Traceback (most recent call last):
   File "C:\Python23\Lib\site-packages\zope\publisher\publish.py", line 
138, in publish
     result = publication.callObject(request, object)
   File 
"C:\Python23\Lib\site-packages\zope\app\publication\zopepublication.py",
line 153, in callObject
     return mapply(ob, request.getPositionalArguments(), request)
   File "C:\Python23\Lib\site-packages\zope\publisher\publish.py", line 
113, in mapply
     return debug_call(object, args)
   File "C:\Python23\Lib\site-packages\zope\publisher\publish.py", line 
119, in debug_call
     return object(*args)
   File 
"C:\Python23\Lib\site-packages\zope\app\pagetemplate\simpleviewclass.py",
  line 45, in __call__
     return self.index(*args, **kw)
   File 
"C:\Python23\Lib\site-packages\zope\app\pagetemplate\viewpagetemplatefile
.py", line 76, in __call__
     return self.im_func(im_self, *args, **kw)
   File 
"C:\Python23\Lib\site-packages\zope\app\pagetemplate\viewpagetemplatefile
.py", line 45, in __call__
     s = self.pt_render(namespace)
   File 
"C:\Python23\Lib\site-packages\zope\pagetemplate\pagetemplate.py", line 1
18, in pt_render
     context, output, tal=not source, strictinsert=0)()
   File "C:\Python23\Lib\site-packages\zope\tal\talinterpreter.py", line 
165, in __call__
     self.interpret(self.program)
   File "C:\Python23\Lib\site-packages\zope\tal\talinterpreter.py", line 
208, in interpret
     handlers[opcode](self, args)
   File "C:\Python23\Lib\site-packages\zope\tal\talinterpreter.py", line 
662, in do_useMacro
     macro = self.engine.evaluateMacro(macroExpr)
   File "C:\Python23\Lib\site-packages\zope\app\pagetemplate\engine.py", 
line 108, in evaluateMacro
     macro = Context.evaluateMacro(self, expr)
   File "C:\Python23\Lib\site-packages\zope\tales\tales.py", line 698, 
in evaluate
     return expression(self)
   File "C:\Python23\Lib\site-packages\zope\tales\expressions.py", line 
207, in __call__
     return self._eval(econtext)
   File "C:\Python23\Lib\site-packages\zope\tales\expressions.py", line 
194, in _eval
     ob = self._subexprs[-1](econtext)
   File "C:\Python23\Lib\site-packages\zope\tales\expressions.py", line 
126, in _eval
     ob = self._traverser(ob, element, econtext)
   File "C:\Python23\Lib\site-packages\zope\app\pagetemplate\engine.py", 
line 70, in trustedZopeTraverser
     request=getattr(econtext, 'request', None))
   File "C:\Python23\Lib\site-packages\zope\app\traversing\adapters.py", 
line 114, in traverse
     curr = traversePathElement(curr, name, path, request=request)
   File "C:\Python23\Lib\site-packages\zope\app\traversing\adapters.py", 
line 167, in traversePathElement
     next_item = traversable.traverse(nm, further_path)
   File "C:\Python23\Lib\site-packages\zope\app\traversing\adapters.py", 
line 50, in traverse
     return subject[name]
   File 
"C:\Python23\Lib\site-packages\zope\app\basicskin\standardmacros.py", 
line 44, in __getitem__
     v = page[key]
   File 
"C:\Python23\Lib\site-packages\zope\app\pagetemplate\simpleviewclass.py",
  line 42, in __getitem__
     return self.index.macros[name]
TypeError: unsubscriptable object
127.0.0.1 - zope.anybody [11/Nov/2004:12:44:29 +0400] "GET 
/++skin++centershock/
eventfolder/event1/event.html HTTP/1.1" 200 292 "" "Mozilla/5.0 
(Windows; U; Win
dows NT 5.1; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0"
------
2004-11-11T12:44:29 ERROR SiteError http://localhost:8080/favicon.ico
Traceback (most recent call last):
   File "C:\Python23\Lib\site-packages\zope\publisher\publish.py", line 
135, in publish
     object = request.traverse(object)
   File "C:\Python23\Lib\site-packages\zope\publisher\browser.py", line 
493, in traverse
     ob = super(BrowserRequest, self).traverse(object)
   File "C:\Python23\Lib\site-packages\zope\publisher\http.py", line 
381, in traverse
     ob = super(HTTPRequest, self).traverse(object)
   File "C:\Python23\Lib\site-packages\zope\publisher\base.py", line 
258, in traverse
     subobject = publication.traverseName(
   File 
"C:\Python23\Lib\site-packages\zope\app\publication\publicationtraverse.p
y", line 56, in traverseName
     ob2 = adapter.publishTraverse(request, nm)
   File "C:\Python23\Lib\site-packages\zope\app\container\traversal.py", 
line 77,
  in publishTraverse
     raise NotFound(self.context, name, request)
NotFound: Object: <zope.app.folder.folder.Folder object at 0x01757DF0>, 
name: u'
favicon.ico'
127.0.0.1 - zope.anybody [11/Nov/2004:12:44:29 +0400] "GET /favicon.ico 
HTTP/1.1
" 404 3493 "" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.5) 
Gecko/2
0041108 Firefox/1.0"


More information about the Zope3-users mailing list