*** dobee has quit IRC | 00:00 | |
*** WebMaven has joined #zope3-dev | 00:03 | |
*** nerdalert has quit IRC | 00:16 | |
*** fcorrea has quit IRC | 00:22 | |
*** rcrafton has quit IRC | 00:25 | |
*** dunny has joined #zope3-dev | 00:27 | |
*** norro has quit IRC | 00:30 | |
*** rcrafton has joined #zope3-dev | 00:33 | |
*** timte has quit IRC | 00:44 | |
*** dobee has joined #zope3-dev | 00:50 | |
*** rcrafton has quit IRC | 00:51 | |
*** rcrafton has joined #zope3-dev | 01:13 | |
*** rocky is now known as rocky|away | 01:20 | |
*** rocky|away is now known as rocky|Zzzz | 01:20 | |
*** deo has quit IRC | 01:22 | |
*** dobee has quit IRC | 01:24 | |
*** natea has quit IRC | 01:30 | |
*** greenman has quit IRC | 01:33 | |
*** spython has quit IRC | 01:36 | |
*** tarek has quit IRC | 01:49 | |
*** edgordon has joined #zope3-dev | 01:56 | |
*** greenman has joined #zope3-dev | 02:14 | |
*** edgordon has quit IRC | 02:15 | |
*** edgordon_ has quit IRC | 02:15 | |
*** edgordon has joined #zope3-dev | 02:16 | |
*** bigkevmcd has quit IRC | 02:23 | |
*** greenman_ has joined #zope3-dev | 02:28 | |
*** greenman has quit IRC | 02:28 | |
*** pbugni has quit IRC | 02:31 | |
*** niemeyer has quit IRC | 02:39 | |
*** natea_ has joined #zope3-dev | 02:46 | |
*** Ariel_Calzada has joined #zope3-dev | 03:22 | |
*** ignas has quit IRC | 03:50 | |
*** b52lap has joined #zope3-dev | 04:24 | |
*** J1m has quit IRC | 04:36 | |
*** b52laptop has quit IRC | 04:38 | |
*** b52lap has quit IRC | 04:50 | |
*** alecm has quit IRC | 04:53 | |
*** srichter has quit IRC | 05:07 | |
*** srichter has joined #zope3-dev | 05:11 | |
*** ChanServ sets mode: +o srichter | 05:14 | |
*** ktwilight_ has joined #zope3-dev | 05:51 | |
*** rcrafton has quit IRC | 05:56 | |
*** ktwilight has quit IRC | 06:06 | |
*** stub has joined #zope3-dev | 06:09 | |
*** marianom has quit IRC | 06:36 | |
*** tav_ has joined #zope3-dev | 06:40 | |
*** Ariel_Calzada has quit IRC | 07:01 | |
*** tav has quit IRC | 07:02 | |
*** philiKON_ has joined #zope3-dev | 07:05 | |
*** philiKON has quit IRC | 07:22 | |
*** dobee has joined #zope3-dev | 07:50 | |
*** jukart has joined #zope3-dev | 08:07 | |
*** yvl has joined #zope3-dev | 08:24 | |
*** jodok has joined #zope3-dev | 08:36 | |
*** agroszer has joined #zope3-dev | 08:51 | |
*** greenman_ has quit IRC | 09:01 | |
*** ignas has joined #zope3-dev | 09:04 | |
*** sorindregan has quit IRC | 09:12 | |
*** sorin has joined #zope3-dev | 09:13 | |
*** sorin is now known as sorindregan | 09:13 | |
*** markusleist has joined #zope3-dev | 09:18 | |
*** dunny has quit IRC | 09:23 | |
*** stub has quit IRC | 09:35 | |
*** greenman has joined #zope3-dev | 09:35 | |
*** tav_ is now known as tav | 09:59 | |
*** ChanServ sets mode: +o tav | 09:59 | |
*** timte has joined #zope3-dev | 10:01 | |
*** stub has joined #zope3-dev | 10:20 | |
*** bao has left #zope3-dev | 10:43 | |
*** ignas has quit IRC | 10:43 | |
*** MJ has joined #zope3-dev | 10:49 | |
*** tarek has joined #zope3-dev | 10:58 | |
*** jodok has quit IRC | 11:05 | |
*** jodok has joined #zope3-dev | 11:07 | |
*** harobed has joined #zope3-dev | 11:10 | |
*** jfroche has joined #zope3-dev | 11:16 | |
*** norro has joined #zope3-dev | 11:36 | |
*** naro has joined #zope3-dev | 12:04 | |
*** ignas has joined #zope3-dev | 12:14 | |
*** netshade_ has joined #zope3-dev | 12:18 | |
*** netshade has quit IRC | 12:24 | |
*** rinou is now known as nouri | 12:26 | |
*** BjornT has quit IRC | 12:28 | |
*** dunny has joined #zope3-dev | 12:29 | |
*** b52laptop has joined #zope3-dev | 12:32 | |
*** yvl has quit IRC | 13:07 | |
*** sorindregan has quit IRC | 13:10 | |
*** sorin has joined #zope3-dev | 13:12 | |
*** sorin is now known as sorindregan | 13:12 | |
*** dunny has quit IRC | 13:35 | |
*** projekt01 has joined #zope3-dev | 13:46 | |
*** stub has quit IRC | 13:50 | |
*** norro has quit IRC | 13:52 | |
*** MJ is now known as MJ|lunch | 14:00 | |
*** naro has quit IRC | 14:05 | |
*** naro has joined #zope3-dev | 14:08 | |
*** benji has quit IRC | 14:15 | |
*** Newfie2007 has joined #zope3-dev | 14:26 | |
*** jfroche has quit IRC | 14:33 | |
*** jsadjohnson has joined #zope3-dev | 14:34 | |
*** rcrafton has joined #zope3-dev | 14:35 | |
*** rocky|Zzzz is now known as rocky | 14:58 | |
*** deo has joined #zope3-dev | 14:59 | |
*** MJ|lunch is now known as MJ | 14:59 | |
*** benji has joined #zope3-dev | 15:12 | |
markusleist | hi all, anybody working with ze3.form/password-widget? In the actual z3c.formdemo (widget-demo) the field is empty after typed in some text and applied by 'Apply'. Next change on an other attribute will then store an empty password. Same in my application. Which methode i have to use for a "Preset" of my Password-Field/Widget? | 15:14 |
---|---|---|
*** natea_ is now known as natea | 15:16 | |
projekt01 | markusleist, hi | 15:16 |
projekt01 | you have to implement a own widget wich doesn't store empty passwords | 15:16 |
projekt01 | parhaps a widget with a additional confirm password input field which double checks the confirmation. | 15:18 |
markusleist | project01: any example code, out there? this is an usual practice, or? | 15:18 |
projekt01 | not yet, we only have such widgets based on z3c.password for the formlib | 15:19 |
projekt01 | I guess we need to port this to the new z3c.form sooner or later | 15:19 |
projekt01 | If I port this I'll publish it in z3c | 15:20 |
projekt01 | How long can you wait? | 15:20 |
markusleist | 1-2 weeks | 15:20 |
projekt01 | Ok, let me know if till then is nothing there. | 15:21 |
markusleist | for a simple preset of an password-field, which location in z3c.form-code i have to examine? | 15:22 |
projekt01 | you mean set a value in <input type="password" ...>? | 15:23 |
markusleist | yes, maybe i try this for my part.. | 15:24 |
projekt01 | It's not possible, this is restricted by browsers | 15:24 |
markusleist | aaaaaah, aua | 15:24 |
projekt01 | I guess I'm wrong, it's only true for fils uploads | 15:24 |
projekt01 | I guess I'm wrong, it's only true for file uploads | 15:24 |
markusleist | the widget then must preset by javascript or so, right? | 15:25 |
projekt01 | Can you test this in pur HTML? If you can set a password we can fix this in z3c.form. | 15:25 |
markusleist | ~ 1h | 15:26 |
projekt01 | Try to set a value in the password widget in a pur html file first | 15:26 |
markusleist | ok, 1h ... | 15:27 |
projekt01 | Ok, and can you read the HTML specification? If this is possible I'll fix this later | 15:27 |
markusleist | call you later | 15:28 |
projekt01 | Probably I disabled the password value set functionality as I implemented this part. Probably it was in the middle of the night then ;-) | 15:28 |
projekt01 | Ok | 15:28 |
markusleist | you are working at night? ;-) | 15:29 |
*** jsadjohnson has quit IRC | 15:30 | |
projekt01 | ;-) | 15:32 |
*** jsadjohnson has joined #zope3-dev | 15:36 | |
markusleist | projekt01: ok a fast hour ... | 15:39 |
markusleist | mozilla firefox works and | 15:40 |
markusleist | http://www.w3.org/TR/html401/interact/forms.html#h-17.4 | 15:40 |
markusleist | talks about value as optional for all input fields (must have in "radio" or "checkbox"-type) | 15:41 |
markusleist | IE6 seems to work, too | 15:42 |
projekt01 | Ah, I remember, we didn't set the value(password) because it will get sent to the client | 15:42 |
projekt01 | I think this is correct | 15:42 |
projekt01 | But we need another widget which allows us to "not" store emtpy passwords | 15:43 |
*** jsadjohnson has quit IRC | 15:43 | |
markusleist | ok, but for security reasons you have to secure up- and dowdload, or? | 15:43 |
projekt01 | You can't anyway set a value if it's md5 | 15:44 |
markusleist | at the moment, you delete you password-attribute when edituing another property without a typed in password, i think. | 15:45 |
projekt01 | Yes, that what you like to do if you show a password widget. | 15:45 |
markusleist | ok, when stored as md5 or sha. | 15:45 |
projekt01 | Your probelm is only because you liek to use it with other fields in one form | 15:46 |
markusleist | correct | 15:46 |
projekt01 | that's only possible if the password widget is smarter | 15:46 |
projekt01 | probably the dfault password can be smarter and offer a property e.g. allowNoneAsPassword or something else and do't store emtpy passwords by default. | 15:48 |
*** naro has quit IRC | 15:48 | |
markusleist | well then you don't have the alternative to delete the password-attribute by the form | 15:51 |
markusleist | in my use-case the form is an editor for some properties which are used to build a kind of security-proxy. that's why passwords are stored by cleartext. | 15:52 |
projekt01 | password=None means you can't login anymore | 15:54 |
projekt01 | you mean password=u'' | 15:54 |
projekt01 | right? | 15:54 |
*** instantf1o has joined #zope3-dev | 15:54 | |
markusleist | aah, you are right | 15:54 |
*** instantfoo has quit IRC | 15:58 | |
markusleist | which way the z3c.form machinery will differ an empty passord field (value="") on 'Apply' between None or u'' - i don't understand right now | 16:01 |
*** instantf1o has quit IRC | 16:02 | |
markusleist | in z3c.form.browser.password_input.pt i don't find any 'value=' | 16:02 |
*** instantfoo has joined #zope3-dev | 16:02 | |
*** goschtl has joined #zope3-dev | 16:02 | |
markusleist | ok, what's the plan for now? | 16:04 |
*** natea has quit IRC | 16:08 | |
*** jfroche has joined #zope3-dev | 16:08 | |
projekt01 | markusleist, use a form with only the password field if you need to change the password. I'll recommend a thinkbox for this. | 16:09 |
projekt01 | Later we can think about improvements for the default password widget. | 16:10 |
projekt01 | And I'll implement a optional password widget with a additional confirm password input field too. | 16:10 |
markusleist | ok | 16:10 |
projekt01 | But I have to double check this with the existing z3c.password lib as well. | 16:11 |
projekt01 | btw, this is a great password implementation | 16:11 |
markusleist | aha | 16:11 |
markusleist | what exactly is a 'thinkbox'? Any example in formdemo? | 16:12 |
markusleist | z3c.password looks great, ... but a "little" oversized for my usecase | 16:15 |
markusleist | projekt01: thanx so far | 16:15 |
*** norro has joined #zope3-dev | 16:16 | |
*** dokai has quit IRC | 16:20 | |
*** niemeyer has joined #zope3-dev | 16:21 | |
srichter | markusleist: z3c.password was written for a bank ;-) | 16:21 |
markusleist | :-) | 16:21 |
*** dokai has joined #zope3-dev | 16:21 | |
*** bigkevmcd has joined #zope3-dev | 16:21 | |
*** naro has joined #zope3-dev | 16:24 | |
*** dobee has quit IRC | 16:37 | |
*** J1m has joined #zope3-dev | 16:41 | |
projekt01 | markusleist, sorry I mean thickbox; see http://jquery.com/demo/thickbox/ | 16:47 |
projekt01 | markusleist, btw the 3rd. biggest bank in switzerland uses this password implementation ;-) | 16:48 |
projekt01 | and Zope3 it's the first and only application which they allowed to run outside the bank building | 16:49 |
markusleist | zope3, it's cool | 16:50 |
markusleist | projekt01: thickbox is some kind of javascript code. I'm using yui in front of my zope3-app and will look there first... | 16:51 |
projekt01 | markusleist, do you need the password widget for the ver.di project? | 16:52 |
markusleist | no, I'm not involved in a ver.di-projecz | 16:53 |
markusleist | project | 16:53 |
agroszer | hi projekt01 | 16:53 |
projekt01 | markusleist, Ah Ok, I saw some public comments at xing ;-) | 16:54 |
projekt01 | agroszner, hi | 16:54 |
projekt01 | agroszer, I was waiting for you ;-) | 16:54 |
agroszer | ohh | 16:54 |
projekt01 | agroszer, are you comming to Boston next month? | 16:54 |
agroszer | Hungarians need a visa for the US :-(( | 16:55 |
projekt01 | we need to sing on via internet and register us 2 days before we travel to US. | 16:56 |
agroszer | I'm not sure that I'll get it, there are some unspoken rules | 16:56 |
agroszer | a chance could be if a US company has some relations with the gov | 16:57 |
agroszer | (at least the story is that it helps) | 16:58 |
projekt01 | They have such a stupid politic over there and everybody accepts it and waits till the next elections. | 17:00 |
agroszer | would be good to talk about a lot of things | 17:01 |
projekt01 | a endless story .... | 17:01 |
agroszer | yeah | 17:02 |
projekt01 | the bad thing is only that the belive they do it right | 17:02 |
projekt01 | srichter, is there a chance to get agroszer over there with the help from JSA? | 17:02 |
srichter | projekt01: I'll have to ask David | 17:03 |
agroszer | hi Stephan | 17:04 |
agroszer | (hi srichter) | 17:05 |
srichter | agroszer: hi | 17:07 |
agroszer | projekt01: any European sprint in sight or plannig? | 17:10 |
*** jsadjohnson has joined #zope3-dev | 17:11 | |
srichter | agroszer: is hungary not part of the EU? | 17:11 |
agroszer | srichter: sometimes yes, sometimes not | 17:12 |
agroszer | It's going the yes way, but takes time | 17:12 |
zagy | how do I set the encoding of a doctest file? Or what is the encoding? | 17:13 |
zagy | oh | 17:14 |
zagy | rtfm helps | 17:14 |
*** fcorrea has joined #zope3-dev | 17:18 | |
zagy | i hate unicode | 17:24 |
zagy | :/ | 17:24 |
agroszer | zagy, it's still better that the codepage-hell | 17:24 |
zagy | only if the testrunner doesn't die ;) | 17:25 |
zagy | hmpf... the doctest.py fails because it tries to compare a str with a unicode | 17:34 |
*** kleist has joined #zope3-dev | 17:35 | |
*** goschtl has quit IRC | 17:37 | |
*** sorindregan has quit IRC | 17:39 | |
*** kleist_ has joined #zope3-dev | 17:40 | |
*** kleist has quit IRC | 17:42 | |
*** kleist_ is now known as kleist | 17:43 | |
*** dobee has joined #zope3-dev | 17:48 | |
*** natea_ has joined #zope3-dev | 17:51 | |
*** MJ has quit IRC | 17:58 | |
agroszer | projekt01, srichter: I'll try to ask my boss for help, but it's quite a huge company | 18:01 |
projekt01 | agroszer, whould be cool to see you at the sprint | 18:04 |
agroszer | would be good to come together again | 18:05 |
*** kleist has quit IRC | 18:07 | |
*** natea_ has quit IRC | 18:12 | |
*** natea_ has joined #zope3-dev | 18:13 | |
*** natea_ has quit IRC | 18:17 | |
*** ChrisW has joined #zope3-dev | 18:20 | |
ChrisW | how do I put a test in a different level | 18:20 |
ChrisW | ? | 18:20 |
ChrisW | and how do I run tests at a certain level? | 18:20 |
agroszer | ChrisW, you mean layer? | 18:21 |
ChrisW | no, I mean level | 18:22 |
ChrisW | I have soem tests which are *really* slow and I only want them to run in an overnight test run | 18:22 |
agroszer | I see, sorry, can't help you with that | 18:23 |
benji | ChrisW: --at-level=LEVEL to run tests at the specified level or below, --all to run them all | 18:28 |
agroszer | hi benji | 18:28 |
benji | hey | 18:28 |
agroszer | regarding the testbrowser stuff | 18:29 |
agroszer | shall I delete the mechanize and Clientfrom from the trunk? | 18:29 |
benji | do the testbrowser and Zope 3 trunk tests pass if you delete them? | 18:30 |
agroszer | I hope so, if I install the two separately | 18:30 |
agroszer | But will check again | 18:30 |
benji | "install the two separately" doesn't sound good; what does that mean? | 18:31 |
agroszer | sorry | 18:31 |
agroszer | get the eggs | 18:31 |
benji | via buildout, or by hand installing them? | 18:31 |
agroszer | sorry, havent tried buildout yet | 18:32 |
agroszer | just the manual way | 18:32 |
benji | installing testbrowser should install all dependencies | 18:32 |
agroszer | yep, clear | 18:33 |
agroszer | I'll try that | 18:33 |
*** zagy has quit IRC | 18:33 | |
benji | running the testbrowser tests from the testbrowser buildout, built with a *clean* python is the easiest way to test that | 18:34 |
agroszer | yes, sure | 18:35 |
agroszer | (benji: please forgive my beginner things regarding buildout -- I'm on win32) | 18:37 |
jap | a | 18:42 |
benji | b | 18:42 |
jap | fat finger syndrome, sorry ;) | 18:42 |
benji | :) | 18:42 |
projekt01 | agroszer, I implemented win support in the zc.zope3recipe this recipe should made it possible to install zope based on buildoput for win32 too. | 18:42 |
agroszer | projekt01: I think a saw that in a mail, I'll try it | 18:43 |
agroszer | I read the zope3-dev list properly, but don't always have the time to try out new things | 18:46 |
*** natea_ has joined #zope3-dev | 18:47 | |
*** alecm has joined #zope3-dev | 18:53 | |
*** timte has quit IRC | 19:02 | |
*** nathany has joined #zope3-dev | 19:02 | |
*** jukart has quit IRC | 19:02 | |
WebMaven | srichter: AYT? | 19:05 |
ChrisW | benji: thnks for that, I also managed to find what I wanted (give testcase class a class-level "level" attribute of 2) | 19:05 |
*** ignas has quit IRC | 19:05 | |
*** naro has quit IRC | 19:09 | |
*** ChrisW has quit IRC | 19:09 | |
*** ChrisW has joined #zope3-dev | 19:09 | |
*** projekt01 has quit IRC | 19:11 | |
*** dobee has quit IRC | 19:11 | |
*** zagy has joined #zope3-dev | 19:19 | |
*** zagy_ has joined #zope3-dev | 19:21 | |
*** zagy has quit IRC | 19:21 | |
*** zagy_ has quit IRC | 19:25 | |
*** zagy has joined #zope3-dev | 19:25 | |
*** zagy has quit IRC | 19:30 | |
*** zagy has joined #zope3-dev | 19:30 | |
*** harobed has quit IRC | 19:30 | |
*** ferrafox has joined #zope3-dev | 19:40 | |
*** zagy has quit IRC | 19:40 | |
*** jukart has joined #zope3-dev | 19:41 | |
*** zagy has joined #zope3-dev | 19:42 | |
*** ferrafox has quit IRC | 19:43 | |
*** jodok has quit IRC | 19:49 | |
CrippsFX | okay, right now I'm setting up a userdemo for our webapp, it doesn't have to be secure (yet) ... I'm looking for a way to programatically add three users and (statically) assign their roles ... I'm after readin chapter 22 of phil's book, but that delves too far into the authentication machinery et al; I just want to use the default pau and create 3 local users with the local roles/permissions. How would I go about doing that (I assume it's pr | 19:49 |
CrippsFX | etty much all zcml)? | 19:49 |
*** ChrisW has left #zope3-dev | 19:51 | |
fcorrea | Usually there is a principals.zcml that you can stick with | 19:51 |
CrippsFX | fcorrea: I see that now ... in zope/etc ... I assume that I can probably make a *local* (i.e. just for my app, instead of an instance wide) copy of the file and specify those users in there. | 19:52 |
CrippsFX | fcorrea: thanks for pointing me to that though :) | 19:53 |
fcorrea | I am not sure if you can use the same principals from that in your app because I never did it. I think it registers principals/groups for the zope default pau | 19:54 |
fcorrea | You will need to check that | 19:54 |
*** marianom has joined #zope3-dev | 19:55 | |
CrippsFX | fcorrea: yeah, the principals I'm going to be using are custom for the app, so it shouldn't conflict with the instance's principals.zcml configuration. | 19:55 |
CrippsFX | %s/"custom for the app"/"custom for the demo" | 19:56 |
CrippsFX | :) | 19:56 |
CrippsFX | brb...smoketime | 19:57 |
fcorrea | gotcha. You should take a look at schoolbell app. They have some good use cases in there | 19:57 |
*** jukart has quit IRC | 20:09 | |
nathany | I'm porting an app to z3 that uses a ?lang=xx query string to override the target locale for i18n | 20:12 |
nathany | do I need to do anything other than register an adapter for IUserPreferredLanguages | 20:13 |
nathany | ? | 20:13 |
nathany | I've done this, but in some instances it seems like things only work if I call request.setupLocale() manually (and I thought that was called as part of the constructor on the request) | 20:13 |
srichter | mmh, strange | 20:14 |
srichter | providing the adapter should be enough | 20:14 |
srichter | I would consider it a bug, if it is not done correctly; this might need some digging in the publisher | 20:14 |
nathany | hrm... i'm providing an adapter for IHTTPRequest to IUserPreferredLanguages | 20:15 |
nathany | does that sound sane? | 20:15 |
srichter | yep | 20:15 |
srichter | is this adapter picked up? | 20:16 |
nathany | yeah... calling .setupLocale() manually sets up the locale as i'd expect | 20:16 |
srichter | because I think the original adapter is registered for IBrowserRequwest | 20:16 |
srichter | ok | 20:16 |
nathany | hrm, interesting | 20:16 |
nathany | i should look @ that... | 20:16 |
srichter | do you have a specific skin? | 20:16 |
srichter | register your adapter for that specific layer, so that it will definitately be picked up | 20:17 |
nathany | nope (err, I don't think so... )... I haven't specified one at least | 20:17 |
nathany | do you happen to know where the original adapter lives? | 20:17 |
srichter | phew, no | 20:17 |
nathany | ok, I'll do some digging around for it | 20:17 |
srichter | I would do a find-grep as much as you will do it in a sec ;-) | 20:18 |
nathany | :) | 20:18 |
nathany | srichter: just saw your email re: the sprint; I think I'm supposed to be speaking @ an open education conference in SLC, UT that week, but I'll see what I can do | 20:18 |
nathany | sprinting sounds like more fun | 20:18 |
srichter | :-) | 20:18 |
srichter | nathany: come for as much as you can; any number of days > 0 is better than 0 ;-) | 20:19 |
nathany | srichter: will do | 20:22 |
nathany | srichter: I wonder if it's important to also implement an adapter for IModifiableUserPreferredLanguages -- | 20:32 |
nathany | I see the default registration for that subclasses a class which implements IUserPreferredLanguages | 20:32 |
nathany | (zope.app.publisher.browser) | 20:33 |
srichter | whee, I don't know anymore; | 20:33 |
srichter | Roger Ineichen (projekt01) is the right person to talk to | 20:33 |
srichter | he has done very complex setups with setting the locale | 20:33 |
srichter | I know he has written custom adapters too | 20:34 |
nathany | ok, cool; thanks | 20:34 |
*** norro has quit IRC | 20:41 | |
CrippsFX | alright ... time for office moving ... I'll be back in awhile. | 20:42 |
*** CrippsFX has quit IRC | 20:42 | |
xbeanx | Is there any easy way to specify an input widget's cssClass? | 20:47 |
xbeanx | like in zcml or something? | 20:47 |
xbeanx | basically I am converting a template into a skin, but I can't figure out how to change the look of my text input widgets. | 20:48 |
srichter | xbeanx: zope.formlib or z3c.form? | 20:50 |
xbeanx | formlib | 20:51 |
srichter | I dunnoi then | 20:52 |
srichter | I think you can set the cssClass attribute | 20:52 |
srichter | you have to do this in updateWidgets soemwhere | 20:52 |
*** nerdalert has joined #zope3-dev | 20:53 | |
xbeanx | I noticed that attribute, was wondering if there was an easy way to change it.... I'll keep poking, I'm sure I'll figure it out. | 20:53 |
nathany | srichter: i tracked down at least part of my problem -- i'm trying to introspect the form for a key to get the preferred lang | 21:20 |
nathany | but the iuserpreferredlanguages adapter gets called before request.processInput | 21:20 |
nathany | so .form is empty @ that point | 21:20 |
nathany | sigh | 21:20 |
srichter | ahh | 21:24 |
srichter | that's too bad | 21:24 |
srichter | nathany: is it a matter of simply switching the order of calls? | 21:25 |
nathany | yeah... which explains why the second call worked before -- the form was populated by then | 21:25 |
nathany | i don't think so | 21:25 |
srichter | darn | 21:25 |
srichter | but I think this is fixable | 21:25 |
nathany | i think there are a couple of layers between the two | 21:26 |
*** benji has quit IRC | 21:26 | |
srichter | because it really should be done later | 21:26 |
nathany | the getpreferredlanguages call should be? | 21:26 |
srichter | yep | 21:26 |
nathany | the thing is .processInput handles the form, and it's called *just* prior to publication in .publish (iirc) | 21:27 |
srichter | ok | 21:27 |
nathany | while the locale is set up when the request is created | 21:27 |
srichter | then that's clearly too early | 21:27 |
nathany | so i don't know how it'd impact things if the locale wasn't configured until publication time... | 21:27 |
srichter | I would try it out and see how many tests fail | 21:28 |
nathany | good idea :) | 21:28 |
srichter | (btw, I just thought about a hack how to get it working) | 21:28 |
nathany | i did too -- add an additional call to setupLocale in my browserpage subclass | 21:28 |
srichter | too intrusive :-) | 21:29 |
nathany | lol | 21:29 |
srichter | There is an event called BeforeTraversalStep or so | 21:29 |
nathany | ah | 21:29 |
nathany | subscribe to that? | 21:29 |
srichter | write a subscriber for that | 21:29 |
srichter | yep :-) | 21:29 |
nathany | good idea | 21:29 |
srichter | make sure you only do it once, by looking at the object you are currently at | 21:30 |
nathany | i'm not sure i follow... you mean decorate the object somehow to make sure i only do it once? | 21:30 |
srichter | no, the BeforeTraversalStep event is called for each traversal step | 21:31 |
srichter | in foo/bar/blah for foo, bar, blah | 21:31 |
srichter | you do not want the subscriber to do all the work at each step | 21:32 |
srichter | but only at the first one | 21:32 |
nathany | ah, go it | 21:34 |
nathany | go=got | 21:34 |
*** natea_ has quit IRC | 21:37 | |
*** b52laptop has quit IRC | 21:38 | |
*** Jell-O-Fishi has joined #zope3-dev | 21:40 | |
*** agroszer_ has joined #zope3-dev | 21:41 | |
*** agroszer_ has quit IRC | 21:42 | |
*** CrippsFX has joined #zope3-dev | 21:48 | |
*** agroszer has quit IRC | 21:51 | |
*** Newfie2007 has quit IRC | 21:53 | |
philiKON_ | nathany, srichter: BeforeTraverseEvent | 22:02 |
*** jodok has joined #zope3-dev | 22:32 | |
*** rocky is now known as rocky|away | 22:32 | |
*** foxmjay has joined #zope3-dev | 23:00 | |
*** jukart has joined #zope3-dev | 23:04 | |
*** jukart has quit IRC | 23:20 | |
CrippsFX | when using the <grant role="" principal="" /> directive, do I specify multiple roles by using a comma delimited list i.e. <grant role="zope.ManageContent, zope.View" principal="zope.FullUser" /> (I know zope.ManageContent and zope.View would be redundant, but this is just for the sake of example) ?"" | 23:24 |
*** naro has joined #zope3-dev | 23:32 | |
*** TresEquis has joined #zope3-dev | 23:35 | |
nathany | philiKON_:thx | 23:37 |
philiKON_ | CrippsFX: i don't think so. you need multiple grant statements | 23:38 |
CrippsFX | philiKON_: okay, thanks, I'll give that a shot. | 23:38 |
CrippsFX | philiKON_: yep ... that seems to have done the trick. Now I just have to do the local overrides ... oh well, that's something to "look forward to" for monday ... time for me to go home and eat ... then relax, because it's the weekend! | 23:44 |
CrippsFX | ciao all! | 23:44 |
*** norro has joined #zope3-dev | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!