IRC log of #zope3-dev for Friday, 2009-01-16

*** malthe is now known as malthe|away00:08
*** vimes656 has quit IRC00:11
*** agroszer has quit IRC00:14
*** greenman has joined #zope3-dev00:18
*** junkafarian has joined #zope3-dev00:20
*** benji has quit IRC00:30
*** malthe|away is now known as malthe00:35
*** aaronv is now known as aaronAway00:50
*** runyaga has quit IRC00:53
*** runyaga has joined #zope3-dev01:04
*** jamur2 has quit IRC01:08
*** alga has joined #zope3-dev01:09
*** runyaga has quit IRC01:13
*** runyaga has joined #zope3-dev01:15
*** danfairs has joined #zope3-dev01:19
*** J1m_ has quit IRC01:24
*** aaronAway is now known as aaronv01:25
*** runyaga has quit IRC01:28
*** harobed has quit IRC01:29
*** danfairs has quit IRC01:30
*** lurkymclurkleton has quit IRC01:30
*** quodt has quit IRC01:33
*** davisagli_ has joined #zope3-dev01:35
*** vimes656 has joined #zope3-dev01:38
*** davisagli has quit IRC01:40
*** brandon_rhodes has quit IRC01:42
*** aaronv has quit IRC02:08
*** brandon_rhodes has joined #zope3-dev02:10
*** tarek has quit IRC02:13
*** TresEquis has quit IRC02:14
*** tarek has joined #zope3-dev02:21
*** rmarianski has quit IRC02:32
*** davisagli_ is now known as davisagli02:32
*** junkafarian has quit IRC02:38
*** tarek has quit IRC02:47
*** lucielejard has quit IRC02:50
*** tarek has joined #zope3-dev02:51
*** nathany_ has quit IRC03:06
*** vimes656 has quit IRC03:08
*** tarek has quit IRC03:13
*** jpcw has quit IRC03:31
*** davisagli has left #zope3-dev04:08
*** alga has quit IRC04:18
*** stub has joined #zope3-dev04:25
*** srichter has quit IRC04:35
*** pcardune has quit IRC04:36
*** dbfrombrc has joined #zope3-dev04:45
*** dbfrombrc has quit IRC04:52
*** hexsprite has quit IRC04:58
*** rmarianski has joined #zope3-dev05:24
*** srichter has joined #zope3-dev05:24
*** brandon_rhodes has quit IRC05:40
*** fairwinds has quit IRC05:57
*** philiKON_ has quit IRC06:19
*** JaRoel|4D has quit IRC06:19
*** stub has quit IRC06:19
*** rocky has quit IRC06:19
*** binbrain has quit IRC06:19
*** kaeru has quit IRC06:19
*** yotaff has quit IRC06:19
*** ktwilight_ has quit IRC06:19
*** kiorky has quit IRC06:19
*** bigkevmcd has quit IRC06:19
*** sawdog has quit IRC06:19
*** andycat has quit IRC06:19
*** kobold has quit IRC06:19
*** Fubar^ has quit IRC06:19
*** ARiKA has quit IRC06:19
*** ccomb has quit IRC06:19
*** SteveA has quit IRC06:19
*** chaoflow has quit IRC06:19
*** Vq^ has quit IRC06:19
*** rmarianski has quit IRC06:19
*** markusleist has quit IRC06:19
*** mcdonc has quit IRC06:19
*** VladDrac has quit IRC06:19
*** exarkun has quit IRC06:19
*** andres has quit IRC06:19
*** greenman has quit IRC06:19
*** zagy has quit IRC06:19
*** dunny has quit IRC06:19
*** srichter has quit IRC06:19
*** lisppaste6 has quit IRC06:19
*** redir has quit IRC06:19
*** wgrant has quit IRC06:19
*** Aiste has quit IRC06:19
*** iham has quit IRC06:19
*** multani has quit IRC06:19
*** olavgg has quit IRC06:19
*** malthe has quit IRC06:19
*** BjornT has quit IRC06:19
*** Jell-O-Fishi has quit IRC06:19
*** aclark has quit IRC06:19
*** tomislav- has quit IRC06:19
*** binseer has joined #zope3-dev06:26
*** rmarianski has joined #zope3-dev06:26
*** stub has joined #zope3-dev06:26
*** greenman has joined #zope3-dev06:26
*** markusleist has joined #zope3-dev06:26
*** VladDrac has joined #zope3-dev06:26
*** philiKON_ has joined #zope3-dev06:26
*** JaRoel|4D has joined #zope3-dev06:26
*** rocky has joined #zope3-dev06:26
*** binbrain has joined #zope3-dev06:26
*** olavgg has joined #zope3-dev06:26
*** malthe has joined #zope3-dev06:26
*** yotaff has joined #zope3-dev06:26
*** zagy has joined #zope3-dev06:26
*** ktwilight_ has joined #zope3-dev06:26
*** andycat has joined #zope3-dev06:26
*** BjornT has joined #zope3-dev06:26
*** kiorky has joined #zope3-dev06:26
*** dunny has joined #zope3-dev06:26
*** kaeru has joined #zope3-dev06:26
*** Jell-O-Fishi has joined #zope3-dev06:26
*** mcdonc has joined #zope3-dev06:26
*** sawdog has joined #zope3-dev06:26
*** bigkevmcd has joined #zope3-dev06:26
*** exarkun has joined #zope3-dev06:26
*** ccomb has joined #zope3-dev06:26
*** Vq^ has joined #zope3-dev06:26
*** kobold has joined #zope3-dev06:26
*** chaoflow has joined #zope3-dev06:26
*** Fubar^ has joined #zope3-dev06:26
*** SteveA has joined #zope3-dev06:26
*** andres has joined #zope3-dev06:26
*** ARiKA has joined #zope3-dev06:26
*** aclark has joined #zope3-dev06:26
*** tomislav- has joined #zope3-dev06:26
*** srichter has joined #zope3-dev06:26
*** lisppaste6 has joined #zope3-dev06:26
*** redir has joined #zope3-dev06:26
*** wgrant has joined #zope3-dev06:26
*** Aiste has joined #zope3-dev06:26
*** iham has joined #zope3-dev06:26
*** multani has joined #zope3-dev06:26
*** baijum has joined #zope3-dev06:42
*** rmarianski has quit IRC07:02
*** greenman has quit IRC07:04
*** strichter has joined #zope3-dev07:08
*** srichter has quit IRC07:26
*** jayaraj has joined #zope3-dev07:34
*** nathany_ has joined #zope3-dev07:53
*** agroszer has joined #zope3-dev07:55
*** vimes656 has joined #zope3-dev08:03
*** vimes656 has quit IRC08:05
*** hazmat has joined #zope3-dev08:10
*** ChanServ sets mode: +o hazmat08:10
*** afd_ has joined #zope3-dev08:15
*** __mac__ has joined #zope3-dev08:32
*** agroszer_ has joined #zope3-dev08:42
*** __mac__ has quit IRC08:42
*** nathany_ has quit IRC08:52
*** agroszer has quit IRC09:00
*** JaRoel|4D has quit IRC09:18
*** greenman has joined #zope3-dev09:29
*** jukart has joined #zope3-dev09:34
*** quodt has joined #zope3-dev09:35
*** jukart has quit IRC09:42
*** dbfrombrc has joined #zope3-dev09:49
*** Theuni has joined #zope3-dev09:54
*** dbfrombrc has quit IRC09:55
*** JaRoel|4D has joined #zope3-dev10:00
*** JaRoel|4_ has joined #zope3-dev10:01
*** tarek has joined #zope3-dev10:05
*** andycat has quit IRC10:13
*** stub has quit IRC10:15
*** jpcw has joined #zope3-dev10:20
*** vimes656 has joined #zope3-dev10:21
*** basti__ has joined #zope3-dev10:25
*** JaRoel|4D has quit IRC10:26
*** stub has joined #zope3-dev10:28
*** harobed has joined #zope3-dev10:34
*** MJ has joined #zope3-dev10:38
*** junkafarian has joined #zope3-dev10:39
*** mkerrin has joined #zope3-dev10:44
*** jhauser has joined #zope3-dev10:49
*** hipertracker has joined #zope3-dev11:12
*** vimes656 has quit IRC11:18
*** pelle_ has joined #zope3-dev11:24
*** junkafarian is now known as junk|afk11:35
*** junk|afk has quit IRC11:36
*** alga has joined #zope3-dev11:58
*** troter has joined #zope3-dev12:05
*** JaRoel|4_ has quit IRC12:07
*** JaRoel|4D has joined #zope3-dev12:09
*** vimes656 has joined #zope3-dev12:10
*** junk|work has joined #zope3-dev12:12
*** junk|work is now known as junkafarian12:14
*** alga has quit IRC12:20
*** troter has quit IRC12:25
*** nyo1 has joined #zope3-dev12:29
*** greenman has quit IRC12:38
*** __mac__ has joined #zope3-dev12:43
*** MrTopf has joined #zope3-dev12:51
*** __mac__ has quit IRC12:56
*** quodt has quit IRC13:03
*** alga has joined #zope3-dev13:06
*** quodt has joined #zope3-dev13:18
*** malthe is now known as malthe|away13:26
*** fairwinds has joined #zope3-dev13:39
*** pyqwer has joined #zope3-dev13:42
*** ktwilight_ has quit IRC13:49
*** mgedmin has joined #zope3-dev13:49
*** ktwilight_ has joined #zope3-dev13:50
*** ktwilight_ has quit IRC13:52
*** ktwilight_ has joined #zope3-dev13:53
*** ignas has joined #zope3-dev13:54
*** stub has quit IRC13:57
*** pelle_ has quit IRC13:58
*** ktwilight_ has quit IRC14:00
*** ktwilight_ has joined #zope3-dev14:00
*** ktwilight_ has quit IRC14:05
*** dunny has quit IRC14:05
*** ktwilight_ has joined #zope3-dev14:06
*** J1m_ has joined #zope3-dev14:28
*** ktwilight_ has quit IRC14:30
*** ktwilight has joined #zope3-dev14:33
*** agroszer_ is now known as agroszer14:33
*** ktwilight has quit IRC14:39
*** ktwilight has joined #zope3-dev14:40
*** JaRoel|4_ has joined #zope3-dev14:41
*** ktwilight has quit IRC14:42
*** ktwilight has joined #zope3-dev14:43
*** kleist has joined #zope3-dev14:45
*** aaronv has joined #zope3-dev14:45
*** menesis has joined #zope3-dev14:46
*** ktwilight has quit IRC14:47
*** ktwilight has joined #zope3-dev14:47
*** ktwilight has quit IRC14:57
*** JaRoel|4D has quit IRC14:57
*** ktwilight has joined #zope3-dev14:58
*** ktwilight has quit IRC15:03
*** ktwilight has joined #zope3-dev15:06
*** ktwilight has quit IRC15:09
*** ktwilight has joined #zope3-dev15:09
*** ktwilight has quit IRC15:14
*** ktwilight has joined #zope3-dev15:15
*** ktwilight has quit IRC15:18
*** lisppaste6 has quit IRC15:21
*** pelle_ has joined #zope3-dev15:21
*** benji has joined #zope3-dev15:22
*** lisppaste6 has joined #zope3-dev15:26
*** hazmat has quit IRC15:42
*** malthe|away is now known as malthe15:45
*** baijum has quit IRC15:45
*** jayaraj has quit IRC15:53
*** jamur2 has joined #zope3-dev16:01
*** jdbrowne has joined #zope3-dev16:02
*** lurkymclurkleton has joined #zope3-dev16:03
jdbrowneHello, I am trying to understand how the introduction of abstract base classes in python3 impact the zope.interfaces used by Zope3. I am hoping that it is not really useful directly for Zope3 the appserver and that it is a low-level plumbing that can make the internals of the zope.interfaces simpler, maybe more robust, maybe enabling new features. Am I right?16:03
mcdoncjdbrowne: that may be true... but there's one thing that ABCs dont do that interfaces do... you can decorate *instances* (and other kinds of objects) with interfaces16:04
mcdonce.g.16:04
mcdoncfrom zope.interface import directlyProvides16:04
mcdoncdirectlyProvides(object, ISomeInterface)16:05
mcdoncabcs dont handle this, and it's a quite common thing to do, at least in zope apps16:05
mcdoncso some of the guts may be improveable by coopting abcs, but maybe it'd not be worth it given that they cant do that16:05
jdbrowneok, also the bare abc can not be applied to a function nor a package. I wonder why they chose this approach then. It is maybe lighter while still helpful to the majority of the cases they identified.16:10
*** Theuni has quit IRC16:11
*** olavgg has quit IRC16:11
mcdoncjdbrowne: i dont think the ABC folks ever really understood the use case for interfaces16:12
mcdoncparticularly that an interface is not about the type, it's about an object16:13
*** olavgg has joined #zope3-dev16:13
mcdonc(and as such it's implemented as metadata rather than something baked into the type hierarchy)16:13
mcdonci suspect they hold this idea in contempt; i dont really know why other than maybe it has the name "zope" on it16:14
jdbrowneIn this article on the topic http://www.artima.com/weblogs/viewpost.jsp?thread=92662 from 2005, Guido van Rossum acknowledged that "two of the largest 3rd party projects in Python (Zope and Twisted)" needed interfaces. They must have had some reasons to use the abc.16:15
jdbrownemyabe16:15
mcdoncguido and jim rarely agree on anything; guido was employed by zope corporation as interfaces were being invented... so he understands them quite well16:16
ARiKAHello16:17
mcdonci dont know what caused him to change his mind16:17
jdbrownemaybe the twisted and zope people did not have the time nor interest in lobbying and explaining while Phillip J. Eby is morepassionate about the subject.16:17
jdbrownethis does not seem rational, I'll try to go deeper into the matter16:17
*** hazmat has joined #zope3-dev16:18
*** ChanServ sets mode: +o hazmat16:18
mcdoncjdbrowne: ftr, i think there's some fundamental misunderstanding about the basic role of interfaces16:18
mcdoncthe fact that interfaces declare "methods" and "attributes" is confusing to folks16:19
mcdoncor maybe the name interfaces entirely16:19
mcdoncbecause interfaces as used by zope are really about run time type identification16:19
jdbrownePhillip J. Eby is the author of two peps on the abc, the one that got accepted pep3119 'introducing abc' and another one 3124 called "Overloading, Generic Functions, Interfaces, and Adaptation"16:19
mcdonc(at least as we use them in the zope component architecture)16:19
ARiKAinterfaces are simple contracts that instances providing that interface have to have...16:19
mcdoncand that runtime type identification doesn't require any of the method and attribute declarations on the interface; it just needs to be a unique interface16:20
mcdoncARiKA: well, that's the misunderstanding i think... it's not a contract16:20
ARiKAwell... it should define the appearance of an instance16:20
ARiKAnot it's logic16:20
mcdoncyou can document *intent* by defining methods and attributes in an interface, but all that is ignored in the type identification machinery16:21
ARiKAthat's what I understood reading and rereading...16:21
jdbrownethe misanderstanding stemming from interfaces just being tags for the registry and optionaly offering validation16:21
mcdoncjdbrowne: right... and hardly anybody uses the validation stuff16:21
ARiKAjdbrowne: by validation you mean the .providedBy and the rest of methods?16:22
*** sp0cksbeard has joined #zope3-dev16:22
*** cshenton has joined #zope3-dev16:22
mcdonci think he means "from zope.component.verify import verifyObject"16:22
mgedminmaybe verifyObject?16:22
mcdoncor the way interfaces are used in zope.schema16:23
ARiKAaha...16:23
ARiKAwell.... can I ask something? ^^16:23
*** basti__ has quit IRC16:24
*** Theuni has joined #zope3-dev16:24
jdbrownethe method validateInvariants for instance is part of validation for instance16:24
jdbrownevewy powerful the invariants, I can't ask SQL not the various XML schemas to encapsulate invariants while zope.interfaces can16:25
mgedminforms use that, but hardly anything else16:25
mgedminI'm pretty sure you can express invariants with SQL16:26
mgedminbut I'm not a RDBMS expert16:26
*** lurkymclurkleton has quit IRC16:27
*** basti__ has joined #zope3-dev16:27
mcdoncit might have been better if we'd created e.g. a zope.rtti package that zope.interface was built on... the rtti stuff would be "from zope.rtti import implements" and "from zope.rtti import directlyProvides" and those would decorate classes and instances with markers that weren't named "interfaces"... then the interface package could build on top of that by providing the validation stuff16:27
mcdoncthe zope.component package would then not need zope.interface at all, just zope.rtti16:28
jdbrowneAh, i think you can't :). For instance, take a configuration a composed of n sections and maybe also n paramters. The define the sections as composed of n parameters and try to ensure in SQL only that the parameter is part of  either one section or one configuration but not both16:28
jdbrownethe reply was for mgedmin16:29
benjiif you guys are really interested in the history, one of the leading proposals before ABCs were chosen was PEP 3133; see http://mail.python.org/pipermail/python-3000/2007-May/007630.html16:30
*** basti__ has joined #zope3-dev16:30
mcdonci guess we didnt stamp our feet petulantly enough as the choice was being made.... ;-)16:33
*** binseer has quit IRC16:34
*** lucielejard has joined #zope3-dev16:34
Theunimcdonc: do you have to use words that i need a dictionary for? *G16:34
mcdoncTheuni: aw come on that description was compact and apt ;-)16:34
mgedminjdbrowne: can't you write custom validation code as a trigger and reject transactions that would violate your constraints?16:35
Theunimcdonc: your syrup still didn't manage to come to me :)16:35
mcdoncTheuni: gawd... that stuff's gonna be tasty when it gets there!16:36
mcdoncit ages well i've heard16:36
*** lurkymclurkleton has joined #zope3-dev16:37
TheuniI'll make sure I'll leave a spoon for you to try when you come around next time.16:38
jdbrownemgedmin: this is a way but you are going to use a non standard SQL extension quite specific the vendor16:38
Theunimcdonc: "petulantly" doesn't even appear in my dictionary16:38
mgedminwho needs a dictionary when there's google16:39
*** J1m_ has quit IRC16:39
Theunii was referring the dictionary that google uses when I ask for an EN-DE translation16:40
jdbrownemgedmin: with the zi, all the validation code is encapsulated in the same code. In SQL, you have the table definition, and you have the trigger on the side, and no real way to embed the trigger in the table. It is a a global function in a way16:41
jdbrownemgedmin: forget the last sentence, this is not correct16:43
*** J1m_ has joined #zope3-dev16:44
jdbrownebenji: thanks16:49
*** whit has joined #zope3-dev16:51
benjinp16:51
*** menesis has quit IRC16:55
mcdoncTheuni: how about "petulant"16:56
*** zagy has quit IRC16:58
*** kleist has quit IRC16:59
*** kleist has joined #zope3-dev16:59
*** sp0cksbeard has quit IRC17:02
*** jdbrowne has left #zope3-dev17:08
*** kleist has quit IRC17:22
*** reco has joined #zope3-dev17:35
*** MJ has quit IRC17:38
*** davisagli has joined #zope3-dev17:42
*** _srichter has joined #zope3-dev17:47
*** strichter has quit IRC17:47
*** menesis has joined #zope3-dev17:48
*** Theuni1 has joined #zope3-dev17:49
*** dbfrombrc has joined #zope3-dev17:53
*** TresEquis has joined #zope3-dev17:53
*** Theuni has quit IRC17:57
*** rmarianski has joined #zope3-dev17:58
*** mgedmin has quit IRC18:04
*** J1m_ has quit IRC18:07
*** J1m_ has joined #zope3-dev18:07
*** J1m_ has joined #zope3-dev18:08
*** ktwilight has joined #zope3-dev18:08
*** ktwilight has quit IRC18:09
*** ktwilight has joined #zope3-dev18:10
*** ktwilight has quit IRC18:11
*** nathany has joined #zope3-dev18:25
*** _srichter has quit IRC18:34
*** _srichter has joined #zope3-dev18:34
*** brandon_rhodes has joined #zope3-dev18:36
*** sp0cksbeard has joined #zope3-dev18:36
*** menesis has quit IRC18:37
*** pelle_ has quit IRC18:38
*** basti__ has quit IRC18:41
*** _srichter has quit IRC18:42
*** _srichter has joined #zope3-dev18:43
*** menesis has joined #zope3-dev18:45
*** lucielejard has quit IRC18:48
*** Theuni1 has quit IRC18:54
*** ktwilight has joined #zope3-dev19:01
*** ktwilight has quit IRC19:02
*** ktwilight has joined #zope3-dev19:03
*** runyaga has joined #zope3-dev19:03
*** ktwilight has quit IRC19:08
*** ktwilight has joined #zope3-dev19:08
*** ktwilight has quit IRC19:10
*** ktwilight has joined #zope3-dev19:11
*** nyo1 has quit IRC19:19
*** pcardune has joined #zope3-dev19:22
*** alga has quit IRC19:24
*** mkerrin has quit IRC19:32
*** _srichter has quit IRC19:36
*** pcardune has quit IRC19:37
*** mgedmin has joined #zope3-dev19:37
*** dbfrombrc has quit IRC19:41
*** agroszer_ has joined #zope3-dev19:44
*** jpcw has quit IRC19:50
*** davisagli is now known as davi|focused19:52
*** hipertracker has quit IRC20:00
*** bigkevmcd has quit IRC20:02
*** agroszer has quit IRC20:06
*** quodt has quit IRC20:06
*** agroszer_ is now known as agroszer20:06
*** pyqwer has quit IRC20:07
*** quodt has joined #zope3-dev20:08
*** quodt_ has joined #zope3-dev20:10
*** quodt has quit IRC20:10
*** lucielejard has joined #zope3-dev20:12
*** tarek has quit IRC20:12
*** whit is now known as whit|lunch20:13
*** zagy has joined #zope3-dev20:18
*** multani has quit IRC20:23
*** ignas has quit IRC20:24
*** JaRoel|4_ has quit IRC20:25
*** davi|focused is now known as davisagli20:25
*** mgedmin has quit IRC20:27
*** harobed has quit IRC20:35
*** zagy has quit IRC20:37
*** tarek has joined #zope3-dev20:37
*** tarek has quit IRC20:40
*** junkafarian has quit IRC20:41
*** _srichter has joined #zope3-dev20:41
*** pcardune has joined #zope3-dev20:42
*** zagy has joined #zope3-dev20:42
*** dunny has joined #zope3-dev20:43
*** sp0cksbeard has left #zope3-dev20:47
*** pcardune has quit IRC20:50
*** pcardune has joined #zope3-dev20:51
*** JaRoel|4D has joined #zope3-dev21:01
*** pelle_ has joined #zope3-dev21:03
*** jpcw has joined #zope3-dev21:03
*** vimes656 has quit IRC21:04
*** malthe is now known as malthe|poker21:10
*** pelle_ has quit IRC21:24
*** MrTopf has quit IRC21:28
*** hazmat has quit IRC21:30
*** J1m_ has quit IRC21:30
*** zagy has quit IRC21:33
*** nyo1 has joined #zope3-dev21:34
*** zagy has joined #zope3-dev21:34
*** quodt_ has quit IRC21:38
*** philiKON has joined #zope3-dev21:40
*** philiKON_ has quit IRC21:48
*** kaeru has quit IRC21:52
*** tarek has joined #zope3-dev21:52
*** MrTopf has joined #zope3-dev22:03
*** _srichter is now known as srichter22:04
*** ChanServ sets mode: +o srichter22:04
*** lurkymclurkleton has quit IRC22:06
*** lurkymclurkleton has joined #zope3-dev22:07
*** zagy has quit IRC22:16
*** quodt has joined #zope3-dev22:23
*** afd_ has quit IRC22:32
*** tarek has quit IRC22:40
*** tarek has joined #zope3-dev22:47
*** ktwilight has joined #zope3-dev22:52
*** runitude has joined #zope3-dev22:52
*** MrTopf has quit IRC22:54
*** runitude has quit IRC22:56
*** MrTopf has joined #zope3-dev23:02
*** nyo1 has quit IRC23:06
*** davisagli has left #zope3-dev23:20
*** nyo1 has joined #zope3-dev23:25
*** agroszer has quit IRC23:38
*** vimes656 has joined #zope3-dev23:39
*** TresEquis has quit IRC23:45
*** aaronv is now known as aaronAway23:56

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!