| *** alecm has joined #zope3-dev | 00:29 | |
| malthe | I get the following exception in a functional test; in a real application it runs fine: "InvalidObjectReference: Attempt to store a reference to an object from a separate connection to the same database or multidatabase" | 00:34 |
|---|---|---|
| malthe | It occurs when I annotate an ``ore.workflow`` persistent workflow that is made up from transitions defined on a module-level. | 00:37 |
| *** d2m has quit IRC | 00:40 | |
| *** sunew has quit IRC | 00:42 | |
| malthe | So the issue is really that I'm creating a persistent object that gets a different connection to the ZODB. | 00:45 |
| *** norro has quit IRC | 00:51 | |
| *** lisppaste6 has quit IRC | 00:56 | |
| *** jsadjohnson has quit IRC | 01:04 | |
| *** lisppaste6 has joined #zope3-dev | 01:09 | |
| malthe | Okay it seems to have to do with persistent utilities as instantiated by getUtility. | 01:12 |
| *** quodt_ has quit IRC | 01:13 | |
| *** regebro has quit IRC | 01:21 | |
| *** malthe is now known as malthe|Zzz | 01:21 | |
| *** reco has quit IRC | 01:24 | |
| *** alecm has quit IRC | 01:28 | |
| *** rcrafton has quit IRC | 01:39 | |
| *** salfield has quit IRC | 02:04 | |
| *** harobed has quit IRC | 02:05 | |
| *** alecm has joined #zope3-dev | 02:16 | |
| *** ccomb has quit IRC | 02:18 | |
| *** b52laptop has quit IRC | 02:25 | |
| *** alecm has quit IRC | 02:38 | |
| *** febb has joined #zope3-dev | 02:43 | |
| *** J1m has quit IRC | 02:58 | |
| *** sm has quit IRC | 03:01 | |
| *** hazmat has joined #zope3-dev | 03:13 | |
| *** ChanServ sets mode: +o hazmat | 03:13 | |
| *** whit has quit IRC | 03:38 | |
| *** whit has joined #zope3-dev | 03:41 | |
| *** lucielejard has joined #zope3-dev | 03:55 | |
| *** whit has quit IRC | 03:55 | |
| *** whit has joined #zope3-dev | 04:07 | |
| *** whit has quit IRC | 04:13 | |
| *** reco has joined #zope3-dev | 04:27 | |
| *** lucielejard has quit IRC | 04:42 | |
| *** lucielejard has joined #zope3-dev | 04:42 | |
| *** lucielejard has quit IRC | 04:43 | |
| *** reco has quit IRC | 04:45 | |
| *** reco has joined #zope3-dev | 04:52 | |
| *** reco has quit IRC | 05:10 | |
| *** reco has joined #zope3-dev | 05:37 | |
| *** reco_ has joined #zope3-dev | 05:48 | |
| *** reco has quit IRC | 05:55 | |
| *** reco has joined #zope3-dev | 06:05 | |
| *** stub has joined #zope3-dev | 06:06 | |
| *** reco_ has quit IRC | 06:07 | |
| *** reco_ has joined #zope3-dev | 06:21 | |
| *** tarek|away has quit IRC | 06:24 | |
| *** tarek|away has joined #zope3-dev | 06:24 | |
| *** reco has quit IRC | 06:29 | |
| *** reco has joined #zope3-dev | 06:33 | |
| *** reco_ has quit IRC | 06:40 | |
| *** febb has quit IRC | 06:45 | |
| *** febb has joined #zope3-dev | 06:46 | |
| *** tarek|away has quit IRC | 06:48 | |
| *** reco_ has joined #zope3-dev | 06:53 | |
| *** reco has quit IRC | 06:53 | |
| *** pcardune has joined #zope3-dev | 07:04 | |
| *** reco_ has quit IRC | 07:10 | |
| *** sm has joined #zope3-dev | 07:11 | |
| *** reco has joined #zope3-dev | 07:12 | |
| *** afd_ has joined #zope3-dev | 07:14 | |
| *** pcardune has quit IRC | 07:25 | |
| *** huajie has joined #zope3-dev | 07:26 | |
| *** jayaraj has joined #zope3-dev | 07:33 | |
| *** reco has quit IRC | 07:35 | |
| *** amit_am has joined #zope3-dev | 07:41 | |
| *** reco has joined #zope3-dev | 07:41 | |
| *** reco has quit IRC | 08:00 | |
| *** d2m has joined #zope3-dev | 08:00 | |
| *** reco has joined #zope3-dev | 08:04 | |
| *** afd_ has quit IRC | 08:10 | |
| *** philiKON_ has joined #zope3-dev | 08:11 | |
| *** reco has quit IRC | 08:20 | |
| *** philiKON has quit IRC | 08:26 | |
| *** sorin has joined #zope3-dev | 08:44 | |
| *** sorin is now known as sorindregan | 08:44 | |
| *** jukart has joined #zope3-dev | 08:50 | |
| *** afd_ has joined #zope3-dev | 09:08 | |
| *** kursor has joined #zope3-dev | 09:23 | |
| *** febb has quit IRC | 09:28 | |
| *** projekt01 has joined #zope3-dev | 09:58 | |
| *** harobed has joined #zope3-dev | 10:01 | |
| *** timte_ has joined #zope3-dev | 10:04 | |
| *** timte has quit IRC | 10:06 | |
| *** ghendi has joined #zope3-dev | 10:08 | |
| *** jpcw2002 has joined #zope3-dev | 10:10 | |
| *** pelle_ has joined #zope3-dev | 10:17 | |
| *** norro has joined #zope3-dev | 10:17 | |
| *** malthe|Zzz has quit IRC | 10:27 | |
| *** jodok has joined #zope3-dev | 10:30 | |
| *** quodt_ has joined #zope3-dev | 10:32 | |
| *** toutpt has joined #zope3-dev | 10:34 | |
| *** MJ has joined #zope3-dev | 10:38 | |
| *** sorindregan has quit IRC | 10:51 | |
| *** malthe has joined #zope3-dev | 10:52 | |
| *** sorin has joined #zope3-dev | 10:52 | |
| *** sorin is now known as sorindregan | 10:52 | |
| *** maurits has joined #zope3-dev | 10:57 | |
| *** febb has joined #zope3-dev | 11:03 | |
| *** bigkevmcd has joined #zope3-dev | 11:11 | |
| *** ktwilight_ has joined #zope3-dev | 11:36 | |
| *** mkerrin has joined #zope3-dev | 11:37 | |
| *** markusleist has joined #zope3-dev | 11:41 | |
| *** ccomb has joined #zope3-dev | 11:42 | |
| *** zagy has joined #zope3-dev | 11:43 | |
| *** pyqwer has joined #zope3-dev | 11:47 | |
| pyqwer | Morning! | 11:48 |
| pyqwer | Does someone know how to reach through informations from the Auth/Credentials Plugins to my Login form? | 11:48 |
| *** zagy has quit IRC | 11:49 | |
| pyqwer | I can successfully authenticate, but I for instance don't know how to check in my login form why my authentication failed (no cookies enabled, wrong login, wrong password) etc. | 11:49 |
| pyqwer | And I need to communicate this info to the user. | 11:49 |
| *** ktwilight has quit IRC | 11:51 | |
| *** goschtl has joined #zope3-dev | 11:55 | |
| *** jodok has quit IRC | 11:56 | |
| *** thruflo has joined #zope3-dev | 12:07 | |
| *** b52laptop has joined #zope3-dev | 12:11 | |
| *** mderstap has joined #zope3-dev | 12:13 | |
| *** ktwilight has joined #zope3-dev | 12:17 | |
| *** dunny has quit IRC | 12:23 | |
| *** ktwilight_ has quit IRC | 12:32 | |
| *** sunew has joined #zope3-dev | 12:42 | |
| *** timte_ is now known as timte | 12:51 | |
| *** stub has quit IRC | 13:07 | |
| *** mcdonc has quit IRC | 13:12 | |
| *** zagy has joined #zope3-dev | 13:14 | |
| *** philiKON_ is now known as philiKON | 13:20 | |
| *** sunew has quit IRC | 13:26 | |
| *** MJ has quit IRC | 13:34 | |
| *** MJ has joined #zope3-dev | 13:34 | |
| *** salfield has joined #zope3-dev | 13:40 | |
| *** sm has quit IRC | 13:45 | |
| *** benji has quit IRC | 13:47 | |
| *** mcdonc has joined #zope3-dev | 13:50 | |
| *** stub has joined #zope3-dev | 13:53 | |
| *** projekt01 has quit IRC | 14:13 | |
| *** rocky has joined #zope3-dev | 14:23 | |
| *** toutpt has quit IRC | 14:24 | |
| *** benji has joined #zope3-dev | 14:25 | |
| *** niemeyer has joined #zope3-dev | 14:43 | |
| *** ccomb has quit IRC | 14:55 | |
| *** MJ is now known as MJ|lunch | 14:57 | |
| *** MJ|lunch is now known as MJ|out | 14:57 | |
| *** afd_ has quit IRC | 15:02 | |
| *** toutpt has joined #zope3-dev | 15:06 | |
| *** danielblackburn has joined #zope3-dev | 15:10 | |
| *** rcrafton has joined #zope3-dev | 15:24 | |
| *** jodok has joined #zope3-dev | 15:27 | |
| *** whit has joined #zope3-dev | 15:27 | |
| *** whit has quit IRC | 15:34 | |
| *** whit has joined #zope3-dev | 15:35 | |
| *** mderstap has left #zope3-dev | 15:35 | |
| *** jsadjohnson has joined #zope3-dev | 15:37 | |
| *** stub has quit IRC | 15:39 | |
| *** projekt01 has joined #zope3-dev | 15:40 | |
| *** kursor has quit IRC | 15:45 | |
| *** huajie has quit IRC | 15:48 | |
| *** nathany has joined #zope3-dev | 15:54 | |
| *** tarek has joined #zope3-dev | 15:59 | |
| *** reco has joined #zope3-dev | 16:00 | |
| *** ghendi has quit IRC | 16:04 | |
| *** MJ|out is now known as MJ | 16:05 | |
| *** malthe has quit IRC | 16:10 | |
| *** jayaraj has quit IRC | 16:12 | |
| *** salfield_ has joined #zope3-dev | 16:15 | |
| *** salfield has quit IRC | 16:17 | |
| *** salfield_ is now known as salfield | 16:18 | |
| *** afd_ has joined #zope3-dev | 16:22 | |
| *** malthe has joined #zope3-dev | 16:22 | |
| *** nouri has joined #zope3-dev | 16:29 | |
| *** rmarianski has joined #zope3-dev | 16:40 | |
| *** whit has quit IRC | 16:42 | |
| *** lucielejard has joined #zope3-dev | 16:44 | |
| *** RaFromBRC has joined #zope3-dev | 17:01 | |
| *** norro has quit IRC | 17:17 | |
| *** pelle__ has joined #zope3-dev | 17:20 | |
| *** norro has joined #zope3-dev | 17:26 | |
| *** sorindregan has quit IRC | 17:27 | |
| *** pelle_ has quit IRC | 17:35 | |
| *** pelle__ has quit IRC | 17:38 | |
| *** pcardune has joined #zope3-dev | 17:44 | |
| *** pcardune_vm_ has joined #zope3-dev | 17:56 | |
| *** pcardune_vm_ is now known as pcardune_vm | 17:57 | |
| *** norro has quit IRC | 18:02 | |
| *** danielblackburn has quit IRC | 18:04 | |
| *** reco is now known as reco|meeting | 18:13 | |
| *** norro has joined #zope3-dev | 18:20 | |
| *** jodok has quit IRC | 18:24 | |
| *** projekt01 has quit IRC | 18:28 | |
| *** pyqwer has quit IRC | 18:42 | |
| *** nouri has quit IRC | 18:47 | |
| *** maurits has quit IRC | 18:50 | |
| *** pyqwer has joined #zope3-dev | 18:50 | |
| pyqwer | afd_: Hi, if I remember right, you also recently implemented some authentication, right? | 18:50 |
| afd_ | not recently, but maybe I can help you | 18:51 |
| *** reco|meeting is now known as reco | 18:51 | |
| afd_ | I've debuged code of auth related stuff | 18:51 |
| pyqwer | Oh, that would be great. The authentication is currently working very well, but I don't know how to pass through information to my login form. | 18:51 |
| pyqwer | For instance, passing why a login failed (no such user, wrong pass etc.) | 18:52 |
| pyqwer | In my login form, the authentication has already be done and I know nothing about it. | 18:52 |
| *** febb has joined #zope3-dev | 18:53 | |
| afd_ | pyqwer: thinking | 18:53 |
| pyqwer | I could perhaps put some information in the thread, I assume. But I'm unsure if this is nice. | 18:53 |
| afd_ | most of the times the purpose of the login form is just to serve as a place where to put info for the request | 18:54 |
| afd_ | then the credential plugin takes this info | 18:54 |
| pyqwer | exactly. | 18:54 |
| *** pbugni has joined #zope3-dev | 18:54 | |
| *** jpcw2002 has quit IRC | 18:55 | |
| pyqwer | currently, I "recheck" the password in the action handler of my form, but this is quite silly. | 18:55 |
| afd_ | have you written your own authentication and credential plugins? | 18:56 |
| pyqwer | My own authentication, yes, credential not yet, but that should not be too hard. | 18:57 |
| pyqwer | Moreover, there's a similar problem in the credentials, too. | 18:57 |
| pyqwer | If the browser does not support cookies, the credential plugin will (hopefully) notice this and redirect the user to a specific page. | 18:57 |
| afd_ | can't you throw some meaningful error on authenticateCredentials? and display that error in an error page... | 18:58 |
| *** agroszer has joined #zope3-dev | 18:58 | |
| pyqwer | afd_: Hmmm, but who would catch this error? | 18:58 |
| pyqwer | A generic error page? Hmmm. | 18:59 |
| afd_ | pyqwer: either register a generic page for all exceptions, which would show the errors | 18:59 |
| afd_ | or throw specific errors, and register pages just for them | 18:59 |
| pyqwer | So, it's quite common to have a login page that displays "Wrong user/password combination" in case the user entered a wrong login. | 18:59 |
| pyqwer | Hmmm, quite complicated - perhaps it's easier then to put the information in the local thread then? | 19:00 |
| afd_ | you mean, annotate the request? | 19:01 |
| afd_ | pyqwer: it's not that hard, though, your use case, to display "wrong username/password" | 19:01 |
| pyqwer | No, if I understand it right, you can do something like "from thread import local". And then you can just write "local.auth_error=blabla". | 19:01 |
| pyqwer | And in my form, I once again import local and access the information. | 19:02 |
| afd_ | check for the auth input (which should be in the request), check if the request.principal.id is different from zope.anybody | 19:02 |
| *** tarek has quit IRC | 19:02 | |
| pyqwer | Yes, that's one option I also already use, I check if the request provides IUnauthenticatedPrincipal. | 19:02 |
| pyqwer | This tells me if the authentication succeeded but not why it did not. | 19:03 |
| afd_ | like, for example, missing cookies support? | 19:03 |
| pyqwer | Yes, for instance. | 19:03 |
| *** timte has quit IRC | 19:03 | |
| pyqwer | Or "no such user" | 19:04 |
| pyqwer | (which is different from a wrong password) | 19:04 |
| afd_ | maybe you can get away with just 'wrong username/password' | 19:04 |
| pyqwer | Hmmm, unfortunately not, there's a lot more info. | 19:04 |
| afd_ | I think plone, for instance, has some js code to check cookies support | 19:04 |
| *** b52laptop has quit IRC | 19:04 | |
| pyqwer | For instance, in my system it's possible to lock out users (in case they did something nasty). | 19:05 |
| afd_ | I see | 19:05 |
| pyqwer | So, I don't only check the password but also a flag "locked" on the user. | 19:05 |
| *** b52laptop has joined #zope3-dev | 19:05 | |
| afd_ | shouldn't be too hard to implement those error pages, though | 19:05 |
| pyqwer | And what I'd like to do is to redirect the user to another page in case he is locked. | 19:05 |
| pyqwer | Same thing for an unconfirmed user. | 19:05 |
| pyqwer | I assume, in the authentication utility, I can't redirect, right? | 19:06 |
| afd_ | if you have access to the request, maybe | 19:07 |
| afd_ | but I don't see it used in the zope equivalent stuff | 19:07 |
| pyqwer | Hmmm, I'll check that. | 19:07 |
| afd_ | pyqwer: http://svn.zope.org/*checkout*/z3c.layer.pagelet/trunk/src/z3c/layer/pagelet/zope.app.http.exception.zcml | 19:08 |
| afd_ | it's not that hard to write your custom exception page.. | 19:08 |
| pyqwer | Ah, I see, so all I do is to register a view for a custom error? | 19:09 |
| afd_ | yes | 19:09 |
| pyqwer | Yes, that's an option. | 19:09 |
| pyqwer | And then, I have another (very silly) thing: My Login form has an "OK" and "Cancel" button. | 19:09 |
| pyqwer | You probably know what happens if the user inputs the right credentials and then presses "Cancel" ;-) | 19:10 |
| afd_ | is this a formlib generated form? | 19:11 |
| pyqwer | No, z3c.form. | 19:11 |
| afd_ | maybe in the cancel action handler you clear a cookie | 19:12 |
| afd_ | or... why don't you make the Cancel button be a reset button? | 19:12 |
| pyqwer | Well, yes that's what I also thought. I could also call the logout() function of my Credential plugin. | 19:12 |
| afd_ | or you need it to redirect to a different page with it? | 19:13 |
| pyqwer | The cancel button should also redirect ,right. | 19:13 |
| pyqwer | I use Zope3 for a mobile app, so I need this navigation as there are no menus. | 19:13 |
| afd_ | I see | 19:13 |
| pyqwer | I also thought about writing my own SessionCredentials plugin and check if theres button.cancel in the request. | 19:14 |
| pyqwer | I probably have to write my own credential anyway for the cookie checking. | 19:14 |
| *** J1m has joined #zope3-dev | 19:14 | |
| afd_ | I'd call credential_plugin.logout() in the action handler | 19:14 |
| pyqwer | Yes, that's *maybe* an option. | 19:15 |
| pyqwer | But there could be problems with the automatic redirection of the logout function. | 19:15 |
| afd_ | http://svn.zope.org/z3c.authentication/trunk/src/z3c/authentication/cookie/ | 19:15 |
| pyqwer | If my context is not accessible, it redirects me back to my login page. | 19:16 |
| afd_ | logout can just erase some cookies, then redirect to a page. It doesn't have to enter circular redirection, if that's what you're afraid of | 19:17 |
| pyqwer | Ok. | 19:18 |
| *** ktwilight has quit IRC | 19:20 | |
| pyqwer | afd_: Ok, thanks a lot! I'll quit for today and put these idea into action tomorrow! | 19:21 |
| afd_ | np | 19:21 |
| *** pyqwer has quit IRC | 19:22 | |
| *** agroszer_ has joined #zope3-dev | 19:22 | |
| *** markusleist has quit IRC | 19:28 | |
| *** jukart has quit IRC | 19:28 | |
| *** danielblackburn has joined #zope3-dev | 19:31 | |
| *** MJ has quit IRC | 19:32 | |
| *** goschtl has quit IRC | 19:36 | |
| *** harobed has quit IRC | 19:37 | |
| *** agroszer has quit IRC | 19:39 | |
| *** agroszer_ is now known as agroszer | 19:39 | |
| *** povbot has joined #zope3-dev | 19:46 | |
| *** sunew has joined #zope3-dev | 19:48 | |
| *** thruflo has quit IRC | 19:52 | |
| *** thruflo has joined #zope3-dev | 19:53 | |
| *** tarek has joined #zope3-dev | 19:53 | |
| *** sm has joined #zope3-dev | 19:54 | |
| *** tarek has quit IRC | 20:03 | |
| *** toutpt has quit IRC | 20:06 | |
| *** benji has quit IRC | 20:15 | |
| *** benji has joined #zope3-dev | 20:16 | |
| *** malthe has quit IRC | 20:18 | |
| *** sp0cksbeard has joined #zope3-dev | 20:22 | |
| *** MJ has joined #zope3-dev | 20:24 | |
| *** regebro has joined #zope3-dev | 20:29 | |
| *** afd_ has quit IRC | 20:38 | |
| *** mkerrin has quit IRC | 20:39 | |
| *** dunny has joined #zope3-dev | 20:40 | |
| *** jukart has joined #zope3-dev | 20:41 | |
| *** MJ has quit IRC | 20:42 | |
| *** reco is now known as reco|vudoskinnin | 20:45 | |
| *** reco|vudoskinnin is now known as reco|vudo | 20:46 | |
| *** stub has joined #zope3-dev | 20:54 | |
| *** danielblackburn has quit IRC | 21:02 | |
| *** benji has quit IRC | 21:04 | |
| *** nouri has quit IRC | 21:17 | |
| *** ktwilight has joined #zope3-dev | 21:19 | |
| *** danielblackburn has joined #zope3-dev | 21:46 | |
| *** quodt_ has quit IRC | 21:49 | |
| *** jukart has quit IRC | 21:50 | |
| *** d2m has quit IRC | 21:55 | |
| *** quodt has joined #zope3-dev | 22:04 | |
| *** benji has joined #zope3-dev | 22:06 | |
| *** agroszer has quit IRC | 22:07 | |
| *** pbugni has quit IRC | 22:09 | |
| *** pbugni has joined #zope3-dev | 22:09 | |
| *** alecm has joined #zope3-dev | 22:10 | |
| *** thruflo has quit IRC | 22:13 | |
| *** nouri has joined #zope3-dev | 22:14 | |
| *** stu1 has joined #zope3-dev | 22:14 | |
| *** stub has quit IRC | 22:14 | |
| *** stu1 is now known as stub | 22:14 | |
| *** stu1 has joined #zope3-dev | 22:18 | |
| *** stub has quit IRC | 22:18 | |
| *** stu1 is now known as stub | 22:18 | |
| *** stub has quit IRC | 22:23 | |
| *** sunew has quit IRC | 22:25 | |
| *** salfield has quit IRC | 22:31 | |
| *** nathany has quit IRC | 22:35 | |
| *** pbugni_ has joined #zope3-dev | 22:39 | |
| *** pbugni has quit IRC | 22:56 | |
| *** malthe has joined #zope3-dev | 23:05 | |
| *** reco|vudo has quit IRC | 23:22 | |
| *** ktwilight has quit IRC | 23:33 | |
| *** ktwilight has joined #zope3-dev | 23:33 | |
| *** lucielejard has quit IRC | 23:35 | |
| *** amit_am has left #zope3-dev | 23:44 | |
| *** reco has joined #zope3-dev | 23:45 | |
| *** RaFromBRC has quit IRC | 23:48 | |
| *** dunny has quit IRC | 23:54 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!