[Product-Developers] Python script differ n ZMI
Sergey V.
sergey.volobuev at gmail.com
Mon Oct 13 06:33:34 UTC 2008
monks wrote:
>
> hi
> first point, my Product is placed above my /custom folder. what can i do
> now ? why is it necessary to place /cutom above /My_product
I'm talking about Properties tab of portal_skins object - that's where skin
layer order defined for a particular skin. Check that custom is on top and
edit the list if not.
monks wrote:
>
> third point, im trying to call another Python script from this one with
> some param like :-
>
> return context.test2(st=tmp_astat, id=410)
>
> In ZMI, when im customizing my script and add this line for calling
> test2 script, its not working.
Make sure test2 returns something.
You may also want to check your error_log (removing Unauthorized and
NotFound from the list of ignoring exceptions may be helpful).
Sergey V. wrote:
>
> monks wrote:
>
>> Actually, i'm trying to Customize my Python Script from
>> /portal_skins/My_product/product.py to /custom dir.
>> After customizing, when open my form, it doesn't reflect any changes im
>> doing using ZMI, not even a print command.
>> I don't know reason behind this, as it's reading code from Python script
>> from my /Products dir, everytime i execute form.
>>
>>
>
> - Check layer order in portal_skins - custom must be above My_product
> - check the address your form is posting to - it should not include
> portal_skins/My_product
> - make sure your script returns anything - print statements in
> PythonScripts
> actually don't output anything unless you do 'return printed'. So try to
> start with
>
> return "Hello, World!"
>
_______________________________________________
Product-Developers mailing list
Product-Developers at lists.plone.org
http://lists.plone.org/mailman/listinfo/product-developers
--
View this message in context: http://n2.nabble.com/Python-script-differ-n-ZMI-tp1324556p1324659.html
Sent from the Product Developers mailing list archive at Nabble.com.
More information about the Product-Developers
mailing list