*** bskahan has joined #zope3-dev | 00:03 | |
*** senra has joined #zope3-dev | 00:12 | |
*** tvon has joined #zope3-dev | 00:43 | |
*** WebMaven_ has left #zope3-dev | 00:44 | |
*** stub has joined #zope3-dev | 00:57 | |
*** projekt01 has joined #zope3-dev | 01:00 | |
*** srichter has quit IRC | 01:08 | |
*** srichter has joined #zope3-dev | 01:10 | |
*** ChanServ sets mode: +o srichter | 01:11 | |
*** jan_s has joined #zope3-dev | 01:56 | |
*** runyaga is now known as run| | 02:10 | |
*** run| is now known as run|out | 02:10 | |
*** asrenzo has joined #zope3-dev | 02:19 | |
*** asrenzo has left #zope3-dev | 02:20 | |
*** J1m has quit IRC | 02:20 | |
*** srichter has quit IRC | 02:56 | |
*** srichter has joined #zope3-dev | 03:00 | |
*** srichter has quit IRC | 03:05 | |
*** srichter has joined #zope3-dev | 03:08 | |
*** RaFromBRC has quit IRC | 03:18 | |
*** _projekt01 has joined #zope3-dev | 03:23 | |
*** projekt01 has quit IRC | 03:23 | |
*** WebMaven has left #zope3-dev | 03:54 | |
*** d2m has quit IRC | 04:06 | |
*** run|out has quit IRC | 04:11 | |
*** ChanServ sets mode: +o srichter | 04:19 | |
*** _projekt01 has quit IRC | 04:21 | |
*** bskahan has quit IRC | 04:50 | |
*** senra has quit IRC | 04:51 | |
*** srichter has quit IRC | 05:09 | |
*** srichter has joined #zope3-dev | 05:09 | |
*** ChanServ sets mode: +o srichter | 05:10 | |
*** `anthony has quit IRC | 05:45 | |
*** Suresh-E has joined #zope3-dev | 06:50 | |
*** sashav has quit IRC | 07:53 | |
*** `anthony has joined #zope3-dev | 07:57 | |
*** sm has joined #zope3-dev | 08:05 | |
*** jan_s has quit IRC | 08:14 | |
*** `anthony has quit IRC | 08:58 | |
*** hdima has joined #zope3-dev | 09:06 | |
*** ChanServ sets mode: +o tav | 09:09 | |
zagy | moin | 09:15 |
---|---|---|
*** sashav has joined #zope3-dev | 09:50 | |
*** d2m has joined #zope3-dev | 09:55 | |
*** dlk has joined #zope3-dev | 10:07 | |
*** dlk has left #zope3-dev | 10:08 | |
*** dlk has joined #zope3-dev | 10:09 | |
*** sm is now known as smzZZ | 10:14 | |
*** Aiste has joined #zope3-dev | 11:10 | |
*** MalcolmC has joined #zope3-dev | 11:11 | |
*** bskahan has joined #zope3-dev | 11:24 | |
*** vlado has joined #zope3-dev | 11:38 | |
*** [nicknam] has joined #zope3-dev | 11:52 | |
*** mgedmin has joined #zope3-dev | 12:04 | |
*** tvon has quit IRC | 12:24 | |
*** SteveA has quit IRC | 12:24 | |
*** dlk has quit IRC | 12:24 | |
*** stub has quit IRC | 12:24 | |
*** Jim7J1AJH has quit IRC | 12:24 | |
*** jhauser has quit IRC | 12:24 | |
*** Damascene has quit IRC | 12:24 | |
*** VladDrac has quit IRC | 12:24 | |
*** bradb has quit IRC | 12:24 | |
*** vinsci has quit IRC | 12:24 | |
*** mgedmin has quit IRC | 12:24 | |
*** AJC has quit IRC | 12:24 | |
*** jack-e|away has quit IRC | 12:24 | |
*** mgedmin has joined #zope3-dev | 12:25 | |
*** dlk has joined #zope3-dev | 12:25 | |
*** stub has joined #zope3-dev | 12:25 | |
*** tvon has joined #zope3-dev | 12:25 | |
*** jhauser has joined #zope3-dev | 12:25 | |
*** SteveA has joined #zope3-dev | 12:25 | |
*** Damascene has joined #zope3-dev | 12:25 | |
*** AJC has joined #zope3-dev | 12:25 | |
*** VladDrac has joined #zope3-dev | 12:25 | |
*** jack-e|away has joined #zope3-dev | 12:25 | |
*** bradb has joined #zope3-dev | 12:25 | |
*** Jim7J1AJH has joined #zope3-dev | 12:25 | |
*** vinsci has joined #zope3-dev | 12:25 | |
*** jhauser_ has joined #zope3-dev | 12:48 | |
*** jhauser has quit IRC | 12:55 | |
*** bskahan has quit IRC | 13:12 | |
*** [nicknam] has quit IRC | 13:17 | |
*** stub has left #zope3-dev | 14:02 | |
*** senra has joined #zope3-dev | 14:12 | |
jhauser_ | where can I read more about the concept of interaction? | 14:46 |
mgedmin | jhauser_, try src/zope/security/readme.txt | 14:47 |
jhauser_ | ok | 14:48 |
mgedmin | jhauser_, also http://dev.zope.org/Zope3/UnificationOfRequestsAndSecurityContextsThroughUse | 14:49 |
jhauser_ | ah thanks | 14:50 |
jhauser_ | the versioncontrol component uses this, I wonder if I need this in Zope2/five | 14:50 |
*** dlk has quit IRC | 14:52 | |
*** regebro has joined #zope3-dev | 14:57 | |
*** srichter has quit IRC | 14:58 | |
*** regebro is now known as regebro-lunch | 15:06 | |
*** SteveA has quit IRC | 15:21 | |
*** srichter has joined #zope3-dev | 15:33 | |
*** ChanServ sets mode: +o srichter | 15:33 | |
Damascene | hey there. is there a specific document on how menus and menuItems work? i don't think it's in the book? | 15:34 |
*** regebro-lunch is now known as regebro | 15:35 | |
*** Voblia has quit IRC | 15:54 | |
*** niemeyer has joined #zope3-dev | 15:58 | |
*** __gotcha has quit IRC | 16:05 | |
*** __gotcha has joined #zope3-dev | 16:05 | |
*** sashav has quit IRC | 16:23 | |
regebro | Damascene: It it the same question as yesterday (that is, where getMenu resides since the refactoring?) Because then I still don't know. ;-) | 16:37 |
regebro | But otherwise I might be able to help. It's pretty straightforward, really. | 16:38 |
Damascene | regebro: yeah haha. i mean i figured this should be a simple one, since it should just use Tal I'd imagine. | 16:38 |
regebro | Well, using TAL to display a menu should be quite trivial. Getting the list of menu items depends on getMenu, and as noted, I don't know how to get holdof getMenu now that it is refactored. | 16:39 |
Damascene | ah, i thought it might have been releated to just the @view_get_menu/ view | 16:40 |
regebro | But I would expect the menu service to be a global service. You should be able to find the code in the standard templates. | 16:40 |
Damascene | i see code like this. | 16:40 |
Damascene | view context/@@view_get_menu/zmi_views | 16:40 |
regebro | Aha! See there. That's how you get hold of it! | 16:41 |
regebro | So, doesn't work? | 16:41 |
Damascene | nope | 16:42 |
Damascene | well that's the weird thign though. | 16:42 |
regebro | Hm. Any errors? Or? | 16:42 |
Damascene | is view_get_menu some built in hardcoded view? | 16:42 |
Damascene | also, does it make sense for the context to have it, or my view to have it? (since the tal is beign called from a view) | 16:42 |
Damascene | so i made a <menu id="mainnav" ... /> and then i tried making some <menuItems... >, then I tried var context/@@view_get_menu/mainnav | 16:43 |
Damascene | and tried to view var, no errors, just blanks. | 16:43 |
Damascene | then i tried to view var/action | 16:43 |
Damascene | (just like the template) | 16:44 |
Damascene | no errors, just blanks again. | 16:44 |
regebro | Yeah, view_get_menu is a global page. | 16:46 |
Damascene | so my methodology is probably correct? | 16:46 |
regebro | It is a class that subclasses __getitem__ and gets the menu. | 16:46 |
regebro | Yeah, that should pretty much work... | 16:46 |
Damascene | maybe my zcml is off, but the apidoc isn't correct in terms of what's required or not. (it specifies less is required, but you need more values or it fails to load) | 16:47 |
regebro | Lesse... | 16:47 |
Damascene | i can paste my zcml. let me find that paste site | 16:48 |
Damascene | http://www.rafb.net/paste/results/xJW61c10.html | 16:49 |
regebro | "Must specify either class or factory", "Can't specify both class and factory", "A permission must be specified when a class is used". | 16:49 |
Damascene | wait, where did you get that error or docstring? hmm i guess in the global page somewhere? (i got to fidn that thing hhe) | 16:49 |
regebro | yeah, that works for me, but that's X3.0.0, not refactored yet. | 16:50 |
Damascene | ah | 16:50 |
regebro | No, I read the code. ;) | 16:50 |
Damascene | well i guess i deserve any bad stuff that happens then. | 16:50 |
Damascene | regebro; hah, that's the question. WHICH part of the code. :) the component stuff is neat, but sometimes it makes it a bit hard to find stuff. jumping around a lot. ;) | 16:50 |
*** J1m has joined #zope3-dev | 16:51 | |
regebro | Yeah, I know, it confuses the heck out of me. The menues are in zope/app/publisher/browser | 16:51 |
Damascene | uh oh... view_get_menu... i think i override th default template. i wonder if i could still use that macro? | 16:52 |
regebro | I need an editor that displayes some of the path to the file I'm editing. Having five configure.zcml makes for a confusing life. ;) | 16:52 |
Damascene | ooh people put menus in the menu.zcml, eh? interesting. okay, that's a good spot to look, i think i can try to fiddle now | 16:53 |
*** hdima has quit IRC | 16:54 | |
regebro | OK, good luck! | 16:54 |
*** vlado has quit IRC | 17:03 | |
*** vlado has joined #zope3-dev | 17:03 | |
*** __gotcha has quit IRC | 17:04 | |
*** __gotcha has joined #zope3-dev | 17:05 | |
*** vlado_ has joined #zope3-dev | 17:08 | |
*** SteveA has joined #zope3-dev | 17:17 | |
*** vlado has quit IRC | 17:38 | |
*** senra has quit IRC | 17:42 | |
*** bskahan has joined #zope3-dev | 17:47 | |
*** `anthony has joined #zope3-dev | 17:47 | |
*** senra has joined #zope3-dev | 18:00 | |
*** smzZZ is now known as sm | 18:14 | |
srichter | Damascene: the Wiki package also uses custom menus | 18:24 |
* mgedmin has a question about menus | 18:27 | |
mgedmin | suppose I have a custom zope 3 based application | 18:27 |
mgedmin | that has an IGroupContainer(IContainer): contains(IGroup) | 18:27 |
mgedmin | and IGroupContained(IGroup, IContained): containers(IGroupContainer) | 18:27 |
mgedmin | Zope won't allow me to add a <addMenuItem title="Group" ... | 18:27 |
mgedmin | because "Group" is already taken by principal groups | 18:28 |
mgedmin | so I get a ZCML conflict despite the fact that due to containment restrictions no adding menu will ever contain both kinds of groups | 18:28 |
mgedmin | is there a solution? | 18:28 |
mgedmin | (other than the obvious renaming of "Group" to "MyApplication Group"?) | 18:28 |
J1m | No. This is a flaw. | 18:29 |
J1m | A workaround is to use message ids | 18:29 |
J1m | That is, give them different titles | 18:29 |
J1m | but give the different titles the same translation | 18:30 |
J1m | One of these days, I'm gonna redo add menus | 18:30 |
mgedmin | ah, that's a good idea, thanks, Jim | 18:30 |
mgedmin | by the way, yesterday Steve told me that I found a bug in zope.component.getAdapter | 18:33 |
mgedmin | it ignores __conform__ | 18:34 |
mgedmin | imagine | 18:34 |
mgedmin | class Bar: | 18:34 |
mgedmin | def __conform__(self, protocol): | 18:34 |
mgedmin | if protocol is IFoo: return 42 | 18:34 |
mgedmin | bar = Bar() | 18:34 |
mgedmin | IFoo(bar) will return 42 | 18:34 |
mgedmin | zapi.getAdapter(bar, IFoo, '') will raise ComponentLookupError | 18:34 |
mgedmin | so, is that a bug or a user error? | 18:35 |
mgedmin | (perhaps I am using the adapter API incorrectly) | 18:35 |
J1m | Steve is mistaken | 18:35 |
J1m | getAdapter doesn't check whether the object provides the interface or whether the object has __conform__. | 18:36 |
J1m | Only iface call does | 18:36 |
J1m | The documentation hints at this by saying it looks up a named adapter. | 18:37 |
J1m | And, as we all know, looking up a named adapter doesn't take __conform__ into account or whether the object already provides the interface. | 18:38 |
*** er has joined #zope3-dev | 18:40 | |
SteveA | oh, i remember now | 18:43 |
*** senra has quit IRC | 18:44 | |
SteveA | maybe __conform__ should take a 'discriminator' argument in a future version of PEP 246 | 18:45 |
J1m | Or, alternatively, once could define al alternate "protocol" that is computed from an existing protocol using a discriminator. | 18:46 |
J1m | adapt(ob, named(IFoo, 'eek')) | 18:47 |
J1m | IFoo.named('eek')(ob) | 18:47 |
*** zopepaul has joined #zope3-dev | 18:55 | |
*** vlado_ has quit IRC | 19:01 | |
*** zopepaul has quit IRC | 19:02 | |
*** senra has joined #zope3-dev | 19:04 | |
*** Suresh-E has left #zope3-dev | 19:05 | |
*** Voblia has joined #zope3-dev | 19:13 | |
*** srichter has quit IRC | 19:20 | |
regebro | Have anybody done any nice date time widgets, you know, with like drop-down calendars and stuff? | 19:39 |
*** MalcolmC has quit IRC | 19:45 | |
regebro | I found something about some mishoo widgets that ZC are using, did that ever get open sourced? | 19:45 |
*** __gotcha has quit IRC | 19:55 | |
*** srichter has joined #zope3-dev | 19:58 | |
*** __gotcha has joined #zope3-dev | 20:00 | |
*** deo is now known as deo|food | 20:00 | |
*** Aiste has quit IRC | 20:04 | |
*** srichter has quit IRC | 20:26 | |
*** mkerrin has joined #zope3-dev | 20:36 | |
*** regebro has quit IRC | 20:38 | |
*** srichter has joined #zope3-dev | 20:46 | |
*** ChanServ sets mode: +o srichter | 20:46 | |
*** mkerrin has quit IRC | 20:47 | |
*** bskahan has quit IRC | 20:58 | |
*** bskahan has joined #zope3-dev | 21:05 | |
*** er is now known as run|work | 21:05 | |
Damascene | are all skins supposed to be broken? or has it changed? ++skin++rotterdam and ++skin++default seem broken? what are some valid skins? my previous skin broke after i svn up | 21:14 |
Damascene | rather, anyone with a recent svn up, quicly test to see if they can change skins via url? :) | 21:19 |
*** d2m has quit IRC | 21:22 | |
*** gintas has joined #zope3-dev | 21:30 | |
*** gintas has left #zope3-dev | 21:31 | |
*** gintas has joined #zope3-dev | 21:31 | |
*** gintas has quit IRC | 21:31 | |
*** bskahan has quit IRC | 21:35 | |
*** RaFromBRC has joined #zope3-dev | 21:55 | |
*** senra has quit IRC | 21:57 | |
*** AJC has quit IRC | 22:01 | |
*** deo|food is now known as deo | 22:34 | |
*** bskahan has joined #zope3-dev | 22:43 | |
*** alga has joined #zope3-dev | 22:48 | |
*** niemeyer has quit IRC | 23:06 | |
*** RaFromBRC is now known as RaFromBRC|afk | 23:20 | |
*** Aiste has joined #zope3-dev | 23:21 | |
*** mgedmin has quit IRC | 23:40 | |
*** bskahan has quit IRC | 23:44 | |
*** zagy has quit IRC | 23:52 | |
*** Voblia has quit IRC | 23:53 | |
*** alga has quit IRC | 23:56 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!