[Zope3-dev] What's wrong with my configure.zcml?
Florian Lindner
mailinglists at xgm.de
Sun Jun 4 06:24:45 EDT 2006
Hello,
sorry for the post to the dev list but on the users list no one was able to
help me and I got no idea what I can try....
My Zope3 (most recent SVN version gives that error on startup):
[...]
File "/home/florian/Zope3/src/zope/schema/_bootstrapfields.py", line 263, in
_validate
super(MinMaxLen, self)._validate(value)
File "/home/florian/Zope3/src/zope/schema/_bootstrapfields.py", line 165, in
_validate
raise WrongType(value, self._type)
zope.configuration.xmlconfig.ZopeXMLConfigurationError:
File "/home/florian/Desktop/zope/etc/site.zcml", line 7.2-7.55
ZopeXMLConfigurationError:
File "/home/florian/Desktop/zope/etc/package-includes/xgm-configure.zcml",
line 1.0-1.25
ZopeXMLConfigurationError:
File "/home/florian/Desktop/zope/lib/python/xgm/configure.zcml", line
2.4-2.34
ZopeXMLConfigurationError:
File "/home/florian/Desktop/zope/lib/python/xgm/browser/configure.zcml", line
2.4-2.31
ZopeXMLConfigurationError:
File "/home/florian/Desktop/zope/lib/python/xgm/browser/skin/configure.zcml",
line 3.4-7.6
ConfigurationError: ('Invalid value for', 'layer', "('',
<type 'unicode'>)")
I have attached xgm/browser/skin/configure.zcml. It is not containing any
unicode nor does interface.py (in which is the layer declared).
florian at horus ~/Desktop/zope/lib/python $ file xgm/browser/skin/configure.zcml
xgm/browser/skin/configure.zcml: ASCII text
florian at horus ~/Desktop/zope/lib/python $ file xgm/interfaces.py
xgm/interfaces.py: ASCII Java program text, with CRLF line terminators
(don't know why file thinks it's java...)
Any one got any idea what I can do?
Thanks,
Florian
-------------- next part --------------
<configure xmlns="http://namespaces.zope.org/browser">
<resourceDirectory
directory="files"
name="files"
layer="xgm.interfaces.IXGMSkin"
/>
<page
for="*"
name="standard_macros"
permission="zope.Public"
class=".views.StandardMacros"
layer="xgm.interfaces.IXGMSkin"
allowed_interface="zope.interface.common.mapping.IItemMapping"
/>
<page
for="*"
name="skin_macros"
permission="zope.Public"
layer="xgm.interfaces.IXGMSkin"
template="template.pt"
/>
<pages
for="xgm.interfaces.IXGM"
layer="xgm.interfaces.IXGMSkin"
permission="zope.Public"
class=".views.ViewClass" >
<page
name="index.html"
template="index.pt" />
<page
name="search.html"
template="search.pt" />
<page
name="result.html"
template="result.pt" />
<page
name="contact.html"
template="contact.pt" />
</pages>
<page
name="sendNew.html"
class=".views.sendNew"
for="xgm.interfaces.IXGM"
layer="xgm.interfaces.IXGMSkin"
permission="zope.Public"
/>
<page
name="test.html"
class=".views.Test"
for="*"
layer="xgm.interfaces.IXGMSkin"
permission="zope.Public"
/>
</configure>
More information about the Zope3-dev
mailing list