IRC log of #zope3-dev for Wednesday, 2006-07-26

*** SteveA has quit IRC00:00
*** SteveA has joined #zope3-dev00:01
*** b_52Centos__ has quit IRC00:06
*** dobee has quit IRC00:08
*** vlado has quit IRC00:19
*** RaFromBRC is now known as RaFromBRC|away00:20
*** Aiste has joined #zope3-dev00:45
*** SteveA has quit IRC00:58
*** SteveA has joined #zope3-dev00:59
*** rocky has joined #zope3-dev01:04
*** nathany has quit IRC01:09
*** zbir_ is now known as zbir01:15
*** RaFromBRC|away has quit IRC01:19
*** rocky is now known as rocky|away01:19
*** benji has quit IRC01:33
*** ignas has quit IRC01:33
*** ignas has joined #zope3-dev01:41
*** gintas_ has quit IRC01:49
*** rocky|away has quit IRC01:49
*** RaFromBRC has joined #zope3-dev02:08
*** nathany has joined #zope3-dev02:15
*** smokeyd has quit IRC02:16
*** mgedmin has quit IRC02:17
*** rocky has joined #zope3-dev02:39
*** smokeyd has joined #zope3-dev03:16
*** philiKON has quit IRC03:16
*** yota has quit IRC03:26
*** roym has quit IRC03:31
*** smokeyd has quit IRC03:42
*** dunny has joined #zope3-dev04:02
*** rocky has quit IRC04:23
*** hazmat has joined #zope3-dev04:47
*** ChanServ sets mode: +o hazmat04:47
*** stub has joined #zope3-dev04:54
*** niemeyer has quit IRC04:56
*** RaFromBRC has quit IRC05:28
*** nathany has quit IRC05:48
*** hazmat has quit IRC06:03
*** whit has quit IRC06:28
*** baijum has joined #zope3-dev06:31
*** hazmat has joined #zope3-dev07:00
*** ChanServ sets mode: +o hazmat07:00
*** philiKON has joined #zope3-dev07:33
*** dunny has quit IRC07:58
*** Theuni has joined #zope3-dev08:00
*** eins has joined #zope3-dev08:06
einshi08:06
*** dobee has joined #zope3-dev08:07
*** cursor has joined #zope3-dev08:22
*** d2m has left #zope3-dev08:22
*** hazmat has quit IRC08:24
*** d2m has joined #zope3-dev08:28
*** dobee has quit IRC08:34
*** zagy has joined #zope3-dev08:59
*** romanofski has joined #zope3-dev09:01
*** dobee has joined #zope3-dev09:02
*** alecm has quit IRC09:08
*** cursor has quit IRC09:15
*** yota has joined #zope3-dev09:21
*** Aiste has quit IRC09:24
*** hdima has joined #zope3-dev09:30
*** b_52CEntos_ has joined #zope3-dev09:35
*** b_52CEntos has quit IRC09:53
*** eins has quit IRC09:56
*** eins has joined #zope3-dev09:59
*** MJ has quit IRC10:00
*** b_52CEntos_ has quit IRC10:05
*** flox has joined #zope3-dev10:17
*** batlogg has joined #zope3-dev10:19
*** volvox has joined #zope3-dev10:22
*** batlogg is now known as batlogg|holiday10:23
*** hazmat has joined #zope3-dev10:31
*** ChanServ sets mode: +o hazmat10:31
*** ignas has quit IRC10:34
*** dobee_ has joined #zope3-dev10:45
*** hazmat has quit IRC10:48
*** stub has quit IRC10:48
*** dobee has quit IRC10:58
*** einheit_ has joined #zope3-dev11:04
*** SteveA has quit IRC11:14
*** einheit_ is now known as SteveA11:15
*** vlado_ has joined #zope3-dev11:17
*** vlado_ is now known as vlado11:22
*** vlado has quit IRC11:22
*** vlado has joined #zope3-dev11:22
*** dobee_ is now known as dobee11:26
*** dobee is now known as dobee|fh11:27
*** MJ has joined #zope3-dev11:30
*** dobee|fh has quit IRC11:57
*** dobee|fh has joined #zope3-dev11:58
*** vlado has quit IRC12:00
*** oferw has joined #zope3-dev12:08
*** jinty has joined #zope3-dev12:16
*** oferw has quit IRC12:31
volvoxhi there12:33
volvoxI would like to know if a book like this could be useful to a z3 developer for intranet applications12:33
volvoxPatterns of Enterprise Application Architecture (Hardcover) by M. Fowler12:34
volvoxit seems well done, does anyone know it?12:34
*** mkerrin has joined #zope3-dev12:36
ktwilighthmm...i dunno 'bout that. but have you looked at the two available books for z3?12:39
volvoxktwilight: it's not about the tool, but the design of complex software..12:40
*** dobee|fh has quit IRC12:41
ktwilightright....no clue then :)12:41
*** Aiste has joined #zope3-dev12:43
SteveAvolvox: yes12:45
SteveAvolvox: read all books by martin fowler12:45
volvoxSteveA: well, I like him, but for instance with Refactoring, half of the examples make little sense with python :-)12:45
volvoxi will read it, thanks12:46
SteveAparticularly the section on distributed systems12:46
SteveAwhere it basically says "don't"12:46
volvoxlol12:46
volvoxdistributed systems are like a dungeon full of traps12:47
*** faassen has joined #zope3-dev13:17
*** ignas has joined #zope3-dev13:18
*** dobee|fh has joined #zope3-dev13:29
*** stub has joined #zope3-dev13:42
*** mexiKON has joined #zope3-dev13:53
*** philiKON has quit IRC14:10
*** roym has joined #zope3-dev14:17
roymA recurring use-case in my application seems to be the creation of14:17
royminterfaces to allow uses to do many-to-many mapping. The presentation14:17
roymusually is an input form that looks like a sparsely populated grid14:17
roym(often radio buttons). Are there any established patterns or14:17
roymtechniquest to handle this sort of thing?  I find myself writing the14:17
roymsame code again and again.14:17
faassenhm I don't know..14:20
faassenone technique you might be able to use is to define a new widget14:20
faassen(and perhaps a new schema field for storage, if what's available doesn't apply)14:20
faassenwriting a new widget is more up-front work but once it's done it's quite convenient to use.14:20
volvoxfaassen: i've looked at hurry.workflow, as I told you at europython, to replace my dumb workflow14:22
volvoxi need to check if the current principal is the one that created the object14:22
volvoxinside the condition, how do I get hold of the current principal? I only have the context object14:23
volvoxand don't know how I am supposed to get the request.principal14:23
* volvox thinks it's probably a dumb question14:24
roymvolvox: I asked the same sort of questions, and someone told me that usually, that type of determination needs to happen in the views... (ie: before they get to the context method).14:26
volvoxroym: I'm using a workflow component because I don't want to do state management in the view..14:26
roymagreed, but don't you usually get to the method via a view method of some sort. afaik, the principal is usually defined in the context of an interaction, and the context classes are generally unaware of requests and principals.14:28
volvoxroym: so if everything fails I could ask for the interaction and get the request from there?14:29
roymI think its more like you have always have to pass the principal from a view to the context methods.14:30
volvoxroym: the function that is called is the condition: def NullCondition(wf, context)... no request there14:31
volvoxbut i'll look deeper,tnx14:31
*** rock1 has joined #zope3-dev14:31
*** rock1 is now known as rocky14:32
roymI have a table view (hundreds of cells) - I plan to render each cell14:47
roymusing a construct like "content="obj/@@viewA | obj/@@viewB". Is this14:47
roymtype of fallback processing costly, or reasonable to do?14:47
SteveAusing tal:repeat is costly14:51
*** benji_ has joined #zope3-dev14:52
roymSteveA: when rendering a table, how can one avoid tal:repeat?14:54
SteveArender it in python, and include it that <div tal:replace="structure view/renderTable" />14:55
mexiKONroym, take a look at zc.table, perhaps14:55
*** benji_ is now known as benji14:57
roymok - wouldn't have suspected tal:repeat to be expensive. As for my question about fallback processing being costly (cos intuititively, I think that involves a try/catch), what are your thoughts?14:58
roymmexiKON: where is zc.table?15:00
mexiKONsvn.zope.org15:02
*** niemeyer has joined #zope3-dev15:03
SteveAroym: the cost of using tal at all vastly outweighs the additional cost of a single try-catch15:06
SteveAtry-except in python-speak15:07
SteveA(java programmer uncovered ;-)  )15:07
*** jinty has quit IRC15:08
roym :) ooops - just that I get paid to do java (daytimes)15:08
* rocky was fortunate enough to give up his java day job a couple years ago ;)15:09
roymmexiKON: zc.table looks very promising, thanks.15:16
roymmakes me wonder what else is there outside of z3-trunk that I might have benefited from. Is there a listing/README/overview that I might look at?15:17
faassenvolvox: who were you at europython?15:29
faassenroym: not yet, we need to start doing such things for zope.org15:31
faassenroym: there's quite a lot of fun stuff hiding out in svn.zope.org. also the hurry stuff at codespeak.net/svn/z315:31
faassenvolvox: anyway, I saw some of the discussions, yeah, it's kind of unpleasant to have to get the principal from the request..15:32
faassenvolvox: there's a hacky way to get to it otherwise, let me look it up for you15:32
* rocky snickers at faassen's shameless plug *grin*15:32
faassenrocky: the hurry stuff? :) yeah, I wrote the hurry stuff :)15:32
volvoxfaassen: getInteraction().participations[0]  ?15:32
faassennot all of it anymore, Stephan Richter has been improving ..15:32
faassenvolvox: right15:32
volvoxtnx15:33
faassenvolvox: that's it.15:33
faassenI think there should be some Zope 3 API for that to do that officially somehow.15:33
volvoxnaa, people would use it in content objects ;-)15:33
faassenas it's really convenient, especially from within workflow and stuff.15:33
faassenwell, I'm of the philosophy that if people want to do evil stuff they'll find out ways to do anyway15:33
faassenZope 3 can't stop them. it can only encourage the right way15:34
faassenand it's just a plain common usecase to want to get to the principal.15:34
faassenI'm not even sure whether it'd always be a bad thing from within a content object.15:34
rockywell, that's the philosophy of python in general15:34
rockyno such thing as private members, etc15:34
faassenright. :)15:34
* volvox thinks one private member per male developer is enough15:34
faassen:)15:35
*** zbir has quit IRC15:36
*** romanofski has quit IRC15:39
*** romanofski has joined #zope3-dev15:44
mexiKONromanofski, how's the skin coming?15:46
romanofskihaven't had time the last days, but will continue the work today15:47
*** zbir has joined #zope3-dev15:50
*** benji is now known as benji_16:08
*** benji_ is now known as benji16:09
*** whit has joined #zope3-dev16:12
romanofskimexiKON: installed an instance on my box at home so I can surely continue with the work :)16:17
mexiKON:)16:17
*** jinty has joined #zope3-dev16:18
*** rocky has quit IRC16:20
*** vlado has joined #zope3-dev16:23
*** baijum has left #zope3-dev16:29
*** eins has quit IRC16:57
*** jinty has quit IRC17:19
*** oferw has joined #zope3-dev17:24
*** regebro has joined #zope3-dev17:33
*** mgedmin has joined #zope3-dev17:33
*** rocky has joined #zope3-dev17:39
*** jinty has joined #zope3-dev17:53
*** volvox has quit IRC18:02
*** dobee|fh has quit IRC18:02
*** volvox has joined #zope3-dev18:03
*** Aiste_ has joined #zope3-dev18:04
*** hdima has quit IRC18:09
*** Aiste has quit IRC18:20
*** alga has joined #zope3-dev18:22
*** oferw has quit IRC18:25
*** alecm has joined #zope3-dev18:26
*** romanofski has quit IRC18:29
*** MJ has quit IRC18:37
*** flox has quit IRC18:38
*** hazmat has joined #zope3-dev18:52
*** ChanServ sets mode: +o hazmat18:52
*** vlado has quit IRC18:55
*** ignas has quit IRC19:02
*** smokeyd has joined #zope3-dev19:02
*** whit has quit IRC19:09
*** whit has joined #zope3-dev19:16
*** ofer has joined #zope3-dev19:17
*** hazmat has quit IRC19:24
*** gumpa is now known as gumpa-away19:30
*** flox has joined #zope3-dev19:40
*** ofer has quit IRC19:42
*** RaFromBRC has joined #zope3-dev20:12
*** volvox has quit IRC20:13
*** rocky has quit IRC20:23
*** hazmat has joined #zope3-dev20:24
*** ChanServ sets mode: +o hazmat20:24
*** rocky has joined #zope3-dev20:26
*** regebro has quit IRC20:28
*** jinty has quit IRC20:43
*** b_52CEntos_ has joined #zope3-dev20:49
*** jinty has joined #zope3-dev20:49
*** cursor has joined #zope3-dev20:53
*** jinty has quit IRC20:58
*** stub has quit IRC21:05
*** rocky has quit IRC21:33
*** faassen has quit IRC21:34
*** RaFromBRC has quit IRC21:46
*** cursor has quit IRC21:52
*** rocky has joined #zope3-dev21:53
*** mkerrin has quit IRC21:55
*** cursor has joined #zope3-dev21:57
*** yota has quit IRC21:57
*** yota has joined #zope3-dev22:01
*** hazmat has quit IRC22:10
*** Aiste_ has quit IRC22:15
*** yota has quit IRC22:20
*** yota has joined #zope3-dev22:23
*** romanofski has joined #zope3-dev22:27
*** MJ has joined #zope3-dev22:30
*** Theuni has quit IRC22:47
*** povbot` has joined #zope3-dev22:52
*** alga_ has joined #zope3-dev22:56

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