[Twisted-web] Flatten problem in livepage trunk
Thomas HERVE
therve at free.fr
Mon Sep 26 12:44:35 MDT 2005
Quoting Thomas HERVE <therve at free.fr>:
> I've managed to make some tests on Livepage in Nevow trunk, and I've found a
> problem.
> The following code work without problem :
>
> def handle_action(self, ctx):
> client = livepage.IClientHandle(ctx)
> client.set("mynode", tags.span["test"])
>
> But the following don't :
>
> def handle_action(self, ctx):
> client = livepage.IClientHandle(ctx)
> client.set("mynode", [tags.span["test1"], tags.span["test2"]])
I reply to myself because I managed to handle this case by adding
types.ListType
in the __call__ function of livepage._js. But I have another problem :
quotes in
i18n strings are not escaped. For example if I have :
def handle_action(self, ctx):
client = livepage.IClientHandle(ctx)
client.set("mynode", [tags.span[_("test1")]])
and a locale file :
msgid "test1"
msgstr "I'm test 1"
I have an error.
I don't know if these feedbacks are useful and/or at the right place... but
these elements are really important for my use of livepage.
--
Thomas
More information about the Twisted-web
mailing list