[Zope] Strange CSS inclusion BUG
peter be
peter@grenna.net
Wed, 20 Sep 2000 03:30:56 +0200
Try these alternatives:
no...
<dtml-if local_css>
but...
<dtml-if "_.has_key(local_css)">
or
no...
<dtml-var "local_css.absolute_url()">
but...
<dtml-var "absolute_url(local_css)">/loca_css
Could be worth a trial!
Den tis, 19 sep 2000 skrev du:
> To use CSS file, I put the following line in the head of HTML files:
>
> <dtml-if local_css>
> <link href="<dtml-var "local_css.absolute_url()">"
> rel="stylesheet" type="text/css">
> </dtml-if>
>
> Where "local_css" is a DTML document containing CSS style sheet.
> But the DTML generates the following error message:
>
> Error Type: AttributeError
> Error Value: 'string' object has no attribute 'absolute_url'
>
> If I strip the <dtml-if protection, the code works OK.
> Why is the DTML document local_css changed into a string
> after <dtml-if>?
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )