IRC log of #zope3-dev for Saturday, 2005-04-30

*** RaFromBRC has quit IRC00:00
*** RaFromBRC has joined #zope3-dev00:00
*** SureshZ has left #zope3-dev00:20
*** palmTree has quit IRC00:31
*** srichter has joined #zope3-dev00:42
*** philiKON has joined #zope3-dev00:46
*** ChanServ sets mode: +o srichter00:48
*** philiKON has quit IRC00:49
*** GaryPoster has quit IRC00:52
*** philiKON has joined #zope3-dev00:57
*** yota has quit IRC01:30
*** Theuni has quit IRC01:43
*** bradb has joined #zope3-dev01:58
*** RaFromBRC has quit IRC02:30
*** BjornT has joined #zope3-dev02:32
*** RaFromBRC has joined #zope3-dev02:34
*** stub has joined #zope3-dev02:46
*** `anthony has joined #zope3-dev03:15
*** bradb has quit IRC03:24
*** projekt01 has left #zope3-dev03:31
*** GaryPoster has joined #zope3-dev03:38
*** hazmat has quit IRC03:39
*** GaryPoster has quit IRC04:00
*** hazmat has joined #zope3-dev04:03
*** GaryPoster has joined #zope3-dev04:08
*** bradb has joined #zope3-dev04:14
*** hazmat has quit IRC04:34
*** RaFromBRC has quit IRC04:44
*** GaryPoster has quit IRC05:03
*** MalcolmC has quit IRC05:03
*** Damascene has quit IRC05:03
*** vinsci has quit IRC05:03
*** MalcolmC has joined #zope3-dev05:04
*** Damascene has joined #zope3-dev05:04
*** vinsci has joined #zope3-dev05:04
*** hazmat has joined #zope3-dev05:10
*** bradb has quit IRC05:59
*** tvon|desk has quit IRC06:21
*** BjornT has quit IRC06:44
*** stub has quit IRC07:02
*** bradb has joined #zope3-dev07:33
*** SteveA has joined #zope3-dev07:51
*** jbb666 has quit IRC07:58
*** SteveA has quit IRC08:04
*** SteveA has joined #zope3-dev08:13
*** `anthony has quit IRC08:23
*** BjornT has joined #zope3-dev08:28
*** viyyer has joined #zope3-dev08:31
*** viyyer has left #zope3-dev08:50
*** stub has joined #zope3-dev08:57
*** SteveA has quit IRC09:20
*** SteveA has joined #zope3-dev09:32
*** bradb has quit IRC09:55
*** BjornT has quit IRC09:55
*** jhauser has quit IRC09:56
*** SteveA has quit IRC10:14
*** stub has quit IRC10:34
*** kaczordek has joined #zope3-dev10:49
VladDracdamn12:02
VladDraccan't resolve this conflict12:02
VladDracah fixed12:12
* VladDrac mixed up some interfaces and definitions12:12
*** kaczordek has quit IRC12:24
*** philiKON has quit IRC12:39
*** MacYET has joined #zope3-dev12:41
*** MacYET has quit IRC12:45
*** `anthony has joined #zope3-dev12:51
*** MrTopf has joined #zope3-dev13:06
*** philiKON has joined #zope3-dev13:17
*** projekt01 has joined #zope3-dev13:27
*** yota has joined #zope3-dev13:47
* VladDrac 's heard some negative remarks about 'registries' here - what's that all about?14:31
VladDrac(to me a registry is just a utility where you register and lookup stuff)14:31
philiKONmost of the time that's even unnecessary14:31
philiKONutilities in itself can most of the time the stuff you want to lookup14:32
philiKONso, you can use the utility lookup facility for a registry14:32
srichterVladDrac: often one utility is one element in your registry14:34
srichterfor exampl, every database adapter instance is a utility providing IDatabaseAdapter14:34
srichteryou can then say: getUtilitiesFor(IDatabaseAdapter) which will give you all DB adapter instances14:35
VladDracok14:37
VladDracso why not getUtilitiesFor(ISmileyInterface)? :)14:37
srichtersame idea14:38
srichterwell, every smiley theme is a utility14:38
srichterbut I decided that it would be too tedious if every smiley would be a utility as well14:38
srichterbecause a single smiley is looked up by smiley interface, theme interface and name14:39
srichterso I would have needed to create an interface for each theme14:39
srichterwhich I did not want to do14:39
projekt01How do I lookup adapters for a class? I know I can register the adapter for classes as well, but that's not the case.15:07
projekt01 I have to check if I have to create a object if there will be a adapter otherwise I don't create the object form the class.15:07
srichteryou lookup adapters for a class the same way as regular adapters15:14
srichterif you want to talk to the adapter registry directly via lookup(), then you need to get the specification for the class15:15
srichtersimply check out how the registration for class adapters is done15:15
*** MacYET has joined #zope3-dev15:21
MacYETanyone awake?15:21
VladDracsorta15:23
srichteryeah15:24
MacYET:-)15:24
MacYETcan i do the following easier:15:24
MacYETif Isomething.providedBy(obj) or zapi.queryAdapter(obj, ISomething):...15:25
srichteryou can do just the latter15:29
srichterif obj provides ISomething, then ISomething(obj) will return obj15:30
srichterso in effect, you can do:15:30
MacYETso an object implementing IX adapts to itself?15:30
srichterif ISomething(obj):15:30
srichteryes15:30
MacYETtnx15:30
MacYETbut ISomething.providedBy(obj) does not check if there any adapters?15:32
srichterof course not15:35
MacYEThm...15:37
MacYETif ISomething(obj):...sucks because it might raise an exception...ugly15:38
srichterthen you need to use zapi.queryAdapter as you suggested before15:39
srichterwhich is effectively the above call, but with an exception handler15:39
MacYETbut queryAdapter requires the 'name' attribute which is unknown to the application if someone resgisters an adapter under a certian name15:39
srichterwell, everything is nameless15:41
projekt01srichter, thanks I'll try this.15:42
srichterISomething(obj) --> zapi.getAdapter(ISomething, obj, name='')15:42
srichterbecause it makes really no sense to ask: do you have any adapter for obj providing ISomething15:43
MacYETah...Isomething(obj, None) works.15:43
*** bskahan has joined #zope3-dev15:43
* MacYET beats philiKON for his docs15:43
srichterbecause you do not know the name15:43
srichterMacYET: oh, totally forgot about this Zope 3 extension to the feature :-)15:43
* MacYET writes the everything-you-should-know-about-z3-book15:44
*** MrTopf has quit IRC15:45
*** robotika has joined #zope3-dev15:47
MacYETok, got it working :)15:47
*** MrTopf has joined #zope3-dev15:58
VladDracok15:59
* MacYET really starts to love z315:59
VladDraclet's find out today if I can define dynamic constraints :)15:59
VladDracif I derive from an interface (IContained) then I end up with an interface, right?16:20
VladDracraise TypeError(iface_type, "is not an interface type")16:20
VladDraczope.configuration.config.ConfigurationExecutionError: exceptions.TypeError: (<InterfaceClass cubic.core.interfaces.ICubicContentContained>, 'is not an interface type')16:20
VladDracok16:28
VladDracif I explicitly implement the interface in my content type, it works, if I try to add the interface through zcml, it doesn't16:29
VladDracstuff like this confuses me like hell16:29
VladDrachmm okay I think I know what I'm doing wrong I guess16:30
VladDracstill confuses me though :)16:31
*** Aiste has quit IRC16:44
*** Aiste has joined #zope3-dev16:44
* VladDrac shoud use the introspector more often16:51
*** projekt01 has left #zope3-dev17:30
philiKONMacYET, what's wrong now18:01
philiKONMacYET, i'm pretty sure my book explains that if obj provides ISomething, ISomething(obj) will return obj18:02
MacYETat least i did not find it18:07
srichterthe thing is that books are often not flexible enough for immediate needs18:15
srichterI think we need some sort of info-tidbit database that has a very good idex that can be searched18:16
srichter(like "Did you know?" for applications)18:16
*** MacYET is now known as MacSushi18:47
*** bskahan has quit IRC19:00
*** philiKON has quit IRC19:19
*** philiKON has joined #zope3-dev19:29
*** mexiKON has joined #zope3-dev20:02
*** MrTopf has quit IRC20:02
srichterhey, would anyone here be interested in coming to a Zope 3 sprint to Boston this summer?20:02
*** philiKON has quit IRC20:11
*** bskahan has joined #zope3-dev20:13
*** mexiKON is now known as philiKON20:14
*** SureshZ has joined #zope3-dev20:30
*** efge has joined #zope3-dev20:34
*** efge has joined #zope3-dev20:36
*** efge has joined #zope3-dev20:36
*** efge has quit IRC20:55
*** srichter has quit IRC21:08
*** srichter has joined #zope3-dev21:08
*** MacSushi has quit IRC21:57
*** MrTopf has joined #zope3-dev23:19
*** Aiste has quit IRC23:25
*** Aiste has joined #zope3-dev23:26
*** projekt01 has joined #zope3-dev23:28
*** tonico has quit IRC23:42

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