IRC log of #zope3-dev for Tuesday, 2006-10-17

*** batlogg has quit IRC00:00
*** Aiste has joined #zope3-dev00:02
whitmaybe this is a better place to ask: is there any way to say "not have" or "not installed" in a zcml:condition?00:14
benjiwhit: there's a system for checking if a particular "feature" is installed, I don't remember the details, but it's a ZCML mechanism00:16
* whit thinks he's grepped through most everything00:16
*** RaFromBRC has joined #zope3-dev00:16
whitseems like something pretty basic to leave out though: in my case I need to load up certain resources if they aren't loaded already. is there a spelling for this?00:17
benjiwhit: see /home/benji/zope3/2/src/zope/configuration/tests/conditions.zcml for examples00:18
benjire: resources, whit; not that I know of00:18
whitbeen there... I didn't see anything that fit the bill(that ships with 2.9)00:18
benjithat gets to the poor "composability" of ZCML, a personal peeve00:19
whitfuck it.00:24
* whit brute forces it with overrides00:25
timteWhen do you use browser:view instead of browser:page?00:26
RaFromBRCtimte: when your view isn't intended to be published directly via ZPublisher00:28
RaFromBRCbut is only called programmatically by other code... at least that's my understanding00:28
timtehmm, ok00:29
timteso I'll just continue using pages then00:30
*** timte has quit IRC00:32
*** HakTom has quit IRC00:41
*** J1m has quit IRC00:49
*** ktwilight has quit IRC00:51
*** ktwilight has joined #zope3-dev00:53
*** gumpa has quit IRC00:58
*** natea is now known as natea|away00:58
*** harobed has quit IRC01:08
*** Londo_ has joined #zope3-dev01:11
*** ktwilight has quit IRC01:30
*** ktwilight has joined #zope3-dev01:31
*** ktwilight has quit IRC01:35
*** ktwilight has joined #zope3-dev01:38
*** jinty has quit IRC01:48
*** SmokeyD has joined #zope3-dev01:53
*** yota has quit IRC02:12
*** natea|away is now known as natea02:36
*** benji has quit IRC02:37
*** ktwilight has quit IRC02:38
*** rocky is now known as rocky|Zzz02:40
*** vlado has quit IRC02:50
*** jinty has joined #zope3-dev03:12
*** azazel has joined #zope3-dev03:22
*** wrobel has quit IRC03:24
*** benji has joined #zope3-dev03:24
*** hazmat has quit IRC03:56
*** jinty has quit IRC04:00
*** niemeyer has quit IRC04:05
*** niemeyer has joined #zope3-dev04:05
*** MiUlEr has joined #zope3-dev04:48
*** roym has quit IRC05:09
*** ksmith99 has quit IRC05:20
*** alecm has quit IRC05:27
*** alecm has joined #zope3-dev05:44
*** niemeyer has quit IRC05:46
*** stub has joined #zope3-dev06:00
*** MiUlEr has quit IRC07:17
*** MiUlEr has joined #zope3-dev07:18
*** RaFromBRC has quit IRC07:19
*** alecm has quit IRC07:24
*** romanofski has quit IRC07:55
*** jukart has joined #zope3-dev08:01
*** jukart has quit IRC08:11
*** stu1 has joined #zope3-dev08:14
*** stub has quit IRC08:16
*** stu1 is now known as stub08:17
*** jukart has joined #zope3-dev08:36
*** dlk has joined #zope3-dev08:47
*** MiUlEr has quit IRC09:08
*** zagy has joined #zope3-dev09:08
*** MiUlEr has joined #zope3-dev09:14
*** baijum has joined #zope3-dev09:14
*** MiUlEr has quit IRC09:17
*** romanofski has joined #zope3-dev09:20
*** timte has joined #zope3-dev09:21
*** opetznick has joined #zope3-dev09:22
*** flox has quit IRC09:29
*** hdima has joined #zope3-dev09:38
*** zagy has quit IRC09:57
*** zagy has joined #zope3-dev09:58
*** philiKON has quit IRC10:02
*** yota has joined #zope3-dev10:20
*** faassen has joined #zope3-dev10:44
*** harobed has joined #zope3-dev10:50
*** HakTom has joined #zope3-dev11:02
*** flox has joined #zope3-dev11:23
*** ignas has joined #zope3-dev11:44
*** Aiste has quit IRC11:46
*** MJ has quit IRC11:56
*** ChrisW has joined #zope3-dev12:08
ChrisWam I right in thinking that "layer" let you use savepoints to role back during tests so that expensive test fixtures don't have to be created over and over again?12:08
Theuni_should be12:10
*** Aiste has joined #zope3-dev12:10
Theuni_layers use demostorage to save their status12:10
ChrisWare there docs/examples anywhere?12:10
ChrisWI've read testrunner-layers.txt, wasn't very helpful :-(12:11
*** jinty has joined #zope3-dev12:12
Theuni_dunno, i found that by reading the code12:13
Theuni_why don't you try it? :)12:13
ChrisWwhich code?12:13
ChrisW(I'm trying to find otu what to try ;-) )12:13
Theuni_you want to rollback *during* tests?12:14
ChrisWno, got a load of tests12:15
ChrisWthey all use the same fixtures12:15
ChrisWthose fixtures are expensive to build so I want to keep them around12:15
ChrisWbut obviously roll back any changes made to them after each test12:15
*** mgedmin has joined #zope3-dev12:21
ChrisWI don't really see any support for what I'm looking for12:21
ChrisWwtf ARE layers and where can I find some examples?12:21
Theuni_layers are groups of tests with a common setup that are run within one process12:22
ChrisWare we talking like the old level 1, level 2, level 3, etc?12:23
ChrisW(ie: ways of runnign fewer tests or excluding functional tests?)12:23
ChrisWI guess if you can think of some good examples of layer usage, I could take a look...12:25
mgedminChrisW: not quite; layers share setup12:33
mgedminmore like old unit tests vs old functional tests12:33
mgedminsetup that is not torn down and rebuilt between each pair of tests from the same layer, because that would be too costly12:34
*** dunny has quit IRC12:38
ChrisWmgedmin: right, that sounds like what I'm after12:41
ChrisWanyway, can anyone answer my pleas for examples?12:41
*** ktwilight has joined #zope3-dev12:46
ChrisWaha, I think i've found an article from Philipp that will help :-)12:46
mgedminthere are examples somewhere in zope 3 source tree12:54
ChrisWyou'd hope so ;-)12:55
ChrisWbut, there really should be some kinda overview doc and simple examples12:55
ChrisWPhilipp's article gives tanalizing hints12:56
ChrisWokay, I think I see how layers sort of work12:59
ChrisWso, I could do lots of setup in, drop a savepoint and then roll back to that savepoint in the layer's teardown?13:00
ChrisWI also think I see how extending layers works13:00
ChrisWcan you combine them horizontally too?13:01
ChrisWie: I have LayerX which sets up a sample content object X, and LayerY which does the same for a content object Y13:01
ChrisWI now want to write tests that need both an X and a Y to exist13:01
ChrisWhow would people recommend I do that?13:01
azazelany five expert here?13:05
ChrisWnot expert, but I'll help if I can :-)13:05
*** mkerrin has joined #zope3-dev13:05
*** alga has joined #zope3-dev13:06
azazelChrisW:  thanks, i'm dealing with a plone 2.5 customization, and i have created an interface IMySite which inherits from Plone's view interface IPlone, and i have created an implementing class. Now, this class implements the IMySite which is a "specialization" of IPlone, but to be able to access IPlone defined class members from zpt i had to add to my zcml decl an attribute "allowed_interface" which explicitly list both IMySite and IPlone.... i13:11
azazels this the expected behavior or is a bug? (mine or of five)13:11
ChrisWyou said the "p" word, you are beyond help ;-)13:12
azazelbuti on the plone channel optilude directed me here:)13:14
azazelsooo fun?:)13:16
nouriazazel: That's what Plone itself does when registering the plone view13:31
nouriand yes, it's expected13:31
azazelnouri: i it is so just because also IPlone declaration as an allowed_interfaces=".interfaces.IPlone" ?13:36
nouriazazel: I don't understand13:36
nouriah, your question is why do i have to declare *both*13:36
nourieven though your interface extends IPlone13:37
nouriSorry, I misunderstood that.  In that case, I have no idea and yes it looks like a bug.13:37
azazelif i don't declare IPlone in allowed_interfaces i get an unauthorized while traversing to IPlone (or better IPlone implementing class) member "globalize"13:39
azazelwhich is a method which directly inserts globals in the context of zpt13:40
azazels/a method which/a method that/13:41
*** BjornT has quit IRC14:03
*** BjornT has joined #zope3-dev14:04
*** HakTom has quit IRC14:19
*** benji has quit IRC14:23
*** rocky|Zzz is now known as rocky14:33
*** stub has quit IRC14:54
*** J1m has joined #zope3-dev14:54
*** vlado has joined #zope3-dev15:01
*** Londo_ has quit IRC15:18
*** benji has joined #zope3-dev15:23
*** niemeyer has joined #zope3-dev15:26
*** tgkuo has joined #zope3-dev15:31
*** philiKON has joined #zope3-dev15:36
*** BjornT has quit IRC15:43
*** BjornT has joined #zope3-dev15:53
*** baijum has quit IRC16:02
*** tgkuo has left #zope3-dev16:08
*** dobee has joined #zope3-dev16:43
timteDoes allowed_interface honour interface inheritance?16:47
timteif IB inherits from IA, it seems allowed_interface="IB" won't allow methods on IA16:48
philiKONyes it should16:50
philiKONif it doesn't, it's a bug16:50
ChrisWhey philiKON :-)16:51
ChrisWany news on book yet?16:51
philiKONno, i wish i had16:51
philiKONi'm as clueless as you guys :(16:51
*** hazmat has joined #zope3-dev16:54
*** ChanServ sets mode: +o hazmat16:54
ChrisWhurm... question for the clueful:16:54
ChrisWwhy does transaction.commit(1) break savepoints?16:55
*** dobee has quit IRC16:59
*** whit has quit IRC17:00
*** whit has joined #zope3-dev17:01
*** dobee has joined #zope3-dev17:09
*** benji has quit IRC17:21
*** hdima has quit IRC17:25
*** Aiste has quit IRC17:33
*** whit has quit IRC17:34
*** ignas has quit IRC17:36
*** ignas has joined #zope3-dev17:37
*** whit has joined #zope3-dev17:39
*** MJ has joined #zope3-dev17:44
*** alecm has joined #zope3-dev17:51
*** vlado has quit IRC17:56
*** philiKON has quit IRC18:18
*** flox has quit IRC18:18
*** ofer has joined #zope3-dev18:21
*** d2m has quit IRC18:23
*** d2m has joined #zope3-dev18:27
*** opetznick has quit IRC18:29
*** philiKON has joined #zope3-dev18:38
*** roym has joined #zope3-dev18:38
*** dobee has quit IRC18:40
*** dlk has left #zope3-dev18:48
*** MJ is now known as MJ|dinner19:06
*** jukart has quit IRC19:10
*** natea has quit IRC19:14
*** natea has joined #zope3-dev19:16
*** natea is now known as natea|away19:20
*** hazmat has quit IRC19:22
*** harobed has quit IRC19:22
*** MJ|dinner has quit IRC19:26
ChrisWanyone here alive?19:32
ChrisWI wonder how hard it would be to make DemoStorage support undo?19:32
*** mgedmin has quit IRC19:34
*** flox has joined #zope3-dev19:36
*** RaFromBRC has joined #zope3-dev19:43
*** andrew_m has joined #zope3-dev19:43
*** stub has joined #zope3-dev19:50
*** MJ has joined #zope3-dev19:51
*** whit_ has joined #zope3-dev19:55
*** whit has quit IRC20:00
*** whit_ is now known as whit20:00
*** HakTom has joined #zope3-dev20:06
*** alga has quit IRC20:06
*** jukart has joined #zope3-dev20:09
*** ignas has quit IRC20:12
*** ofer has quit IRC20:18
*** ChrisW has quit IRC20:27
*** hazmat has joined #zope3-dev20:29
*** ChanServ sets mode: +o hazmat20:29
*** stub has quit IRC20:31
SmokeyDhi ppl. I forgot my zope3 book, so can somebody help me? I want to write unit tests that need the zope tree (test if objects contain other objects and attributes and things like that)20:34
SmokeyDIs it possible to use a test ZODB for that?20:34
*** harobed has joined #zope3-dev20:54
SmokeyDWhat I would like to do is create a normal ZODB Data.fs in a standard instance of zope and create some data in there and then use that for unit tests.21:00
SmokeyDI just have to load the database somehow in in the unittests21:00
SmokeyDI looked at the ZODB module in the apidoc, and although i think I should use that module, I don't know how to start there21:01
*** ksmith99 has joined #zope3-dev21:03
SmokeyDI don't want to do functional tests where I send browser requests to the object, I just want to be able to access the zope objects and call methods on them21:03
*** natea|away is now known as natea21:21
*** hazmat has quit IRC21:23
*** TresEquis has joined #zope3-dev21:33
*** hazmat has joined #zope3-dev21:40
*** ChanServ sets mode: +o hazmat21:40
*** whit is now known as whit|lunch21:44
*** whit has joined #zope3-dev21:47
*** vlado has joined #zope3-dev21:53
*** mkerrin has quit IRC21:54
*** alecm has quit IRC22:05
*** RaFromBRC is now known as RaFromBRC|away22:06
*** alecm has joined #zope3-dev22:06
*** batlogg has joined #zope3-dev22:20
jukartSmokeyD: for your unit test maybe this helps :22:24
jukartdef setUp(test):22:24
jukart    root = setup.placefulSetUp(site=True)22:24
jukart    test.globs['root'] = root22:24
batlogghey jukart :)22:24
*** jukart has quit IRC22:27
*** jukart has joined #zope3-dev22:37
*** jukart has quit IRC22:42
*** batlogg_ has joined #zope3-dev22:42
*** batlogg has quit IRC22:43
*** batlogg_ is now known as batlogg22:43
*** romanofs1i has joined #zope3-dev22:54
*** harobed has quit IRC23:04
*** dunny has joined #zope3-dev23:06
*** dobee has joined #zope3-dev23:16
*** MJ has quit IRC23:18
*** dunny has quit IRC23:19
*** dunny has joined #zope3-dev23:22
*** hazmat has quit IRC23:24
*** hazmat has joined #zope3-dev23:35
*** ChanServ sets mode: +o hazmat23:35
*** batlogg has quit IRC23:40
*** batlogg has joined #zope3-dev23:41
*** TresEquis has quit IRC23:41
*** MJ has joined #zope3-dev23:47
*** romanofs1i has quit IRC23:47
*** flox has quit IRC23:47
*** reco has joined #zope3-dev23:51
*** vlado has quit IRC23:53
*** rocky has quit IRC23:54
*** harobed has joined #zope3-dev23:55

Generated by 2.15.1 by Marius Gedminas - find it at!