Georges Racinet schrieb:
On Sep 18, 2006, at 1:26 PM, Joachim Schmitz wrote:
I want to create the pythonscript .cpsskins_theme, which sets the
theme for display, by importing the profile.
I tried :
<script script_id=".cpsskins_theme"
type="Script (Python)"
filename="roots/.cpsskins_theme.py"
/>
in roots.xml, the import finishes without error, but the script is not
created.
The XMLRootsAdapted treats <object> tags only (see below). It's there to
initialize first level folder documents (e.g., sections, workspaces,
members)
That being said:
- if you want to use a site wide .cpsskins_theme script, just put it in
the skins (the skins are always looked up at the end of acquisition,
hence it's still overridable
I tried that i.e. just putting .cpsskins_theme into the skins-folder.
That had no effect.
- if you want to put one in a particular root, use the <object> tag (as
in most of these xml files) with the meta_type of scripts (Python)
If I put
<object name=".cpsskins_theme"
type="Script (Python)"
/>
into roots.xml I get:
Traceback (innermost last):
Module ZPublisher.Publish, line 115, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 41, in call_object
Module Products.CPSCore.setuptool, line 327, in manage_importProfile
Module Products.CPSCore.setuptool, line 260, in importProfile
Module Products.GenericSetup.tool, line 248, in runAllImportSteps
- __traceback_info__: profile-WAeUP_SRP:default
Module Products.GenericSetup.tool, line 716, in _doRunImportStep
- __traceback_info__: various
Module Products.CPSDefault.exportimport, line 120, in importVarious
Module Products.CPSDefault.exportimport, line 71, in importVarious
Module Products.CPSDefault.exportimport, line 102, in setupRoots
Module Products.GenericSetup.utils, line 510, in _importBody
Module Products.CPSDefault.exportimport, line 143, in _importNode
Module Products.CPSDefault.exportimport, line 161, in _initRoots
Module Products.CPSWorkflow.workflowtool, line 304, in invokeFactoryFor
WorkflowException: No initial_transition to create .cpsskins_theme
(type_name=) in srp
--
Mit freundlichen Grüßen Joachim Schmitz
......................................................................
AixtraWare eK ..Joachim Schmitz ..www.aixtraware.de ..t: +49-2464-8851
Hüsgenstr. 33a .....d-52457 Aldenhoven .............f: +49-2464-905163
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel