IRC log of #zope for Thursday, 2014-01-23

*** menesis has quit IRC00:25
*** Tularis has joined #zope00:28
Tularishey guys, I have a problem with Zope's security system. I'm trying to enable the re module in the PythonScript product, but I can't seem to enable it fully. Base methods work fine, but the subobjects don't. So I can match a string against a regexp, but I can't use any of the result object's methods for some weird reason. Could someone possibly enlighten me as to what I'm doing wrong?00:39
TularisThe script and error are on: (and I'm using Zope 2.10.6)00:40
TularisTried quite a few things... but nothing seems to work for me :s00:40
TularisWas hoping someone here could give me a hint :)00:40
koshgeeze I have not played with that stuff in a long while00:44
koshlet me look up what you need00:44
TularisI was pretty sure a simple import re allow_module('re') would be enough00:47
Tularisbut apparently it wasn't00:47
koshnot it has to do with allowing access to unprotected subobjects00:47
Tulariswell, I did read that adding a00:48
Tularisre.__allow_access_to_unprotected_subobjects__ = 100:48
Tulariswould allow access to them00:48
Tularisbut that's also automatically set by allow_module()00:48
Tulariseven a couple of simple:00:48
Tularisdidn't work :(00:49
koshnormally what I do is just use an external method and have it do any security restricted things and just had a result back00:49
koshI convert to a list or tuple to hand back and that works for json, csv and a bunch of other stuff00:49
koshI never use regex for anything00:49
Tularisone of my site maintainers requested it; he recieves a list of adresses, and has to split them up into street, housenumber and any additional info after it00:51
Tulariseasiest way would be using regexps00:51
koshfor what I would do is just create an external method that you give it a string and it hands back the street,housenumber,additional stuff00:52
TularisI guess making it an external method would work... I was just hoping I could also give them access to regexps, so it would be eaier for em00:52
koshhave you tried doing re.__allow_access_to_unprotected_subobjects__=1   ?00:52
Tularisyes, to no avail :(00:53
Tularisit's also part of the allow_module code, so it gets ran anyway00:53
koshoverall it looks like one of the sites that used to have the way to do this I can't find anymore00:55
koshah I think I know the problem00:57
koshallow_module works for pure python modules but re actually has a lot of c code and it does not work for that00:58
koshI think external methods will be the only way to do it00:58
Tularisthe strange thing is, this is even mentioned as an example in the PythonScripts source code :s01:01
koshsecurity changes have been made since then01:01
koshI forgot which version it was where the python script security model was rebuilt entirely01:02
TularisI see, too bad :(01:05
Tularisfor me that is01:05
Tularisgood thing security was enhanced obviously ;)01:05
koshit is just not something I have run into, it turns out all of the stuff I have needed to allow access to works01:05
Tularissame here, but not with this so far...01:05
koshand I will not being doing new web dev for much longer01:05
*** fdrake has quit IRC01:22
*** TresEquis has joined #zope01:39
*** Tularis has quit IRC01:42
*** supton has quit IRC01:43
*** daMaestro has quit IRC02:45
*** tiwula has quit IRC03:19
*** Spanktar has quit IRC03:22
*** tiwula has joined #zope03:35
*** TresEquis has quit IRC04:15
*** TresEquis has joined #zope04:18
*** TresEquis has quit IRC04:21
*** povbot_ has joined #zope04:29
*** povbot has quit IRC04:29
*** dayne has joined #zope04:59
*** kosh has quit IRC05:54
*** Percy has quit IRC06:49
*** regebro has quit IRC07:55
*** regebro has joined #zope07:55
*** tiwula has quit IRC08:56
*** eperez has joined #zope09:18
*** __mac__ has joined #zope09:23
*** tisto has joined #zope09:29
*** PeterZ2 has joined #zope09:35
*** avoinea has joined #zope09:39
*** MaikDerstappen has quit IRC10:03
*** __gotcha has joined #zope10:03
*** giacomos has joined #zope10:20
*** povbot has joined #zope10:32
*** Spanktar has joined #zope10:46
*** tmog has joined #zope10:48
*** __gotcha has quit IRC10:52
*** Spanktar has quit IRC10:56
*** alecm has quit IRC11:04
*** maurits has joined #zope11:05
*** mitchell`off is now known as mitchell`11:17
*** ajmitch has quit IRC11:21
*** ajmitch has joined #zope11:21
*** _mup_ has quit IRC11:28
*** _mup_ has joined #zope11:28
*** giacomos has quit IRC11:34
*** giacomos has joined #zope11:37
*** giacomos has quit IRC11:44
*** giacomos has joined #zope11:48
*** giacomos has quit IRC11:52
*** giacomos has joined #zope11:53
*** giacomos has quit IRC11:56
*** giacomos has joined #zope11:59
*** giacomos has quit IRC12:00
*** MaikDerstappen has joined #zope12:11
*** giacomos has joined #zope12:14
*** giacomos has quit IRC12:16
*** giacomos has joined #zope12:24
*** MatthewWilkes is now known as mwilkes|away12:33
*** maurits has quit IRC12:35
*** maurits has joined #zope13:01
*** __mac__ has quit IRC13:37
*** __mac__ has joined #zope13:39
*** fdrake has joined #zope14:08
*** maurits has quit IRC14:30
*** Fixader has joined #zope14:32
*** tisto has quit IRC14:44
*** PeterZ2 has left #zope14:55
*** giacomos has quit IRC14:59
*** giacomos has joined #zope15:07
*** kosh has joined #zope15:11
*** fdrake has quit IRC15:16
*** maurits has joined #zope15:17
*** kosh has quit IRC16:20
*** eperez has quit IRC16:39
*** tmog has quit IRC16:55
*** __mac__ has quit IRC16:58
*** dayne has quit IRC17:02
*** fdrake has joined #zope17:23
*** regebro_ has joined #zope17:55
*** regebro has quit IRC17:55
*** regebro_ is now known as regebro17:55
*** maurits has quit IRC18:01
*** alecm has joined #zope18:04
*** supton has joined #zope18:40
*** tiwula has joined #zope18:42
*** m8 has joined #zope18:55
*** rajesh has joined #zope19:07
*** MaikDerstappen has quit IRC19:12
*** giacomos has quit IRC19:22
*** dayne has joined #zope19:33
*** Spanktar has joined #zope19:40
*** mitchell` is now known as mitchell`off19:43
*** __mac__ has joined #zope20:59
*** Pumukel has joined #zope21:16
*** Wu has quit IRC21:19
*** Wu has joined #zope21:19
*** rajesh has quit IRC21:23
*** carolsixfeetup has joined #zope21:39
*** carolsixfeetup has left #zope21:40
*** motto has joined #zope21:51
*** m8 has quit IRC21:53
*** calvinhp_ has joined #zope21:56
*** calvinhp_ has left #zope21:56
*** avoinea has quit IRC22:02
*** ree has quit IRC22:27
*** ree has joined #zope22:28
*** alecm has quit IRC22:38
*** alecm has joined #zope22:39
*** __mac__ has quit IRC23:15
*** alecm has quit IRC23:26
*** alecm has joined #zope23:26
*** alecm has joined #zope23:26
*** benji has quit IRC23:27
*** ccolorado has joined #zope23:29
*** dayne has quit IRC23:30

Generated by 2.15.1 by Marius Gedminas - find it at!