On Mar 21, 2006, at 11:25 AM, Joachim Schmitz wrote: > this now leads to the real question: why is "before_script" > invalid ? I looked at the CPSDefault-profiles and the > definition.xml also contain before_script. Also the WAeUP-profile > was created by creating a snapshot and copying the xml-files to > WAeUP/profiles/default Code extract around where the error is raised (DCWorkflow/ exportimport.py): > def _getNodeAttribute( node, attr_name, encoding=None ): > > """ Extract a string-valued attribute from node. > """ > value = _queryNodeAttribute( node, attr_name, _marker, encoding ) > > if value is _marker: > raise ValueError, 'Invalid attribute: %s' % attr_name > > return value and also > def _queryNodeAttribute( node, attr_name, default, encoding=None ): > > """ Extract a string-valued attribute from node. > > o Return 'default' if the attribute is not present. > """ So I think it's a fair bet that it's simply missing (assuming there isn't a hidden bug). That's why I said that the error could be more explicit. Now if you did it with a snapshot and it's really missing, this is problematic and should be qualified as an export bug. Grüße --------- Georges Racinet Nuxeo SAS gracinet at nuxeo.com http://nuxeo.com Tel: +33 (0) 1 40 33 71 73
Hosting: Nuxeo: Zope service provider