On Wed, Feb 8, 2012 at 11:55 AM, Christoph Zwerschke <[email protected]> wrote:

> Your last patch solves the op's problem, but now it levers out both the
> config settings and the auto-determination which is even worse.
>

Do you mean the last commit on development branch?

It is not strictly related to this issue, the target was to provide a
way to enforce the doctype removal when manually calling the
tg.render.render method.
This is because tg.render.render might often be used to render
partials and you would end having the doctype in each partial.
Setting the DOCTYPE to None meant "use automatic detection" and there
was no way to tell to genshi not to put it.

Now it should be possible to use all the three options:
 - Do not pass doctype to tg.render.render mean automatic detection
 - Set it to None to enforce no doctype
 - Set it to any string to force it if available for that content_type

It still doesn't solve in any way the issue of alex as there is still
no way to enforce a doctype from the expose decorator or from the
controller method. Adding text/xml to doctypes_for_content_type with
None provides a fix for XML target output, but we should think if we
want a more general way or if it is enough as genshi is actually able
to render only a known set of documents when used in xml mode.

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to