[Zope3-dev] annoying exception - amateur mistake
Adam Groszer
adamg at fw.hu
Tue Mar 7 10:02:24 EST 2006
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:adamg at fw.hu
--
Quote of the day:
Every evil comes to us on wings and goes away limping.
- French Proverb
More information about the Zope3-dev
mailing list