IRC log of #zope3-dev for Friday, 2005-01-21

*** bskahan has joined #zope3-dev00:03
*** senra has joined #zope3-dev00:12
*** tvon has joined #zope3-dev00:43
*** WebMaven_ has left #zope3-dev00:44
*** stub has joined #zope3-dev00:57
*** projekt01 has joined #zope3-dev01:00
*** srichter has quit IRC01:08
*** srichter has joined #zope3-dev01:10
*** ChanServ sets mode: +o srichter01:11
*** jan_s has joined #zope3-dev01:56
*** runyaga is now known as run|02:10
*** run| is now known as run|out02:10
*** asrenzo has joined #zope3-dev02:19
*** asrenzo has left #zope3-dev02:20
*** J1m has quit IRC02:20
*** srichter has quit IRC02:56
*** srichter has joined #zope3-dev03:00
*** srichter has quit IRC03:05
*** srichter has joined #zope3-dev03:08
*** RaFromBRC has quit IRC03:18
*** _projekt01 has joined #zope3-dev03:23
*** projekt01 has quit IRC03:23
*** WebMaven has left #zope3-dev03:54
*** d2m has quit IRC04:06
*** run|out has quit IRC04:11
*** ChanServ sets mode: +o srichter04:19
*** _projekt01 has quit IRC04:21
*** bskahan has quit IRC04:50
*** senra has quit IRC04:51
*** srichter has quit IRC05:09
*** srichter has joined #zope3-dev05:09
*** ChanServ sets mode: +o srichter05:10
*** `anthony has quit IRC05:45
*** Suresh-E has joined #zope3-dev06:50
*** sashav has quit IRC07:53
*** `anthony has joined #zope3-dev07:57
*** sm has joined #zope3-dev08:05
*** jan_s has quit IRC08:14
*** `anthony has quit IRC08:58
*** hdima has joined #zope3-dev09:06
*** ChanServ sets mode: +o tav09:09
zagymoin09:15
*** sashav has joined #zope3-dev09:50
*** d2m has joined #zope3-dev09:55
*** dlk has joined #zope3-dev10:07
*** dlk has left #zope3-dev10:08
*** dlk has joined #zope3-dev10:09
*** sm is now known as smzZZ10:14
*** Aiste has joined #zope3-dev11:10
*** MalcolmC has joined #zope3-dev11:11
*** bskahan has joined #zope3-dev11:24
*** vlado has joined #zope3-dev11:38
*** [nicknam] has joined #zope3-dev11:52
*** mgedmin has joined #zope3-dev12:04
*** tvon has quit IRC12:24
*** SteveA has quit IRC12:24
*** dlk has quit IRC12:24
*** stub has quit IRC12:24
*** Jim7J1AJH has quit IRC12:24
*** jhauser has quit IRC12:24
*** Damascene has quit IRC12:24
*** VladDrac has quit IRC12:24
*** bradb has quit IRC12:24
*** vinsci has quit IRC12:24
*** mgedmin has quit IRC12:24
*** AJC has quit IRC12:24
*** jack-e|away has quit IRC12:24
*** mgedmin has joined #zope3-dev12:25
*** dlk has joined #zope3-dev12:25
*** stub has joined #zope3-dev12:25
*** tvon has joined #zope3-dev12:25
*** jhauser has joined #zope3-dev12:25
*** SteveA has joined #zope3-dev12:25
*** Damascene has joined #zope3-dev12:25
*** AJC has joined #zope3-dev12:25
*** VladDrac has joined #zope3-dev12:25
*** jack-e|away has joined #zope3-dev12:25
*** bradb has joined #zope3-dev12:25
*** Jim7J1AJH has joined #zope3-dev12:25
*** vinsci has joined #zope3-dev12:25
*** jhauser_ has joined #zope3-dev12:48
*** jhauser has quit IRC12:55
*** bskahan has quit IRC13:12
*** [nicknam] has quit IRC13:17
*** stub has left #zope3-dev14:02
*** senra has joined #zope3-dev14:12
jhauser_where can I read more about the concept of interaction?14:46
mgedminjhauser_, try src/zope/security/readme.txt14:47
jhauser_ok14:48
mgedminjhauser_, also http://dev.zope.org/Zope3/UnificationOfRequestsAndSecurityContextsThroughUse14:49
jhauser_ah thanks14:50
jhauser_the versioncontrol component uses this, I wonder if I need this in Zope2/five14:50
*** dlk has quit IRC14:52
*** regebro has joined #zope3-dev14:57
*** srichter has quit IRC14:58
*** regebro is now known as regebro-lunch15:06
*** SteveA has quit IRC15:21
*** srichter has joined #zope3-dev15:33
*** ChanServ sets mode: +o srichter15:33
Damascenehey 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 regebro15:35
*** Voblia has quit IRC15:54
*** niemeyer has joined #zope3-dev15:58
*** __gotcha has quit IRC16:05
*** __gotcha has joined #zope3-dev16:05
*** sashav has quit IRC16:23
regebroDamascene: It it the same question as yesterday (that is, where getMenu resides since the refactoring?) Because then I still don't know. ;-)16:37
regebroBut otherwise I might be able to help. It's pretty straightforward, really.16:38
Damasceneregebro:  yeah haha.  i mean i figured this should be a simple one, since it should just use Tal I'd imagine.16:38
regebroWell, 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
Damasceneah, i thought it might have been releated to just the @view_get_menu/ view16:40
regebroBut 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
Damascenei see code like this.16:40
Damasceneview context/@@view_get_menu/zmi_views16:40
regebroAha! See there. That's how you get hold of it!16:41
regebroSo, doesn't work?16:41
Damascenenope16:42
Damascenewell that's the weird thign though.16:42
regebroHm. Any errors? Or?16:42
Damasceneis view_get_menu some built in hardcoded view?16:42
Damascenealso, 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
Damasceneso i made a <menu id="mainnav" ... /> and then i tried making some <menuItems... >, then I tried var context/@@view_get_menu/mainnav16:43
Damasceneand tried to view var, no errors, just blanks.16:43
Damascenethen i tried to view var/action16:43
Damascene(just like the template)16:44
Damasceneno errors, just blanks again.16:44
regebroYeah, view_get_menu is a global page.16:46
Damasceneso my methodology is probably correct?16:46
regebroIt is a class that subclasses __getitem__ and gets the menu.16:46
regebroYeah, that should pretty much work...16:46
Damascenemaybe 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
regebroLesse...16:47
Damascenei can paste my zcml.  let me find that paste site16:48
Damascenehttp://www.rafb.net/paste/results/xJW61c10.html16: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
Damascenewait, 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
regebroyeah, that works for me, but that's X3.0.0, not refactored yet.16:50
Damasceneah16:50
regebroNo, I read the code. ;)16:50
Damascenewell i guess i deserve any bad stuff that happens then.16:50
Damasceneregebro;  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-dev16:51
regebroYeah, I know, it confuses the heck out of me. The menues are in zope/app/publisher/browser16:51
Damasceneuh oh... view_get_menu... i think i override th default template. i wonder if i could still use that macro?16:52
regebroI 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
Damasceneooh people put menus in the menu.zcml, eh?  interesting.  okay, that's a good spot to look, i think i can try to fiddle now16:53
*** hdima has quit IRC16:54
regebroOK, good luck!16:54
*** vlado has quit IRC17:03
*** vlado has joined #zope3-dev17:03
*** __gotcha has quit IRC17:04
*** __gotcha has joined #zope3-dev17:05
*** vlado_ has joined #zope3-dev17:08
*** SteveA has joined #zope3-dev17:17
*** vlado has quit IRC17:38
*** senra has quit IRC17:42
*** bskahan has joined #zope3-dev17:47
*** `anthony has joined #zope3-dev17:47
*** senra has joined #zope3-dev18:00
*** smzZZ is now known as sm18:14
srichterDamascene: the Wiki package also uses custom menus18:24
* mgedmin has a question about menus18:27
mgedminsuppose I have a custom zope 3 based application18:27
mgedminthat has an IGroupContainer(IContainer): contains(IGroup)18:27
mgedminand IGroupContained(IGroup, IContained): containers(IGroupContainer)18:27
mgedminZope won't allow me to add a <addMenuItem title="Group" ...18:27
mgedminbecause "Group" is already taken by principal groups18:28
mgedminso I get a ZCML conflict despite the fact that due to containment restrictions no adding menu will ever contain both kinds of groups18:28
mgedminis there a solution?18:28
mgedmin(other than the obvious renaming of "Group" to "MyApplication Group"?)18:28
J1mNo. This is a flaw.18:29
J1mA workaround is to use message ids18:29
J1mThat is, give them different titles18:29
J1mbut give the different titles the same translation18:30
J1mOne of these days, I'm gonna redo add menus18:30
mgedminah, that's a good idea, thanks, Jim18:30
mgedminby the way, yesterday Steve told me that I found a bug in zope.component.getAdapter18:33
mgedminit ignores __conform__18:34
mgedminimagine18:34
mgedminclass Bar:18:34
mgedmin    def __conform__(self, protocol):18:34
mgedmin        if protocol is IFoo: return 4218:34
mgedminbar = Bar()18:34
mgedminIFoo(bar) will return 4218:34
mgedminzapi.getAdapter(bar, IFoo, '') will raise ComponentLookupError18:34
mgedminso, is that a bug or a user error?18:35
mgedmin(perhaps I am using the adapter API incorrectly)18:35
J1mSteve is mistaken18:35
J1mgetAdapter doesn't check whether the object provides the interface or whether the object has __conform__.18:36
J1mOnly iface call does18:36
J1mThe documentation hints at this by saying it looks up a named adapter.18:37
J1mAnd, 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-dev18:40
SteveAoh, i remember now18:43
*** senra has quit IRC18:44
SteveAmaybe __conform__ should take a 'discriminator' argument in a future version of PEP 24618:45
J1mOr, alternatively, once could define al alternate "protocol" that is computed from an existing protocol using a discriminator.18:46
J1madapt(ob, named(IFoo, 'eek'))18:47
J1mIFoo.named('eek')(ob)18:47
*** zopepaul has joined #zope3-dev18:55
*** vlado_ has quit IRC19:01
*** zopepaul has quit IRC19:02
*** senra has joined #zope3-dev19:04
*** Suresh-E has left #zope3-dev19:05
*** Voblia has joined #zope3-dev19:13
*** srichter has quit IRC19:20
regebroHave anybody done any nice date time widgets, you know, with like drop-down calendars and stuff?19:39
*** MalcolmC has quit IRC19:45
regebroI found something about some mishoo widgets that ZC are using, did that ever get open sourced?19:45
*** __gotcha has quit IRC19:55
*** srichter has joined #zope3-dev19:58
*** __gotcha has joined #zope3-dev20:00
*** deo is now known as deo|food20:00
*** Aiste has quit IRC20:04
*** srichter has quit IRC20:26
*** mkerrin has joined #zope3-dev20:36
*** regebro has quit IRC20:38
*** srichter has joined #zope3-dev20:46
*** ChanServ sets mode: +o srichter20:46
*** mkerrin has quit IRC20:47
*** bskahan has quit IRC20:58
*** bskahan has joined #zope3-dev21:05
*** er is now known as run|work21:05
Damasceneare 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 up21:14
Damascenerather, anyone with a recent svn up, quicly test to see if they can change skins via url?  :)21:19
*** d2m has quit IRC21:22
*** gintas has joined #zope3-dev21:30
*** gintas has left #zope3-dev21:31
*** gintas has joined #zope3-dev21:31
*** gintas has quit IRC21:31
*** bskahan has quit IRC21:35
*** RaFromBRC has joined #zope3-dev21:55
*** senra has quit IRC21:57
*** AJC has quit IRC22:01
*** deo|food is now known as deo22:34
*** bskahan has joined #zope3-dev22:43
*** alga has joined #zope3-dev22:48
*** niemeyer has quit IRC23:06
*** RaFromBRC is now known as RaFromBRC|afk23:20
*** Aiste has joined #zope3-dev23:21
*** mgedmin has quit IRC23:40
*** bskahan has quit IRC23:44
*** zagy has quit IRC23:52
*** Voblia has quit IRC23:53
*** alga has quit IRC23:56

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