Annotation of kupuMPIWG/plone/kupu_plone_layer/kupulibraries.xml.pt, revision 1.1

1.1     ! dwinter     1: <tal:block define="charset here/portal_properties/site_properties/default_charset|here/portal_properties/default_charset|string:utf-8;
        !             2:         content_type python:request.RESPONSE.setHeader('Content-Type', 'text/xml;;charset=%s' % charset);"
        !             3:  replace='structure string:&lt;?xml version="1.0" encoding="${charset}" ?&gt;'>
        !             4: <?xml version="1.0"?>
        !             5: </tal:block>
        !             6: <libraries
        !             7:     xmlns:tal="http://xml.zope.org/namespaces/tal"
        !             8:     >
        !             9: 
        !            10: <tal:with define="
        !            11:     getToolByName nocall:modules/Products/CMFCore/utils/getToolByName;
        !            12:     kupu_tool     python:getToolByName(context, 'kupu_library_tool');
        !            13:     libraries     python:kupu_tool.getLibraries(context);
        !            14:     default_library python:kupu_tool.zmi_get_default_library();
        !            15:     resource_type request/resource_type | string:mediaobject;
        !            16:     ">
        !            17: 
        !            18:   <library tal:repeat="library libraries"
        !            19:            tal:attributes="id python:library['id'];selected python:library['id']==default_library;">
        !            20:     <uri tal:content="library/uri">URI</uri>
        !            21:     <title tal:content="library/title">Title</title>
        !            22:     <src tal:content="string:${library/src}?resource_type=${resource_type}">Source</src>
        !            23:     <icon tal:content="library/icon">Icon</icon>
        !            24:   </library>
        !            25: 
        !            26: </tal:with>
        !            27: 
        !            28: </libraries>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>