[Product-Developers] TypeError on plone.transformchain.zpublisher when using <theme /> directive with xdv/diazo

Noe Misael Nieto Arroyo noe at iservices.com.mx
Tue Feb 8 19:37:42 UTC 2011


Hi Ruben again.

In fact, I was NOT using xdv 0.4b3. Running 0.4b3 seems to fix it.


Thanks.
---
Noe

2011/2/8 Noe Misael Nieto Arroyo <noe at iservices.com.mx>

> Hi Ruben,
>
> It's already using xdv = 0.4b3 :/
>
> ---
> Noe
>
> 2011/2/5 Ruben Hidalgo <ruben.rhidalgo at gmail.com>
>
> [versions]
>> xdv = 0.4b3
>>
>>
>>
>> 2011/2/5 Noe Misael Nieto Arroyo <noe at iservices.com.mx>
>>
>>> I refrain my words. It makes no difference.
>>>
>>> I get the traceback plus Plone content is passed through without theming.
>>>
>>>
>>> --
>>> Noe
>>>
>>> 2011/2/4 Noe Misael Nieto Arroyo <noe at iservices.com.mx>
>>>
>>>> It works now,
>>>>
>>>> I added a <theme/> tag on top of my rules.xml stating my default theme:
>>>>
>>>> <theme href="azul/typography.html"/>
>>>>
>>>> --
>>>> Noe
>>>>
>>>> 2011/2/4 Noe Misael Nieto Arroyo <noe at iservices.com.mx>
>>>>
>>>> Hi All,
>>>>>
>>>>> I want to apply a different style when users visit the contact-info
>>>>> page. but when i do this:
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <rules
>>>>>     xmlns="http://namespaces.plone.org/xdv"
>>>>>     xmlns:css="http://namespaces.plone.org/xdv+css"
>>>>>     xmlns:xi="http://www.w3.org/2001/XInclude"
>>>>>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>>>>>     >
>>>>>
>>>>>
>>>>>
>>>>>     <xsl:variable name="contact-info"
>>>>> css:select="body.template-contact-info"/>
>>>>>
>>>>>     <rules if-content="$contact-info">
>>>>>         <theme href="azul/contact.html"/>
>>>>>         <xi:include href="rules-contact-info.xml" />
>>>>>     </rules>
>>>>>
>>>>>
>>>>>
>>>>> </rules>
>>>>>
>>>>> But i get this error:
>>>>>
>>>>> 2011-02-04 16:36:48 ERROR Zope.SiteErrorLog 1296859008.440.263186848535
>>>>> http://localhost:9012/Plone/contact-info
>>>>> Traceback (innermost last):
>>>>>   Module ZPublisher.Publish, line 132, in publish
>>>>>   Module zope.event, line 23, in notify
>>>>>   Module zope.component.event, line 26, in dispatch
>>>>>   Module zope.component._api, line 138, in subscribers
>>>>>   Module zope.component.registry, line 323, in subscribers
>>>>>   Module zope.interface.adapter, line 575, in subscribers
>>>>>   Module plone.transformchain.zpublisher, line 93, in
>>>>> applyTransformOnSuccess
>>>>> TypeError
>>>>>
>>>>>
>>>>> * The file azul/contact.html is accesible from the static directory. I
>>>>> also tryied using python://iservicestheme.ambitious/static/azul/contact.html
>>>>> as the @href parameter.
>>>>>
>>>>> Am I doing something I should not be doing to rules.xml?
>>>>>
>>>>> ---
>>>>> Noe
>>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Product-Developers mailing list
>>> Product-Developers at lists.plone.org
>>> https://lists.plone.org/mailman/listinfo/product-developers
>>>
>>>
>>
>>
>> --
>> Rubén Hidalgo Soto
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20110208/944eeca9/attachment-0002.html>


More information about the Product-Developers mailing list