*** MrTango has quit IRC | 00:09 | |
*** srichter_ has joined #zope | 00:38 | |
*** srichter has quit IRC | 00:39 | |
*** Arfrever has quit IRC | 00:43 | |
*** srichter_ has quit IRC | 01:00 | |
*** alecm has quit IRC | 01:03 | |
*** alecm_ has joined #zope | 01:03 | |
*** alecm_ is now known as alecm | 01:03 | |
*** srichter_ has joined #zope | 02:18 | |
*** Pumukel has quit IRC | 02:41 | |
*** Pumukel has joined #zope | 02:42 | |
*** Pumukel has quit IRC | 02:46 | |
*** galigan has joined #zope | 06:21 | |
*** nilo has joined #zope | 07:46 | |
*** nilo has quit IRC | 07:53 | |
*** MrTango has joined #zope | 07:55 | |
*** alecm has quit IRC | 08:03 | |
*** alecm has joined #zope | 08:03 | |
*** MrTango has quit IRC | 08:25 | |
*** MrTango has joined #zope | 09:32 | |
*** projekt01 has joined #zope | 09:44 | |
*** El_Rolando has joined #zope | 09:49 | |
*** alecm has quit IRC | 10:11 | |
*** alecm has joined #zope | 10:12 | |
*** alecm has joined #zope | 10:12 | |
*** Pumukel has joined #zope | 10:22 | |
*** El_Rolando has quit IRC | 10:31 | |
*** __mac__ has joined #zope | 10:42 | |
*** El_Rolando has joined #zope | 10:58 | |
*** __mac__ has quit IRC | 11:07 | |
*** __mac__ has joined #zope | 11:10 | |
*** projekt01 has quit IRC | 11:11 | |
*** __mac__1 has joined #zope | 11:21 | |
*** __mac__ has quit IRC | 11:21 | |
galigan | I'm getting this error: RestrictedPython.Guards, line 101, in handler. TypeError: object does not support item or slice assignament | 12:11 |
---|---|---|
galigan | any ideas what I need to do, to allow a python script to access a slice inside a custom object? | 12:11 |
betabug | what is your code there? it seems you are doing something like xy[3] = 'abc' | 12:12 |
betabug | where xy is not something that can do that | 12:12 |
galigan | on tests is working | 12:13 |
betabug | but you are doing that in a "Script (Python)" object? | 12:13 |
galigan | But i don't know how to fake python scripts security on tests. | 12:13 |
galigan | I have a custom object, | 12:14 |
galigan | with __setattr__ and I'm trying to access a prop on it from a Script (Python) | 12:14 |
betabug | why not make a method for what you want to do in your custom object? | 12:14 |
betabug | that will be much easier / safer than having to mess with security exceptions | 12:15 |
betabug | I don't even remember how to do those | 12:15 |
galigan | Yup, that works... but I'm replacing an old implementation... and perhaps there are more places.. | 12:15 |
galigan | where the code tries to access items this way.. | 12:15 |
betabug | well, dunno there | 12:16 |
betabug | I don't really think this is a limitation of restricted python | 12:16 |
galigan | any idea where I should look for security exceptions.. | 12:16 |
betabug | hmm, no, don't remember how to do that, it's been too many years | 12:16 |
betabug | I'd have to search too | 12:16 |
betabug | and it's to be avoided anyway | 12:17 |
galigan | my class is declared with... security = ClassSecurityInfo() | 12:17 |
galigan | security.setDefaultAccess("allow") | 12:17 |
galigan | security.declareObjectPublic() | 12:17 |
betabug | that is not something to do with RestrictedPython | 12:17 |
betabug | that is the permission system | 12:17 |
galigan | ok, good to learn it! | 12:18 |
betabug | RestrictedPython is the limited set of stuff you can do in a "Script (Python)" object | 12:18 |
betabug | but I think the RestrictedPython in your error output is misleading | 12:18 |
betabug | basically what you need to look at is the main error message | 12:18 |
galigan | The worst part, if that it had worked with a persistent item... (But i'm replacing that part because is too complicate, and leaks refs, every request) | 12:19 |
betabug | your object does not allow that assignment, probably you have simply overlooked something | 12:19 |
galigan | Or perhaps is because I'm inheriting from IterableDict? | 12:19 |
betabug | could be, I don't remember that one | 12:20 |
galigan | ok, anyway, many thanks! | 12:21 |
betabug | yw! | 12:21 |
*** loechel has joined #zope | 13:59 | |
*** Pumukel has quit IRC | 14:02 | |
*** projekt01 has joined #zope | 14:11 | |
*** El_Rolando has quit IRC | 14:13 | |
*** regebro has quit IRC | 14:39 | |
*** El_Rolando has joined #zope | 14:52 | |
*** avoinea has quit IRC | 15:56 | |
*** avoinea has joined #zope | 15:58 | |
*** El_Rolando has quit IRC | 16:20 | |
*** El_Rolando has joined #zope | 16:21 | |
*** galigan has quit IRC | 16:38 | |
*** galigan has joined #zope | 17:02 | |
*** nilo has joined #zope | 17:41 | |
*** fRiSi has joined #zope | 17:41 | |
*** projekt01 has quit IRC | 18:02 | |
*** nilo has quit IRC | 18:21 | |
*** El_Rolando has quit IRC | 18:23 | |
*** MrTango has quit IRC | 18:30 | |
*** alecm has quit IRC | 18:58 | |
*** alecm has joined #zope | 18:59 | |
*** alecm has joined #zope | 18:59 | |
*** galigan has quit IRC | 19:25 | |
*** galigan has joined #zope | 20:33 | |
*** __mac__1 has quit IRC | 20:35 | |
*** loechel has quit IRC | 20:48 | |
*** fRiSi has quit IRC | 21:15 | |
*** regebro has joined #zope | 21:23 | |
*** __mac__ has joined #zope | 21:35 | |
*** galigan has quit IRC | 22:01 | |
*** galigan has joined #zope | 22:29 | |
*** Pumukel has joined #zope | 22:33 | |
*** __mac__ has quit IRC | 22:34 | |
*** poohbear82 has joined #zope | 22:42 | |
poohbear82 | anyone here? | 22:42 |
*** __mac__ has joined #zope | 22:43 | |
poohbear82 | was wondering how to make zope change 401 requests to 403 | 22:43 |
poohbear82 | If anyone is alive here please let me know | 22:43 |
* benji breathes very quietly. | 22:55 | |
*** __mac__ has quit IRC | 23:02 | |
poohbear82 | is there any forum where someone can help me with my questions? | 23:06 |
benji | Not that I know of. And this particular place is pretty much just haunted by us forgetful ghosts. | 23:07 |
benji | And it's time for this ghost to haunt AFK. | 23:07 |
*** Pumukel has quit IRC | 23:07 | |
*** Pumukel has joined #zope | 23:11 | |
*** poohbear82 has left #zope | 23:14 | |
*** galigan has quit IRC | 23:24 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!