11 Mar
2003
11 Mar
'03
7:51 p.m.
I need to create a LocalContent object from within a Python script, and I don't know how to do it. I think the function to be called is manage_addLocalContent, and I try it as if I were adding a file (context.manage_addLocalContent(id, title, languages)) but it says the function does not exist.
Take a look through the source to make sure of the function name and parameters. Located under lib/python/Products/ Also make sure that 'context' is an ObjectManager, or it won't work. --jcc