*** JaRoel|4D has joined #zope | 00:09 | |
*** MrTango has quit IRC | 01:11 | |
*** m8 has quit IRC | 01:15 | |
*** benji has quit IRC | 01:34 | |
*** maurits has joined #zope | 02:01 | |
*** kosh has quit IRC | 02:24 | |
*** tiwula has quit IRC | 03:00 | |
*** maurits has quit IRC | 03:26 | |
*** tisto has joined #zope | 08:11 | |
*** alecm has quit IRC | 08:26 | |
*** alecm has joined #zope | 08:29 | |
*** alecm has quit IRC | 08:38 | |
*** alecm has joined #zope | 08:59 | |
*** alecm has joined #zope | 08:59 | |
*** projekt01 has joined #zope | 09:04 | |
*** yvl has joined #zope | 09:21 | |
*** JaRoel|4D has quit IRC | 09:32 | |
*** JaRoel|4D has joined #zope | 10:14 | |
*** kosh has joined #zope | 10:22 | |
*** giacomos has joined #zope | 10:30 | |
*** sm has quit IRC | 10:42 | |
*** sm has joined #zope | 10:43 | |
*** MrTango has joined #zope | 11:07 | |
*** PeterZ has joined #zope | 11:22 | |
*** PeterZ has left #zope | 11:22 | |
*** alecm has quit IRC | 11:37 | |
*** sm has quit IRC | 11:37 | |
*** sm has joined #zope | 11:38 | |
*** alecm has joined #zope | 11:38 | |
*** yvl has quit IRC | 12:28 | |
*** ztane has quit IRC | 13:30 | |
*** moo-_- has quit IRC | 13:30 | |
*** benji has joined #zope | 14:00 | |
*** yvl has joined #zope | 14:20 | |
*** maurits has joined #zope | 14:37 | |
*** projekt01 has quit IRC | 15:37 | |
*** sackrebutz has joined #zope | 15:45 | |
sackrebutz | Hey there - what is the correct API call to add a “Script (Python)” Object to my ZODB from within such a script? | 15:46 |
---|---|---|
mgedmin | the http requests map rather neatly into the api | 15:47 |
mgedmin | use your browser's dev tools to see what form's being submitted where with what arguments | 15:47 |
mgedmin | then convert that into an api call | 15:48 |
mgedmin | it'll end up something like container.manage_add(...) | 15:48 |
sackrebutz | mgedmin thanks - I already tried that, and my dev tool says it’d be calling “manage_addPythonScript” - however, there is no such method within my `container` class? | 15:49 |
mgedmin | why do you say there isn't? | 15:50 |
sackrebutz | I thought it’d maybe be manage_addProduct but I can’t find information about how to use it | 15:50 |
mgedmin | manage_addProduct() adds a product | 15:50 |
mgedmin | you want to add a Python script | 15:50 |
sackrebutz | because I get an AttribuetError when I try, and dir(container) does not list it | 15:50 |
mgedmin | what is container? | 15:51 |
sackrebutz | A Folder in my case. | 15:51 |
mgedmin | hmm | 15:51 |
mgedmin | oh well, luckily I don't work with zope 2 any more | 15:52 |
mgedmin | I wish you the best of luck | 15:52 |
sackrebutz | i do neither. but my customer does .. | 15:52 |
sackrebutz | thanks for your help anyway | 15:52 |
sackrebutz | Hah! I found out: container.manage_addProduct['PythonScripts'].manage_addPythonScript(“FOO”) | 15:54 |
mgedmin | whoa, wow | 15:55 |
*** sackrebutz has quit IRC | 16:07 | |
*** avoinea has quit IRC | 16:43 | |
*** avoinea has joined #zope | 16:43 | |
*** sm_ has joined #zope | 17:05 | |
*** sm has quit IRC | 17:05 | |
*** yvl has quit IRC | 17:28 | |
*** MrTango has quit IRC | 17:45 | |
*** sm_ is now known as sm | 18:02 | |
*** JaRoel|4D has quit IRC | 18:41 | |
*** tisto has quit IRC | 18:55 | |
*** giacomos has quit IRC | 19:06 | |
*** JaRoel|4D has joined #zope | 19:55 | |
*** fredvd is now known as fredvd|away | 20:00 | |
*** fredvd|away is now known as fredvd|way | 20:00 | |
*** avoinea has quit IRC | 21:31 | |
*** Pumukel has joined #zope | 21:54 | |
*** supton has joined #zope | 23:20 | |
*** alecm has quit IRC | 23:49 | |
*** alecm has joined #zope | 23:49 | |
*** supton has quit IRC | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!