IRC log of #zope3-dev for Monday, 2007-09-10

*** netshade has joined #zope3-dev00:08
*** dobee has quit IRC00:12
*** projekt01 has joined #zope3-dev00:26
*** ktwilight has joined #zope3-dev00:54
*** ChrisW has left #zope3-dev01:08
*** alecm has quit IRC01:09
*** alecm has joined #zope3-dev01:10
*** norro has quit IRC01:12
*** greenman has joined #zope3-dev01:20
*** netshade has quit IRC01:27
*** regebro has left #zope3-dev01:33
*** dunny has joined #zope3-dev01:33
*** ignas has joined #zope3-dev01:47
*** alecm has quit IRC01:49
*** alecm has joined #zope3-dev01:53
*** alecm has quit IRC01:54
*** netshade has joined #zope3-dev01:56
*** alecm has joined #zope3-dev02:47
*** johnlr2 has quit IRC03:09
*** johnlr2 has joined #zope3-dev03:10
*** greenman has quit IRC03:27
*** rocky is now known as rocky|Zzz03:29
*** ignas has quit IRC03:38
*** b52laptop has quit IRC04:09
*** b52GM has quit IRC04:09
*** greenman has joined #zope3-dev04:24
*** J1m has joined #zope3-dev04:30
*** projekt01 has quit IRC05:43
*** ousado_ has quit IRC06:00
*** ousado_ has joined #zope3-dev06:01
*** run|home has joined #zope3-dev06:55
*** run|home has quit IRC07:23
*** kleist has joined #zope3-dev07:31
*** tarek has quit IRC07:32
*** naro has joined #zope3-dev07:55
*** greenman_ has joined #zope3-dev08:06
*** greenman has quit IRC08:07
*** sorin has joined #zope3-dev08:18
*** sorin is now known as sorindregan08:19
*** yvl has joined #zope3-dev08:20
*** alecm has quit IRC08:28
*** netshade has quit IRC08:30
*** jodok has quit IRC08:31
*** zagy has joined #zope3-dev08:47
*** cursor has joined #zope3-dev08:52
*** mark_ has joined #zope3-dev08:57
*** agroszer has joined #zope3-dev09:00
*** markusleist has quit IRC09:02
*** Ariel_Calzada has quit IRC09:10
*** hdima has joined #zope3-dev09:20
*** dunny has quit IRC09:45
*** romanofski has joined #zope3-dev09:46
*** greenman_ has quit IRC10:01
*** gstratton has joined #zope3-dev10:06
*** jodok has joined #zope3-dev10:06
*** alecm has joined #zope3-dev10:09
*** dobee has joined #zope3-dev10:21
*** pelle_ has joined #zope3-dev10:24
*** norro has joined #zope3-dev10:39
*** pyqwer has joined #zope3-dev10:41
*** jukart has joined #zope3-dev10:43
*** bigkevmcd has joined #zope3-dev10:45
*** pelle_ has quit IRC10:50
*** pelle_ has joined #zope3-dev10:54
*** alecm has quit IRC11:33
*** Aiste has joined #zope3-dev11:36
*** tarek has joined #zope3-dev11:41
*** MJ has joined #zope3-dev11:45
*** ignas has joined #zope3-dev11:51
*** greenman has joined #zope3-dev11:58
*** roym has joined #zope3-dev12:01
*** roym has left #zope3-dev12:03
*** roym has joined #zope3-dev12:03
*** srichter has quit IRC12:11
*** gamt has joined #zope3-dev12:26
*** gamt has quit IRC12:28
*** ThomasKarlRichte has joined #zope3-dev12:29
*** ThomasKarlRichte has quit IRC12:31
*** b52laptop has joined #zope3-dev12:32
*** ThomasKarlRichte has joined #zope3-dev12:33
*** deo has joined #zope3-dev12:57
*** dobee has quit IRC13:01
*** norro has quit IRC13:09
*** dunny has joined #zope3-dev13:11
*** dunny has quit IRC13:40
*** projekt01 has joined #zope3-dev13:41
*** rocky|Zzz is now known as rocky13:43
*** MJ is now known as MJ|lunch13:50
*** agroszer has quit IRC13:58
*** benji has quit IRC14:04
*** J1m has quit IRC14:04
*** kleist has quit IRC14:07
*** norro has joined #zope3-dev14:22
*** dobee has joined #zope3-dev14:22
*** MJ|lunch is now known as MJ14:26
*** projekt01 has quit IRC14:50
*** yvl has quit IRC14:52
*** mkerrin has joined #zope3-dev14:52
*** niemeyer has joined #zope3-dev14:56
*** projekt01 has joined #zope3-dev14:57
*** jodok has quit IRC15:20
*** ktwilight_ has joined #zope3-dev15:21
*** benji has joined #zope3-dev15:21
*** ktwilight_ has quit IRC15:21
*** jodok has joined #zope3-dev15:22
*** greenman has quit IRC15:23
*** CrippsFX has joined #zope3-dev15:36
*** arnarl has joined #zope3-dev15:40
CrippsFXmorning folks ... it's been awhile.15:48
*** pelle__ has joined #zope3-dev16:01
*** Ariel_Calzada has joined #zope3-dev16:04
arnarlIs it possible to register a view for strings? One that can be applied like this in tales:  somevariable/@@viewname16:06
projekt01arnarl, yes16:07
arnarlnice, where can I find an interface for the string?16:08
arnarlah, so the type acts as an interface?16:08
projekt01probably there is a string type, try it with string as name in the for="string IBrowserRequest"16:09
*** pelle__ has quit IRC16:09
arnarlprojekt01: I'll try that, thnx16:09
*** cursor has quit IRC16:09
*** pelle__ has joined #zope3-dev16:10
projekt01arnarl, could be wrong, but I'm sure that this will work in some way16:10
*** pelle_ has quit IRC16:10
projekt01arnarl, use adapts, this will work16:11
projekt01e.g. zope.component.adapts(string, IBrowserRequest)16:12
*** spython has joined #zope3-dev16:15
*** mgedmin has joined #zope3-dev16:24
*** rcrafton has joined #zope3-dev16:25
*** J1m has joined #zope3-dev16:28
*** J1m has quit IRC16:45
*** run|home has joined #zope3-dev16:47
*** jodok has quit IRC16:47
*** fcorrea has joined #zope3-dev16:48
*** jodok has joined #zope3-dev16:48
*** whit has joined #zope3-dev16:50
*** __gotcha has joined #zope3-dev16:52
__gotchawhat is the pattern in Z3 to forbid the removal of an object for business model reasons ?16:52
__gotchaiow, is there anything similar to BeforeDeleteException of Zope 2 ?16:53
*** sorindregan has quit IRC16:57
hazmat__gotcha, afaik, container constraints are modeled by different means17:02
__gotchahazmat: Ican understand about container constraints17:02
__gotchabut what if the object itself does not want to be removed17:02
__gotchalike an image used by a page17:03
__gotchais that also expressed at the container level ?17:03
*** run|home has quit IRC17:04
__gotchahazmat: ?17:08
benji__gotcha: I strongly suggest you not use the ZMI in your app, and put these constraints in the application code instead17:10
jsadjohnson__gotcha: what type of container are you using?17:12
jsadjohnson__gotcha: you can override the __delitem__ method.17:12
__gotchajsadjohnson: I am trying to understand Zope 2 code17:12
__gotchawhich has some sort of Z3 events setup since 2.917:13
jsadjohnson__gotcha: can't help you there. :)17:13
__gotchaI am trying to understand patterns in Z317:13
__gotchato see how they apply to the code I am reading17:13
__gotchajsadjohnson: iow, Iam trying to understand the 'standard' way in Z3 to do logic coherence at the object level17:14
__gotchathere is maybe an API/interface that you need to fullfill in order to block removal17:15
__gotchafrom a container17:15
jsadjohnsonIn z3 my experience is either the constraints in the interfaces or overriding __delitem__.17:15 and IContainer plus using and contains are the ones I use the most.17:17
jsadjohnsonAt the Interfaces level.17:17
*** J1m has joined #zope3-dev17:17
__gotchaJ1m: hi17:18
__gotchawhat is the pattern in Z3 for an instance to make its constraint checks and refuse to be removed17:19
J1mYou register a subscriber for a removal event and raise an exception to veto removal.17:21
arnarlWhat is the correct way to make a javascript function run once the document is loaded in ZMI? The skin seems to insert 'loadtree' directly on <body>. Any way to plug in a new function?17:23
*** hdima has quit IRC17:24
arnarlnevermind :-)17:25
__gotchaJ1m: iow removal event happens before actual removal17:27
J1mI don't remember.  It doesn't really matter thanks to transactions.17:30
*** zagy has quit IRC17:31
__gotchaJ1m: ok, thansk17:32
ignasJ1m: where can i find the most up to date version of
benjiignas: svn cat svn+ssh:// > bootstrap.py17:37
ignasbenji: thanks17:38
ignasit does not work if setuptools-0.6a9 are available though17:39
benjiI can't help you there. :)17:39
ignaswould it make sense to try requiring a version that is higher than 0.6a9, instead of trysting whichever setuptools version is available17:39
benjiwhy is your setuptools not being upgraded automatically?17:40
ignasbecause i don't have root on the machine17:41
ignasand the script tries import pkg_resources17:41
benjioh, you're beeing EVIL, EEEVIL :17:41
ignasand only downloads setuptools if it can't find pkg_resources17:41
benjiI guess you're using the system python17:41
ignasyes, but i need to bootstrap buildout if i want to build my own python17:42
*** nathany has joined #zope3-dev17:42
*** jodok has quit IRC17:42
benjiI don't understand that; why do you need buildout to build python?17:42
ignasand how would i have my setuptools upgraded automatically?17:42
ignasin non-system python17:42
benjibuildout upgrades it (if it's not nailed) just like any other egg17:43
ignasbut i don't have buildout, because i can't bootstrap it17:43
ignasbecause i have a buggy version of setuptools17:44
* benji takes deep breaths.17:44
benjiI suggest you build your own Python, then use it to bootstrap a buildout (bootstrap will download the newsest setuptools)17:45
ignasi just thought that it would kind of make sense fixing, to download setuptools if the available version is too old17:47
* mgedmin waits for the fireworks17:47
benjiit might; I wasn't really commenting on that, just trying to get you unstuck17:47
ignasbenji: thanks17:48
benjino problem17:48
ignasat the moment, i know at least 2 ways to work around broken setuptools17:48
ignasi just want to find a way that would do that automatically17:48
ignas(for less technically proficient users)17:48
*** b52lap has joined #zope3-dev17:49
* ignas is trying to make a foolproof script to get schooltool development sandbox going17:51
*** b52laptop has quit IRC17:57
*** deo has quit IRC18:00
ignasi guess the most foolproof way in this case is to wget setuptools egg, extract it and put it in pythonpath when running bootstrap.py18:04
benjiI haven't thought about it much, but could you instead make sure there is nothing in the Python path when you run, that way it'll get its own copy of setuptools?18:05
ignasas i don't want to get into writing python/shell script to download and build python business18:05
ignasbenji: hmm, but i would have to modify bootstrap.py18:05
ignasthough as i have my own copy18:05
ignasi can't18:06
arnarlIs there any way to make sure that browser:resources are checked for updates? A bit annoying to have to restart all the time.18:06
ignasbuildout will try installing the egg into system site-packages anyway18:06
benjiarnarl: if you turn dev-mode on, it'll do that18:07
arnarlbenji: I think I'm in dev-mod. At least it says so when I start up...18:07
*** naro has quit IRC18:10
*** cursor has joined #zope3-dev18:12
*** naro has joined #zope3-dev18:13
*** Ariel_Calzada has quit IRC18:14
*** markusleist has joined #zope3-dev18:15
*** b52lap has quit IRC18:16
markusleistdoes anybody has ported philikon's pricipal-member-information-form (example 22.4.3) to z3c.form?18:16
*** b52lap has joined #zope3-dev18:17
ignasbenji: sys.path[:] = [path for path in list(sys.path) if 'setuptools' not in path] was enough to make bootstrap download and successfully install a newer version of setuptools18:17
*** dobee_ has joined #zope3-dev18:18
*** Ariel_Calzada has joined #zope3-dev18:20
*** pelle__ has quit IRC18:20
*** MJ has quit IRC18:27
*** dobee has quit IRC18:27
*** b52lap has quit IRC18:36
*** projekt01 has quit IRC18:38
*** romanofski has quit IRC18:41
*** srichter has joined #zope3-dev18:41
*** __gotcha has quit IRC18:44
*** srichter has quit IRC18:47
*** mgedmin has quit IRC18:48
*** jhauser has joined #zope3-dev18:50
*** dobee_ has quit IRC18:52
*** mgedmin has joined #zope3-dev18:53
*** pelle_ has joined #zope3-dev18:57
*** jukart has quit IRC19:00
*** alecm has joined #zope3-dev19:05
*** srichter has joined #zope3-dev19:14
*** arnarl_ has joined #zope3-dev19:15
*** ChanServ sets mode: +o srichter19:16
*** norro has quit IRC19:20
WebMavensrichter: hi19:28
*** srichter has quit IRC19:28
*** srichter has joined #zope3-dev19:29
*** arnarl_ has quit IRC19:30
*** srichter has quit IRC19:30
*** arnarl_ has joined #zope3-dev19:31
*** srichter has joined #zope3-dev19:31
*** arnarl has quit IRC19:32
*** afd__ has joined #zope3-dev19:32
*** srichter has quit IRC19:33
*** srichter has joined #zope3-dev19:34
*** arnarl has joined #zope3-dev19:36
*** afd__ has quit IRC19:42
WebMavensrichter: hi19:44
*** cursor has quit IRC19:48
*** pyqwer has quit IRC19:49
*** netshade has joined #zope3-dev19:49
*** arnarl has quit IRC19:52
*** arnarl_ has quit IRC19:52
*** arnarl has joined #zope3-dev19:52
*** tarek has quit IRC19:59
*** roym has quit IRC20:09
*** arnarl has quit IRC20:11
*** jukart has joined #zope3-dev20:20
*** RaFromBRC has joined #zope3-dev20:21
*** pelle_ has quit IRC20:29
*** romanofski has joined #zope3-dev20:30
*** ignas has quit IRC20:35
*** jodok has joined #zope3-dev20:42
*** markusleist has quit IRC20:42
*** pelle_ has joined #zope3-dev20:53
*** ThomasKarlRichte has quit IRC20:56
*** whit has quit IRC20:58
*** whit has joined #zope3-dev20:58
*** Ariel_Calzada has quit IRC21:04
*** zagy has joined #zope3-dev21:05
*** whit is now known as whit|lunch21:08
*** __gotcha has joined #zope3-dev21:09
*** xbeanx has joined #zope3-dev21:09
*** __gotcha has left #zope3-dev21:15
*** rocky is now known as rocky|away21:19
*** ktwilight has quit IRC21:22
*** markusleist has joined #zope3-dev21:22
*** ktwilight has joined #zope3-dev21:22
*** naro has quit IRC21:31
*** jukart has quit IRC21:37
*** xbeanx has quit IRC21:44
*** whit|lunch is now known as whit21:45
*** mgedmin has quit IRC21:46
*** regebro has joined #zope3-dev21:57
*** dunny has joined #zope3-dev22:06
*** xbeanx has joined #zope3-dev22:19
*** RaFromBRC is now known as RaFromBRC|lunch22:28
*** mkerrin has quit IRC22:29
*** whit has quit IRC23:03
*** whit has joined #zope3-dev23:04
*** greenman has joined #zope3-dev23:08
*** RaFromBRC|lunch is now known as RaFromBRC23:26
*** zagy has quit IRC23:27
*** norro has joined #zope3-dev23:32
*** benji has quit IRC23:52

Generated by 2.15.1 by Marius Gedminas - find it at!