[Checkins] SVN: zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/ savepoint
Andreas Jung
andreas at andreas-jung.com
Sun Oct 19 05:04:50 EDT 2008
Log message for revision 92371:
savepoint
Changed:
U zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/demo_app.py
D zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/resources/business_card_template.html
A zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/resources/business_card_template.pt
A zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/resources/zopyx1.png
A zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/zopyx1.png
-=-
Modified: zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/demo_app.py
===================================================================
--- zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/demo_app.py 2008-10-19 08:53:55 UTC (rev 92370)
+++ zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/demo_app.py 2008-10-19 09:04:49 UTC (rev 92371)
@@ -21,8 +21,6 @@
class TestContent(object):
implements(ITestContent)
-html = file(os.path.join(os.path.dirname(__file__), 'demo.html')).read()
-
# register resources directory for demo purposes
from zopyx.smartprintng.core import resources
@@ -32,17 +30,15 @@
from zopyx.convert2.registry import availableConverters
- for c in availableConverters():
+ for fullname in ('Andreas Jung', 'Heinz Becker', ' Hilde Becker'):
- print 'Converter: %s' % c
context = TestContent()
result = convert(context=context,
- html=html,
- aggregator_name='foo',
- styles=['fop_styles.css', 'demo_styles.css'],
- transformations=['zopyx.smartprintng.imageremover', 'zopyx.smartprintng.pagebreaker'],
+ html='',
+ styles=['business_card.css'],
resource_name='demo',
- converter=c,
+ converter='pdf-prince',
+ template_options=dict(fullname=fullname),
)
print 'Generated:', os.path.abspath(result)
Deleted: zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/resources/business_card_template.html
===================================================================
--- zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/resources/business_card_template.html 2008-10-19 08:53:55 UTC (rev 92370)
+++ zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/resources/business_card_template.html 2008-10-19 09:04:49 UTC (rev 92371)
@@ -1,45 +0,0 @@
-<html>
- <head>
- <tal:loop repeat="css options/stylesheets">
- <style type="text/css"
- tal:content="structure options/stylesheets/?css"
- />
- </tal:loop>
- </head>
- <body>
- <div id="logo">
- <img src="zopyx1.png" />
- </div>
- <div id="desc">
- <ul>
- <li>
- Python, Zope & Plone
- </li>
- <li>
- Software-Entwicklung
- </li>
- <li>
- Beratung
- <li>
- E-Publishing, Web-to-Print
- </li>
- </ul>
- </div>
-
- <div id="address">
- <span tal:replace="options/fullname | nothing">Andreas Jung</span>
- <br/>
- Charlottenstr. 37/1
- <br/>
- D-72070 Tübingen
- <br/>
- Tel. +49-(0)7071-793257
- <br/>
- Fax. +49-(0)7071-7936840
- <br/>
- E-Mail: info at zopyx.com
- <br/>
- Web: www.zopyx.com
- </div>
- </body>
-</html>
Copied: zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/resources/business_card_template.pt (from rev 92370, zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/resources/business_card_template.html)
===================================================================
--- zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/resources/business_card_template.pt (rev 0)
+++ zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/resources/business_card_template.pt 2008-10-19 09:04:49 UTC (rev 92371)
@@ -0,0 +1,45 @@
+<html>
+ <head>
+ <tal:loop repeat="css options/stylesheets">
+ <style type="text/css"
+ tal:content="structure options/stylesheets/?css"
+ />
+ </tal:loop>
+ </head>
+ <body>
+ <div id="logo">
+ <img src="http://zopyx.com/test_resources/zopyx1.png" />
+ </div>
+ <div id="desc">
+ <ul>
+ <li>
+ Python, Zope & Plone
+ </li>
+ <li>
+ Software-Entwicklung
+ </li>
+ <li>
+ Beratung
+ <li>
+ E-Publishing, Web-to-Print
+ </li>
+ </ul>
+ </div>
+
+ <div id="address">
+ <span tal:replace="options/fullname | nothing">Andreas Jung</span>
+ <br/>
+ Charlottenstr. 37/1
+ <br/>
+ D-72070 Tübingen
+ <br/>
+ Tel. +49-(0)7071-793257
+ <br/>
+ Fax. +49-(0)7071-7936840
+ <br/>
+ E-Mail: info at zopyx.com
+ <br/>
+ Web: www.zopyx.com
+ </div>
+ </body>
+</html>
Added: zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/resources/zopyx1.png
===================================================================
(Binary files differ)
Property changes on: zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/resources/zopyx1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/zopyx1.png
===================================================================
(Binary files differ)
Property changes on: zopyx.smartprintng.core/trunk/zopyx/smartprintng/core/demo2/zopyx1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
More information about the Checkins
mailing list