Hi all,

I'm playing around a bit with the Grid and DataGrid widgets as they are
in svn, but I can't seem to get it working.

When in my kid file I do
<div py:replace="weekgrid"></div> , my page loads but I see plain text
instead of a proper table, if I do <div
py:replace="XML(weekgrid)"></div>,
 I get a stacktrace (see below).

Overall I'm a bit confused on how to use these grid widgets. Is there a
how-to on using these?

Thanks!
Nick.

Traceback (most recent call last):
  File
"d:\python242\lib\site-packages\cherrypy-2.1.0_betadev-py2.4.egg\cherrypy\_cphttptools.py",
line 276, in run
    main()
  File
"d:\python242\lib\site-packages\cherrypy-2.1.0_betadev-py2.4.egg\cherrypy\_cphttptools.py",
line 498, in main
    body = page_handler(*args, **cherrypy.request.paramMap)
  File
"d:\python242\lib\site-packages\turbogears-0.9a0dev_r244-py2.4.egg\turbogears\controllers.py",
line 206, in newfunc
    return controllers._process_output(tg_format, output, html)
  File
"d:\python242\lib\site-packages\turbogears-0.9a0dev_r244-py2.4.egg\turbogears\controllers.py",
line 58, in _process_output
    output = view.render(output, tg_format, template=template)
  File
"d:\python242\lib\site-packages\turbogears-0.9a0dev_r244-py2.4.egg\turbogears\view.py",
line 110, in render
    return t.serialize(encoding=defaultencoding, output=format,
fragment=fragment)
  File
"d:\python242\lib\site-packages\kid-0.7.1-py2.4.egg\kid\__init__.py",
line 231, in serialize
    return serializer.serialize(self, encoding, fragment)
  File
"d:\python242\lib\site-packages\kid-0.7.1-py2.4.egg\kid\serialization.py",
line 47, in serialize
    text = list(self.generate(stream, encoding, fragment))
  File
"d:\python242\lib\site-packages\kid-0.7.1-py2.4.egg\kid\serialization.py",
line 301, in generate
    for ev, item in self.apply_filters(stream):
  File
"d:\python242\lib\site-packages\kid-0.7.1-py2.4.egg\kid\serialization.py",
line 73, in balancing_filter
    for ev, item in stream:
  File
"d:\python242\lib\site-packages\kid-0.7.1-py2.4.egg\kid\pull.py", line
179, in _coalesce
    for ev, item in stream:
  File
"d:\python242\lib\site-packages\kid-0.7.1-py2.4.egg\kid\filter.py",
line 21, in transform_filter
    for ev, item in apply_matches(stream, template, templates,
apply_func):
  File
"d:\python242\lib\site-packages\kid-0.7.1-py2.4.egg\kid\filter.py",
line 31, in apply_matches
    item = stream.expand()
  File
"d:\python242\lib\site-packages\kid-0.7.1-py2.4.egg\kid\pull.py", line
87, in expand
    for ev, item in self._iter:
  File
"d:\python242\lib\site-packages\kid-0.7.1-py2.4.egg\kid\pull.py", line
152, in _track
    for p in stream:
  File
"d:\python242\lib\site-packages\kid-0.7.1-py2.4.egg\kid\pull.py", line
179, in _coalesce
    for ev, item in stream:
  File "D:\dev\planner\planner\planner\templates\week.py", line 63, in
_pull
  File
"d:\python242\lib\site-packages\kid-0.7.1-py2.4.egg\kid\pull.py", line
111, in strip
    for (ev, item) in self._iter:
  File
"d:\python242\lib\site-packages\kid-0.7.1-py2.4.egg\kid\pull.py", line
152, in _track
    for p in stream:
  File
"d:\python242\lib\site-packages\kid-0.7.1-py2.4.egg\kid\pull.py", line
179, in _coalesce
    for ev, item in stream:
  File
"d:\python242\lib\site-packages\kid-0.7.1-py2.4.egg\kid\pull.py", line
321, in __iter__
    for (ev, stuff) in self._expat_stream():
  File
"d:\python242\lib\site-packages\kid-0.7.1-py2.4.egg\kid\pull.py", line
293, in _expat_stream
    feed(data)
  File
"d:\python242\lib\site-packages\kid-0.7.1-py2.4.egg\kid\pull.py", line
361, in feed
    raise e
ExpatError: mismatched tag: line 22, column 2

Reply via email to