[Erp5-users] Creating Object in another module

Bartek Gorny bartek at gorny.edu.pl
Mon Dec 8 11:41:12 CET 2008


2008/12/7 chhipa taak <ch.taak at gmail.com>:
> Hi,
> Is it possible to create objects in another module through script
> executing in some other module?

I think you should read the Zope Book ;) It doesn't matter where the
script is executed; after all, scripts are not in modules, but in skin
folders. Say you have your script in portal_skins/custom, you run in
in context of a module (/erp5/organisation_module/MyScript), and you
can still reach the right context by its full path or by acquisition
and execute a method in it, like:

context.person_module.newContent(...)

(unless, of course, I misunderstood your question...)

Bartek

> Taak
> _______________________________________________
> Erp5-users mailing list
> Erp5-users at erp5.org
> http://mail.nexedi.com/mailman/listinfo/erp5-users
>



-- 
"Software is largely a service industry operating under the persistent
but unfounded delusion that it is a manufacturing industry."
Eric S.Raymond, "The Magic Cauldron"



More information about the Erp5-users mailing list