[Zope3-dev] Re: CVS: Zope3/src/zope/app/pagetemplate - meta.zcml:1.1 metaconfigure.py:1.1
talesapi.py:1.1 configure.zcml:1.3
Christian Heimes
heimes@faho.rwth-aachen.de
Tue, 15 Apr 2003 22:40:50 +0200
Matt Hamilton wrote:
> Update of /cvs-repository/Zope3/src/zope/app/pagetemplate
> In directory cvs.zope.org:/tmp/cvs-serv2345/src/zope/app/pagetemplate
>
> Modified Files:
> configure.zcml Added Files:
> meta.zcml metaconfigure.py talesapi.py Log Message:
> Extended TALES namespace functionality to Zope3. You can now use
TALES expressions such as foo/zope:title within ZPT.
>
> Currently only a single function 'title' has been created within
> talesapi.py, now we need to work out which functionality we want to
expose Probably look through the ZQR and places like that.
> === Zope3/src/zope/app/pagetemplate/configure.zcml 1.2 => 1.3 ===
> --- Zope3/src/zope/app/pagetemplate/configure.zcml:1.2 Wed Mar 12
05:11:13 2003
> +++ Zope3/src/zope/app/pagetemplate/configure.zcml Tue Apr 15
14:52:57 2003
> @@ -1,7 +1,19 @@
> -<zopeConfigure xmlns='http://namespaces.zope.org/zope'>
> +<zopeConfigure xmlns='http://namespaces.zope.org/zope'
> + xmlns:tales='http://namespaces.zope.org/tales'>
>
> <content class=".viewpagetemplatefile.BoundPageTemplate">
> <allow attributes="__call__ __str__ __name__" />
> </content>
> +
> + <adapter
> + for="*"
> + provides="zope.app.interfaces.talesapi.IZopeTalesAPI"
^^^^^^^^ MISSING in action
> + factory=".talesapi.ZopeTalesAPI" + />
> +
> + <tales:namespace + prefix="zope"
> + interface="zope.app.interfaces.talesapi.IZopeTalesAPI"
> + />
>
> </zopeConfigure>
ZopeXMLConfigurationError:
File
"/home/heimes/dev/zope3/trunk/Zope3/src/zope/app/configure.zcml", line
104, column 2
ZopeXMLConfigurationError:
File
"/home/heimes/dev/zope3/trunk/Zope3/src/zope/app/pagetemplate/configure.zcml",
line 8, column 2
ImportError:
No module named talesapi
make: *** [run] Error 1
You forgot to checkin the file zope.app.interfaces.talesapi. I provided
a quick hack by adding this file to keep zope running.
zope.app.interfaces.talesapi.py:
#this is a temporally fix
from zope.interface import Interface
class IZopeTalesAPI(Interface):
pass
Christian