IRC log of #zope3-dev for Wednesday, 2008-03-05

*** MJ has quit IRC00:01
*** RaFromBRC|lunch is now known as RaFromBRC00:01
*** d2m has quit IRC00:07
*** rcrafton has quit IRC00:09
*** jodok has quit IRC00:10
*** norro has quit IRC00:15
*** joao_ has joined #zope3-dev00:20
*** joao_ has quit IRC00:21
*** danielblackburn has joined #zope3-dev00:24
*** danielblackburn_ has quit IRC00:24
*** pcardune_ has joined #zope3-dev00:38
*** philiKON has joined #zope3-dev00:38
*** regebro has quit IRC00:43
*** redir has quit IRC00:53
*** pcardune_vm has quit IRC00:55
*** pcardune has quit IRC00:55
*** benji has quit IRC00:58
*** lucielejard has quit IRC01:00
*** philiKON_ has joined #zope3-dev01:01
*** J1m has quit IRC01:02
*** MatthewWilkes has joined #zope3-dev01:05
*** ktwilight_ has joined #zope3-dev01:07
*** sp0cksbeard has quit IRC01:12
*** philiKON_ has quit IRC01:18
*** philiKON has quit IRC01:19
*** ktwilight has quit IRC01:20
*** hazmat has quit IRC01:30
*** thruflo has quit IRC01:35
*** sm has joined #zope3-dev01:41
*** benji has joined #zope3-dev01:42
*** sm has quit IRC01:52
*** nathany has quit IRC01:55
*** reco_ has joined #zope3-dev02:00
*** b52laptop has quit IRC02:01
*** hazmat has joined #zope3-dev02:03
*** ChanServ sets mode: +o hazmat02:03
*** reco has quit IRC02:07
*** rmarianski has quit IRC02:13
*** greenman has quit IRC02:14
*** greenman has joined #zope3-dev02:14
*** pcardune_ has quit IRC02:19
*** fcorrea has left #zope3-dev02:21
*** danielblackburn has quit IRC02:22
*** lucielejard has joined #zope3-dev02:32
*** reco_ has quit IRC02:36
*** pbugni_ has joined #zope3-dev02:42
*** pbugni has quit IRC02:42
*** projekt01 has joined #zope3-dev02:47
projekt01srichter, ayt?02:49
*** rocky has quit IRC02:50
*** danielblackburn has joined #zope3-dev03:04
*** pbugni_ has quit IRC03:11
*** kev_ has quit IRC03:39
*** ccomb has quit IRC03:42
*** projekt01 has quit IRC03:43
*** benji has quit IRC03:51
*** benji has joined #zope3-dev03:52
*** deo has joined #zope3-dev03:56
benjithanks fred03:57
*** hazmat has quit IRC04:01
*** vinsci has quit IRC04:04
*** srichter has quit IRC04:04
*** markusleist has quit IRC04:04
*** acsr has quit IRC04:04
*** SteveA has quit IRC04:04
*** jfroche has quit IRC04:04
*** Theuni has quit IRC04:04
*** derek|office has quit IRC04:04
*** BjornT has quit IRC04:04
*** lucielejard has quit IRC04:04
*** Aiste has quit IRC04:04
*** kobold has quit IRC04:04
*** _basti_ has quit IRC04:04
*** ktwilight_ has quit IRC04:04
*** salfield has quit IRC04:04
*** ejucovy|out has quit IRC04:04
*** deo has quit IRC04:04
*** RaFromBRC has quit IRC04:04
*** romanofski has quit IRC04:04
*** malthe|away has quit IRC04:04
*** instantfoo has quit IRC04:04
*** benji has quit IRC04:04
*** dunny has quit IRC04:04
*** lisppaste6 has quit IRC04:04
*** timte has quit IRC04:04
*** dokai has quit IRC04:04
*** pelle_ has quit IRC04:04
*** bigkevmcd has quit IRC04:04
*** jeffk has quit IRC04:04
*** tlotze has quit IRC04:04
*** tlotze_ has joined #zope3-dev04:09
*** deo has joined #zope3-dev04:09
*** benji has joined #zope3-dev04:09
*** lucielejard has joined #zope3-dev04:09
*** dunny has joined #zope3-dev04:09
*** RaFromBRC has joined #zope3-dev04:09
*** romanofski has joined #zope3-dev04:09
*** pelle_ has joined #zope3-dev04:09
*** lisppaste6 has joined #zope3-dev04:09
*** timte has joined #zope3-dev04:09
*** malthe|away has joined #zope3-dev04:09
*** _basti_ has joined #zope3-dev04:09
*** Aiste has joined #zope3-dev04:09
*** kobold has joined #zope3-dev04:09
*** bigkevmcd has joined #zope3-dev04:09
*** jeffk has joined #zope3-dev04:09
*** tlotze has joined #zope3-dev04:09
*** instantfoo has joined #zope3-dev04:09
*** dokai has joined #zope3-dev04:09
*** dokai_ has joined #zope3-dev04:10
*** tlotze has quit IRC04:10
*** srichter has joined #zope3-dev04:10
*** vinsci has joined #zope3-dev04:10
*** irc.freenode.net sets mode: +o srichter04:10
*** ktwilight_ has joined #zope3-dev04:10
*** salfield has joined #zope3-dev04:10
*** ejucovy|out has joined #zope3-dev04:10
*** BjornT has joined #zope3-dev04:10
*** markusleist has joined #zope3-dev04:10
*** acsr has joined #zope3-dev04:10
*** Theuni has joined #zope3-dev04:10
*** SteveA has joined #zope3-dev04:10
*** derek|office has joined #zope3-dev04:10
*** jfroche has joined #zope3-dev04:10
*** bigkevmcd has quit IRC04:10
*** bigkevmcd has joined #zope3-dev04:11
*** dokai has quit IRC04:11
*** hazmat has joined #zope3-dev04:17
*** ChanServ sets mode: +o hazmat04:17
*** ejucovy|out has quit IRC04:29
*** ktwilight_ has quit IRC04:29
*** salfield has quit IRC04:29
*** ktwilight_ has joined #zope3-dev04:31
*** salfield has joined #zope3-dev04:32
*** ejucovy|out has joined #zope3-dev04:32
*** MatthewWilkes has quit IRC04:33
*** RaFromBRC has quit IRC04:33
*** devicenull has joined #zope3-dev04:36
*** malthe|a_ has joined #zope3-dev04:48
*** dokai_ has quit IRC04:48
*** instantfoo has quit IRC04:48
*** malthe|away has quit IRC04:48
*** romanofski has quit IRC04:48
*** deo has quit IRC04:48
*** deo has joined #zope3-dev04:50
*** instantfoo has joined #zope3-dev04:51
*** dokai has joined #zope3-dev04:53
*** dokai_ has joined #zope3-dev04:53
*** romanofski has joined #zope3-dev04:53
*** dokai_ has quit IRC04:53
*** niemeyer has quit IRC04:53
*** lucielejard has quit IRC04:55
*** romanofs1i has joined #zope3-dev05:01
*** romanofski has quit IRC05:04
*** danielblackburn has quit IRC05:41
*** greenman has quit IRC05:44
*** jeffk has quit IRC05:47
*** jeffk has joined #zope3-dev05:50
*** pcardune has joined #zope3-dev05:52
*** rmarianski has joined #zope3-dev06:04
*** pcardune has quit IRC06:30
*** jeffk has quit IRC06:30
*** romanofs1i has quit IRC06:30
*** instantfoo has quit IRC06:30
*** ktwilight_ has quit IRC06:30
*** SteveA has quit IRC06:30
*** acsr has quit IRC06:30
*** markusleist has quit IRC06:30
*** jfroche has quit IRC06:30
*** pcardune has joined #zope3-dev06:30
*** jeffk has joined #zope3-dev06:30
*** instantfoo has joined #zope3-dev06:30
*** ktwilight_ has joined #zope3-dev06:30
*** markusleist has joined #zope3-dev06:30
*** acsr has joined #zope3-dev06:30
*** jfroche has joined #zope3-dev06:30
*** SteveA has joined #zope3-dev06:30
*** kobold has quit IRC06:45
*** tlotze_ has quit IRC06:45
*** Aiste has quit IRC06:45
*** _basti_ has quit IRC06:45
*** tlotze has joined #zope3-dev06:47
*** _basti_ has joined #zope3-dev06:48
*** tlotze_ has joined #zope3-dev06:48
*** kobold has joined #zope3-dev06:48
*** Aiste has joined #zope3-dev06:48
*** tlotze_ has quit IRC06:49
*** kobold_ has joined #zope3-dev06:52
*** deo has quit IRC06:55
*** jayaraj has joined #zope3-dev07:05
*** alecm has quit IRC07:11
*** kobold has quit IRC07:14
*** pcardune has quit IRC07:38
*** pcardune has joined #zope3-dev07:41
*** rmarianski has quit IRC07:51
*** jayaraj has quit IRC07:59
*** menesis has joined #zope3-dev07:59
*** baijum has joined #zope3-dev08:20
*** d2m has joined #zope3-dev08:21
*** rmarianski has joined #zope3-dev08:31
*** sm has joined #zope3-dev08:41
*** jukart has joined #zope3-dev08:42
*** pyqwer has joined #zope3-dev08:42
*** yvl has joined #zope3-dev08:43
*** sorin has joined #zope3-dev08:46
*** sorin is now known as sorindregan08:47
*** tarek has joined #zope3-dev08:50
*** kursor has joined #zope3-dev08:51
*** vimes656 has joined #zope3-dev08:51
*** pcardune is now known as taylor08:53
*** taylor is now known as Richard_Stallman08:54
*** quodt has joined #zope3-dev08:56
*** Richard_Stallman is now known as adambosworth08:56
*** adambosworth has left #zope3-dev08:57
*** afd_ has joined #zope3-dev09:01
pyqwerHi, I09:06
pyqwerHi, I'm currently playing around with i18n and poedit - has anyone experience with this?09:06
afd_pyqwer: #plone people should have a lot of experience with this09:06
pyqwerAh, good to know.09:07
pyqwerHave you ever done it?09:07
pyqwerThey probably don't use the i18nextract utility for that.09:07
afd_there's the i18ndude09:08
pyqwerMy problem is that when I change my code, I need to update the translation - that overwrites my .pot file and my original translation09:08
afd_which I think works for z3 packages as well09:09
pyqwerI see.09:09
pyqwerI'll ask my questions there, let's see. Thanks109:10
*** __mac__ has joined #zope3-dev09:14
*** __mac__ has left #zope3-dev09:15
*** kobold_ has quit IRC09:18
*** Aiste has quit IRC09:18
*** kobold_ has joined #zope3-dev09:21
*** Aiste has joined #zope3-dev09:21
*** kobold_ has quit IRC09:22
*** kobold has joined #zope3-dev09:22
*** stub has joined #zope3-dev09:24
*** sm is now known as sm-zzz09:31
*** jukart has quit IRC09:33
*** baijum has quit IRC09:33
*** dokai has quit IRC09:33
*** pelle_ has quit IRC09:36
*** jukart has joined #zope3-dev09:36
*** baijum has joined #zope3-dev09:36
*** dokai has joined #zope3-dev09:36
*** kursor has quit IRC09:37
*** d2m has quit IRC09:37
*** tlotze has quit IRC09:37
*** devicenull has quit IRC09:37
*** vinsci has quit IRC09:37
*** srichter has quit IRC09:37
*** srichter has joined #zope3-dev09:38
*** d2m has joined #zope3-dev09:38
*** kursor has joined #zope3-dev09:40
*** tlotze has joined #zope3-dev09:40
*** devicenull has joined #zope3-dev09:40
*** vinsci has joined #zope3-dev09:40
*** ChanServ sets mode: +o srichter09:43
*** greenman has joined #zope3-dev09:48
*** MJ has joined #zope3-dev09:50
*** malthe|a_ is now known as malthe09:50
*** febb has joined #zope3-dev09:52
*** ghendi has joined #zope3-dev09:56
*** agroszer has joined #zope3-dev10:06
*** sorindregan has quit IRC10:08
*** sorin has joined #zope3-dev10:10
*** sorin is now known as sorindregan10:10
*** ccomb has joined #zope3-dev10:12
*** pelle_ has joined #zope3-dev10:18
*** greenman has quit IRC10:21
*** greenman has joined #zope3-dev10:23
*** rmarianski has quit IRC10:27
*** sunew has joined #zope3-dev10:27
*** jodok has joined #zope3-dev10:31
*** norro has joined #zope3-dev10:36
*** regebro has joined #zope3-dev10:38
pyqwerafd_: Ok, it seems I managed the translations - msgmerge does the trick...10:50
*** kursor has quit IRC10:53
*** harobed has joined #zope3-dev11:04
*** romanofski has joined #zope3-dev11:04
*** jayaraj has joined #zope3-dev11:05
jayaraj"<div id="toolbar" tal:content="structure provider:worldcookery.Toolbar">" i found this line in world cookery example... i want to know wot is the 'structure' in this? i thought it to be a div tag attribute... but i cant find such an attribute for div when i refered to w3schools.com. then wot it could be? plz help. i have been searching for a long time11:21
afd_jayaraj: the provider:worldcookery.Toolbar expression will have as a result an html fragment11:22
afd_you want to render it as html, instead of escaping the tags (which zope does by default)11:22
afd_that's what the "structure" word is saying there11:22
afd_to render that result as an html structure, instead of escaping the tags11:23
jayarajafd_ k i got it friend11:23
jayarajafd_ thank you... so its a tal keyword right?11:24
afd_yes11:24
jayarajafd_ :)11:24
*** jpcw2002 has joined #zope3-dev11:25
*** b52laptop has joined #zope3-dev11:28
pyqwerHmmm, it seems i18n has problems when the message id contains UTF-8 characters, e.g. german umlauts - is there some solution to this?11:43
pyqwerI initially decided to write the code in german - hence all messages are in german, too. I can circumvent the umlaut-issue via message-ids but that seems not to be possible in ZCML.11:44
*** toutpt has joined #zope3-dev11:52
*** kursor has joined #zope3-dev12:13
*** maurits has joined #zope3-dev12:17
*** projekt01 has joined #zope3-dev12:22
*** markusleist has quit IRC12:39
*** dunny has quit IRC12:48
*** tflorac has joined #zope3-dev12:51
*** greenman has quit IRC12:59
*** mkerrin has joined #zope3-dev13:02
tfloracHi,13:03
tfloracI'm looking for samples or tutorials about writing z3c.form widgets subclasses. Any link ?13:04
*** alga has joined #zope3-dev13:06
afd_tflorac: look at the source code, the widgets themselves can be good examples13:07
*** b52laptop has quit IRC13:08
*** b52laptop has joined #zope3-dev13:08
tfloracafd_: I already looked (quickly) at source code and doctests. But I was looking for something which could be more "just follow the steps, Luke !"...13:11
tfloracafd_: what I actually need is a widget to handle a dict-based attribute edition to handle content translation...13:13
afd_I don't know of any like that (but I haven't been looking for one either)13:14
jayarajis there any way to know from which page (url) the 'request' is coming?13:17
tfloracafd_: I already designed fields and properties. I developed a similar widget for zope.formlib without many problems. But now I'm a bit stuck with z3c.form...13:18
tfloracjayaraj: request['HTTP_REFERER'] ??13:18
afd_tflorac: maybe one of its author can help you, if they're online13:18
jayarajtflorac: let me check 1 min13:18
bigkevmcdjayaraj: You can't rely on the HTTP_REFERER for much tho'13:22
bigkevmcdjayaraj: especially not for anything involving "security"13:23
jayarajic13:24
pyqwertflorac: Maybe there are examples in z3c.formdemo?13:24
*** jpcw2002 has quit IRC13:26
*** b52laptop has quit IRC13:31
*** kursor has quit IRC13:31
*** b52laptop has joined #zope3-dev13:32
*** ghendi has quit IRC13:39
*** toutpt has quit IRC13:45
*** malthe has quit IRC13:57
*** niemeyer has joined #zope3-dev14:12
*** b52laptop has quit IRC14:18
*** jpcw2002 has joined #zope3-dev14:23
*** b52laptop has joined #zope3-dev14:24
*** benji has quit IRC14:25
*** stub has quit IRC14:31
*** jukart has quit IRC14:32
*** ignas has joined #zope3-dev14:34
*** stub has joined #zope3-dev14:35
*** rocky has joined #zope3-dev14:37
*** jodok has quit IRC14:37
*** quodt has quit IRC14:39
*** goschtl has joined #zope3-dev14:40
jayarajbigkvmcd: is there any other way to get the same job done without using the http_referer14:44
bigkevmcdjayaraj: you haven't said what your job is14:44
jayaraji want know from which page the request is generated...14:45
jayarajor i need to know the currentpage's url14:46
bigkevmcdwhat are you going to do with it?14:47
bigkevmcdYou can get it from the referrer header, you just can't trust that value14:47
jayarajafter serving the request one should be reditrected to the first page14:47
tfloracpyqwer: z3c.formdemo "only" seems to show how to use existing widgets, not how to write new ones...14:48
jayaraji cant compromise the security though14:49
jayaraji saw in the world cookery example for the 'login' link it gets the current url and send it along with the url as a property value! is that safe?14:51
pyqwertflorac: Ok, hmmm - we discussed this issue with Stephan Richter and Roger Ineichen some time ago and came to the conclusion to create a package called z3c.formwidget.14:52
jayarajbigkevmcd: ^14:52
pyqwerThis should be an addon package that provides some extra widgets and also some kind of skeleton.14:53
bigkevmcdjayaraj: that would be safe enough...14:53
pyqwerBut up to now, no one found time to create it - and I personally got around without extra widgets.14:53
*** jodok has joined #zope3-dev14:53
pyqwerSo, this z3c.formwidget should be some complement of z3c.schema.14:54
*** BjornT_ has joined #zope3-dev14:54
jayarajbigkevmcd: you mean the world cookery way?14:54
*** BjornT has quit IRC14:55
pyqwerjayaraj: I don't see why it should be unsafe to use the referrer? I may be wrong but that should never tamper the security.14:55
tfloracpyqwer:OK, I'll wait for it... Until then I'll try to read deeper into doctests, but any guideline would be welcome... ;-)14:56
*** yvl has left #zope3-dev14:56
pyqwertflorac: Well, maybe I will find some time, however, I have to gain SVN write-access first, moreover I have to learn buildout.14:56
jayarajbigkevmcd: but i couldn't  understand how he gets the current URL.. i searchedthe whole example( i think) but i couldnt find where logic for getting current url is implemented!14:56
pyqwerjayaraj: I don't think you will find it in the worldcookery code. AFAIK it's implemented in the security layer.14:57
pyqwerBut I may be wrong.14:57
*** quodt has joined #zope3-dev14:57
jayarajpyqwer: i have heard its unsafe to use the referer from many source14:57
pyqwerBTW., it's something I'm also interested in as for me, redirection after the login works only in some cases.14:58
*** jukart has joined #zope3-dev14:58
pyqwerjayaraj: If you have a look at Philipps book, page 421 (in case you own it), you will see some code.14:59
jayarajpyqwer: it works in worldcookery example .. he uses one 'camefrom' attribute for that14:59
pyqwerjayaraj: Yes, but I also don't really know where 'camefrom' is set.15:00
jayarajpyqwer: thats what i was searching for15:00
pyqwerjayaraj: Yes, found it - as expected - it's in zope.app.authentication.session.15:02
jayaraj'camefrom' is set and  appended to the href of 'login' link in the header.15:02
*** jodok_ has joined #zope3-dev15:02
pyqwerSessionCredentialsPlugin -> line 211.15:02
*** srichter has quit IRC15:03
pyqwerYes, if the challenge fails, the session plugin simply adds camefrom as a get parameter to the URL - see line 24515:04
jayarajpyqwer: i dint get you15:04
pyqwerjayaraj: Just look at the source, you'll see it.15:04
*** vimes656_ has joined #zope3-dev15:08
*** mgedmin has joined #zope3-dev15:09
*** rcrafton has joined #zope3-dev15:13
*** jodok has quit IRC15:13
*** vimes656 has quit IRC15:19
norrohey guys. i can't import usbsock in my zope3 view classes (ImportError). The import works on my console. Do I have to set a path variable or something?15:20
jayarajpyqwer: which example you are refering to... i am looking at authentication15:20
pyqwerjayaraj: Yes, me too.15:21
jayarajexample2.0.1/auth15:21
pyqwerOn page 421 Phillip provides some code for browser/login.py15:21
pyqwerThere he reads "request.get('camefrom', '.')15:22
jayarajyea i have seen that15:22
pyqwerSo what he does is extract the URL parameter "camefrom" out of the request.15:22
pyqwerAnd redirects to it.15:22
jayarajtrue15:22
jayarajbut where it gets set?15:23
pyqwerAnd in the SessionCredentialsPlugin, this URL parameter is set.15:23
pyqwerIt's not in the worldcookery code, it's in the Zope3 code.15:23
pyqwerjayaraj: In zope.app.authentication.session.15:24
pyqwerHonestly, look at the Zope3 source.15:24
jayarajhehehe in zope3 sorce ..ic15:24
pyqwerBelieve me - for developing Zope3, you will have to dig into the Zope3 source from time to time.15:25
*** menesis has quit IRC15:30
*** benji has joined #zope3-dev15:32
*** baijum has quit IRC15:32
afd_norro: maybe you're using the wrong python in the console (use the one used by zope)15:32
norroafd_: indeed. console uses 2.5, zope uses 2.415:33
norrothanks15:33
*** danielblackburn has joined #zope3-dev15:36
*** toutpt has joined #zope3-dev15:37
jayarajpyqwer: Thank you :) my problem solved15:41
*** sp0cksbeard has joined #zope3-dev15:41
jayarajbigkevmcd: thank you :)15:41
pyqwerjayaraj: Great!15:44
jayarajpyqwer:  :)15:45
*** MJ is now known as MJ|away15:56
*** johbo has joined #zope3-dev16:00
*** thruflo has joined #zope3-dev16:01
*** afd__ has joined #zope3-dev16:04
*** MJ|away is now known as MJ16:04
pyqwerHmmm, I need some help with i18n - I have this construct: right = _(u"right"); msg = _(u"${right}" mapping={'right' : right})16:10
pyqwerThe problem is that _(u"right") does not seem to be translated here.16:10
pyqwerWhat can I do about that?16:10
*** jodok has joined #zope3-dev16:10
*** afd_ has quit IRC16:13
*** jodok has quit IRC16:17
*** jodok has joined #zope3-dev16:17
*** jodok__ has joined #zope3-dev16:18
*** jodok_ has quit IRC16:19
*** malthe has joined #zope3-dev16:23
*** lucielejard has joined #zope3-dev16:25
*** ghendi has joined #zope3-dev16:27
*** markusleist has joined #zope3-dev16:32
*** ghendi has quit IRC16:44
*** jodok has quit IRC16:45
*** reco has joined #zope3-dev16:50
*** menesis has joined #zope3-dev16:51
*** b52laptop has quit IRC16:53
*** vimes656_ has quit IRC16:53
*** b52laptop has joined #zope3-dev16:54
*** J1m has joined #zope3-dev16:55
*** kursor has joined #zope3-dev17:00
*** jayaraj has quit IRC17:06
*** kursor has joined #zope3-dev17:16
*** pelle_ has quit IRC17:21
*** J1m has quit IRC17:28
*** goschtl has left #zope3-dev17:30
*** sorindregan has quit IRC17:34
*** J1m has joined #zope3-dev17:39
afd__what's needed for a located adapter to be available as obj/full.class.path.of.adapter/ ?17:44
afd__I'm using a minimal layer and I think I'm missing something...17:44
pyqwerafd__: Hmmm, did you register it for the right layer?17:48
pyqwerAh, no - adapters are not registered for layers, I think...17:48
afd__yes :)17:49
afd__and locate="True" doesn't do what I thought17:49
afd__there is a ++adapter++ traverser, but it's not used in my case17:49
pyqwerSo, what exactly are you trying to do? Add the adapter to a container and access it through that?17:49
*** vimes656 has joined #zope3-dev17:50
pyqwerSimilar to e.g. a local error reporting utility?17:50
afd__pyqwer: I want to be able to acces the adapter as container/mypackage.app.MyAdapter/@@index.html17:50
*** vimes656 has quit IRC17:50
afd__where @@index.html is a page registered for the adapter object17:50
afd__I know how to write the traverser to get it done17:51
afd__but I was wondering if I'm missing something17:51
pyqwerHmmm, sorry, I fear that's beyond my capabilities. Btw., why would you want to do that?17:52
*** vimes656 has joined #zope3-dev17:52
afd__pyqwer: I'm using a library that has a message store on some containers. The urls generated by the library are like that17:52
afd__I'm trying to write the front end for that17:53
afd__but now that I've expressed the problem this way, I think I know what's going on17:53
afd__the adapter might be "container proxied"17:53
afd__I'll write the traverser and be done with it17:54
pyqwerthat may well be!17:54
pyqwerYou can test that via a "print type(myobj)"17:54
pyqwerAnd you can also register it with "trusted="Yes""17:55
afd__ok17:55
pyqwerBut careful - then parts of the security are shut off.17:55
afd__but the adapter it will still be proxied, as far as I know17:55
afd__just it won't get a proxied context17:55
afd__and the locate="True" will make it use security of the context17:56
pyqwerAh 'trusted="True"'. You can see how such traversing adapters are registered in package z3c.layer.pagelet.17:56
afd__as far as I understand17:56
*** rmarianski has joined #zope3-dev17:56
pyqwerBtw.: Do you have an answer to my i18n problem here: I have this construct: msg1 = _(u"bla"); msg = _(u"${msg1}" mapping={'msg1' : msg1})17:58
pyqwerWhen zope translates this construct, the inner string (msg1) is not translated17:58
afd__thinking17:59
*** ccomb has quit IRC18:00
*** MJ has quit IRC18:01
afd__try with18:01
afd__msg1= translate(_('bla'), context=request)18:03
afd__and then your other part18:03
*** ccomb has joined #zope3-dev18:03
* pyqwer trying...18:03
afd__I'm not sure about the contex=request part18:04
*** b52laptop has quit IRC18:06
*** b52laptop has joined #zope3-dev18:07
*** ignas has quit IRC18:07
pyqwerafd__: :-) Great, that worked: msg =  _(u"${msg1}" mapping={'msg1' : translate(msg1, context=self.request)})18:08
afd__:)18:08
pyqwerThanks!18:08
afd__np18:08
afd__maybe you should write this in the wiki.zope.org18:08
afd__I usually write this sort of stuff in the Zope in Anger section18:08
afd__although the faq might be just as good18:08
*** ignas has joined #zope3-dev18:12
*** norro has quit IRC18:19
*** whit has joined #zope3-dev18:24
*** johbo has quit IRC18:30
*** norro has joined #zope3-dev18:33
*** afd__ has quit IRC18:34
*** sunew has quit IRC18:34
*** ignas has quit IRC18:37
*** alga has quit IRC18:38
*** jukart has quit IRC18:44
*** devicenull has left #zope3-dev18:49
*** nathany has joined #zope3-dev18:49
*** vimes656 has quit IRC18:55
*** romanofski has quit IRC18:59
*** b52laptop has quit IRC19:00
*** tflorac has quit IRC19:00
*** harobed has quit IRC19:03
*** whit has quit IRC19:07
*** mkerrin has quit IRC19:07
*** kobold has quit IRC19:07
*** Aiste has quit IRC19:07
*** whit has joined #zope3-dev19:08
*** mkerrin has joined #zope3-dev19:08
*** kobold has joined #zope3-dev19:08
*** Aiste has joined #zope3-dev19:08
*** benji has quit IRC19:12
*** febb has quit IRC19:12
*** tlotze has quit IRC19:12
*** vinsci has quit IRC19:12
*** benji has joined #zope3-dev19:14
*** goschtl has joined #zope3-dev19:15
*** alecm has joined #zope3-dev19:15
*** quodt has quit IRC19:16
*** febb has joined #zope3-dev19:17
*** vinsci has joined #zope3-dev19:17
*** benji has quit IRC19:18
*** nathany has quit IRC19:18
*** markusleist has quit IRC19:18
*** jodok__ has quit IRC19:18
*** dokai has quit IRC19:18
*** tlotze has joined #zope3-dev19:19
*** benji has joined #zope3-dev19:21
*** nathany has joined #zope3-dev19:22
*** markusleist has joined #zope3-dev19:22
*** jodok__ has joined #zope3-dev19:22
*** dokai has joined #zope3-dev19:22
*** dokai has quit IRC19:22
*** goschtl has quit IRC19:24
*** dokai has joined #zope3-dev19:26
*** jodok__ has quit IRC19:30
*** pbugni has joined #zope3-dev19:33
*** sm-zzz is now known as sm19:37
*** projekt01 has quit IRC19:37
*** malthe is now known as malthe|out19:37
*** andy-chen has joined #zope3-dev19:39
*** tflorac has joined #zope3-dev19:39
*** toutpt has quit IRC19:46
*** tflorac has quit IRC19:57
*** quodt has joined #zope3-dev20:02
*** aCiDBaSe has quit IRC20:02
*** kursor has quit IRC20:03
*** whit has quit IRC20:12
*** mkerrin has quit IRC20:15
*** quodt has quit IRC20:15
*** ss has joined #zope3-dev20:21
*** jodok has joined #zope3-dev20:28
*** ss has quit IRC20:30
*** maurits has quit IRC20:31
*** thruflo has quit IRC20:32
*** menesis has quit IRC20:34
*** jpcw2002 has quit IRC20:37
*** RaFromBRC has joined #zope3-dev20:40
*** edgordon has quit IRC20:50
*** srichter has joined #zope3-dev20:54
*** ChanServ sets mode: +o srichter20:55
*** dunny has joined #zope3-dev20:57
*** whit has joined #zope3-dev21:01
*** whit has quit IRC21:14
*** greenman has joined #zope3-dev21:18
*** agroszer_ has joined #zope3-dev21:18
*** agroszer_ has quit IRC21:22
*** agroszer has quit IRC21:37
*** mgedmin has quit IRC21:56
*** pyqwer has quit IRC21:58
*** rocky has quit IRC22:01
*** sunew has joined #zope3-dev22:09
*** greenman has quit IRC22:15
*** Theuni has quit IRC22:31
*** RaFromBRC is now known as RaFromBRC|errand22:39
*** strichter has joined #zope3-dev22:42
*** srichter has quit IRC22:53
*** whit has joined #zope3-dev22:58
*** whit has quit IRC22:59
*** whit has joined #zope3-dev22:59
*** d2m has quit IRC23:02
*** nathany has quit IRC23:10
*** jodok has quit IRC23:12
*** stub has quit IRC23:34
*** harobed has joined #zope3-dev23:35
*** _srichter has joined #zope3-dev23:45
*** Theuni has joined #zope3-dev23:49
*** vimes656 has joined #zope3-dev23:57
*** Theuni has quit IRC23:58

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!