genshi and mochikit

1 view
Skip to first unread message

Suren

unread,
Dec 9, 2006, 4:28:36 PM12/9/06
to TurboGears
Hello folks,

I am using genshi as the default view instead of kid and attempted my
first sortable_table using Mochikit today. I am using their example
code directly in my template but I get this unbound prefix error. If I
remove all the "mochi:format" tags, the table gets rendered but remains
unsorted.

<thead>
<tr>
<th mochi:format="str">Domain Name</th>
<th mochi:format="isodate">Creation Date</th>
<th mochi:format="isodate">Expiry Date</th>
<th mochi:format="istr">Organization Name</th>
</tr>
</thead>

Error Code:
unbound prefix: line 19, column 20, in
workspace\id\id\templates\userlist.html

Any ideas?

Also, on a side note, since I am using Genshi, the current release has
no support for widgets using Genshi. Are there examples of validation
mechanisms without using the simple widgets?

Thx,
Suren

Suren

unread,
Dec 9, 2006, 4:47:45 PM12/9/06
to TurboGears
Correction: When I remove all the mochi:format text, I can sort and
render it correctly.

Although, I was wondering why Genshi errors out when I include it. Thx

Adam Jones

unread,
Dec 9, 2006, 5:16:16 PM12/9/06
to TurboGears

The mochi:format portion uses the xml namespace "mochi" You probably
did not have that defined in the template. It can be established in
your html tag in about the same way that the "py:*" namespace is
handled. The mochi documentation should give you directions on adding
this.

If you did have it defined, I have no idea, we might need some more
code to diagnose this.

-Adam

Suren

unread,
Dec 10, 2006, 12:06:59 PM12/10/06
to TurboGears
That was it. Thanks for pointing it out.
Reply all
Reply to author
Forward
0 new messages