yes, that ordering is OK.
im trying to call test from my python script inside /Products like :
 self.REQUEST.RESPONSE.test2(st=tmp_astat, id=410),
but its giving error " AttributeError: ZServerHTTPResponse instance has no attribute 'test2' ". i know , error is becoz, its not finding 'test2' inside /Products, as 'test2' is in /custom. But now if i customize my script to /custom folder, and change calling method with sth like : return context.test2(st=tmp_astat, id=410), its not picking this statm. Its still reading "self.REQUEST.RESPONSE.test2(st=tmp_astat, id=410)" from /Products dir. so, I want to know, whether my Python script (in /Products) can read 'test2' (in ZMI /cusom) in anyway or not with parameters, and if yes, how ?

thanks

Regards,
Mayank Mathur




Sergey V. wrote:

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
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers




_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to