*** benji has quit IRC | 00:14 | |
*** Londo has joined #zope3-dev | 00:16 | |
*** J1m has quit IRC | 00:22 | |
*** gumpa has quit IRC | 00:38 | |
*** dobee has quit IRC | 00:41 | |
*** yota has quit IRC | 00:59 | |
*** jinty has quit IRC | 01:11 | |
*** timte has quit IRC | 01:26 | |
*** projekt01 has joined #zope3-dev | 01:27 | |
*** marcin_ant has joined #zope3-dev | 01:29 | |
*** marcin_ant has quit IRC | 01:30 | |
*** ignas has joined #zope3-dev | 01:41 | |
*** RaFromBRC is now known as RaFromBRC|away | 01:57 | |
*** harobed_ has quit IRC | 02:01 | |
*** whit has quit IRC | 02:30 | |
*** rocky is now known as rocky|Zzz | 02:30 | |
*** jinty has joined #zope3-dev | 02:38 | |
*** philiKON has quit IRC | 02:59 | |
*** RaFromBRC|away has quit IRC | 03:13 | |
*** reco has joined #zope3-dev | 03:27 | |
*** ignas has quit IRC | 03:57 | |
*** ofer has joined #zope3-dev | 05:22 | |
*** alecm has quit IRC | 05:22 | |
*** ofer has quit IRC | 05:38 | |
*** stub has joined #zope3-dev | 05:42 | |
*** projekt01 has quit IRC | 06:17 | |
*** reco has quit IRC | 06:31 | |
*** jinty has quit IRC | 06:35 | |
*** Theuni has quit IRC | 06:49 | |
*** stub has quit IRC | 06:56 | |
*** stub has joined #zope3-dev | 06:57 | |
*** __mac__ has quit IRC | 06:58 | |
*** stu1 has joined #zope3-dev | 07:28 | |
*** ktwilight_ has joined #zope3-dev | 07:28 | |
*** ktwilight has quit IRC | 07:43 | |
*** stub has quit IRC | 07:46 | |
*** dunny has quit IRC | 07:58 | |
*** romanofski has quit IRC | 08:03 | |
*** d2m has left #zope3-dev | 08:07 | |
*** Theuni has joined #zope3-dev | 08:23 | |
*** __mac__ has joined #zope3-dev | 08:25 | |
*** eins has joined #zope3-dev | 08:25 | |
*** yota has joined #zope3-dev | 08:35 | |
*** BjornT has quit IRC | 08:42 | |
*** d2m has joined #zope3-dev | 08:47 | |
*** BjornT has joined #zope3-dev | 08:47 | |
*** philiKON has joined #zope3-dev | 08:52 | |
*** timte has joined #zope3-dev | 08:52 | |
*** batlogg has joined #zope3-dev | 09:11 | |
*** dlk has joined #zope3-dev | 09:21 | |
*** dlk has left #zope3-dev | 09:22 | |
*** hdima has joined #zope3-dev | 09:31 | |
*** wrobel has joined #zope3-dev | 09:32 | |
*** philiKON has quit IRC | 09:39 | |
*** dlk has joined #zope3-dev | 09:39 | |
*** romanofski has joined #zope3-dev | 09:39 | |
romanofski | moin | 09:40 |
---|---|---|
*** flox has quit IRC | 09:45 | |
*** kobold has joined #zope3-dev | 09:51 | |
*** Aiste has quit IRC | 10:01 | |
*** ofer has joined #zope3-dev | 10:04 | |
*** harobed has joined #zope3-dev | 10:31 | |
*** dobee has joined #zope3-dev | 10:32 | |
*** ofer has quit IRC | 10:53 | |
*** ktwilight_ is now known as ktwilight | 11:08 | |
*** baijum has joined #zope3-dev | 11:20 | |
*** MJ has joined #zope3-dev | 11:48 | |
*** jinty has joined #zope3-dev | 11:58 | |
*** baijum_ has joined #zope3-dev | 12:11 | |
*** stu1 is now known as stub | 12:13 | |
*** baijum has quit IRC | 12:20 | |
*** Aiste has joined #zope3-dev | 12:42 | |
*** mgedmin has joined #zope3-dev | 12:54 | |
*** dobee has quit IRC | 13:01 | |
*** Aiste has quit IRC | 13:01 | |
*** Aiste has joined #zope3-dev | 13:02 | |
*** mkerrin has joined #zope3-dev | 13:04 | |
*** henri_ has joined #zope3-dev | 13:10 | |
*** vlado has joined #zope3-dev | 13:13 | |
*** kobold has quit IRC | 13:30 | |
*** J1m has joined #zope3-dev | 13:44 | |
*** batlogg has quit IRC | 14:14 | |
*** ChrisW has joined #zope3-dev | 14:18 | |
*** dobee has joined #zope3-dev | 14:19 | |
*** xenru has quit IRC | 14:32 | |
*** flox has joined #zope3-dev | 14:36 | |
*** hazmat has quit IRC | 14:38 | |
*** torkel_ has joined #zope3-dev | 14:40 | |
*** stub has quit IRC | 14:41 | |
*** dobee has quit IRC | 14:51 | |
*** dobee has joined #zope3-dev | 14:55 | |
*** flox has quit IRC | 14:56 | |
*** baijum_ has quit IRC | 15:00 | |
*** SteveA has quit IRC | 15:08 | |
*** philiKON has joined #zope3-dev | 15:10 | |
*** benji has joined #zope3-dev | 15:12 | |
*** SteveA has joined #zope3-dev | 15:32 | |
*** radix has left #zope3-dev | 15:43 | |
*** mgedmin has quit IRC | 15:43 | |
*** dlk has left #zope3-dev | 15:47 | |
*** hazmat has joined #zope3-dev | 15:48 | |
*** ChanServ sets mode: +o hazmat | 15:48 | |
*** MJ has quit IRC | 15:51 | |
*** hdima has quit IRC | 16:25 | |
*** torkel_ has quit IRC | 16:32 | |
*** vlado has quit IRC | 16:40 | |
*** vlado_ has joined #zope3-dev | 16:40 | |
*** ChrisW has left #zope3-dev | 16:46 | |
*** __mac__ has quit IRC | 16:49 | |
*** eins has quit IRC | 16:55 | |
*** rocky|Zzz is now known as rocky | 16:59 | |
*** whit has joined #zope3-dev | 17:07 | |
*** whit has quit IRC | 17:08 | |
*** whit has joined #zope3-dev | 17:12 | |
*** azazel has joined #zope3-dev | 17:38 | |
*** tonico is now known as tonico|away | 17:39 | |
azazel | hi all, i'm approaching now zope3 technologies as i'm porting some old code to plone2.5 and zope 2.9.5, i've already used some bits of them like views and adaptors, but now i'm facing with a more extensive adaptors usage snd i have some questions thart i hope you guys can /will answer | 17:41 |
philiKON | azazel, just ask your questinos | 17:42 |
philiKON | don't ask questions about questions :) | 17:42 |
azazel | yes:)... was just an intro:) | 17:43 |
philiKON | no intros necessary :) | 17:43 |
azazel | ok so i have some fragments of a plone ui which are calculated in different way than the standard plone , For exemple i have declare a IPortletCalculator which works in pair with a DefaultPortletCalulator that adapts (*, IMySite) to IPortletCalculator and supplies portlets data for the generic plone content. The main view MySite asks for an adaptor and get it | 17:49 |
philiKON | azazel, you write too long lines | 17:51 |
philiKON | please split them up | 17:52 |
philiKON | and perhaps ask specific questions | 17:52 |
azazel | Now i need to declare a more "specific" adaptor for just one interface so my question is if i declare that adaptor to be more specific like for="IMyspecificInterface \n IMySite, what will be the behavior of zope, when IMySite ask for an adaptor for a content object which implements IMySpecificInterface? | 17:54 |
azazel | will i get both adaptor classes? or just the more specific one? | 17:55 |
benji | you get the most specific adapter | 17:56 |
azazel | mmm, so it does the right thing! nice to know! | 17:58 |
azazel | :) thanks benji | 17:59 |
azazel | both the next question is: what happens when two adaptors are equally specific | 18:01 |
azazel | but it's enough for now:) | 18:02 |
benji | the most recently registered one wins | 18:02 |
* rocky schemes on how to ensure his adapters are always the most recently registered ones... and decides to prefix all of this package names with zzzzz just to be sure .... :) | 18:03 | |
azazel | eheheh:) | 18:03 |
benji | actually, if you use ZCML, you'll get a conflict, but that's a ZCML thing not a component registry thing | 18:04 |
*** ChrisW has joined #zope3-dev | 18:04 | |
ChrisW | philiKON: ping? | 18:04 |
philiKON | pong | 18:04 |
azazel | or i can use override.zcml to rule things a bit? | 18:04 |
benji | azazel: yep | 18:06 |
azazel | good, many thanks | 18:07 |
* azazel set up emacs to open .zcml with nxml-mode:) | 18:08 | |
*** alecm has joined #zope3-dev | 18:09 | |
*** vlado_ has quit IRC | 18:09 | |
*** whit has quit IRC | 18:11 | |
*** whit has joined #zope3-dev | 18:12 | |
philiKON | J1m, ayt? | 18:38 |
*** ChrisW has left #zope3-dev | 18:38 | |
J1m | yes | 18:39 |
philiKON | so i brainstormed on "sites" a bit | 18:39 |
philiKON | nowadays we usually call a site manager a component registry | 18:39 |
philiKON | coz that's what it does, it registeres (and looks up) components | 18:39 |
*** ChrisW has joined #zope3-dev | 18:39 | |
philiKON | so a site is just a place where we can have such a component registry | 18:39 |
ChrisW | *sigh* how come trailing dots are no longer supported in zcml dotted paths? | 18:40 |
philiKON | ChrisW, use + | 18:40 |
philiKON | people usually associate something else with the term "site", though | 18:40 |
philiKON | they think "website" | 18:40 |
philiKON | e.g. like "CMF Site" | 18:40 |
philiKON | "Plone SIte" etc. | 18:40 |
philiKON | so, i think we need a better name for sites | 18:40 |
ChrisW | I thought that was the zope 3 idea of a site too? | 18:40 |
philiKON | no | 18:40 |
philiKON | z3's idea of sites is just a place where you can make local component registrations | 18:41 |
ChrisW | hmm, well, it used to be ;-) | 18:41 |
philiKON | they are, as i called it in seattle during a dinner conversations, the quantum leaps of acquisition in z3 :) | 18:41 |
ChrisW | :-( | 18:41 |
ChrisW | ;-) | 18:41 |
J1m | z3's notion is pretty close to CMF Site. | 18:41 |
*** romanofski has quit IRC | 18:41 | |
J1m | which is probably why I used that terminology. | 18:41 |
philiKON | yes | 18:41 |
philiKON | well | 18:41 |
philiKON | this might sound crazy | 18:42 |
philiKON | but at the seattle sprint | 18:42 |
philiKON | godefroid came to me with a propblem | 18:42 |
ChrisW | J1m: yup, except you can't successfully nest CMF Sites, although I've known people to try ;-) | 18:42 |
philiKON | they wanted a *view* to be notified of arbitrary events that occurred during the view's execution time | 18:42 |
J1m | ChrisW, I've seen it done. | 18:42 |
philiKON | the use case was ajax | 18:43 |
philiKON | their ajax framework uses z3 events | 18:43 |
ChrisW | class=".SomePyFile+" don't work :-( | 18:43 |
ChrisW | should it? | 18:43 |
philiKON | no idea. just spell it out :/ | 18:43 |
philiKON | anyways, their ajax framework works with standard object events | 18:43 |
ChrisW | it works if I do class=".SomePyFile.SomePyFile" | 18:43 |
J1m | ChrisW, I don't remember what the trailing + was supposed to do. | 18:43 |
J1m | so use that | 18:44 |
philiKON | so when an object changes, e.g. the title, all the appropriate bits and pieces in the UI are refreshed | 18:44 |
philiKON | it's a very neat idea | 18:44 |
philiKON | so, what we came up with is to have local component registrations on the view | 18:44 |
ChrisW | well, the trailing . used to be so you didn't have to type lots of ".MyClass.MyClass" | 18:44 |
philiKON | so the view is a site | 18:44 |
ChrisW | anyone know why it's now verboten? | 18:44 |
philiKON | that obviously confused some people | 18:44 |
philiKON | ChrisW, well, you shouldn't be creating CamelCase modules in the first place | 18:44 |
philiKON | ChrisW, and i have no idea why it's not workign anymore | 18:45 |
*** dobee has quit IRC | 18:45 | |
philiKON | i think we converted it into a trailing + at some point | 18:45 |
ChrisW | it's been explicitly removed, since the trailing . raises an error | 18:45 |
philiKON | but perhaps we dind't | 18:45 |
ChrisW | but it looks like the trailing + doesn't look like it's there | 18:45 |
ChrisW | oh well, ne'ermind | 18:45 |
philiKON | anyways, while perhaps crazy or not, views can very well be ISites and it made perfect sense for their use case | 18:46 |
J1m | philiKON, thinking about a view being s site is too much work. :) | 18:46 |
philiKON | it was very little work, in fact :) | 18:46 |
J1m | For their use case, they needed to somehow have a registry of subscribers on a view (or a view class). | 18:47 |
J1m | I suspect that there is a lighter way to do it. | 18:47 |
philiKON | right | 18:47 |
philiKON | perhaps | 18:47 |
philiKON | my point is just that zope 2 allowed you to acquire things from anywhere | 18:47 |
J1m | I also suspect that are lots of particulars in this story that I don't have time to know. :) | 18:48 |
philiKON | in z3 you have to make things a site in order to be able to acquire from it | 18:48 |
J1m | anyway, pretending that this is a reasonable thing to do .... | 18:48 |
philiKON | sites don't always have to be folders | 18:48 |
J1m | where do you think this leads? | 18:48 |
philiKON | a new understanding/terminology for sites | 18:48 |
J1m | no, you can acquire from anything above you in the containment hoerarchy | 18:48 |
philiKON | well, i meant like "component architecture" acquisition | 18:49 |
J1m | I'm not terribly fond of the word site. | 18:49 |
philiKON | right | 18:49 |
J1m | Right, you can'rt acquire components from something that isn't a component registry. | 18:49 |
philiKON | me neither | 18:49 |
philiKON | exactly | 18:49 |
philiKON | or, to be exact: | 18:49 |
philiKON | you can't acquire components form something that doesn't *have* a component registry | 18:49 |
philiKON | currently we call sucha thing a site | 18:49 |
philiKON | but potentially anything could have a component registry | 18:50 |
J1m | although, given feedback recently, I'm not fond of changing things unless there is a *really* compelling reason to. :) | 18:50 |
philiKON | not just things people generally understand as "sites" | 18:50 |
philiKON | yes | 18:50 |
philiKON | i realize that also | 18:50 |
*** henri_ has quit IRC | 18:50 | |
philiKON | i feel the same way | 18:50 |
philiKON | anyways, i really have nowhere to go with this yet | 18:51 |
philiKON | just wanted to run my thoughts by you | 18:51 |
philiKON | the views-need-specific-subscribers thing isn't a terribly good example, i admit | 18:51 |
philiKON | but i can see the use in more things having their own registries | 18:52 |
J1m | keep in mind that registries are not lightweight. | 18:52 |
J1m | They can consume a fair bit of memory due to their caches. | 18:53 |
philiKON | hmm | 18:53 |
philiKON | that's a good point | 18:53 |
J1m | It might be possible in the future to allow registries to us eless memory by being a little more selective about what they will cache. | 18:54 |
J1m | But that will take some engineering. | 18:54 |
J1m | And my list of engineering projects is long and my time to work on them is short. | 18:54 |
philiKON | hehe, sure | 18:54 |
philiKON | well, i'm not saying we should encourage registry proliferation | 18:54 |
philiKON | but in grok, for example, we thought of a simple way to say: "make this view available there" where "there" is some object | 18:55 |
J1m | I'm not saying it wouldn't be nice if we could. :) | 18:55 |
philiKON | it just seems that the word "site" is misleading in many ways | 18:55 |
philiKON | because that "there" doesn't really need to have the notion of a site that we typically do | 18:56 |
*** mgedmin has joined #zope3-dev | 18:56 | |
philiKON | anyways, we're agreeing mostly | 18:56 |
J1m | yup | 18:56 |
*** harobed has quit IRC | 19:03 | |
*** hazmat has quit IRC | 19:05 | |
*** ChrisW has quit IRC | 19:29 | |
*** Aiste has quit IRC | 19:37 | |
*** mgedmin has quit IRC | 19:38 | |
*** RaFromBRC has joined #zope3-dev | 19:56 | |
*** guruz has joined #zope3-dev | 20:04 | |
guruz | hello | 20:04 |
guruz | how can i get line numbers etc when the TAL parser can't evaluate something and throws for example a KeyError? | 20:04 |
philiKON | the traceback should contain that info | 20:05 |
guruz | it does not | 20:06 |
*** mkerrin has quit IRC | 20:12 | |
*** whit has quit IRC | 20:19 | |
*** hazmat has joined #zope3-dev | 20:24 | |
*** ChanServ sets mode: +o hazmat | 20:24 | |
*** whit has joined #zope3-dev | 20:29 | |
*** whit has quit IRC | 20:31 | |
*** whit has joined #zope3-dev | 20:32 | |
*** whit has quit IRC | 20:34 | |
*** batlogg has joined #zope3-dev | 20:45 | |
*** whit has joined #zope3-dev | 20:49 | |
*** projekt01 has joined #zope3-dev | 20:59 | |
*** radix has joined #zope3-dev | 21:04 | |
*** stub has joined #zope3-dev | 21:05 | |
*** dunny has joined #zope3-dev | 21:06 | |
*** ofer has joined #zope3-dev | 21:11 | |
*** hazmat has quit IRC | 21:18 | |
*** WebMaven has joined #zope3-dev | 21:20 | |
timte | If I want prev and next available as browser pages, do I need on browser:page for each page or can I specify an interface and all its methods will be browser pages? | 21:32 |
timte | s/on/a/ | 21:32 |
philiKON | you need individual browser:page decl | 21:35 |
philiKON | thoough you can save some typing with browser:pages | 21:35 |
timte | <browser:pages interface="..." /> would be nice, or are there drawbacks? | 21:36 |
philiKON | how would you specify edit.html? | 21:38 |
philiKON | or similar views | 21:38 |
philiKON | i don't really see the advantage | 21:38 |
philiKON | you'd have to type the interface | 21:38 |
timte | less typing | 21:38 |
philiKON | so you can just aas well type the zcml | 21:38 |
timte | I have an interface anyways | 21:39 |
philiKON | aha | 21:39 |
philiKON | weird | 21:39 |
philiKON | either way, interfaces typically document python apis | 21:39 |
philiKON | not everything in a browser view API has to be meant to be publishable | 21:39 |
timte | Let's say you have a IMusicPlayer with stop, record, rewind, fast forward and all that stuff. I go to some.url.com/music/stop for stopping the music or have some ajax stuff that uses that url. That's many browser pages. I thought there might be a shortcut. | 21:42 |
*** projekt01 has quit IRC | 21:43 | |
timte | or is it like in zope 2 that an object's method can be triggered by the url without any browser pages? | 21:46 |
philiKON | not really | 21:46 |
philiKON | you probably want a <browser:view> with subpages | 21:47 |
philiKON | other than that i'm afraid you'll have to type :( | 21:47 |
philiKON | anyways, bbl | 21:47 |
timte | :) | 21:47 |
radix | So I think I need to implement something like a HiddenSequence formlib widget. Has anyone done anything like that yet? | 21:47 |
timte | ok, thanks | 21:47 |
philiKON | radix, hidden? | 21:48 |
philiKON | radix, as in: widget.hidden() ? | 21:48 |
radix | philiKON: I need to put in a bunch of <input type="hidden" name="constant" value="variable" /> into some forms | 21:48 |
philiKON | yes, i believe existing widgets can already to that | 21:48 |
philiKON | they have a hidden method | 21:48 |
philiKON | incl. the sequence widget | 21:48 |
philiKON | gotta go, though | 21:49 |
radix | hmm ok, I'll take a look. thanks. | 21:49 |
*** jukart has joined #zope3-dev | 22:23 | |
*** jinty has quit IRC | 22:26 | |
*** jukart has quit IRC | 22:34 | |
*** jukart has joined #zope3-dev | 22:36 | |
*** hazmat has joined #zope3-dev | 22:37 | |
*** ChanServ sets mode: +o hazmat | 22:37 | |
*** marcin_ant has joined #zope3-dev | 22:46 | |
*** hazmat has quit IRC | 23:08 | |
*** hazmat has joined #zope3-dev | 23:11 | |
*** ChanServ sets mode: +o hazmat | 23:11 | |
*** hazmat has quit IRC | 23:16 | |
*** RaFromBRC is now known as RaFromBRC|lunch | 23:17 | |
*** hazmat has joined #zope3-dev | 23:22 | |
*** ChanServ sets mode: +o hazmat | 23:22 | |
*** jukart has quit IRC | 23:23 | |
*** nebo has joined #zope3-dev | 23:26 | |
*** hazmat has quit IRC | 23:36 | |
*** _tarek has joined #zope3-dev | 23:36 | |
*** tarek has quit IRC | 23:41 | |
*** nebo has quit IRC | 23:47 | |
*** _tarek has quit IRC | 23:55 | |
*** tarek has joined #zope3-dev | 23:56 | |
*** BjornT has quit IRC | 23:58 | |
*** BjornT has joined #zope3-dev | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!