Hi there,

I had a nicely working app with

interfaces.py::
class IVersion(IVersionable, INonVersionedData, IPhysicallyLocatable):
...
        orig_file_ref = Attribute(u"original file")
        pdf_file_ref = Attribute(u"PDF file")
        
configure.zcml::
  <content class=".version.Version">
...
    <require permission="dkr.AddContent"
                         set_attributes="orig_file_ref pdf_file_ref"
             set_schema=".interfaces.IVersion" />
  </content>

I changed the intefaces.py into::
class IVersion(IVersionable, INonVersionedData, IPhysicallyLocatable):
...
        orig_file_ref = MyBytes(
                title=u"original file",
                description=u"original file",
                default='',
                missing_value='',
                required=False)
        pdf_file_ref = MyBytes(
                title=u"PDF file",
                description=u"PDF file",
                default='',
                missing_value='',
                required=False)

Of course I forgot to modify the zcml (remove the set_attributes=),
so I got the following exception which is not quite useful:
                
Traceback (most recent call last):
  File "\bin\runzope", line 48, in ?
    run()
  File "\bin\runzope", line 44, in run
    main(["-C", CONFIG_FILE] + sys.argv[1:])
  File "Y:\zope\svn_zope3\src\zope\app\twisted\main.py", line 74, in main
    service = setup(load_options(args))
  File "Y:\zope\svn_zope3\src\zope\app\twisted\main.py", line 139, in setup
    zope.app.appsetup.config(options.site_definition, features=features)
  File "Y:\zope\svn_zope3\src\zope\app\appsetup\appsetup.py", line 110, in 
config
    context = xmlconfig.file(file, context=context, execute=execute)
  File "Y:\zope\svn_zope3\src\zope\configuration\xmlconfig.py", line 556, in 
file
    context.execute_actions()
  File "Y:\zope\svn_zope3\src\zope\configuration\config.py", line 606, in 
execute_actions
    for action in resolveConflicts(self.actions):
  File "Y:\zope\svn_zope3\src\zope\configuration\config.py", line 1511, in 
resolveConflicts
    raise ConfigurationConflictError(conflicts)
zope.configuration.config.ConfigurationConflictError  

Any arguments? Or just put it straight into the collector?

-- 
Best regards,
 Adam                          mailto:[EMAIL PROTECTED]
--
Quote of the day:
Every evil comes to us on wings and goes away limping.
- French Proverb 

_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to