From: Pieter C. <Pieter.Claerhout@Creo.com> - 2004-01-02 11:44:06
|
You might be able to get it working with SimpleTAL. SimpleTAL is a stand alone Python implementation of the TAL, TALES and = METAL specifications used in Zope to power HTML and XML templates. http://www.owlfish.com/software/simpleTAL/ I gave it a quick go on Jython 2.1 and it looks like it's working fine. Cheers, pieter Creo pieter claerhout | product support prinergy | tel: +32 2 352 2511 | pie...@cr... | www.creo.com IMAGINE CREATE BELIEVE(tm) -----Original Message----- From: liu...@ho... [mailto:liu...@ho...]=20 Sent: 31 December 2003 17:39 To: jyt...@li... Subject: [Jython-users] how to implement zope page template with java zope page template(zpt) is an excellent protocol for web designers. it stuck me at first glance,but java is my primary language,so java=20 implemetion of zpt is required. when I start searching,only javazpt found(javazpt.sourceforge.net). it's developed too slow and under GPL. I prefer a stable one,...,more = and=20 more expected. ...but now,I had to start from jython,for zope is open-source,in = public=20 domain,and ZOPE3 is in CVS already. what i should do is using jython = to=20 stick zope's tal,tales,context module with java servlet. my question is: my jython version is 21,and zope3 like python2.3. if = jython=20 import zope.pagetemplate.pagetemplate,error occurs. ---------------------------------------------------------- >>> from zope.pagetemplate import pagetemplate as pt Traceback (innermost last): File "<console>", line 1, in ? File = "D:\Python23.3\Lib\site-packages\zope\pagetemplate\pagetemplate.py",=20 line 23, in ? File "D:\Python23.3\Lib\site-packages\zope\tal\talparser.py", line = 18, in=20 ? File "D:\Python23.3\Lib\site-packages\zope\tal\taldefs.py", line 19, = in ? File "D:\Python23.3\Lib\site-packages\zope\tal\interfaces.py", line = 16,=20 in ? File "D:\Python23.3\Lib\site-packages\zope\interface\__init__.py", = line=20 73, in ? File "D:\Python23.3\Lib\site-packages\zope\interface\interface.py", = line=20 269 yield interface ^ SyntaxError: invalid syntax -------------------------------------------------------- it seems that jython can't support python's new version, what can I do? Must I change the design from java--jython--python to java--C--python? _________________________________________________________________ =CF=ED=D3=C3=CA=C0=BD=E7=C9=CF=D7=EE=B4=F3=B5=C4=B5=E7=D7=D3=D3=CA=BC=FE= =CF=B5=CD=B3=A1=AA MSN Hotmail=A1=A3 http://www.hotmail.com =20 ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users |