*** bradb has quit IRC | 00:09 | |
*** srichter has joined #zope3-dev | 00:25 | |
*** ChanServ sets mode: +o srichter | 00:25 | |
*** th1a has quit IRC | 00:35 | |
RaFromBRC | what's the URL for anonymous checkout... i've tried http://svn.zope.org/Zope3/trunk/, i get 301 errors | 00:38 |
---|---|---|
*** bradb has joined #zope3-dev | 00:41 | |
RaFromBRC | ah, found the doc i was looking for... sorry for the noise | 00:43 |
*** niemeyer has quit IRC | 00:56 | |
*** bska|mobile has joined #zope3-dev | 01:32 | |
*** hazmat has quit IRC | 01:52 | |
*** efge has quit IRC | 02:18 | |
*** hazmat has joined #zope3-dev | 02:29 | |
*** bska|mobile has quit IRC | 02:31 | |
*** BjornT has quit IRC | 02:50 | |
*** hazmat has quit IRC | 02:58 | |
*** hazmat has joined #zope3-dev | 03:01 | |
*** nisha_cgx has quit IRC | 03:05 | |
*** bskahan has joined #zope3-dev | 03:47 | |
*** RaFromBRC has quit IRC | 04:22 | |
*** bskahan has quit IRC | 04:27 | |
*** `anthony has quit IRC | 04:28 | |
*** hazmat has quit IRC | 04:38 | |
*** deo has quit IRC | 04:41 | |
*** BjornT has joined #zope3-dev | 04:43 | |
*** stub has joined #zope3-dev | 04:45 | |
*** hazmat has joined #zope3-dev | 04:59 | |
*** _projekt01 has left #zope3-dev | 05:03 | |
*** RaFromBRC has joined #zope3-dev | 05:09 | |
*** `anthony has joined #zope3-dev | 05:13 | |
*** MiUlEr has joined #zope3-dev | 05:15 | |
*** srichter has quit IRC | 05:32 | |
*** srichter has joined #zope3-dev | 05:37 | |
*** ChanServ sets mode: +o srichter | 05:38 | |
*** GaryPoster has joined #zope3-dev | 05:42 | |
*** th1a has joined #zope3-dev | 05:46 | |
GaryPoster | Hey--quick question. I wanted to switch from zope.i18nmessageid.MessageID to zope.i18nmessageid.Message and discovered that all kinds of stuff seems to be not hooked up for it. In my sandbox I've declared it to be a brick, in terms of zope.app.security; made it work in zope.i18n._translate; and started to get it to work in tal. Is this in fact the plan,and noone has gotten around to it yet, or am I missing something? | 05:46 |
*** MiUlEr has quit IRC | 05:47 | |
*** BjornT has quit IRC | 06:12 | |
*** GaryPoster has quit IRC | 06:18 | |
*** hazmat has quit IRC | 06:52 | |
*** hazmat has joined #zope3-dev | 06:53 | |
*** RaFromBRC has quit IRC | 07:20 | |
zagy | moin | 08:07 |
*** viyyer has joined #zope3-dev | 08:22 | |
*** RaFromBRC has joined #zope3-dev | 08:34 | |
*** hazmat has quit IRC | 08:52 | |
*** mexiKON has joined #zope3-dev | 09:07 | |
*** philiKON has quit IRC | 09:13 | |
*** mexiKON is now known as philiKON | 09:35 | |
*** sashav has joined #zope3-dev | 09:37 | |
*** __gotcha has joined #zope3-dev | 09:43 | |
*** hdima has joined #zope3-dev | 09:49 | |
*** philiKON has quit IRC | 09:55 | |
*** projekt01 has joined #zope3-dev | 10:05 | |
*** Theuni has joined #zope3-dev | 10:09 | |
*** lunatik has joined #zope3-dev | 11:02 | |
*** Aiste has joined #zope3-dev | 11:09 | |
*** viyyer has quit IRC | 11:16 | |
*** viyyer has joined #zope3-dev | 11:18 | |
*** gintas has joined #zope3-dev | 11:18 | |
*** Aiste has quit IRC | 11:21 | |
*** tarek_ has quit IRC | 11:21 | |
*** `anthony has quit IRC | 11:24 | |
*** tonico has quit IRC | 11:36 | |
*** tonico has joined #zope3-dev | 11:38 | |
*** viyyer has quit IRC | 11:40 | |
*** viyyer has joined #zope3-dev | 11:41 | |
*** SteveA has quit IRC | 12:12 | |
*** d2m has quit IRC | 12:13 | |
*** philiKON has joined #zope3-dev | 12:48 | |
*** Aiste has joined #zope3-dev | 12:59 | |
*** efge has joined #zope3-dev | 13:02 | |
*** viyyer is now known as Hobbes` | 13:06 | |
*** Hobbes` is now known as Viyyer | 13:09 | |
*** RaFromBRC has quit IRC | 13:15 | |
*** ignas has joined #zope3-dev | 13:35 | |
*** BjornT has joined #zope3-dev | 14:02 | |
*** efge has quit IRC | 14:02 | |
*** regebro has quit IRC | 14:04 | |
*** mkerrin has joined #zope3-dev | 14:07 | |
*** philiKON has quit IRC | 14:10 | |
*** bskahan has joined #zope3-dev | 14:22 | |
*** srichter has quit IRC | 14:24 | |
*** faassen has joined #zope3-dev | 14:39 | |
*** d2m has joined #zope3-dev | 14:44 | |
*** stub has left #zope3-dev | 14:57 | |
*** srichter has joined #zope3-dev | 15:20 | |
*** ChanServ sets mode: +o srichter | 15:22 | |
*** zagy has quit IRC | 15:35 | |
*** philiKON has joined #zope3-dev | 15:52 | |
*** bradb has quit IRC | 15:58 | |
philiKON | w000t. r30000 | 15:59 |
srichter | I really wanted that revision :-( | 16:01 |
philiKON | hehe | 16:03 |
philiKON | btw, i'm working on integrating modzope using wsgi | 16:04 |
srichter | cool | 16:04 |
srichter | note that you might want to use the Twisted branch | 16:04 |
philiKON | probably | 16:04 |
srichter | I have solved the form problem there | 16:05 |
philiKON | what was the form problem? a seek()? | 16:05 |
*** bskahan has quit IRC | 16:05 | |
srichter | nope | 16:07 |
srichter | it is legel for WSGI for send empty headers | 16:07 |
srichter | so some empty header existed and cgi.FieldStorage assumes, if its empty it is not there | 16:08 |
srichter | so it did not know how to handle the request data | 16:08 |
philiKON | ok | 16:08 |
srichter | okay, time to install Mandriva 2005 LE | 16:09 |
srichter | I should be back in a couple of hours :-) | 16:09 |
*** srichter has quit IRC | 16:12 | |
*** bradb has joined #zope3-dev | 16:14 | |
*** bskahan has joined #zope3-dev | 16:15 | |
*** projekt01 has left #zope3-dev | 16:17 | |
*** GaryPoster has joined #zope3-dev | 16:18 | |
philiKON | hey GaryPoster | 16:19 |
*** J1m has joined #zope3-dev | 16:19 | |
*** J1m has quit IRC | 16:27 | |
*** BjornT has quit IRC | 16:35 | |
*** mgedmin has joined #zope3-dev | 16:52 | |
*** Viyyer has quit IRC | 16:55 | |
*** BjornT has joined #zope3-dev | 17:00 | |
*** niemeyer has joined #zope3-dev | 17:03 | |
*** sashav has quit IRC | 17:06 | |
*** viyyer has joined #zope3-dev | 17:07 | |
*** tarek has joined #zope3-dev | 17:15 | |
*** efge has joined #zope3-dev | 17:23 | |
*** ignas_ has joined #zope3-dev | 17:24 | |
*** ignas has quit IRC | 17:25 | |
*** viyyer has quit IRC | 17:26 | |
*** andrew_m has quit IRC | 17:34 | |
*** hdima has quit IRC | 17:38 | |
*** BjornT has quit IRC | 17:50 | |
philiKON | having gotten an exception while walking through the code with pdb, how do i see the whole traceback? | 17:52 |
Theuni | good luck with import sys/import trackeback | 17:55 |
Theuni | don't get a typo | 17:56 |
philiKON | grrr | 17:56 |
Theuni | :) | 17:56 |
Theuni | import sys | 17:56 |
Theuni | d = sys.exc_info() | 17:56 |
Theuni | then you're safe | 17:56 |
philiKON | what's d then? | 17:56 |
Theuni | 3-tuple | 17:56 |
Theuni | (exception type, value, traceback) | 17:56 |
philiKON | waaa | 17:57 |
Theuni | you can pass the third element to traceback.tb_print() (or a similar named function that i can't remember right now) | 17:57 |
philiKON | (Pdb) import sys | 17:57 |
philiKON | (Pdb) d = sys.exc_info() | 17:57 |
philiKON | > /Users/philipp/dev/Zope3/src/ZODB/FileStorage/FileStorage.py(134)__init__() | 17:57 |
philiKON | -> self._file = open(file_name, read_only and 'rb' or 'r+b') | 17:57 |
philiKON | (Pdb) d | 17:57 |
philiKON | *** Newest frame | 17:57 |
Theuni | they myd = sys.exc_info() | 17:57 |
Theuni | don't be picky :) | 17:57 |
Theuni | s/they/then/ | 17:57 |
philiKON | aaah | 17:58 |
philiKON | got it | 17:58 |
*** bradb has quit IRC | 17:58 | |
Theuni | great | 17:58 |
philiKON | i see now, 'd' was a variable in my frame | 17:58 |
philiKON | too bad myd is an AttributeError while the exception was an IOError | 17:58 |
philiKON | noooooo | 17:58 |
*** bradb has joined #zope3-dev | 17:59 | |
Theuni | still in the same frame? | 17:59 |
Theuni | maybe someone masked it | 17:59 |
philiKON | i think i got it now, just gotta repeat the whole procedure | 18:01 |
Theuni | k | 18:03 |
Theuni | i hate this. pdb support for looking into exceptions would be nice. never found anything that did it, though. | 18:03 |
Theuni | hm. what's the current ETA for zope 3.1? | 18:04 |
philiKON | alpha next week | 18:04 |
Theuni | ok | 18:05 |
*** regebro has joined #zope3-dev | 18:06 | |
philiKON | aha | 18:06 |
philiKON | found the problem | 18:06 |
regebro | I have a vague memory of discussing with somebody about how to best make @@standard_macros work in Five. | 18:07 |
philiKON | me? | 18:07 |
regebro | Yeah, I think so... :-) | 18:08 |
regebro | But I wasn't sure. | 18:08 |
philiKON | i know we had a dispute over some emails :) | 18:08 |
regebro | Oh, was it email? :-) OK. | 18:08 |
regebro | Did you look into it? | 18:09 |
regebro | (It's not a dispute. I just made a quick hack, because i found the alternative painful and duplicating). | 18:09 |
philiKON | no, i haven't yet, mostly because a) i had little time and b) you hadn't set up anything that would allow me to have a large enough basis to compare the results | 18:11 |
regebro | OK. Whats a large enough basis? :) | 18:11 |
philiKON | at a minimum some unit tests, even better would be a small demo product | 18:12 |
regebro | ok. | 18:12 |
faassen | yes, unit tests would be good. | 18:13 |
philiKON | oh, hi fa | 18:14 |
philiKON | faassen i meant | 18:14 |
faassen | regebro: as I don't think I can sell it for zope 2.8 otherwise, even if it otherwise is a bugfix. | 18:14 |
faassen | philiKON: hey. :) | 18:14 |
*** BjornT has joined #zope3-dev | 18:14 | |
regebro | OK, I'll look into that then. | 18:14 |
faassen | philiKON: I'm trying to get the Five trunk into somekind of coherent state. I need to fix some bugs concerning some widgets. at least the checkbox widget is broken with Five, I discovered yesterday. | 18:14 |
philiKON | good | 18:15 |
faassen | philiKON: it expects you can do "'foo' in request" | 18:15 |
philiKON | not so good | 18:15 |
philiKON | i haven't started my test cleanup yet | 18:15 |
faassen | philiKON: yup. so I need to make five monkeypatch a __contains__ into REQUEST I think. | 18:15 |
philiKON | it's very high on my list | 18:15 |
faassen | philiKON: and for Zope 2.8 I can simply add it to request. | 18:15 |
philiKON | sounds good to me | 18:15 |
faassen | philiKON: cool! I saw you were messing about with wsgi for modzope, that would be good. | 18:16 |
philiKON | yes, that's what i'm doing right now | 18:16 |
faassen | philiKON: I really like the wsgi energy I've been seeing recently. | 18:16 |
philiKON | so m any things i touched that weren't finished | 18:16 |
faassen | philiKON: fits the 'open up the zope 3' theme song. :) | 18:16 |
philiKON | i want to finish this modzope thing at least to get to a working state | 18:16 |
philiKON | right | 18:16 |
philiKON | debugging z3 within apache2 is so tedious | 18:18 |
th1a | Aiste: ayt? | 18:19 |
th1a | Oops. | 18:19 |
th1a | Wrong room. | 18:19 |
faassen | philiKON: sounds that should get fixed too then. :) | 18:19 |
philiKON | well..... | 18:19 |
philiKON | yay, I get an Unauthorized now | 18:20 |
*** niemeyer has quit IRC | 18:20 | |
philiKON | which means modzope works with filestorage, but not as a zeoclient | 18:20 |
*** Theuni has quit IRC | 18:25 | |
*** __gotcha has quit IRC | 18:25 | |
*** __gotcha has joined #zope3-dev | 18:27 | |
*** __gotcha is now known as __gotcha_ | 18:29 | |
*** __gotcha_ is now known as __gotcha | 18:31 | |
*** __gotcha is now known as __gotcha_ | 18:31 | |
*** gintas has quit IRC | 18:45 | |
*** SteveA has joined #zope3-dev | 18:46 | |
*** __gotcha_ has quit IRC | 18:59 | |
*** __gotcha has joined #zope3-dev | 19:05 | |
*** srichter has joined #zope3-dev | 19:10 | |
*** __gotcha is now known as __gotchaway | 19:10 | |
*** ChanServ sets mode: +o srichter | 19:11 | |
*** __gotchaway has quit IRC | 19:18 | |
*** __gotchaway has joined #zope3-dev | 19:18 | |
*** __gotchaway has joined #zope3-dev | 19:19 | |
*** alga has joined #zope3-dev | 19:22 | |
*** lunatik has left #zope3-dev | 19:29 | |
*** niemeyer has joined #zope3-dev | 19:35 | |
*** tvon has joined #zope3-dev | 19:45 | |
*** srichter has quit IRC | 19:46 | |
*** srichter has joined #zope3-dev | 19:47 | |
*** regebro has quit IRC | 20:08 | |
*** SteveA has quit IRC | 20:17 | |
*** hazmat has joined #zope3-dev | 20:32 | |
*** tonico has quit IRC | 21:10 | |
*** tonico has joined #zope3-dev | 21:10 | |
*** efge has left #zope3-dev | 21:12 | |
*** `anthony has joined #zope3-dev | 21:16 | |
*** BjornT has quit IRC | 21:37 | |
*** BjornT has joined #zope3-dev | 21:37 | |
*** tvon has quit IRC | 21:43 | |
bradb | Hm, let me see if I've got this right: if I want to access my absolute_url view via obj/@@absolute_url and I want zapi.absoluteURL(obj, request) to work, I have to register two views, one unnamed, and one named absolute_url? | 21:45 |
philiKON | yup | 21:46 |
philiKON | one unnamed that provides IAbsoluteURL | 21:46 |
philiKON | and one named "absolute_url" that provides, I think, Interface | 21:46 |
philiKON | look at zope.app.traversing.browser/configure.zcml | 21:47 |
bradb | i did :) | 21:47 |
*** bskahan has quit IRC | 21:47 | |
bradb | it provides IAbsoluteURL | 21:47 |
bradb | er, well, the allowed_interface attribute is set to that | 21:48 |
philiKON | that's the first one | 21:48 |
philiKON | the named view | 21:48 |
bradb | having to register is twice seems like a bug to me. as a user of this API, i was surprised that naming my adapter just broke. | 21:48 |
philiKON | the second one is the unnamed one | 21:48 |
bradb | s/is/it/ | 21:48 |
bradb | er, naming my view just broke my zapi.absoluteURL calls, i meant to say | 21:49 |
philiKON | well, it's not a bug | 21:49 |
philiKON | that's how adapter lookup works | 21:49 |
philiKON | you need two different registrations | 21:49 |
bradb | why can't it be smart enough to Just Work? i.e. in this case, why can't it just find the first registered view providing IAbsoluteURL? | 21:50 |
philiKON | maybe that's what the adapter machinery should do | 21:51 |
bradb | the current behaviour does not seem to be written to make paying clients happy :) | 21:51 |
bradb | philiKON: yeah, that's what i'm hinting at. :) i understand why it breaks currently though. | 21:51 |
philiKON | not sure what that has to do with the clients; they won't see the two registrations... | 21:51 |
philiKON | anyway | 21:51 |
philiKON | write an email to the list and cc jim | 21:51 |
bradb | they just paid for an extra half hour of my time though :) | 21:51 |
bradb | ok, i'll email the list, thanks. | 21:52 |
*** faassen has quit IRC | 21:59 | |
*** mgedmin has quit IRC | 22:00 | |
bradb | philiKON: Am I correct in understanding that nowadays that a <view></view> registration really registers an adapter? (i.e. views are simply adapters now?) | 22:09 |
philiKON | yes | 22:10 |
philiKON | absolutely correct | 22:10 |
bradb | ok, thanks for your help, this email is almost ready to send :) | 22:10 |
philiKON | :) | 22:11 |
bradb | philiKON: or, perhaps it should first try to find an adapter called absolute_url, and if not that, then perhaps an unnamed adapter that provides IAbsoluteURL? | 22:19 |
bradb | "it", i.e. behind the scenes of zapi.absoluteURL. | 22:19 |
philiKON | bradb, that would be a feasible solution, too | 22:20 |
philiKON | though your issue is really all about testing, right? | 22:20 |
philiKON | because in a normal application, you always have the two adapters | 22:20 |
philiKON | (unless you, for some reason, don't configure zope.app.traversing.browser) | 22:21 |
bradb | philiKON: no, my issue is about making real world code work. i want just one registration for both /@@absolute_url and zapi.absoluteURL to Just Work. | 22:22 |
bradb | given that /@@absolute_url seems to be the standard way to lookup a URL in ZPT, it seems surprising to me that zapi.aboluteURL attempts to find an unnamed adapter as its default behaviour. | 22:23 |
philiKON | well, actually it's ZPT that is stepping out of the lin | 22:23 |
philiKON | line | 22:23 |
philiKON | in z3 there are two sorts of views | 22:23 |
philiKON | views that are presented to the user and are accessible thru some protocol (e.g. HTTP) | 22:24 |
philiKON | those are typically *named* views | 22:24 |
philiKON | and there are views that are really adapters, but we call them (or used to call them) views because they also adapt the request in addition to the object | 22:24 |
philiKON | now, absolute url functionality is really not some view that gets presented to the user via HTTP | 22:24 |
philiKON | you can't type into your browser http://server/object/absolute_url | 22:25 |
philiKON | and you shouldn't | 22:25 |
philiKON | absolute url really is an adapter | 22:25 |
philiKON | however, we have no way yet to look up views providing an interface a.k.a. adapters for object + request in zpt | 22:25 |
philiKON | so, right now, we have to resort to looking it up by name in zpt | 22:26 |
*** Aiste has quit IRC | 22:26 | |
*** alga has quit IRC | 22:27 | |
bradb | philiKON: yes, i've always been quite confused by thinking of having to get the absolute URL of an object via a "view" :) | 22:28 |
*** mkerrin has quit IRC | 22:29 | |
philiKON | well, by terminology it *is* a view because it involves the request | 22:29 |
BjornT | one option is to have the ztp-absolute_url use the unnamed adapter to do it's work, then it would Just Work if you register a new unnamed IAbsoluteURL | 22:30 |
philiKON | that would be even more complicated | 22:31 |
philiKON | right now we have one comopnent | 22:31 |
bradb | philiKON: according to what you've just said though, the terminology seems like an accident of the implementation, rather than then intent of the implementation. | 22:31 |
philiKON | and two registrations | 22:31 |
philiKON | with BjornT's idea, we'd need 2 components and 2 registrations | 22:31 |
bradb | philiKON: i.e. when you said "we have no way yet to look up views providing an interface a.k.a. adapters for object + request in zpt" | 22:31 |
philiKON | well, that "aka" was just for your better understanding | 22:32 |
philiKON | i think the definitions are quite clear | 22:32 |
philiKON | almost everything in z3 are either utilities or adapters | 22:32 |
philiKON | subscribers are adapters (they're subscription adapters) | 22:33 |
bradb | sure | 22:33 |
philiKON | their use determines their name | 22:33 |
bradb | yep | 22:33 |
philiKON | views are adapters, their use and lookup determines their name | 22:33 |
philiKON | etc. etc. | 22:33 |
BjornT | philiKON: think in terms when you have several IAbsoluteURL adapters. with the current solution you have to register it twice, with my solution only once. that way you also mark that zpt is special... | 22:33 |
philiKON | hmm | 22:34 |
bradb | philiKON: by the way, we've had a way to lookup views providing an interface for quite a while, afaik | 22:34 |
bradb | i.e. getViewProviding | 22:35 |
philiKON | yes, of course | 22:35 |
philiKON | i'm quite aware of that | 22:35 |
bradb | i was a bit confused when you said "ever, we have no way yet to look up views providing an interface..." :) | 22:35 |
bradb | er, however, that is | 22:36 |
philiKON | "... in zpt" i meant | 22:36 |
philiKON | (and i think i wrote) | 22:36 |
bradb | ah yes, ok, in zpt, fair enough | 22:36 |
philiKON | maybe it wasn't clear | 22:36 |
philiKON | of course, youc an import zapi to zpt | 22:36 |
philiKON | but that's probably not the point | 22:36 |
*** deo has joined #zope3-dev | 22:37 | |
*** ignas_ has quit IRC | 22:40 | |
*** tonico has quit IRC | 22:42 | |
BjornT | philiKON: btw, today we have 2 components and 4 registrations, with my solution we'd have 3 component and 3 registrations. and for each new component there would be 1 more registration, instead of 2 | 22:46 |
philiKON | 4 registrations? | 22:47 |
BjornT | yeah, 2 for AbsoluteURL and 2 for SiteAbsoluteURL | 22:48 |
philiKON | ah, ok | 22:48 |
philiKON | fair enough | 22:48 |
*** SteveA has joined #zope3-dev | 22:51 | |
*** RaFromBRC has joined #zope3-dev | 23:13 | |
*** SteveA has quit IRC | 23:19 | |
*** Aiste has joined #zope3-dev | 23:30 | |
*** gintas has joined #zope3-dev | 23:39 | |
*** Aiste has quit IRC | 23:59 | |
*** Aiste has joined #zope3-dev | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!