Am Mittwoch, 31. Mai 2006 00:26 schrieb Jonathan:
> ----- Original Message -----
> From: "Florian Lindner" <[EMAIL PROTECTED]>
> To: <zope3-users@zope.org>
> Sent: Tuesday, May 30, 2006 5:47 PM
> Subject: [Zope3-Users] Again unicode problem (in configure.zcml)
>
> > Hello,
> > Zope gives this message on startup:
> >
> >  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'>)")
> >
> >
> > The directive Zope is complaining about:
> >
> >    <resourceDirectory
> >        directory="files"
> >        name="files"
> >        layer="xgm.interfaces.IXGMSkin"
> >    />
> >
> >
> > but when I remove this one, it complains about the next one.
>
> Just a guess, but have a look at the lines before this one:
> >    <resourceDirectory
>
> If it is still complaining when you remove that section, then something is
> pooched earlier on.

<configure xmlns="http://namespaces.zope.org/browser";>

    <resourceDirectory
        directory="files"
        name="files"
        layer="xgm.interfaces.IXGMSkin"
    />


This is everything.... I've also looked into it with a hex editor and noticed 
nothing special.

Since the file is very file I dare to simply attach it. If you want, you can 
have a look at it.

Thanks,

Florian
<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>
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to