IRC log of #zope3-dev for Thursday, 2006-04-06

*** povbot has joined #zope3-dev00:37
*** jinty has quit IRC00:44
*** sashav has quit IRC00:50
*** zbir has quit IRC00:59
*** projekt01 has left #zope3-dev01:08
*** tanghus has joined #zope3-dev01:09
*** TresEquis has quit IRC01:20
*** benji has quit IRC01:39
*** zbir has joined #zope3-dev01:55
*** tarek has quit IRC02:01
*** niemeyer has quit IRC02:19
*** RaFromBRC is now known as RaFromBRC|away02:34
*** RaFromBRC|away is now known as RaFromBRC02:55
*** pcardune has joined #zope3-dev03:08
*** taveren has joined #zope3-dev03:36
*** dunny has quit IRC03:45
*** dunny has joined #zope3-dev04:32
*** TrevorP has quit IRC05:06
*** natea has joined #zope3-dev05:06
*** TrevorP has joined #zope3-dev05:11
*** zbir has joined #zope3-dev05:17
*** TrevorP has quit IRC05:20
*** TrevorP has joined #zope3-dev05:21
*** TrevorP has quit IRC05:22
*** tristil has joined #zope3-dev05:22
*** srichter has quit IRC05:23
*** stub has joined #zope3-dev05:26
*** TrevorP has joined #zope3-dev05:31
*** RaFromBRC has quit IRC06:03
*** rockyburt has quit IRC06:38
*** MiUlEr has joined #zope3-dev06:48
*** MiUlEr is now known as MiUlErlog07:18
*** taveren has left #zope3-dev07:28
*** sm has quit IRC08:02
*** sashav has joined #zope3-dev08:13
*** srichter has joined #zope3-dev08:16
*** zopePloneConsult has joined #zope3-dev08:19
*** eins has joined #zope3-dev08:21
einshi08:21
*** sashav has quit IRC08:26
*** WebMaven has quit IRC08:50
*** srichter has quit IRC08:50
*** Theuni has joined #zope3-dev09:02
*** strichter has joined #zope3-dev09:03
*** zagy has joined #zope3-dev09:04
*** Aiste has quit IRC09:07
*** Aiste has joined #zope3-dev09:10
*** hdima has joined #zope3-dev09:13
*** Aiste has quit IRC09:13
*** Aiste has joined #zope3-dev09:14
*** _srichter has joined #zope3-dev09:17
*** strichter has quit IRC09:18
*** povbot has joined #zope3-dev09:36
*** _srichter has quit IRC09:37
*** romanofski has joined #zope3-dev09:41
romanofskimoin09:42
einshi romanofski :)09:47
* romanofski waves to eins 09:48
*** j-w has joined #zope3-dev09:49
*** Theuni has quit IRC09:53
*** Theuni has joined #zope3-dev09:58
*** tarek has joined #zope3-dev09:59
*** zagy has quit IRC10:02
*** zagy has joined #zope3-dev10:02
*** strichter has joined #zope3-dev10:03
*** tarek has quit IRC10:03
*** sashav has joined #zope3-dev10:06
*** tristil has quit IRC10:14
*** MJ has quit IRC10:17
*** dunny has quit IRC10:19
*** stub has quit IRC10:19
*** strichter has quit IRC10:34
*** dunny has joined #zope3-dev10:48
*** dunny has quit IRC10:51
*** dunny has joined #zope3-dev10:51
*** romanofski has quit IRC11:19
*** romanofski has joined #zope3-dev11:19
*** srichter has joined #zope3-dev11:24
*** MJ has joined #zope3-dev11:34
*** Theuni has quit IRC11:36
*** Theuni has joined #zope3-dev11:37
*** ChanServ sets mode: +o srichter11:40
*** stub has joined #zope3-dev11:42
*** Theuni has quit IRC12:11
*** jinty has joined #zope3-dev12:13
*** Theuni has joined #zope3-dev12:14
*** alga has joined #zope3-dev12:22
*** Aiste has quit IRC12:28
*** dunny has quit IRC12:31
*** d2m has quit IRC12:38
*** d2m has joined #zope3-dev12:39
*** dunny has joined #zope3-dev12:46
*** J1m_ has joined #zope3-dev12:49
*** mkerrin has joined #zope3-dev12:49
*** mgedmin has joined #zope3-dev12:58
*** ignas has joined #zope3-dev13:02
*** Aiste has joined #zope3-dev13:07
*** M1 has joined #zope3-dev13:07
*** MJ has quit IRC13:08
*** M1 is now known as MJ13:08
*** rockyburt has joined #zope3-dev13:10
einshow do I get interfaces that are provided by some class?13:14
srichterfrom zope.interface import providedBy13:16
srichterprovidedBy(obj_instance)13:16
srichterbut usually this is not a sensible query13:16
srichterbetter:13:16
srichterIMyInterface.providedBy(obj)13:17
einswell I don't have IMyInterface there, I want to get it13:17
srichterbut how do you know to get it from this list?13:18
einsprovidedBy() I need all interfaces that are provided13:19
einsI need all interfaces that are provided13:19
srichterwhat for?13:20
srichterI have never needed this other than for APIDOC13:20
*** sashav has quit IRC13:20
*** alga has quit IRC13:21
*** alga has joined #zope3-dev13:22
einsjust playing around. trying to get all attribute names from all interfaces that are provided by a class13:22
srichterah ok13:22
srichterthis is similar to the APIDOC case then13:22
einsyup13:22
srichternote that in real life you almost never want that, since you want control over what things you display13:23
einsprovidedBy(object).__dict__['declared'] works but looks pretty ugly13:23
srichterso you are usually working in the mode of addressing one interface at a time13:23
srichterit should work without the __dict__ bit13:23
einsnot, it doesnt: TypeError: unsubscriptable object13:24
eins:)13:24
einsI thought so too..13:24
srichtermmh, ok13:24
srichterlet me check that13:24
srichterok, so providedBy returns a declaration13:27
srichtera declaration extends specification13:28
srichterand specification has a get() method13:28
srichterI knew there was something. :-)13:28
srichterprovidedBy(obj).get('myAttr')13:28
*** J1m_ has quit IRC13:29
einsthanks srichter ;)13:32
*** MiUlErlog has quit IRC13:34
einsspecification even has interfaces() which is good:13:34
einsprovidedBy(object).interfaces()13:34
eins:)13:34
einsnow I have what I needed. thanks again srichter ;)13:35
srichteryou are welcome13:39
*** Aiste has quit IRC13:55
*** dunny has quit IRC14:01
srichtermkerrin: do you think you'll finish the WebDAV stuff for the next release?14:24
mkerrinsrichter: unlikely - I have very little time at the moment. I really want to get back to it though.14:35
mkerrinBTW - I am involved in a project that ported the PrimaGIS plone mapping product to Zope3, as a side project to get it to run under CPS via Five - you may be interested in knowing.14:37
*** jinty has quit IRC14:38
*** jinty has joined #zope3-dev14:38
*** Aiste has joined #zope3-dev14:42
*** andres has joined #zope3-dev14:45
srichtermkerrin: very cool!14:51
mkerrinsrichter: hopefully I can get around to making a more formal announced next week instead a random remark on IRC14:56
*** Aiste has quit IRC14:57
d2mhow would i override the loading of zope.app.basicskin/rotterdam in zope/app/configure.zcml (which is loaded from site.zcml) ?15:01
srichtermkerrin: he he; I just checked it out; it's pretty cool15:03
srichter(the Zope 2 version that is)15:04
srichterd2m: what do you try to accomplish?15:04
d2mthe skins are loaded by default, even when i want toi use my own skin, they get loaded (and are available throuf directives)15:05
d2mi figured that i would need to patch zope/app/configure.zcml and browser.zcml (which is not what i want)15:06
d2msrichter: in short, i do not want the skins to be available TTW15:08
srichterok15:10
srichteryou have to modify z.a.configure.zcml15:11
srichteran alternative is to rewrite the site.zcml and *not* load zope/app/configure.zcml and build your own15:11
srichterSchooltool is doing this15:11
efgemkerrin: not z3 related, but you know there's a CPSGeo product?15:11
d2mok, i'll look there - thanks15:12
srichterone big added benefit to the latter approach has the advantage that you can be more selective15:12
srichterfor example SchoolTool (including its not so small configuration leads in less than 2 secs on my computer in comparison to 4.4 secs for all of Zope 3 (without dev mode)15:12
efgemkerrin: janguenot would like to discuss geo products with you, he tells me he'll email you or will find you on irc (too busy now :))15:13
*** zbir has quit IRC15:22
mkerrinefge: np - I am just going out for some food now - but I will be happy to talk about any of the GEO related stuff15:28
*** niemeyer has joined #zope3-dev15:29
*** faassen has joined #zope3-dev15:48
*** sashav has joined #zope3-dev15:57
*** benji has joined #zope3-dev15:59
srichterbenji: how open are you guys to zc.table improvements?16:04
srichterI have two things in mind:16:04
benjiquite open, srichter16:04
srichterHave base CSS classes for all tags by default16:04
srichterthis would cover a *lot* of occasions for subclassing16:04
srichterthe second would be macro-based column cell rendering16:05
benjiI think default CSS classes would be good; perhaps with a common prefix16:05
srichterI have some fairly complex columns and typing the stuff in Python is getting old quickly16:05
srichterbenji: right16:05
srichterjust something that you can change easily too16:05
benjiI don't quite get what you're saying about the macro-based cell rendering though16:06
srichterlike: formatter:tableClass = 'myclass'16:06
benji(and it's been a while csince I looked at the code)16:06
srichterbenji: I have cells that are more than simple values or fields16:06
benjiright16:06
benjiand you're making your own column for them?16:06
srichterthey have links and display several things make decisions about icons etc16:06
srichteryes16:06
srichterbut writing all this HTML in Python is getting old very quickly16:07
srichterThus I propose (as a base class not default) a formatter that contains a template that contains ZPT macros16:07
benjiso, a new column type that has a template it uses to format the cells, makes sense to me16:08
srichtera special column (MacroColumn or PTColumn) will then use one of the macros in the template to render its cell value16:08
srichterbut I do not want to write a template for each and every column16:08
benjiwhy would it "use one of the macros in the template", and not just juse the whole template?16:08
srichterthen you have template proliferation :-)16:08
benjidisk space is cheap :)16:09
srichterthat's not the reason16:09
srichterit's my sanity :-)16:09
benjihah16:09
srichterI think macros are usually perfect for small HTML snippets16:09
srichterand I would have all column macros in one template together16:09
benjiI still don't like the idea of munging all the cell formatter PTs in one file and using macros to pull them out, but that shouldn't stop you fom doing it, that particular column can be private to you16:10
srichterright16:10
benjithe beauty of componentization :)16:10
srichterit would certainly be an addition instead of a replacement or extension16:10
srichter:-)16:10
srichter(I just would prefer also not maintaining the code in a separate project ;-)16:11
srichterok, I will make those changes16:12
*** gumpa has joined #zope3-dev16:12
srichterprobably will take me while though16:13
srichterbut overall, I love zc.table; it's a lot of fun working with it16:13
srichterbenji: btw, how do you handle table widths?16:13
srichterI mean column widths?16:13
benjinormally we don't force a width16:14
srichtermmh, ok, I definitely need this16:14
benjiwe then make things not wrap if neccesary, and also use an abbreviator to make long strings shorter16:15
srichterwell, I have to fulfill a specific design, so I do not have that choice :-(16:17
srichtermmh, ok16:18
srichtermaybe I'll use the suggested hack from the README16:18
benjiok16:19
*** zbir has joined #zope3-dev16:23
*** tonico has quit IRC16:34
*** hdima has quit IRC17:11
*** andres has quit IRC17:16
*** eins has quit IRC17:22
*** natea has joined #zope3-dev17:34
*** natea has joined #zope3-dev17:38
*** sashav has quit IRC17:50
*** stub has quit IRC17:54
*** sawdog has joined #zope3-dev18:01
*** sm has joined #zope3-dev18:05
*** alga has quit IRC18:09
*** j-w has quit IRC18:12
*** baldtrol has joined #zope3-dev18:18
baldtroli posted a sorta-related question to zope3-users mailing list a moment ago, but a fresh question has sprung to mind, and i thought it might be better brought up here...  if i create an EditForm derivative with formlib, is it possible to present it through a viewlet?  basically i'd like to build a user portal that allows a user to modify multiple sets of data associated to their profile from a single "dashboard" type interface.18:21
*** zopePloneConsult has left #zope3-dev18:22
*** sm has quit IRC18:22
*** sm has joined #zope3-dev18:22
srichterbaldtrol: absolutely18:22
srichterjust make the edit form also comply to the viewlet API18:23
baldtrolsrichter: i figured ;)  would you just make the "render" method a call to __call__?18:23
baldtrolthe render method on the viewlet, i mean18:23
srichterthey both share the update/render pattern18:23
srichterno, just do not implement __call__18:23
srichterit is not required b any API18:23
srichterwell, that's not true18:23
srichterit is required for a standalone edit form, but not if used in a viewlet18:24
baldtrolhmm...  ok.  i had always assumed that __call__ was kinda magiced behind the scenes when you gave it a template18:24
srichternope18:24
philiKONsrichter, got a sec?18:24
srichterall that __call__ usually does is: self.template()18:24
srichterall that __call__ usually does is: return self.template()18:24
srichterphiliKON: not really, but shoot18:24
baldtrolright, right.18:24
philiKONsrichter, ok, i'll make it short. two things:18:25
philiKON1. zope.app.locales contains a) translations for the 'zope' domain, b) some i18n tools18:25
philiKONi think the i18n tools (extractor) should move to zope.i18n18:25
srichterright18:25
philiKONwith the translations, i'm not sure18:25
philiKONzope.formlib has introduced its own translation domain18:25
srichterok to the i18n tools moving18:25
srichterI wonder why it was not there...18:25
philiKONshould translations be kept centrally or in the individual packages?18:25
philiKONsrichter, because we were lazy ;)18:26
srichterwell, honestly I am now at a point where I would like each package maintain its own translation18:26
srichterthis has two drawbacks:18:26
srichter(1) you need to fix the translation utility to accept multiple files for the same domain18:26
srichter(2) Will cause duplications in translations (lot's of them too, probably)18:27
srichterI think leaving them in zope.app for now and stating that they are app server specific is the sanest thing to do18:27
*** rockyburt has quit IRC18:27
srichterI am really torn here18:27
srichtersince the issue runs even deeper18:28
*** rockyburt has joined #zope3-dev18:28
philiKONyep18:28
philiKONad (1):18:28
srichterwhen I write a custom application, I often want to control the translations18:28
philiKONeach zope.* package could maintain its own domain18:28
philiKONthat would solve the multiple files thing18:28
srichternow, I am using formlib in an applications and part of the messages are in the zope domain and some in my custom one18:28
philiKONad (2): yep :(18:28
srichterthat really sucks18:28
philiKONyes18:29
philiKONa central domain is easier in lots of ways18:29
philiKONi wonder how plone does it for the gazillion products they have18:29
srichterme too18:29
srichterrockyburt: ???? (see above)18:29
rockyburthm?18:30
rockyburtasking about domains?18:30
philiKONrockyburt, yes18:30
rockyburtto be quite frank i do very little i18n18:30
philiKONrockyburt, does archetypes have its own i18n domain?18:30
rockyburtoh, lemme check18:30
srichterphiliKON: I think the best would be to start treating domains more abstractly18:30
srichterphiliKON: so when I have my custom project, I collect all messages from formlib and translate them myself18:31
rockyburtit looks like archetypes uses the plone i18n domain18:31
philiKONi see18:31
srichterI could use the standard zope PO files as a translation memory18:31
rockyburtat least the couple .pt's i just checked have i18n:domain="plone"18:31
rockyburtin archetypes18:31
srichterbtw, KBabel now supports translation memories!18:32
philiKONperhaps for now it would be best to move the extractor tool etc. to zope.i18n and zope.app.locales to zope.translations perhaps?18:33
srichterI would leave the POs in zope.app18:34
srichterthey are app server specific18:34
philiKONexcept that they aren't :)18:34
philiKONtranslations for stuff in zope.* should be accessible too18:35
philiKONperhaps we should postpone this issue18:35
srichteryep18:35
srichterthis needs some really hard thinking18:35
philiKONbut we'll have to deal with it at some point18:35
srichter(darn, and I thought this subject was done with)18:36
philiKONsame as with the ISite thing18:36
srichterahat about ISite?18:36
philiKONwell, it needs to move somewhere18:36
philiKONbut j1m doesn't want it in zope.component18:36
srichterI would put it in zope.local or zope.localcomponent18:37
philiKONthat would work. i suggested zope.site.18:37
srichtereven zope.site would be ok18:37
srichter:-)18:37
*** pcardune has quit IRC18:40
philiKONsrichter, another suggestion18:46
philiKONzope.formlib.page.Page feels misplaced18:46
philiKONi'd like to move it to zope.publisher.browser.BrowserPage18:46
srichter+118:47
srichterit should also have an abstract __call__ method18:47
baldtrol+.0005 (it'd be +1, but i multiplied it by how much my vote should really count ;) )18:48
srichterphiliKON: formlib itself needs serious cleanup as well18:49
philiKONhaha18:49
philiKONyeah @ cleanup18:49
srichterphiliKON: the test coverage and documentation must be improved18:49
srichterphiliKON: also, it violates naming conventions left and right18:49
philiKONdunno what you mean by "abstract __call__", but it *does* have a __call__ that raises NotImplementedError, i think18:49
philiKONah, you're right18:50
srichter(I am very bumped that I did not have a closer look before it was added to the core)18:50
philiKONit doesn't provide a __call__18:50
srichterphiliKON: __call__ right18:50
philiKONso, it should provide a __call__ that raises NotImplementedError18:50
philiKON:)18:50
srichteryep18:51
*** tonico has joined #zope3-dev19:12
*** srichter has quit IRC19:13
*** MJ has quit IRC19:22
*** jinty has quit IRC19:45
*** MJ has joined #zope3-dev19:50
*** rockyburt has quit IRC19:53
*** rockyburt has joined #zope3-dev19:54
*** srichter has joined #zope3-dev20:00
*** ChanServ sets mode: +o srichter20:00
*** alga has joined #zope3-dev20:13
*** sm has quit IRC20:20
*** faassen has quit IRC20:22
*** sm has joined #zope3-dev20:22
*** ignas has quit IRC20:28
*** efge has quit IRC20:37
*** zbir has quit IRC21:07
*** zbir has joined #zope3-dev21:13
sawdoghey zack21:16
baldtrolsrichter: i've managed to place a form in a viewlet (which wasn't terribly difficult, as you indicated ;) ), but i still run into the problem where the form render seems to re-render the whole zmi inside of itself.  if i, in tal, get to where i can do a tal:content="python: viewlet.template" it shows that it's using the template i assigned it in the zcml, but my template in no way re-renders the zmi.  it's, as a matter of fact (to make sure i wasn't doin21:26
baldtroli tried creating an adapter for my own named template and assigning that named template to template = namedtemplate.NamedTemplate('mytemplate') in my form class, but it threw an error :\21:27
*** tristil has joined #zope3-dev21:42
*** sashav has joined #zope3-dev21:42
*** alga has quit IRC21:55
*** deo has joined #zope3-dev22:03
*** rockyburt is now known as rockyburt|away22:03
*** mexiKON has joined #zope3-dev22:09
*** jinty has joined #zope3-dev22:18
*** mgedmin has quit IRC22:18
*** philiKON has quit IRC22:19
srichterbaldtrol: of course you cannot just use the entire default template22:27
srichteryou have to use the macro that only displays the form22:27
*** whit is now known as whit|out22:56
baldtrolsrichter: i thought, from looking at it, that that's what the subpageform.pt would do, if i associated it.  the way it reads, the only macro it's implementing is form.23:02
baldtrol(sorry for the delay...  work duties ;) )23:02
*** kamalgill has joined #zope3-dev23:10
baldtrolkamalgill: thanks again man :)23:10
*** rockyburt|away has quit IRC23:10
kamalgillbaldtrol: sorry? thx for?23:11
kamalgilloh, got it23:11
baldtrol<-- pete from thig  (sorry)23:11
kamalgillright, now i understand :)23:11
kamalgillyou're welcome--looking forward to meeting you in SF23:12
baldtrolyessir, quite.23:12
kamalgillbtw, anyone here know the latest status of the new zope3.org?23:14
kamalgillanyone working on zope3.org?23:15
kamalgillanyone else here think we could use a kick-ass zope3.org site?23:16
*** mcdonc has joined #zope3-dev23:16
baldtrolthat last one i can say yes to ;)23:16
*** tanghus has quit IRC23:17
kamalgillbaldtrol: fantastic.23:17
kamalgillanyone else?23:17
*** tristil has quit IRC23:17
*** tanghus has joined #zope3-dev23:18
kamalgilli'd like to volunteer to help with the new zope3.org site, but i'm not sure whom to contact to get this going23:20
benjisomeone is working on it kamalgill, let me see if the svn.zope.org checkins show who...23:20
kamalgillbenji: thx23:20
benjiuser name: oestermeier23:21
benjithe code is in /zope3org/trunk23:21
kamalgillk23:21
kamalgillis that Uwe Oestermeier?23:22
benjiI would assume so :)23:22
baldtrollater on everyone23:23
*** baldtrol has left #zope3-dev23:23
*** jinty has quit IRC23:26
*** benji has quit IRC23:32
*** whit|out is now known as whit23:33
*** mkerrin has quit IRC23:41
*** tanghus_ has joined #zope3-dev23:48
*** sawdog has left #zope3-dev23:52
*** J1m_ has joined #zope3-dev23:56
*** Aiste has joined #zope3-dev23:57

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