*** batlogg has quit IRC | 00:00 | |
*** Aiste has joined #zope3-dev | 00:02 | |
whit | maybe this is a better place to ask: is there any way to say "not have" or "not installed" in a zcml:condition? | 00:14 |
---|---|---|
benji | whit: there's a system for checking if a particular "feature" is installed, I don't remember the details, but it's a ZCML mechanism | 00:16 |
* whit thinks he's grepped through most everything | 00:16 | |
*** RaFromBRC has joined #zope3-dev | 00:16 | |
whit | seems 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 |
benji | whit: see /home/benji/zope3/2/src/zope/configuration/tests/conditions.zcml for examples | 00:18 |
benji | re: resources, whit; not that I know of | 00:18 |
whit | been there... I didn't see anything that fit the bill(that ships with 2.9) | 00:18 |
benji | that gets to the poor "composability" of ZCML, a personal peeve | 00:19 |
whit | mmmmm...yes | 00:20 |
whit | fuck it. | 00:24 |
* whit brute forces it with overrides | 00:25 | |
timte | When do you use browser:view instead of browser:page? | 00:26 |
RaFromBRC | timte: when your view isn't intended to be published directly via ZPublisher | 00:28 |
RaFromBRC | but is only called programmatically by other code... at least that's my understanding | 00:28 |
timte | hmm, ok | 00:29 |
timte | so I'll just continue using pages then | 00:30 |
timte | thanks | 00:32 |
*** timte has quit IRC | 00:32 | |
*** HakTom has quit IRC | 00:41 | |
*** J1m has quit IRC | 00:49 | |
*** ktwilight has quit IRC | 00:51 | |
*** ktwilight has joined #zope3-dev | 00:53 | |
*** gumpa has quit IRC | 00:58 | |
*** natea is now known as natea|away | 00:58 | |
*** harobed has quit IRC | 01:08 | |
*** Londo_ has joined #zope3-dev | 01:11 | |
*** ktwilight has quit IRC | 01:30 | |
*** ktwilight has joined #zope3-dev | 01:31 | |
*** ktwilight has quit IRC | 01:35 | |
*** ktwilight has joined #zope3-dev | 01:38 | |
*** jinty has quit IRC | 01:48 | |
*** SmokeyD has joined #zope3-dev | 01:53 | |
*** yota has quit IRC | 02:12 | |
*** natea|away is now known as natea | 02:36 | |
*** benji has quit IRC | 02:37 | |
*** ktwilight has quit IRC | 02:38 | |
*** rocky is now known as rocky|Zzz | 02:40 | |
*** vlado has quit IRC | 02:50 | |
*** jinty has joined #zope3-dev | 03:12 | |
*** azazel has joined #zope3-dev | 03:22 | |
*** wrobel has quit IRC | 03:24 | |
*** benji has joined #zope3-dev | 03:24 | |
*** hazmat has quit IRC | 03:56 | |
*** jinty has quit IRC | 04:00 | |
*** niemeyer has quit IRC | 04:05 | |
*** niemeyer has joined #zope3-dev | 04:05 | |
*** MiUlEr has joined #zope3-dev | 04:48 | |
*** roym has quit IRC | 05:09 | |
*** ksmith99 has quit IRC | 05:20 | |
*** alecm has quit IRC | 05:27 | |
*** alecm has joined #zope3-dev | 05:44 | |
*** niemeyer has quit IRC | 05:46 | |
*** stub has joined #zope3-dev | 06:00 | |
*** MiUlEr has quit IRC | 07:17 | |
*** MiUlEr has joined #zope3-dev | 07:18 | |
*** RaFromBRC has quit IRC | 07:19 | |
*** alecm has quit IRC | 07:24 | |
*** romanofski has quit IRC | 07:55 | |
*** jukart has joined #zope3-dev | 08:01 | |
*** jukart has quit IRC | 08:11 | |
*** stu1 has joined #zope3-dev | 08:14 | |
*** stub has quit IRC | 08:16 | |
*** stu1 is now known as stub | 08:17 | |
*** jukart has joined #zope3-dev | 08:36 | |
*** dlk has joined #zope3-dev | 08:47 | |
*** MiUlEr has quit IRC | 09:08 | |
*** zagy has joined #zope3-dev | 09:08 | |
*** MiUlEr has joined #zope3-dev | 09:14 | |
*** baijum has joined #zope3-dev | 09:14 | |
*** MiUlEr has quit IRC | 09:17 | |
*** romanofski has joined #zope3-dev | 09:20 | |
*** timte has joined #zope3-dev | 09:21 | |
*** opetznick has joined #zope3-dev | 09:22 | |
*** flox has quit IRC | 09:29 | |
*** hdima has joined #zope3-dev | 09:38 | |
*** zagy has quit IRC | 09:57 | |
*** zagy has joined #zope3-dev | 09:58 | |
*** philiKON has quit IRC | 10:02 | |
*** yota has joined #zope3-dev | 10:20 | |
*** faassen has joined #zope3-dev | 10:44 | |
*** harobed has joined #zope3-dev | 10:50 | |
*** HakTom has joined #zope3-dev | 11:02 | |
*** flox has joined #zope3-dev | 11:23 | |
*** ignas has joined #zope3-dev | 11:44 | |
*** Aiste has quit IRC | 11:46 | |
*** MJ has quit IRC | 11:56 | |
*** ChrisW has joined #zope3-dev | 12:08 | |
ChrisW | am 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 be | 12:10 |
*** Aiste has joined #zope3-dev | 12:10 | |
Theuni_ | layers use demostorage to save their status | 12:10 |
ChrisW | are there docs/examples anywhere? | 12:10 |
ChrisW | I've read testrunner-layers.txt, wasn't very helpful :-( | 12:11 |
*** jinty has joined #zope3-dev | 12:12 | |
Theuni_ | dunno, i found that by reading the code | 12:13 |
Theuni_ | why don't you try it? :) | 12:13 |
ChrisW | which code? | 12:13 |
ChrisW | (I'm trying to find otu what to try ;-) ) | 12:13 |
Theuni_ | you want to rollback *during* tests? | 12:14 |
ChrisW | no, got a load of tests | 12:15 |
ChrisW | they all use the same fixtures | 12:15 |
ChrisW | those fixtures are expensive to build so I want to keep them around | 12:15 |
ChrisW | but obviously roll back any changes made to them after each test | 12:15 |
ChrisW | hurm... | 12:21 |
*** mgedmin has joined #zope3-dev | 12:21 | |
ChrisW | I don't really see any support for what I'm looking for | 12:21 |
ChrisW | wtf 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 process | 12:22 |
ChrisW | ok | 12:23 |
ChrisW | are 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 |
ChrisW | I guess if you can think of some good examples of layer usage, I could take a look... | 12:25 |
mgedmin | ChrisW: not quite; layers share setup | 12:33 |
mgedmin | more like old unit tests vs old functional tests | 12:33 |
mgedmin | setup that is not torn down and rebuilt between each pair of tests from the same layer, because that would be too costly | 12:34 |
*** dunny has quit IRC | 12:38 | |
ChrisW | mgedmin: right, that sounds like what I'm after | 12:41 |
ChrisW | anyway, can anyone answer my pleas for examples? | 12:41 |
*** ktwilight has joined #zope3-dev | 12:46 | |
ChrisW | aha, I think i've found an article from Philipp that will help :-) | 12:46 |
mgedmin | there are examples somewhere in zope 3 source tree | 12:54 |
ChrisW | you'd hope so ;-) | 12:55 |
ChrisW | but, there really should be some kinda overview doc and simple examples | 12:55 |
ChrisW | Philipp's article gives tanalizing hints | 12:56 |
ChrisW | okay, I think I see how layers sort of work | 12:59 |
ChrisW | so, I could do lots of setup in, drop a savepoint and then roll back to that savepoint in the layer's teardown? | 13:00 |
ChrisW | I also think I see how extending layers works | 13:00 |
ChrisW | can you combine them horizontally too? | 13:01 |
ChrisW | ie: I have LayerX which sets up a sample content object X, and LayerY which does the same for a content object Y | 13:01 |
ChrisW | I now want to write tests that need both an X and a Y to exist | 13:01 |
ChrisW | how would people recommend I do that? | 13:01 |
azazel | any five expert here? | 13:05 |
ChrisW | not expert, but I'll help if I can :-) | 13:05 |
*** mkerrin has joined #zope3-dev | 13:05 | |
*** alga has joined #zope3-dev | 13:06 | |
azazel | ChrisW: 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.... i | 13:11 |
azazel | s this the expected behavior or is a bug? (mine or of five) | 13:11 |
ChrisW | hahaha | 13:12 |
ChrisW | you said the "p" word, you are beyond help ;-) | 13:12 |
azazel | tzè:) | 13:13 |
azazel | buti on the plone channel optilude directed me here:) | 13:14 |
azazel | s/buti/but/ | 13:15 |
ChrisW | hahaha | 13:15 |
azazel | sooo fun?:) | 13:16 |
nouri | azazel: That's what Plone itself does when registering the plone view | 13:31 |
nouri | and yes, it's expected | 13:31 |
azazel | nouri: i it is so just because also IPlone declaration as an allowed_interfaces=".interfaces.IPlone" ? | 13:36 |
nouri | azazel: I don't understand | 13:36 |
nouri | ah, your question is why do i have to declare *both* | 13:36 |
nouri | even though your interface extends IPlone | 13:37 |
azazel | yes | 13:37 |
nouri | Sorry, I misunderstood that. In that case, I have no idea and yes it looks like a bug. | 13:37 |
azazel | if 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 |
azazel | which is a method which directly inserts globals in the context of zpt | 13:40 |
azazel | s/a method which/a method that/ | 13:41 |
*** BjornT has quit IRC | 14:03 | |
*** BjornT has joined #zope3-dev | 14:04 | |
*** HakTom has quit IRC | 14:19 | |
*** benji has quit IRC | 14:23 | |
*** rocky|Zzz is now known as rocky | 14:33 | |
*** stub has quit IRC | 14:54 | |
*** J1m has joined #zope3-dev | 14:54 | |
*** vlado has joined #zope3-dev | 15:01 | |
*** Londo_ has quit IRC | 15:18 | |
*** benji has joined #zope3-dev | 15:23 | |
*** niemeyer has joined #zope3-dev | 15:26 | |
*** tgkuo has joined #zope3-dev | 15:31 | |
*** philiKON has joined #zope3-dev | 15:36 | |
*** BjornT has quit IRC | 15:43 | |
*** BjornT has joined #zope3-dev | 15:53 | |
*** baijum has quit IRC | 16:02 | |
*** tgkuo has left #zope3-dev | 16:08 | |
*** dobee has joined #zope3-dev | 16:43 | |
timte | Does allowed_interface honour interface inheritance? | 16:47 |
timte | if IB inherits from IA, it seems allowed_interface="IB" won't allow methods on IA | 16:48 |
philiKON | yes it should | 16:50 |
philiKON | if it doesn't, it's a bug | 16:50 |
ChrisW | hey philiKON :-) | 16:51 |
ChrisW | any news on book yet? | 16:51 |
philiKON | no, i wish i had | 16:51 |
philiKON | i'm as clueless as you guys :( | 16:51 |
*** hazmat has joined #zope3-dev | 16:54 | |
*** ChanServ sets mode: +o hazmat | 16:54 | |
ChrisW | hurm... question for the clueful: | 16:54 |
ChrisW | why does transaction.commit(1) break savepoints? | 16:55 |
*** dobee has quit IRC | 16:59 | |
*** whit has quit IRC | 17:00 | |
*** whit has joined #zope3-dev | 17:01 | |
*** dobee has joined #zope3-dev | 17:09 | |
*** benji has quit IRC | 17:21 | |
*** hdima has quit IRC | 17:25 | |
*** Aiste has quit IRC | 17:33 | |
*** whit has quit IRC | 17:34 | |
*** ignas has quit IRC | 17:36 | |
*** ignas has joined #zope3-dev | 17:37 | |
*** whit has joined #zope3-dev | 17:39 | |
*** MJ has joined #zope3-dev | 17:44 | |
*** alecm has joined #zope3-dev | 17:51 | |
*** vlado has quit IRC | 17:56 | |
*** philiKON has quit IRC | 18:18 | |
*** flox has quit IRC | 18:18 | |
*** ofer has joined #zope3-dev | 18:21 | |
*** d2m has quit IRC | 18:23 | |
*** d2m has joined #zope3-dev | 18:27 | |
*** opetznick has quit IRC | 18:29 | |
*** philiKON has joined #zope3-dev | 18:38 | |
*** roym has joined #zope3-dev | 18:38 | |
*** dobee has quit IRC | 18:40 | |
*** dlk has left #zope3-dev | 18:48 | |
*** MJ is now known as MJ|dinner | 19:06 | |
*** jukart has quit IRC | 19:10 | |
*** natea has quit IRC | 19:14 | |
*** natea has joined #zope3-dev | 19:16 | |
*** natea is now known as natea|away | 19:20 | |
*** hazmat has quit IRC | 19:22 | |
*** harobed has quit IRC | 19:22 | |
*** MJ|dinner has quit IRC | 19:26 | |
ChrisW | anyone here alive? | 19:32 |
ChrisW | hurm | 19:32 |
ChrisW | I wonder how hard it would be to make DemoStorage support undo? | 19:32 |
*** mgedmin has quit IRC | 19:34 | |
*** flox has joined #zope3-dev | 19:36 | |
*** RaFromBRC has joined #zope3-dev | 19:43 | |
*** andrew_m has joined #zope3-dev | 19:43 | |
*** stub has joined #zope3-dev | 19:50 | |
*** MJ has joined #zope3-dev | 19:51 | |
*** whit_ has joined #zope3-dev | 19:55 | |
*** whit has quit IRC | 20:00 | |
*** whit_ is now known as whit | 20:00 | |
*** HakTom has joined #zope3-dev | 20:06 | |
*** alga has quit IRC | 20:06 | |
*** jukart has joined #zope3-dev | 20:09 | |
*** ignas has quit IRC | 20:12 | |
*** ofer has quit IRC | 20:18 | |
*** ChrisW has quit IRC | 20:27 | |
*** hazmat has joined #zope3-dev | 20:29 | |
*** ChanServ sets mode: +o hazmat | 20:29 | |
*** stub has quit IRC | 20:31 | |
SmokeyD | hi 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 |
SmokeyD | Is it possible to use a test ZODB for that? | 20:34 |
*** harobed has joined #zope3-dev | 20:54 | |
SmokeyD | What 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 |
SmokeyD | I just have to load the database somehow in in the unittests | 21:00 |
SmokeyD | I looked at the ZODB module in the apidoc, and although i think I should use that module, I don't know how to start there | 21:01 |
*** ksmith99 has joined #zope3-dev | 21:03 | |
SmokeyD | I 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 them | 21:03 |
*** natea|away is now known as natea | 21:21 | |
*** hazmat has quit IRC | 21:23 | |
*** TresEquis has joined #zope3-dev | 21:33 | |
*** hazmat has joined #zope3-dev | 21:40 | |
*** ChanServ sets mode: +o hazmat | 21:40 | |
*** whit is now known as whit|lunch | 21:44 | |
*** whit has joined #zope3-dev | 21:47 | |
*** vlado has joined #zope3-dev | 21:53 | |
*** mkerrin has quit IRC | 21:54 | |
*** alecm has quit IRC | 22:05 | |
*** RaFromBRC is now known as RaFromBRC|away | 22:06 | |
*** alecm has joined #zope3-dev | 22:06 | |
*** batlogg has joined #zope3-dev | 22:20 | |
jukart | SmokeyD: for your unit test maybe this helps : | 22:24 |
jukart | def setUp(test): | 22:24 |
jukart | root = setup.placefulSetUp(site=True) | 22:24 |
jukart | test.globs['root'] = root | 22:24 |
batlogg | hey jukart :) | 22:24 |
jukart | hey | 22:24 |
*** jukart has quit IRC | 22:27 | |
*** jukart has joined #zope3-dev | 22:37 | |
*** jukart has quit IRC | 22:42 | |
*** batlogg_ has joined #zope3-dev | 22:42 | |
*** batlogg has quit IRC | 22:43 | |
*** batlogg_ is now known as batlogg | 22:43 | |
*** romanofs1i has joined #zope3-dev | 22:54 | |
*** harobed has quit IRC | 23:04 | |
*** dunny has joined #zope3-dev | 23:06 | |
*** dobee has joined #zope3-dev | 23:16 | |
*** MJ has quit IRC | 23:18 | |
*** dunny has quit IRC | 23:19 | |
*** dunny has joined #zope3-dev | 23:22 | |
*** hazmat has quit IRC | 23:24 | |
*** hazmat has joined #zope3-dev | 23:35 | |
*** ChanServ sets mode: +o hazmat | 23:35 | |
*** batlogg has quit IRC | 23:40 | |
*** batlogg has joined #zope3-dev | 23:41 | |
*** TresEquis has quit IRC | 23:41 | |
*** MJ has joined #zope3-dev | 23:47 | |
*** romanofs1i has quit IRC | 23:47 | |
*** flox has quit IRC | 23:47 | |
*** reco has joined #zope3-dev | 23:51 | |
*** vlado has quit IRC | 23:53 | |
*** rocky has quit IRC | 23:54 | |
*** harobed has joined #zope3-dev | 23:55 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!