|
Last change
on this file since 311 was
1,
checked in by myroslav, 21 years ago
|
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
|
File size:
741 bytes
|
| Line | |
|---|
| 1 | <?xml version="1.0" encoding="utf-8"?> |
|---|
| 2 | <rss version="2.0" |
|---|
| 3 | xmlns:tal="http://xml.zope.org/namespaces/tal" |
|---|
| 4 | xmlns:metal="http://xml.zope.org/namespaces/metal" > |
|---|
| 5 | <metal:block define-macro="item"> |
|---|
| 6 | <!-- todo: check for apropriate get size of file method (expression res/getFile can kill zope) --> |
|---|
| 7 | <tal:define define="file res/getFile; |
|---|
| 8 | item_size file/get_size | python: file and len(file) or 0; |
|---|
| 9 | content_type python:here.getFileFieldContentType(res); |
|---|
| 10 | "> |
|---|
| 11 | <enclosure |
|---|
| 12 | tal:attributes="type content_type; |
|---|
| 13 | url item_path; |
|---|
| 14 | length item_size"/> |
|---|
| 15 | </tal:define> |
|---|
| 16 | </metal:block> |
|---|
| 17 | </rss> |
|---|
Note: See
TracBrowser
for help on using the repository browser.