[CPS-devel] debugging an profile import

Georges Racinet gracinet at nuxeo.com
Tue Mar 21 11:39:32 CET 2006


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




More information about the cps-devel mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.