*** RaFromBRC has quit IRC | 00:00 | |
*** RaFromBRC has joined #zope3-dev | 00:00 | |
*** SureshZ has left #zope3-dev | 00:20 | |
*** palmTree has quit IRC | 00:31 | |
*** srichter has joined #zope3-dev | 00:42 | |
*** philiKON has joined #zope3-dev | 00:46 | |
*** ChanServ sets mode: +o srichter | 00:48 | |
*** philiKON has quit IRC | 00:49 | |
*** GaryPoster has quit IRC | 00:52 | |
*** philiKON has joined #zope3-dev | 00:57 | |
*** yota has quit IRC | 01:30 | |
*** Theuni has quit IRC | 01:43 | |
*** bradb has joined #zope3-dev | 01:58 | |
*** RaFromBRC has quit IRC | 02:30 | |
*** BjornT has joined #zope3-dev | 02:32 | |
*** RaFromBRC has joined #zope3-dev | 02:34 | |
*** stub has joined #zope3-dev | 02:46 | |
*** `anthony has joined #zope3-dev | 03:15 | |
*** bradb has quit IRC | 03:24 | |
*** projekt01 has left #zope3-dev | 03:31 | |
*** GaryPoster has joined #zope3-dev | 03:38 | |
*** hazmat has quit IRC | 03:39 | |
*** GaryPoster has quit IRC | 04:00 | |
*** hazmat has joined #zope3-dev | 04:03 | |
*** GaryPoster has joined #zope3-dev | 04:08 | |
*** bradb has joined #zope3-dev | 04:14 | |
*** hazmat has quit IRC | 04:34 | |
*** RaFromBRC has quit IRC | 04:44 | |
*** GaryPoster has quit IRC | 05:03 | |
*** MalcolmC has quit IRC | 05:03 | |
*** Damascene has quit IRC | 05:03 | |
*** vinsci has quit IRC | 05:03 | |
*** MalcolmC has joined #zope3-dev | 05:04 | |
*** Damascene has joined #zope3-dev | 05:04 | |
*** vinsci has joined #zope3-dev | 05:04 | |
*** hazmat has joined #zope3-dev | 05:10 | |
*** bradb has quit IRC | 05:59 | |
*** tvon|desk has quit IRC | 06:21 | |
*** BjornT has quit IRC | 06:44 | |
*** stub has quit IRC | 07:02 | |
*** bradb has joined #zope3-dev | 07:33 | |
*** SteveA has joined #zope3-dev | 07:51 | |
*** jbb666 has quit IRC | 07:58 | |
*** SteveA has quit IRC | 08:04 | |
*** SteveA has joined #zope3-dev | 08:13 | |
*** `anthony has quit IRC | 08:23 | |
*** BjornT has joined #zope3-dev | 08:28 | |
*** viyyer has joined #zope3-dev | 08:31 | |
*** viyyer has left #zope3-dev | 08:50 | |
*** stub has joined #zope3-dev | 08:57 | |
*** SteveA has quit IRC | 09:20 | |
*** SteveA has joined #zope3-dev | 09:32 | |
*** bradb has quit IRC | 09:55 | |
*** BjornT has quit IRC | 09:55 | |
*** jhauser has quit IRC | 09:56 | |
*** SteveA has quit IRC | 10:14 | |
*** stub has quit IRC | 10:34 | |
*** kaczordek has joined #zope3-dev | 10:49 | |
VladDrac | damn | 12:02 |
---|---|---|
VladDrac | can't resolve this conflict | 12:02 |
VladDrac | ah fixed | 12:12 |
* VladDrac mixed up some interfaces and definitions | 12:12 | |
*** kaczordek has quit IRC | 12:24 | |
*** philiKON has quit IRC | 12:39 | |
*** MacYET has joined #zope3-dev | 12:41 | |
*** MacYET has quit IRC | 12:45 | |
*** `anthony has joined #zope3-dev | 12:51 | |
*** MrTopf has joined #zope3-dev | 13:06 | |
*** philiKON has joined #zope3-dev | 13:17 | |
*** projekt01 has joined #zope3-dev | 13:27 | |
*** yota has joined #zope3-dev | 13: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 |
philiKON | most of the time that's even unnecessary | 14:31 |
philiKON | utilities in itself can most of the time the stuff you want to lookup | 14:32 |
philiKON | so, you can use the utility lookup facility for a registry | 14:32 |
srichter | VladDrac: often one utility is one element in your registry | 14:34 |
srichter | for exampl, every database adapter instance is a utility providing IDatabaseAdapter | 14:34 |
srichter | you can then say: getUtilitiesFor(IDatabaseAdapter) which will give you all DB adapter instances | 14:35 |
VladDrac | ok | 14:37 |
VladDrac | so why not getUtilitiesFor(ISmileyInterface)? :) | 14:37 |
srichter | same idea | 14:38 |
srichter | well, every smiley theme is a utility | 14:38 |
srichter | but I decided that it would be too tedious if every smiley would be a utility as well | 14:38 |
srichter | because a single smiley is looked up by smiley interface, theme interface and name | 14:39 |
srichter | so I would have needed to create an interface for each theme | 14:39 |
srichter | which I did not want to do | 14:39 |
projekt01 | How 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 |
srichter | you lookup adapters for a class the same way as regular adapters | 15:14 |
srichter | if you want to talk to the adapter registry directly via lookup(), then you need to get the specification for the class | 15:15 |
srichter | simply check out how the registration for class adapters is done | 15:15 |
*** MacYET has joined #zope3-dev | 15:21 | |
MacYET | anyone awake? | 15:21 |
VladDrac | sorta | 15:23 |
srichter | yeah | 15:24 |
MacYET | :-) | 15:24 |
MacYET | can i do the following easier: | 15:24 |
MacYET | if Isomething.providedBy(obj) or zapi.queryAdapter(obj, ISomething):... | 15:25 |
srichter | you can do just the latter | 15:29 |
srichter | if obj provides ISomething, then ISomething(obj) will return obj | 15:30 |
srichter | so in effect, you can do: | 15:30 |
MacYET | so an object implementing IX adapts to itself? | 15:30 |
srichter | if ISomething(obj): | 15:30 |
srichter | yes | 15:30 |
MacYET | tnx | 15:30 |
MacYET | but ISomething.providedBy(obj) does not check if there any adapters? | 15:32 |
srichter | of course not | 15:35 |
MacYET | hm... | 15:37 |
MacYET | if ISomething(obj):...sucks because it might raise an exception...ugly | 15:38 |
srichter | then you need to use zapi.queryAdapter as you suggested before | 15:39 |
srichter | which is effectively the above call, but with an exception handler | 15:39 |
MacYET | but queryAdapter requires the 'name' attribute which is unknown to the application if someone resgisters an adapter under a certian name | 15:39 |
srichter | well, everything is nameless | 15:41 |
projekt01 | srichter, thanks I'll try this. | 15:42 |
srichter | ISomething(obj) --> zapi.getAdapter(ISomething, obj, name='') | 15:42 |
srichter | because it makes really no sense to ask: do you have any adapter for obj providing ISomething | 15:43 |
MacYET | ah...Isomething(obj, None) works. | 15:43 |
*** bskahan has joined #zope3-dev | 15:43 | |
* MacYET beats philiKON for his docs | 15:43 | |
srichter | because you do not know the name | 15:43 |
srichter | MacYET: oh, totally forgot about this Zope 3 extension to the feature :-) | 15:43 |
* MacYET writes the everything-you-should-know-about-z3-book | 15:44 | |
*** MrTopf has quit IRC | 15:45 | |
*** robotika has joined #zope3-dev | 15:47 | |
MacYET | ok, got it working :) | 15:47 |
*** MrTopf has joined #zope3-dev | 15:58 | |
VladDrac | ok | 15:59 |
* MacYET really starts to love z3 | 15:59 | |
VladDrac | let's find out today if I can define dynamic constraints :) | 15:59 |
VladDrac | if I derive from an interface (IContained) then I end up with an interface, right? | 16:20 |
VladDrac | raise TypeError(iface_type, "is not an interface type") | 16:20 |
VladDrac | zope.configuration.config.ConfigurationExecutionError: exceptions.TypeError: (<InterfaceClass cubic.core.interfaces.ICubicContentContained>, 'is not an interface type') | 16:20 |
VladDrac | ok | 16:28 |
VladDrac | if I explicitly implement the interface in my content type, it works, if I try to add the interface through zcml, it doesn't | 16:29 |
VladDrac | stuff like this confuses me like hell | 16:29 |
VladDrac | hmm okay I think I know what I'm doing wrong I guess | 16:30 |
VladDrac | still confuses me though :) | 16:31 |
*** Aiste has quit IRC | 16:44 | |
*** Aiste has joined #zope3-dev | 16:44 | |
* VladDrac shoud use the introspector more often | 16:51 | |
*** projekt01 has left #zope3-dev | 17:30 | |
philiKON | MacYET, what's wrong now | 18:01 |
philiKON | MacYET, i'm pretty sure my book explains that if obj provides ISomething, ISomething(obj) will return obj | 18:02 |
MacYET | at least i did not find it | 18:07 |
srichter | the thing is that books are often not flexible enough for immediate needs | 18:15 |
srichter | I think we need some sort of info-tidbit database that has a very good idex that can be searched | 18:16 |
srichter | (like "Did you know?" for applications) | 18:16 |
*** MacYET is now known as MacSushi | 18:47 | |
*** bskahan has quit IRC | 19:00 | |
*** philiKON has quit IRC | 19:19 | |
*** philiKON has joined #zope3-dev | 19:29 | |
*** mexiKON has joined #zope3-dev | 20:02 | |
*** MrTopf has quit IRC | 20:02 | |
srichter | hey, would anyone here be interested in coming to a Zope 3 sprint to Boston this summer? | 20:02 |
*** philiKON has quit IRC | 20:11 | |
*** bskahan has joined #zope3-dev | 20:13 | |
*** mexiKON is now known as philiKON | 20:14 | |
*** SureshZ has joined #zope3-dev | 20:30 | |
*** efge has joined #zope3-dev | 20:34 | |
*** efge has joined #zope3-dev | 20:36 | |
*** efge has joined #zope3-dev | 20:36 | |
*** efge has quit IRC | 20:55 | |
*** srichter has quit IRC | 21:08 | |
*** srichter has joined #zope3-dev | 21:08 | |
*** MacSushi has quit IRC | 21:57 | |
*** MrTopf has joined #zope3-dev | 23:19 | |
*** Aiste has quit IRC | 23:25 | |
*** Aiste has joined #zope3-dev | 23:26 | |
*** projekt01 has joined #zope3-dev | 23:28 | |
*** tonico has quit IRC | 23:42 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!