*** roym has quit IRC | 00:03 | |
*** sashav has quit IRC | 00:04 | |
*** roym` has left #zope3-dev | 00:04 | |
*** roym has joined #zope3-dev | 00:05 | |
*** benji has quit IRC | 00:17 | |
*** gumpa has left #zope3-dev | 00:38 | |
*** j1m has left #zope3-dev | 00:53 | |
*** GaryPoster has quit IRC | 01:06 | |
*** axelgitm has left #zope3-dev | 01:12 | |
projekt01 | rocky, I sent you a mail with a sample of a subform | 01:15 |
---|---|---|
projekt01 | based on formlib | 01:16 |
rocky | projekt01: excellent! srichter explained it to me enough earlier today for me to get my simple problem fixed but the example you sent me is more involved and looks to teach me more :) | 01:16 |
rocky | projekt01: any reason you didn't CC the mailing list? was it because of proprietary code? | 01:19 |
*** zbir has joined #zope3-dev | 01:34 | |
*** RaFromBRC has quit IRC | 01:40 | |
*** natea has joined #zope3-dev | 01:46 | |
*** fcorrea has quit IRC | 01:57 | |
*** dobee has quit IRC | 01:58 | |
*** rom|zZZZ is now known as romanofski | 02:01 | |
romanofski | moin | 02:01 |
*** yota has quit IRC | 02:10 | |
*** philiKON has quit IRC | 02:16 | |
*** rocky has quit IRC | 02:24 | |
*** jinty has joined #zope3-dev | 02:27 | |
*** oferw has joined #zope3-dev | 02:34 | |
*** natea has quit IRC | 02:42 | |
*** natea has joined #zope3-dev | 02:43 | |
projekt01 | rocky, ayt? | 02:43 |
*** romanofski has quit IRC | 02:45 | |
*** rocky has joined #zope3-dev | 02:59 | |
*** J1m has joined #zope3-dev | 03:14 | |
*** stub has joined #zope3-dev | 03:27 | |
*** projekt01 has left #zope3-dev | 03:32 | |
*** RaFromBRC has joined #zope3-dev | 03:43 | |
*** GaryPoster has joined #zope3-dev | 03:58 | |
*** oferw has quit IRC | 04:07 | |
roym | Is it possible to get the a handle to the container root, from inside a utility method? | 04:21 |
*** J1m has left #zope3-dev | 04:21 | |
*** retsu__ has joined #zope3-dev | 04:30 | |
*** fcorrea has joined #zope3-dev | 04:33 | |
*** jinty has quit IRC | 04:40 | |
*** retsu__ has quit IRC | 04:53 | |
*** niemeyer has quit IRC | 04:54 | |
*** romanofski has joined #zope3-dev | 05:04 | |
*** rocky has quit IRC | 06:01 | |
*** dunny has quit IRC | 06:04 | |
*** roym has quit IRC | 06:13 | |
*** RaFromBRC has quit IRC | 06:47 | |
*** fcorrea has left #zope3-dev | 07:02 | |
*** stub has quit IRC | 07:07 | |
*** stub has joined #zope3-dev | 07:15 | |
*** stub has joined #zope3-dev | 07:16 | |
*** RaFromBRC has joined #zope3-dev | 07:47 | |
*** kamalgill has joined #zope3-dev | 08:06 | |
*** sashav has joined #zope3-dev | 08:28 | |
*** BjornT has quit IRC | 08:28 | |
*** romanofski has quit IRC | 08:29 | |
*** zopePloneConsult has joined #zope3-dev | 08:35 | |
*** BjornT has joined #zope3-dev | 08:36 | |
*** dobee has joined #zope3-dev | 08:38 | |
*** sashav has quit IRC | 08:41 | |
*** dlk has joined #zope3-dev | 08:53 | |
*** BjornT has quit IRC | 08:58 | |
*** BjornT has joined #zope3-dev | 09:07 | |
*** dunny has joined #zope3-dev | 09:09 | |
*** romanofski has joined #zope3-dev | 09:13 | |
*** BjornT has quit IRC | 09:14 | |
*** BjornT has joined #zope3-dev | 09:18 | |
*** eins has joined #zope3-dev | 09:25 | |
eins | hi | 09:25 |
*** BjornT has quit IRC | 09:30 | |
*** BjornT has joined #zope3-dev | 09:39 | |
*** d2m has quit IRC | 09:39 | |
*** romanofski has quit IRC | 09:40 | |
*** BjornT has quit IRC | 09:40 | |
*** romanofski has joined #zope3-dev | 09:41 | |
*** d2m has joined #zope3-dev | 09:43 | |
*** BjornT has joined #zope3-dev | 09:49 | |
*** BjornT has quit IRC | 09:53 | |
*** BjornT has joined #zope3-dev | 09:55 | |
*** kamalgill has left #zope3-dev | 09:55 | |
*** BjornT has quit IRC | 09:55 | |
*** RaFromBRC has quit IRC | 09:55 | |
*** BjornT has joined #zope3-dev | 10:00 | |
*** sashav has joined #zope3-dev | 10:03 | |
*** yota has joined #zope3-dev | 10:15 | |
*** philiKON has joined #zope3-dev | 10:16 | |
*** J1m has joined #zope3-dev | 10:23 | |
*** retsu__ has joined #zope3-dev | 10:30 | |
*** MJ has quit IRC | 10:33 | |
*** romanofski has quit IRC | 10:37 | |
*** J1m has left #zope3-dev | 10:57 | |
*** b_52CEntos has joined #zope3-dev | 10:58 | |
*** b_52CEntos has left #zope3-dev | 10:58 | |
*** axelgitm has joined #zope3-dev | 11:00 | |
*** jinty has joined #zope3-dev | 11:05 | |
*** MJ has joined #zope3-dev | 11:22 | |
*** romanofski has joined #zope3-dev | 11:28 | |
*** volvox has joined #zope3-dev | 11:32 | |
*** faassen has joined #zope3-dev | 11:35 | |
*** BjornT__ has joined #zope3-dev | 11:52 | |
*** regebro has joined #zope3-dev | 11:54 | |
*** BjornT has quit IRC | 11:55 | |
*** BjornT__ is now known as BjornT | 11:55 | |
*** alga has joined #zope3-dev | 12:02 | |
*** mkerrin has joined #zope3-dev | 12:29 | |
*** Aiste has quit IRC | 12:33 | |
philiKON | is there a notable difference between callable(ob) and hasattr(ob, '__call__') other than that the former will return True on old-style classes and the latter will return False | 12:43 |
*** rocky has joined #zope3-dev | 12:48 | |
*** Aiste has joined #zope3-dev | 12:54 | |
faassen | doesn't hasattr in a ZODB context has some interaction with exceptions stuff? | 13:04 |
faassen | philiKON: I only have vague memories on that. :) | 13:04 |
*** yotaff has joined #zope3-dev | 13:04 | |
philiKON | there's also the extensionclass weirdness | 13:04 |
SteveA | hasattr eats babies | 13:09 |
SteveA | um, eats exceptions | 13:09 |
SteveA | all of them | 13:09 |
SteveA | hasattr is evil | 13:10 |
SteveA | it should be excised from python | 13:10 |
SteveA | i always use getattr(obj, name, marker) instead | 13:10 |
faassen | right, and the problem with the ZODB is that it raises conflict errors and such fun stuff which then get eaten? | 13:10 |
SteveA | well, a conflict error *should* doom the transaction | 13:10 |
faassen | though I guess since that now readconflict errors aren't there anymore, it might be less severe. | 13:10 |
SteveA | but i don't know whether tansaction dooming is well supported | 13:11 |
philiKON | faassen, SteveA, i tracked down the problem otherwise. thanks anyways | 13:11 |
philiKON | but if you guys feel strongly about hasattr(obj, '__call__'), we cna change the TALES engine to do getattr(obj, '__call__', marker) | 13:11 |
philiKON | (it's the tALES engine i was digging thru) | 13:11 |
philiKON | it checks whether things are callable and calls them if they are | 13:11 |
philiKON | as you most definitely know :) | 13:11 |
philiKON | zope 2 does callable(obj) while zope 3 does the hasattr check | 13:12 |
philiKON | actually, zope 2 does callable(obj.aq_base) | 13:12 |
SteveA | for security proxies | 13:12 |
philiKON | which makes a huge difference | 13:12 |
philiKON | acquisition wrappers are always callable | 13:12 |
SteveA | security proxies are always callable | 13:12 |
philiKON | aha | 13:12 |
SteveA | i once made non-callable proxies | 13:12 |
philiKON | how do we deal with this problem generally then? | 13:12 |
SteveA | and thought to use those for non-callable objects that needed proxies | 13:12 |
faassen | what happens if you call them? | 13:12 |
SteveA | but it is rather complex | 13:12 |
philiKON | faassen, you get atttributeerror, i would assume | 13:13 |
philiKON | faassen, on __call__ | 13:13 |
faassen | oh, you just call the wrapped thing. | 13:13 |
SteveA | faassen: the proxy tries to call the underlying object, and gives an appropriate error | 13:13 |
philiKON | right | 13:13 |
SteveA | this is one reason interfaces are better than "raw" introspection | 13:13 |
philiKON | ok. so, in order to support wrappers like sec. proxies and acquisition, i guess checking for __call__ attribute is better | 13:14 |
philiKON | however, on acquisition wrappers, getattr(obj, '__call__', marker) will trigger acquisition | 13:14 |
SteveA | yes | 13:14 |
philiKON | while hasattr() wouldn't i assume | 13:14 |
SteveA | yes | 13:14 |
SteveA | no | 13:14 |
faassen | hasattr doesn't trigger acquisition? | 13:15 |
philiKON | not sure | 13:15 |
SteveA | hasattr i think would trigger acquisition | 13:15 |
philiKON | ok | 13:15 |
SteveA | but really, don't use hasattr ever | 13:15 |
philiKON | hey, it's in the code :) | 13:15 |
SteveA | and, add a comment in the code please | 13:15 |
faassen | SteveA: zope's already using it. :) | 13:15 |
philiKON | it's not my code | 13:15 |
philiKON | SteveA, yes, i can even fix it | 13:15 |
SteveA | to explain why this isn't saying "callable(...)" | 13:15 |
SteveA | that's way cool | 13:15 |
philiKON | will do | 13:15 |
SteveA | i need to hack on zope this week | 13:15 |
SteveA | i want to make it work with import hooks | 13:15 |
philiKON | ok. just to get this straight | 13:15 |
SteveA | cos there is spooky code that assumes there is no import hook | 13:16 |
philiKON | the default tales thing will do the getattr() check for __call__ and figure out this way if things are callable or not | 13:16 |
SteveA | and i have a Database Fascist i need to support | 13:16 |
philiKON | in zope 2 we'll need to make sure to deal with aq_base | 13:16 |
SteveA | well, the "launchpad import fascist" | 13:16 |
SteveA | needs to raise its JackbootException | 13:16 |
philiKON | that still doesn't make it work with old style classes | 13:17 |
philiKON | they're callable | 13:17 |
philiKON | and should be called if they're at the end of a traversal chain | 13:17 |
SteveA | classes? | 13:17 |
SteveA | you're creating new objects from TALES expressions? | 13:17 |
philiKON | <p tal:define="now modules/DateTime/DateTime" tal:content="now/isCurrentYear" /> | 13:17 |
philiKON | DateTime is an old style class | 13:17 |
philiKON | the zope 3 TALES engine doesn't call it | 13:18 |
SteveA | i've never used modules/.... in TALES | 13:18 |
*** hannosch has joined #zope3-dev | 13:18 | |
philiKON | zope 2 does (it checks for callable(obj.aq_base) | 13:18 |
SteveA | looks like poor taste to me | 13:18 |
philiKON | SteveA, lots of people do... | 13:18 |
philiKON | hey, i need to support existing code... | 13:18 |
philiKON | i don't even think about what's poor taste and what not | 13:18 |
* philiKON is an island | 13:18 | |
philiKON | :) | 13:18 |
*** agroszer has joined #zope3-dev | 13:19 | |
philiKON | so, the question is, shall we make the zope 3 tales engine support old style classes | 13:19 |
philiKON | or shall we just do this for zope 2 | 13:19 |
philiKON | support == suppor thaving them called at the end of a tales expr | 13:19 |
* philiKON writes an email to the list | 13:21 | |
regebro | I think it's good if things are as similar as possible. | 13:22 |
philiKON | i agree | 13:24 |
*** projekt01 has joined #zope3-dev | 13:29 | |
*** mgedmin has joined #zope3-dev | 13:29 | |
rocky | y'know i have to admit that one of my biggest beefs with zope2 zpt is i never seem to really know when i need nocall: or not (well, obviously i do for primitives) | 13:30 |
rocky | it shouldn't be so magical | 13:30 |
philiKON | i really think that TALES oughta be changed | 13:30 |
philiKON | nocall: should be default | 13:31 |
philiKON | call: should be explicit | 13:31 |
rocky | well, now with the mainstream use of python properties, i think accessing non-callable attributes are becoming more and more the default | 13:31 |
philiKON | yup. well, the implicit calling was so that TALES was understable by non programmers (HTML desigenrs) | 13:32 |
rocky | ah | 13:34 |
*** dunny has quit IRC | 13:35 | |
*** rocky has quit IRC | 13:38 | |
*** zopePloneConsult has left #zope3-dev | 13:43 | |
volvox | boston rulez, but there are some glitches. where should I send bug reports? in the collector? | 13:50 |
*** rocky has joined #zope3-dev | 14:01 | |
*** regebro has quit IRC | 14:04 | |
*** regebro has joined #zope3-dev | 14:22 | |
*** yotaff has quit IRC | 14:45 | |
*** tiredbones has quit IRC | 14:49 | |
*** tiredbones has joined #zope3-dev | 14:50 | |
*** hannosch has left #zope3-dev | 14:55 | |
*** niemeyer has joined #zope3-dev | 14:59 | |
*** jinty has quit IRC | 15:00 | |
*** ignas has joined #zope3-dev | 15:03 | |
*** retsu__ has quit IRC | 15:05 | |
*** hdima has joined #zope3-dev | 15:20 | |
*** retsu__ has joined #zope3-dev | 15:26 | |
*** oferw has joined #zope3-dev | 15:38 | |
*** GaryPoster has joined #zope3-dev | 15:42 | |
*** J1m has joined #zope3-dev | 15:53 | |
*** oferw has quit IRC | 15:58 | |
*** axelgitm has left #zope3-dev | 16:00 | |
*** jinty has joined #zope3-dev | 16:03 | |
*** zbir has quit IRC | 16:04 | |
*** zbir has joined #zope3-dev | 16:05 | |
*** Theuni has quit IRC | 16:09 | |
*** romanofski has joined #zope3-dev | 16:12 | |
*** rocky has quit IRC | 16:14 | |
*** rocky has joined #zope3-dev | 16:15 | |
*** tanghus has quit IRC | 16:19 | |
*** tanghus has joined #zope3-dev | 16:19 | |
*** romanofski is now known as rom|zZZZ | 16:38 | |
rom|zZZZ | nighty | 16:38 |
*** benji has joined #zope3-dev | 16:41 | |
*** MJ has left #zope3-dev | 16:49 | |
*** MJ has joined #zope3-dev | 16:52 | |
*** tanghus_ has joined #zope3-dev | 16:53 | |
*** retsu__ has quit IRC | 16:57 | |
*** BjornT has quit IRC | 16:57 | |
*** BjornT__ has joined #zope3-dev | 16:57 | |
*** BjornT__ is now known as BjornT | 16:58 | |
*** tanghus has quit IRC | 17:03 | |
*** tanghus_ has quit IRC | 17:10 | |
*** tanghus_ has joined #zope3-dev | 17:11 | |
*** dlk has quit IRC | 17:13 | |
*** amit_am has joined #zope3-dev | 17:18 | |
*** hdima has quit IRC | 17:20 | |
*** Theuni has joined #zope3-dev | 17:23 | |
*** retsu__ has joined #zope3-dev | 17:36 | |
*** eins has quit IRC | 17:37 | |
*** BjornT has quit IRC | 17:45 | |
*** BjornT_ has joined #zope3-dev | 17:45 | |
*** niemeyer has quit IRC | 17:49 | |
*** BjornT_ has quit IRC | 17:50 | |
*** niemeyer has joined #zope3-dev | 17:50 | |
*** sashav has quit IRC | 17:55 | |
*** BjornT has joined #zope3-dev | 17:56 | |
*** BjornT has quit IRC | 17:57 | |
*** BjornT__ has joined #zope3-dev | 17:58 | |
*** BjornT__ is now known as BjornT | 17:59 | |
*** alga has quit IRC | 18:00 | |
*** retsu__ has quit IRC | 18:00 | |
*** zagy has quit IRC | 18:05 | |
*** dlk has joined #zope3-dev | 18:06 | |
*** dlk has left #zope3-dev | 18:07 | |
*** admp has joined #zope3-dev | 18:10 | |
*** dobee has quit IRC | 18:12 | |
*** Pupeno has joined #zope3-dev | 18:14 | |
Pupeno | Hello. | 18:15 |
Pupeno | I am trying to debug a functional test it is this one: http://paste.lisp.org/display/20317 what do the "..." mean there ? | 18:15 |
*** mkerrin has quit IRC | 18:17 | |
philiKON | J1m, is fred in the office? | 18:18 |
philiKON | Pupeno, what do you think they mean... | 18:18 |
philiKON | Pupeno, they're ellipses | 18:18 |
J1m | Jim is working from home. | 18:19 |
J1m | Fred is working from home. | 18:19 |
philiKON | ok. he has AIM or something, right? | 18:19 |
Pupeno | I think they mean "anything" to be able to not have to fill everything; but I am not sure. | 18:19 |
philiKON | Pupeno, exactly | 18:19 |
Pupeno | but that doesn't really match the way the test is failing. | 18:21 |
philiKON | you can get diffs | 18:21 |
philiKON | see python test.py --help | 18:21 |
Pupeno | I get tons of aditions (+) which should have been matched by the ellipsis... ok, let's ignore them... | 18:22 |
Pupeno | Here's one of the puzzling diffs: http://paste.lisp.org/display/20317#1 | 18:23 |
Pupeno | why did it miss to match it ? | 18:23 |
philiKON | Pupeno, perhaps you didn't turn ELLIPSIS? | 18:24 |
philiKON | should be turned on by default in an ftest, though | 18:24 |
Pupeno | philiKON: I haven't changed anything regarding the tests themselves, I added some code that made the tests fail and now I am trying to correct the tests themselves. | 18:25 |
*** gumpa has joined #zope3-dev | 18:27 | |
Pupeno | more worring unmatches are like these ones: http://paste.lisp.org/display/20317#2 (I haven't touched anything related to that html element). | 18:27 |
*** rocky is now known as rocky|away | 18:32 | |
ignas | Pupeno, schooltool is using a bit different test runner do test.py --help might not really help you in this case, what i can tell you for sure is that schooltool testrunner is not handling ELLIPSIS in a special way when computing the diff | 18:40 |
ignas | s/do test.py/so test.py/ | 18:40 |
Pupeno | ignas: I see. To solve my problem I basically ignored every un-matching line except those directly related to my addition, the false positives distracted me. | 18:41 |
mgedmin | the diffs come directly from zope.testing.doctest module | 18:42 |
mgedmin | if somebody could fix the diff algorithm to produce meaningful results in the presence of ellipses/whitespace normalization, a lot of zope developers would be very grateful | 18:43 |
*** stub has quit IRC | 18:43 | |
*** jinty has quit IRC | 18:46 | |
*** oferw has joined #zope3-dev | 18:53 | |
*** MJ has quit IRC | 18:59 | |
*** stub has joined #zope3-dev | 19:00 | |
*** projekt01 has left #zope3-dev | 19:01 | |
*** Pupeno has quit IRC | 19:12 | |
*** mkerrin has joined #zope3-dev | 19:13 | |
*** admp has quit IRC | 19:28 | |
*** gumpa is now known as gumpa-away | 19:30 | |
*** faassen has quit IRC | 19:34 | |
*** mexiKON has joined #zope3-dev | 19:35 | |
*** admp has joined #zope3-dev | 19:35 | |
*** jinty has joined #zope3-dev | 19:36 | |
*** philiKON has quit IRC | 19:45 | |
*** mexiKON is now known as philiKON | 19:47 | |
*** volvox has quit IRC | 19:47 | |
*** admp has quit IRC | 19:50 | |
*** MJ has joined #zope3-dev | 19:59 | |
*** admp has joined #zope3-dev | 20:00 | |
*** jinty_ has joined #zope3-dev | 20:11 | |
*** RaFromBRC has joined #zope3-dev | 20:15 | |
*** regebro has quit IRC | 20:15 | |
*** ignas has quit IRC | 20:15 | |
*** ignas has joined #zope3-dev | 20:15 | |
*** jinty has quit IRC | 20:26 | |
*** zagy has joined #zope3-dev | 20:35 | |
*** sashav has joined #zope3-dev | 20:36 | |
*** nathany has joined #zope3-dev | 20:37 | |
*** oferw has quit IRC | 20:38 | |
*** nathany has quit IRC | 20:50 | |
*** nathany has joined #zope3-dev | 20:51 | |
*** ignas has quit IRC | 21:01 | |
*** mkerrin has quit IRC | 21:02 | |
*** dunny has joined #zope3-dev | 21:24 | |
*** RaFromBRC is now known as RaFromBRC|food | 21:25 | |
*** agroszer has quit IRC | 21:32 | |
*** MacDinner has joined #zope3-dev | 21:33 | |
*** dobee has joined #zope3-dev | 21:34 | |
*** RaFromBRC|food is now known as RaFromBRC | 21:40 | |
*** jinty_ has quit IRC | 21:45 | |
*** Aiste has quit IRC | 21:46 | |
*** RaFromBRC has quit IRC | 21:51 | |
*** RaFromBRC has joined #zope3-dev | 21:54 | |
*** MacDinner is now known as MacYET | 22:07 | |
*** Aiste has joined #zope3-dev | 22:17 | |
*** rocky|away has quit IRC | 22:26 | |
*** GaryPoster has quit IRC | 22:40 | |
*** admp has quit IRC | 22:45 | |
*** alecm is now known as alecm|lunch | 22:53 | |
*** oferw has joined #zope3-dev | 22:53 | |
*** mgedmin has quit IRC | 23:02 | |
*** MacYET has quit IRC | 23:12 | |
*** MJ has quit IRC | 23:13 | |
*** MJ has joined #zope3-dev | 23:14 | |
*** zagy has quit IRC | 23:18 | |
*** oferw has quit IRC | 23:18 | |
*** alecm|lunch has quit IRC | 23:20 | |
*** mgedmin has joined #zope3-dev | 23:30 | |
*** projekt01 has joined #zope3-dev | 23:52 | |
*** alga has joined #zope3-dev | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!