What you need to do is set your content header, with Webkit this is done
with a=20
self.response().setHeader('Content-type','application/xhtml+xml') =
command.
Also since I know that Cheetah browsers a lot from Webare, all you have =
to
is add that to the respond function prior to the first write statement =
of
your compiled cheetah template.
Hope this helps
Jose
> -----Original Message-----
> From: webware-discuss-admin@...
> [mailto:webware-discuss-admin@...] On=20
> Behalf Of Pierre-Yves Delens
> Sent: Tuesday, March 22, 2005 12:17 AM
> To: cheetahtemplate-discuss@...; webware-discuss
> Subject: [Webware-discuss] Webware-Cheetah for XUL
>=20
>=20
> Bonjour,
>=20
> we are building an app on XUL (Mozilla) for Firefox browser.
>=20
> The simple static code (see below) tested in XUL is working=20
> well, but not when processed via Cheetah compiling.
>=20
> What should we do ?
>=20
> Prior to test via Cheetah, we tested that a .xul template=20
> renamed in .XHTML was opening correctly in firefox : no=20
> problem. We noted also that our .tmpl template with plain xul=20
> code inside was opening correctly also.
>=20
> The bug comes out whren trying to call the .py generated=20
> script: displaying does happen, but the XUL button is ill=20
> displaied, which leads to suspect that the browser received=20
> the file as HTML.
>=20
> We observed that the generated code in .py is EXACTLY the=20
> same as int the original XUL or tmpl file.
>=20
> So I guess there is a problem of MIME type, or something like that.
>=20
> Can someone help ?
>=20
> Thanks on forward
>=20
> ___________________________________________________
> P-Y Delens, ing-arch. manager
> LIENTERFACES - PY Delens, sprl
> mail : py.delens@...
> web : http://www.lienterfaces.be=20
> ___________________________________________________
>=20
> <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?>
> <!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"=20
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -->=20
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"=20
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
>=20
> <window xmlns:html=3D"http://www.w3.org/1999/xhtml"
> =
xmlns=3D"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
> id=3D"xfly-main" onload=3D"startUp()" onunload=3D"shutdown()"=20
> onclose=3D"onClose()"> <description> des accentu=E9s=20
> </description> <box align=3D"center"> <button label=3D"hello=20
> xFly" onclick=3D"alert('Hello World');"/>
>=20
> </box>
> </window>
>=20
>=20
>=20
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from=20
> real users. Discover which products truly live up to the=20
> hype. Start reading now.=20
> http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dick
> _______________________________________________
> Webware-discuss mailing list Webware-discuss@...
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
>=20
>=20
|