*** jvts has quit IRC | 00:01 | |
*** niemeyer has quit IRC | 00:06 | |
*** SureshE has joined #zope3-dev | 00:11 | |
*** bradb has quit IRC | 00:31 | |
*** sashav has joined #zope3-dev | 00:52 | |
*** benji_york has quit IRC | 01:08 | |
*** mnemoc has joined #zope3-dev | 01:18 | |
*** projekt01 has quit IRC | 01:40 | |
*** SureshE has left #zope3-dev | 01:41 | |
*** tiredbones has quit IRC | 02:36 | |
*** yota has quit IRC | 02:40 | |
*** FrankBerger has left #zope3-dev | 03:34 | |
*** d2m_ has joined #zope3-dev | 03:35 | |
*** d2m has quit IRC | 03:35 | |
*** d2m_ is now known as d2m | 03:35 | |
*** roym has quit IRC | 03:39 | |
*** niemeyer has joined #zope3-dev | 03:59 | |
*** stub has joined #zope3-dev | 04:21 | |
*** philiKON has joined #zope3-dev | 04:33 | |
*** MiUlEr has joined #zope3-dev | 04:41 | |
*** philiKON has quit IRC | 05:51 | |
*** niemeyer has quit IRC | 06:49 | |
*** srichter has joined #zope3-dev | 07:05 | |
*** MiUlEr has quit IRC | 07:59 | |
*** stub has quit IRC | 08:22 | |
*** stub has joined #zope3-dev | 08:26 | |
*** dobee has joined #zope3-dev | 08:46 | |
*** zagy has quit IRC | 08:50 | |
*** zagy has joined #zope3-dev | 08:53 | |
*** sashav has quit IRC | 09:26 | |
*** jvts has joined #zope3-dev | 10:00 | |
*** tekNico has joined #zope3-dev | 10:04 | |
*** yota has joined #zope3-dev | 10:10 | |
*** zagy has quit IRC | 10:15 | |
*** zagy has joined #zope3-dev | 10:16 | |
*** sashav has joined #zope3-dev | 10:31 | |
*** tarek has joined #zope3-dev | 11:03 | |
*** MrTopf has joined #zope3-dev | 11:16 | |
*** menomc has joined #zope3-dev | 11:25 | |
*** mnemoc has quit IRC | 11:25 | |
*** menomc is now known as mnemoc | 11:29 | |
*** ignas has joined #zope3-dev | 11:31 | |
*** tekNico has quit IRC | 11:46 | |
*** Aiste has quit IRC | 12:00 | |
*** Aiste has joined #zope3-dev | 12:03 | |
*** stub has quit IRC | 12:25 | |
*** projekt01 has joined #zope3-dev | 12:40 | |
*** jinty has joined #zope3-dev | 12:53 | |
*** faassen has joined #zope3-dev | 13:07 | |
*** vlado has joined #zope3-dev | 13:08 | |
*** projekt01 has left #zope3-dev | 13:09 | |
*** projekt01 has joined #zope3-dev | 13:11 | |
*** anguenot has joined #zope3-dev | 13:32 | |
*** kaczordek has joined #zope3-dev | 13:38 | |
*** philiKON has joined #zope3-dev | 13:41 | |
*** roym has joined #zope3-dev | 14:10 | |
roym | I followed and created stephans example for file based authentication | 14:16 |
---|---|---|
roym | from the book. In my "default" site folder, I created and registered a | 14:16 |
roym | "Pluggable Authentication Utility". However, in its adding view, I only see: | 14:16 |
roym | o Group Folder | 14:16 |
roym | o HTTP Basic-Auth Plugin | 14:16 |
roym | o Principal Folder | 14:16 |
roym | o Session Credentials Plugin | 14:16 |
roym | and no "... /etc/passwd style" menu entry as promised. Any tips as to where | 14:16 |
roym | I might dig deeper to figure this one out? | 14:16 |
*** philiKON has quit IRC | 14:27 | |
roym | If I look at the registrations for site manager, I do see: | 14:27 |
roym | AdapterRegistration(('IAdding', 'IDefaultBrowserLayer'), 'AddMenu', u'/etc/passwd Principal Source', <zope.app.publisher.browser.menumeta.MenuItemFactory object at 0x414a108c>, File "/var/lib/zope3/instances/instance1/lib/python/anoobe/quiztaker/passwdauth/configure.zcml", line 27.0-32.6), | 14:27 |
*** ChanServ sets mode: +o srichter | 14:30 | |
srichter | roym: you created the wrong pluggable authentication utility | 14:54 |
srichter | the one you created is the new one, not the old one from the book | 14:54 |
*** tiredbones has joined #zope3-dev | 15:07 | |
*** niemeyer has joined #zope3-dev | 15:15 | |
roym | srichter: by new one, do you mean from svn://svn.zope.org/repos/main/book/trunk/passwdauth | 15:34 |
roym | Is the new one not meant to work in the latest z3 trunk? | 15:35 |
roym | oh - I did a diff, and it looks like the menu entries have basically changed... however I get a "ConfigurationError: ('Invalid value for', 'menu', "Couldn't import add_principal_source, No module named add_principal_source")" when I use the code from the book.... | 15:51 |
roym | How would I find the menu name in the PAU adding view? | 15:51 |
srichter | there are two pluggable authentication utilities that come with Zope 3 | 15:54 |
srichter | the old one from zope.app.pluggableauth and the new one in zope.app.authentication | 15:54 |
roym | So you're saying that the trunk instance does not recognize my code, because my class implements the old interfaces? | 15:56 |
roym | oops - by "my code" I mean "my registration".. | 15:57 |
*** _projekt01 has joined #zope3-dev | 16:02 | |
*** fcorrea has joined #zope3-dev | 16:07 | |
*** ignas has quit IRC | 16:08 | |
*** projekt01 has quit IRC | 16:10 | |
*** _projekt01 is now known as projekt01 | 16:14 | |
*** Aiste has quit IRC | 16:21 | |
*** J1m has joined #zope3-dev | 16:32 | |
*** srichter has quit IRC | 16:34 | |
*** J1m has quit IRC | 16:34 | |
*** kaczordek has quit IRC | 16:37 | |
*** roym` has joined #zope3-dev | 16:46 | |
*** sashav_ has joined #zope3-dev | 17:05 | |
*** sashav has quit IRC | 17:22 | |
*** srichter has joined #zope3-dev | 17:23 | |
*** sashav_ has quit IRC | 17:27 | |
*** dobee has quit IRC | 17:33 | |
*** mkerrin has joined #zope3-dev | 17:39 | |
*** bradb_ has joined #zope3-dev | 17:41 | |
*** zagy_ has joined #zope3-dev | 17:49 | |
*** zagy has quit IRC | 17:58 | |
*** dobee has joined #zope3-dev | 17:59 | |
*** efge has joined #zope3-dev | 18:25 | |
*** MrTopf has quit IRC | 18:30 | |
*** dobee has quit IRC | 18:34 | |
*** VladDrac has joined #zope3-dev | 18:43 | |
VladDrac | 'llo | 18:43 |
* VladDrac 's hacking zope3's publication a bit, to support AMF request/responses | 18:43 | |
VladDrac | modelled after the JSON work by Jim Washington | 18:44 |
VladDrac | having some issues though, mostly error/exception reporting | 18:46 |
VladDrac | anyone capable of helping me a bit? :) | 18:46 |
SteveA | what is AMF ? | 18:47 |
SteveA | the error reporting in zopepublication is unnecessarily complex | 18:47 |
SteveA | actually, the whole subclassing stuff in publication is unnecessarily complex | 18:48 |
VladDrac | steve: some rpc-ish protocol, used by Flex (a form/gui thingy for Flash) | 18:49 |
VladDrac | steve: there seems to be something like "legacy exceptions" (which are real exceptions) | 18:49 |
VladDrac | which my code handles well | 18:49 |
VladDrac | and non-legacy exceptions which are actually interfaces (right?) | 18:50 |
VladDrac | the machinery looks up some view stuff for them, which results in an empty string as body for my response | 18:50 |
SteveA | a "legacy exception" is a string that can be interned | 18:50 |
SteveA | other exceptions are objects that derive from Exception, and usually provide some interface like IException or ISomethingException | 18:51 |
VladDrac | legacy_exception = not isinstance(exc_info[1], Exception) | 18:51 |
SteveA | right | 18:51 |
SteveA | so, those are basically strings, or perhaps any classic class instance | 18:51 |
VladDrac | hmm hold on.. | 18:51 |
SteveA | i can't remember the old rules for python exceptions | 18:51 |
VladDrac | ok never mind what i said about legacy exceptions, it's not relevant | 18:53 |
VladDrac | the curernt handling (in zope.app.publication.ZopePublication.handlException) | 18:54 |
VladDrac | involves looking up a (default) view and "rendering" it in the context of the exception and request | 18:55 |
VladDrac | which results in '' for my request | 18:55 |
VladDrac | (at least in the case of a NotFound, some exceptions seemed to render fine) | 18:56 |
SteveA | so, make your exception class implement an interface | 19:00 |
SteveA | maybe one that extends IException | 19:00 |
*** niemeyer is now known as nie_lunch | 19:02 | |
*** vlado has quit IRC | 19:04 | |
VladDrac | well no these are zope3 raised exceptions, such as NotFound | 19:09 |
*** bradb_ is now known as bradb | 19:17 | |
*** sashav has joined #zope3-dev | 19:19 | |
* VladDrac 's lost | 19:28 | |
*** bliv has quit IRC | 19:29 | |
*** bliv has joined #zope3-dev | 19:29 | |
VladDrac | does someone know an easy way to do an xmlrpc request? I want to trace how zope3 handles those | 19:37 |
efge | VladDrac: python has an xmlrpc module that's handy | 19:45 |
efge | from xmlrpclib import ServerProxy | 19:46 |
efge | p = ServerProxy('http://manager:xxxxx@myserver.net:8080/some/method') | 19:46 |
efge | p = ServerProxy('http://manager:xxxxx@myserver.net:8080/some/ob/rather') | 19:46 |
efge | p.somemethod(args) | 19:46 |
VladDrac | efge tx | 19:49 |
*** Theuni has quit IRC | 19:54 | |
*** nie_lunch is now known as niemeyer | 19:55 | |
*** efge has quit IRC | 20:04 | |
*** sashav_ has joined #zope3-dev | 20:11 | |
*** sashav has quit IRC | 20:24 | |
*** SureshZ has joined #zope3-dev | 20:28 | |
*** philiKON has joined #zope3-dev | 20:29 | |
*** mkerrin has quit IRC | 20:40 | |
*** faassen has quit IRC | 20:40 | |
*** benji_york has joined #zope3-dev | 20:49 | |
*** philiKON has quit IRC | 20:50 | |
*** regebro has quit IRC | 20:58 | |
*** tarek has quit IRC | 21:05 | |
*** anguenot has quit IRC | 21:07 | |
*** tarek has joined #zope3-dev | 21:27 | |
*** mgedmin has joined #zope3-dev | 21:34 | |
*** ignas has joined #zope3-dev | 21:40 | |
*** ignas has quit IRC | 21:41 | |
*** ignas has joined #zope3-dev | 21:41 | |
*** jvts has quit IRC | 21:58 | |
*** inman has left #zope3-dev | 22:04 | |
*** sashav_ is now known as sashav | 22:12 | |
VladDrac | ok | 22:15 |
VladDrac | zope.app.http.exception is the view used when NotFound is raised | 22:15 |
VladDrac | it sets the response code but no body message | 22:15 |
VladDrac | defining a view for my specific IAMFRPCRequest that does set the body seems to work | 22:16 |
*** sashav_ has joined #zope3-dev | 22:18 | |
*** sashav has quit IRC | 22:32 | |
*** andrew_m has quit IRC | 22:52 | |
*** sashav_ is now known as sashav | 22:53 | |
*** fcorrea has quit IRC | 23:52 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!