Re: howto create a Python script in the root by portal_setup
Joachim Schmitz <[email protected]>
| Newsgroups | gmane.comp.web.zope.cps.devel |
|---|---|
| Message-ID | <[email protected]> |
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 put .cpsskins_theme in skins, and deleted it from the root, that
didn't work.
> - 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)
>
i put in roots.xml
<object name=".cpsskins_theme" type_name="Script (Python)"
filename=".cpsskins_theme.py" />
that gives a Workflowexeption:
WorkflowException: No initial_transition to create .cpsskins_theme
(type_name=) in srp
I put in roots.xml
<script script_id=".cpsskins_theme"
type="Script (Python)"
filename="cpsskins_theme.py"
/>
the import finishes without error, but no .cpsskins_script is created.
what is wrong.
--
Gruß Joachim
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel