*** jim_SFU has quit IRC | 00:20 | |
*** kiorky has quit IRC | 00:22 | |
*** alvaro_ has quit IRC | 00:23 | |
*** kiorky has joined #zope | 00:24 | |
*** alvaro_ has joined #zope | 00:24 | |
*** giampaolo has quit IRC | 00:28 | |
*** MrWu has quit IRC | 00:32 | |
*** redir_ has joined #zope | 00:34 | |
*** aaronv has quit IRC | 00:34 | |
*** redir has quit IRC | 00:34 | |
*** aaronv has joined #zope | 00:34 | |
*** aaronv has quit IRC | 00:35 | |
*** aaronv has joined #zope | 00:36 | |
*** aaronv has quit IRC | 00:36 | |
*** planetzopebot has quit IRC | 00:36 | |
*** milosn has quit IRC | 00:36 | |
*** mitchell`off has quit IRC | 00:36 | |
*** ypcat has quit IRC | 00:36 | |
*** CIA-94 has quit IRC | 00:36 | |
*** do3cc has quit IRC | 00:36 | |
*** redir_ has quit IRC | 00:36 | |
*** MatthewWilkes has quit IRC | 00:36 | |
*** JT has quit IRC | 00:36 | |
*** dunny has quit IRC | 00:36 | |
*** mgedmin has quit IRC | 00:36 | |
*** jfroche has quit IRC | 00:36 | |
*** alecm has quit IRC | 00:36 | |
*** cheater has quit IRC | 00:36 | |
*** rodgort has quit IRC | 00:36 | |
*** Hadaka has quit IRC | 00:36 | |
*** gawel has quit IRC | 00:36 | |
*** Taggnostr has quit IRC | 00:36 | |
*** avn has quit IRC | 00:36 | |
*** TresEquis has quit IRC | 00:36 | |
*** betabug has quit IRC | 00:36 | |
*** TheJester has quit IRC | 00:36 | |
*** alvaro_ has quit IRC | 00:36 | |
*** _mup_ has quit IRC | 00:36 | |
*** bigkevmcd has quit IRC | 00:36 | |
*** lcpfnvc has quit IRC | 00:36 | |
*** BeeBob has quit IRC | 00:36 | |
*** davisagli has quit IRC | 00:36 | |
*** yuvilio has quit IRC | 00:36 | |
*** pingviini has quit IRC | 00:36 | |
*** daMaestro has quit IRC | 00:36 | |
*** sm has quit IRC | 00:36 | |
*** teratorn has quit IRC | 00:36 | |
*** purserj has quit IRC | 00:36 | |
*** JaRoel|4D has quit IRC | 00:36 | |
*** cwarner has quit IRC | 00:36 | |
*** benji has quit IRC | 00:36 | |
*** anguenot has quit IRC | 00:36 | |
*** kosh has quit IRC | 00:36 | |
*** zenwryly has quit IRC | 00:36 | |
*** Wu has quit IRC | 00:36 | |
*** Moo^_^ has quit IRC | 00:36 | |
*** ajmitch has quit IRC | 00:36 | |
*** _mup_ has joined #zope | 00:38 | |
*** aaronv has joined #zope | 00:39 | |
*** redir_ has joined #zope | 00:39 | |
*** alvaro_ has joined #zope | 00:39 | |
*** daMaestro has joined #zope | 00:39 | |
*** MatthewWilkes has joined #zope | 00:39 | |
*** TresEquis has joined #zope | 00:39 | |
*** JaRoel|4D has joined #zope | 00:39 | |
*** cwarner has joined #zope | 00:39 | |
*** JT has joined #zope | 00:39 | |
*** davisagli has joined #zope | 00:39 | |
*** yuvilio has joined #zope | 00:39 | |
*** benji has joined #zope | 00:39 | |
*** jfroche has joined #zope | 00:39 | |
*** Taggnostr has joined #zope | 00:39 | |
*** planetzopebot has joined #zope | 00:39 | |
*** milosn has joined #zope | 00:39 | |
*** mitchell`off has joined #zope | 00:39 | |
*** dunny has joined #zope | 00:39 | |
*** anguenot has joined #zope | 00:39 | |
*** mgedmin has joined #zope | 00:39 | |
*** kosh has joined #zope | 00:39 | |
*** cheater has joined #zope | 00:39 | |
*** betabug has joined #zope | 00:39 | |
*** ypcat has joined #zope | 00:39 | |
*** CIA-94 has joined #zope | 00:39 | |
*** sm has joined #zope | 00:39 | |
*** pingviini has joined #zope | 00:39 | |
*** bigkevmcd has joined #zope | 00:39 | |
*** alecm has joined #zope | 00:39 | |
*** TheJester has joined #zope | 00:39 | |
*** zenwryly has joined #zope | 00:39 | |
*** Wu has joined #zope | 00:39 | |
*** teratorn has joined #zope | 00:39 | |
*** rodgort has joined #zope | 00:39 | |
*** BeeBob has joined #zope | 00:39 | |
*** lcpfnvc has joined #zope | 00:39 | |
*** purserj has joined #zope | 00:39 | |
*** gawel has joined #zope | 00:39 | |
*** Hadaka has joined #zope | 00:39 | |
*** do3cc has joined #zope | 00:39 | |
*** avn has joined #zope | 00:39 | |
*** Moo^_^ has joined #zope | 00:39 | |
*** ajmitch has joined #zope | 00:39 | |
*** rTheJeste has joined #zope | 00:40 | |
*** betabug_ has joined #zope | 00:41 | |
*** Taggnostr has quit IRC | 00:41 | |
*** TresEquis has quit IRC | 00:41 | |
*** betabug has quit IRC | 00:41 | |
*** TheJester has quit IRC | 00:41 | |
*** alvaro_ has quit IRC | 00:42 | |
*** alvaro_ has joined #zope | 00:43 | |
*** yuvilio has quit IRC | 00:44 | |
*** aaronv has quit IRC | 00:45 | |
*** ccomb has joined #zope | 00:48 | |
ccomb | I get a an error "500 Internal Server Error" when trying to commit into docs.zope.org_website | 00:54 |
---|---|---|
CIA-94 | fafhrd * r115661 z3ext.controlpanel/src/z3ext/controlpanel/ (4 files in 3 dirs): | 01:01 |
*** dunny has quit IRC | 01:18 | |
*** smita1 has joined #zope | 01:31 | |
*** smita has quit IRC | 01:34 | |
*** ccomb has quit IRC | 01:37 | |
*** dvschramm is now known as dvschramm|away | 01:38 | |
*** dayne has quit IRC | 01:41 | |
*** dayne has joined #zope | 01:58 | |
*** dayne has quit IRC | 01:59 | |
*** MatthewWilkes has quit IRC | 02:01 | |
*** dayne has joined #zope | 02:06 | |
*** menesis has quit IRC | 02:12 | |
*** menesis has joined #zope | 02:12 | |
*** menesis has quit IRC | 02:20 | |
*** menesis has joined #zope | 02:23 | |
*** BeeBob has quit IRC | 02:28 | |
*** BeeBob has joined #zope | 02:30 | |
*** _bluetouff has joined #zope | 02:31 | |
*** daMaestro has quit IRC | 02:38 | |
*** alvaro_ has quit IRC | 02:39 | |
*** alvaro_ has joined #zope | 02:39 | |
*** alvaro_ has quit IRC | 02:43 | |
*** _bluetouff has quit IRC | 02:43 | |
*** alvaro_ has joined #zope | 02:43 | |
*** daMaestro has joined #zope | 02:50 | |
*** aaronv has joined #zope | 03:03 | |
*** tiwula has quit IRC | 03:05 | |
*** menesis has quit IRC | 03:09 | |
*** menesis has joined #zope | 03:09 | |
*** davisagli has left #zope | 03:34 | |
*** davisagli has joined #zope | 03:36 | |
*** MrTango has quit IRC | 03:38 | |
*** daMaestro has quit IRC | 03:39 | |
*** davisagli is now known as davisagli|away | 03:47 | |
*** alecm_ has joined #zope | 03:48 | |
*** alecm has quit IRC | 03:51 | |
*** alecm_ is now known as alecm | 03:51 | |
*** MadRobot has joined #zope | 03:58 | |
*** alvaro_ has quit IRC | 04:02 | |
*** cwarner_ has joined #zope | 04:17 | |
*** giampaolo has joined #zope | 04:31 | |
*** dunny has joined #zope | 04:37 | |
*** davisagli|away is now known as davisagli | 04:42 | |
*** davisagli is now known as davisagli|away | 04:51 | |
*** davisagli|away is now known as davisagli | 04:55 | |
*** davisagli is now known as davisagli|away | 04:56 | |
*** cwarner_ has quit IRC | 05:13 | |
*** aaronv has quit IRC | 05:15 | |
*** touff has joined #zope | 05:24 | |
*** menesis has quit IRC | 05:29 | |
*** touff has quit IRC | 05:34 | |
*** davisagli|away is now known as davisagli | 05:35 | |
*** davisagli is now known as davisagli|away | 05:47 | |
*** davisagli|away is now known as davisagli | 06:00 | |
*** davisagli is now known as davisagli|away | 06:01 | |
*** touff has joined #zope | 06:13 | |
*** benji has quit IRC | 06:20 | |
*** davisagli|away is now known as davisagli | 06:39 | |
*** davisagli is now known as davisagli|away | 06:40 | |
*** dunny has quit IRC | 06:44 | |
*** dunny has joined #zope | 06:49 | |
*** kleist has joined #zope | 06:58 | |
*** mahiti_skt has joined #zope | 07:00 | |
*** dunny has quit IRC | 07:07 | |
*** dunny has joined #zope | 07:09 | |
*** davisagli|away is now known as davisagli | 07:57 | |
*** milele has quit IRC | 08:13 | |
*** wosc has joined #zope | 08:37 | |
*** davisagli is now known as davisagli|away | 08:38 | |
*** zagy has joined #zope | 08:45 | |
*** zkc has joined #zope | 08:47 | |
*** mr_jolly has joined #zope | 08:49 | |
*** Theuni has joined #zope | 08:55 | |
*** Theuni is now known as Guest41772 | 08:55 | |
*** zkc has quit IRC | 08:56 | |
*** JaRoel|4D has quit IRC | 09:02 | |
*** Guest41772 has quit IRC | 09:03 | |
*** zkc has joined #zope | 09:04 | |
*** giampaolo has quit IRC | 09:07 | |
*** dunny has quit IRC | 09:19 | |
*** vipod has joined #zope | 09:22 | |
*** cna has joined #zope | 09:24 | |
*** alecm has quit IRC | 09:38 | |
*** zkc has quit IRC | 09:40 | |
*** JaRoel|4D has joined #zope | 09:55 | |
*** agroszer has joined #zope | 09:58 | |
*** Theuni has joined #zope | 10:00 | |
*** Theuni is now known as Guest64506 | 10:00 | |
*** mr_jolly has quit IRC | 10:05 | |
*** mr_jolly has joined #zope | 10:14 | |
*** zkc has joined #zope | 10:21 | |
*** neo|4D has joined #zope | 10:29 | |
*** hever has joined #zope | 10:29 | |
*** agroszer has quit IRC | 10:32 | |
*** hever has quit IRC | 10:32 | |
*** milele has joined #zope | 10:32 | |
*** planetzopebot has quit IRC | 10:33 | |
*** hever has joined #zope | 10:33 | |
*** planetzopebot has joined #zope | 10:34 | |
*** allisterb has quit IRC | 10:43 | |
*** allisterb has joined #zope | 10:43 | |
*** mr_jolly has quit IRC | 10:46 | |
*** Guest64506 has quit IRC | 10:55 | |
*** MatthewWilkes has joined #zope | 10:59 | |
*** hever has quit IRC | 10:59 | |
*** cna has quit IRC | 11:02 | |
*** MrTango has joined #zope | 11:08 | |
*** Theuni has joined #zope | 11:08 | |
*** Theuni is now known as Guest64934 | 11:08 | |
*** alexpilz has joined #zope | 11:16 | |
*** tisto has joined #zope | 11:23 | |
*** dunny has joined #zope | 11:33 | |
MadRobot | join #friendlycoders | 11:35 |
Guest64934 | join #nospammersplease | 11:35 |
*** Guest64934 is now known as Theuni1 | 11:36 | |
MadRobot | Theuni1, sorry. That was a mistake.. obviously.. | 11:37 |
Theuni1 | :) | 11:39 |
Theuni1 | unfortunately not that obviously | 11:40 |
MadRobot | lol. | 11:40 |
MadRobot | I was just joining that channel but I forgot the '/' before the "join". That was just about it. :) | 11:42 |
*** hever has joined #zope | 11:45 | |
*** mitchell`off is now known as mitchell` | 11:47 | |
*** hever has quit IRC | 11:48 | |
*** hever has joined #zope | 11:48 | |
*** zkc has quit IRC | 11:52 | |
*** smita1 has quit IRC | 12:01 | |
*** cna has joined #zope | 12:03 | |
*** smita1 has joined #zope | 12:04 | |
*** evilbungle has joined #zope | 12:09 | |
*** ccomb has joined #zope | 12:13 | |
*** cna has left #zope | 12:13 | |
*** cna has joined #zope | 12:14 | |
Theuni1 | sure, sorry for snapping :) | 12:15 |
CIA-94 | seletz * r115662 /z3c.recipe.staticlxml/tags/0.7.2: prepping 0.7.2 | 12:15 |
CIA-94 | seletz * r115663 /z3c.recipe.staticlxml/branches/0.7.2: prepping 0.7.2 | 12:15 |
CIA-94 | seletz 0.7.2 * r115664 z3c.recipe.staticlxml/ (CHANGES.txt setup.py): 0.7.2 | 12:15 |
CIA-94 | seletz 0.7.2 * r115665 z3c.recipe.staticlxml/ (CHANGES.txt setup.py): 0.7.2 | 12:15 |
*** bobo_b has joined #zope | 12:17 | |
bobo_b | Hi. | 12:17 |
bobo_b | The error templates use "err_message options/error_message". How can I set the options dict on a request manually? | 12:18 |
bobo_b | ('options' in dir(request)) and ('options' in request.form) are both false | 12:19 |
*** wosc has quit IRC | 12:23 | |
*** wosc has joined #zope | 12:25 | |
*** nestm has joined #zope | 12:30 | |
*** hever has quit IRC | 12:37 | |
*** MadRobot has quit IRC | 12:40 | |
*** teix has joined #zope | 12:40 | |
*** menesis has joined #zope | 12:48 | |
*** shastry has joined #zope | 12:59 | |
nestm | guys, I'm writing zope product, which uses other products with custom permissions, where should I declare those? I'm getting ForbiddenAttribute error | 13:07 |
*** dunny has quit IRC | 13:09 | |
MatthewWilkes | nestm: Use declareProtected in ClassSecurityInfo | 13:12 |
nestm | MatthewWilkes: thank you, but how can I use that method in some other place then? | 13:19 |
*** ignas has joined #zope | 13:20 | |
*** menesis has quit IRC | 13:20 | |
*** menesis1 has joined #zope | 13:20 | |
*** menesis1 is now known as menesis | 13:20 | |
Moo^_^ | nestm: you can use it anywhere | 13:20 |
Moo^_^ | nestm: if you do not have use ModuleSecurityInfo | 13:21 |
Moo^_^ | +class | 13:21 |
nestm | but I seem to be lacking permissions? | 13:21 |
Moo^_^ | nestm: do the permission declaration in python product code, not in restrictedpython or externalmethod | 13:22 |
*** Theuni1 has quit IRC | 13:22 | |
nestm | Moo^_^: yes, I declareProtected my method in my product code, but then I want to use that method from another product's code and then I get ForbiddenAttribute | 13:23 |
Moo^_^ | nestm: could you please paste example to code to pastie.org | 13:24 |
Moo^_^ | and related traceack | 13:24 |
nestm | Moo^_^: I solved it, thanks, typo in permission name... :( | 13:30 |
Moo^_^ | nestm: a common mistake :) | 13:31 |
*** fredvd has joined #zope | 13:32 | |
*** tisto has quit IRC | 13:45 | |
*** tisto has joined #zope | 13:51 | |
*** agroszer has joined #zope | 14:08 | |
*** aaronv has joined #zope | 14:30 | |
*** MatthewWilkes has quit IRC | 14:34 | |
*** cna has quit IRC | 14:47 | |
*** cna has joined #zope | 14:48 | |
*** Theuni has joined #zope | 14:55 | |
*** Theuni is now known as Guest42807 | 14:56 | |
*** hever has joined #zope | 15:05 | |
*** sunew has joined #zope | 15:06 | |
*** tisto is now known as tisto|away | 15:20 | |
*** wosc has quit IRC | 15:45 | |
*** evilbungle has quit IRC | 15:51 | |
*** ccomb has quit IRC | 15:54 | |
*** ccomb has joined #zope | 15:54 | |
*** sunew has quit IRC | 15:55 | |
*** cna has quit IRC | 15:57 | |
*** tisto|away is now known as tisto | 16:00 | |
*** benji has joined #zope | 16:01 | |
*** alecm has joined #zope | 16:34 | |
*** jim_SFU has joined #zope | 16:34 | |
*** evilbungle has joined #zope | 16:51 | |
*** menesis has quit IRC | 16:53 | |
*** dvschramm|away is now known as dvschramm | 17:00 | |
*** zagy has quit IRC | 17:00 | |
*** vipod has quit IRC | 17:09 | |
*** vipod has joined #zope | 17:10 | |
*** teix1 has joined #zope | 17:11 | |
*** teix has quit IRC | 17:12 | |
*** pepeu has joined #zope | 17:13 | |
*** MrJones has joined #zope | 17:17 | |
MrJones | hi | 17:17 |
*** prinzdezibel has joined #zope | 17:17 | |
MrJones | how does zope treat form input data? | 17:18 |
MrJones | I don't know in which encoding it comes in through http post, but does zope e.g. convert the strings to utf8? or leave them unconverted? does it remove invalid bytes in the encoding? or would I need to check that myself | 17:18 |
mgedmin | in zope 3, request.form always contains unicode data | 17:20 |
mgedmin | in zope 2, I don't remember | 17:20 |
MrJones | mgedmin: so I can assume that it is a) unicode and b) also doesn't contain any invalid utf8 chars? | 17:21 |
mgedmin | why don't you make a little test? | 17:21 |
MrJones | mgedmin: I'd need to write something that spits out invalid utf8 data first :) | 17:21 |
MrJones | and find some byte sequence that's clearly invalid and would cause problems | 17:22 |
mgedmin | telnet localhost 8080 ... | 17:22 |
mgedmin | in application/x-www-form-urlencoded data %FF would represent an invalid byte in UTF-8 | 17:22 |
MrJones | can you give me the decimal byte representation of this? | 17:23 |
mgedmin | ... 255 | 17:23 |
MrJones | ok thanks :) | 17:23 |
*** nestm has quit IRC | 17:34 | |
MrJones | mgedmin: it seems to me the invalid byte just gets passed on to python and my application | 17:35 |
MrJones | but at the same time I have no problem printing it, so probably python doesn't care | 17:35 |
mgedmin | as an str or as an unicode? | 17:35 |
MrJones | mgedmin: well if you say zope 3 uses unicode strings it's most likely a unicode string | 17:36 |
MrJones | (since I'm using zope 3) | 17:36 |
mgedmin | then "most likely" zope falls back to decoding the request data using Latin-1 if UTF-8 fails | 17:36 |
MrJones | but it will convert to utf8 anyway? so I always end up with utf8 data? | 17:37 |
mgedmin | to? on output,yes | 17:37 |
mgedmin | if your view's __call__ returns a unicode string, and the Content-Type header is text/*, zope will encode it to UTF-8 and add "; charset=UTF-8" to the content-type | 17:38 |
mgedmin | if your view's __call__ returns a byte string, it's your responsibility to specify the correct charset in the content-type header | 17:38 |
mgedmin | by default page templates return unicode strings when rendered | 17:39 |
mgedmin | and best practices are to deal with unicode strings internally | 17:39 |
MrJones | mgedmin: I'm particularly interested in browser>POST form>view/model though, not view/model>template rendering/HTML>browser | 17:40 |
*** Guest42807 is now known as Theuni1 | 17:41 | |
mgedmin | okay, looking at source code of zope.publisher.browser.BrowserRequest now | 17:41 |
mgedmin | BrowserRequest looks up IUserPreferredCharsets(request).getPreferredCharsets() or ['utf-8'] | 17:41 |
mgedmin | then loops through those until it can decode the text as unicode | 17:42 |
mgedmin | if it fails, it leaves you with 8-bit str | 17:42 |
mgedmin | fun! | 17:42 |
mgedmin | one implementation of IUserPreferredCharsets | 17:42 |
mgedmin | looks at the Accept-Charset request header | 17:42 |
mgedmin | does funky stuff | 17:43 |
mgedmin | always ensures utf-8 and iso-8859-1 are there (I _think_) | 17:43 |
mgedmin | fwiw the output side -- the one you're not very interested in -- also uses IUserPreferredCharsets, falling back to UTF-8 | 17:45 |
MrJones | ok | 17:54 |
*** elro has joined #zope | 17:55 | |
*** Arfrever has joined #zope | 18:00 | |
elro | benji: I'm experimenting with manuel and am finding that each doctest line is counted as a separate test. Is this to be expected? | 18:00 |
*** williamthekid has joined #zope | 18:01 | |
mgedmin | that used to be the case with zope.testing.doctest; I *hated* it | 18:01 |
benji | elro: Manuel counts tests differently than stand-alone doctest; I don't remember if it's every line or every doctest block | 18:02 |
elro | I seem to get (number of doctest >>> lines) + (number of .. test-case: markers) | 18:02 |
mgedmin | to me a test is something you can enable/disable with zope.testrunner's -t flag | 18:03 |
mgedmin | you can't do that at the granularity of individual >>> assertions | 18:03 |
elro | The .. test-case: marker stuff looks really useful, but with one test per line it seems a less useful | 18:04 |
mgedmin | the progress bar also can't track individual assertions, which means you end up staring at 0/57, 13/57, 22/57, 57/57 when you have four doctest files | 18:04 |
*** dayne has quit IRC | 18:05 | |
mgedmin | hm, maybe the number of assertions has some correlation with running time, in which case that results in a more correct percentage display ... hm | 18:05 |
benji | I prefer counting more than one test per file. | 18:06 |
benji | elro: what correlation is there between ".. test-case:" and the numer of reported tests? | 18:08 |
elro | benji: number of reported tests = N(>>> lines) + N(.. test-case: lines) | 18:08 |
benji | let me rephrase; why do you think the way "tests" are counted makes ".. test-case:" less useful? | 18:09 |
elro | From reading the markers section of the manuel docs, I was expecting number of reported tests = N(.. test-case: lines) + 1 | 18:10 |
benji | then there is a documentation bug; the test-case functionality is unrelated to counting, it is so you can run cases individually (i.e., run only parts of a doctest file) | 18:12 |
benji | it also lets you do rudamentory test isolation | 18:12 |
*** MatthewWilkes has joined #zope | 18:12 | |
elro | I guess for me, doc test cases logically span a few lines. I want each of my documented examples to count as a single test | 18:14 |
CIA-94 | mgedmin mgedmin-etag-support * r115666 zope.browserresource/ (6 files in 3 dirs): | 18:15 |
CIA-94 | ETag generation can be customized or disabled by providing an IETag | 18:15 |
CIA-94 | multi-adapter on (IFileResource, your-application-skin). | 18:15 |
CIA-94 | mgedmin * r115667 zope.browserresource/ (7 files in 3 dirs): | 18:15 |
CIA-94 | Support the HTTP ETag header for file resources. ETag generation can be | 18:15 |
CIA-94 | customized or disabled by providing an IETag multi-adapter on | 18:15 |
CIA-94 | (IFileResource, your-application-skin). | 18:15 |
CIA-94 | Merged mgedmin-etag-support branch with | 18:15 |
CIA-94 | svn merge -r 115595:115666 svn+ssh://svn.zope.org/repos/main/zope.browserresource/branches/mgedmin-etag-support . | 18:15 |
CIA-94 | mgedmin * r115668 /zope.browserresource/branches/mgedmin-etag-support: This branch was merged to trunk. | 18:15 |
CIA-94 | mgedmin * r115669 zope.browserresource/ (CHANGES.txt setup.py): Preparing release 3.11.0 | 18:15 |
CIA-94 | mgedmin * r115670 /zope.browserresource/tags/3.11.0: Tagging 3.11.0 | 18:15 |
CIA-94 | mgedmin * r115671 zope.browserresource/ (CHANGES.txt setup.py): Back to development: 3.11.1 | 18:15 |
elro | benji: if it is only a documentation bug, I don't understand why number of reported tests = N(>>> lines) + N(.. test-case: lines), it looks like double counting. | 18:15 |
*** John[a] has joined #zope | 18:16 | |
benji | true, I hadn't intended the test-case: lines to be included; I'll look at fixing that | 18:16 |
*** JaRoel|4D has quit IRC | 18:21 | |
*** neo|4D has quit IRC | 18:21 | |
*** John[a] has quit IRC | 18:27 | |
benji | actually, I'd prefer it if only lines that had output were counted as tests; maybe I can do that | 18:27 |
mgedmin | why? | 18:27 |
mgedmin | there are sometimes "this doesn't raise an exception >>> foo.do_something_dangerous()" | 18:27 |
mgedmin | and "this returns None: >>> foo.get_something_optional()" | 18:27 |
elro | that setUp and tearDown is called once per marked section, suggests to me that each section should only be one testcase | 18:28 |
elro | it seems to me that each line in a doctest is more equivalent to a unittest self.assertEqual than a unittest test case | 18:28 |
mgedmin | (which is my point too) | 18:29 |
*** neo|4D has joined #zope | 18:29 | |
kosh | so how are you freaks doing today? | 18:29 |
elro | I can see why zope's doctest went with one testcase per line, but that seems to be just a workaround because it didn't have section markers | 18:30 |
benji | I can see the reasoning. I prefer that when I add assertions the test count goes up. It's sort of a game mechanic. :) | 18:30 |
*** JaRoel|4D has joined #zope | 18:30 | |
*** John[a] has joined #zope | 18:30 | |
mgedmin | time for a doctest reporting option? | 18:32 |
mgedmin | does manuel have those? | 18:32 |
benji | quite good kosh; it's nice and rainy here (and I have no need to go out) | 18:32 |
kosh | I wish it would do that here | 18:32 |
kosh | it is too hot here | 18:32 |
benji | mgedmin: define "doctest reporting option" | 18:32 |
kosh | one very important things is don't serve multiple databases from the same zeo server | 18:32 |
mgedmin | # doctest:+REPORT_NDIFF | 18:32 |
benji | mgedmin: I'm not a big fan of those; if I were to make this configurable I'd probably define a plugin API and delegate the counting to it and people could count as they see fit | 18:33 |
*** dayne has joined #zope | 18:36 | |
elro | perhaps there could be a manuel.testcase.LineMarkerManuel() to get the one testcase per line behaviour. Without it you get the standard python doctest one per file behaviour | 18:37 |
benji | right, something like that | 18:38 |
*** touff has quit IRC | 18:38 | |
benji | elro: will you submit a feature request (blueprint in Launchpad parlance) at https://blueprints.edge.launchpad.net/manuel? | 18:39 |
elro | benji: will do. I'll have a play around and see whether I can implement it on a branch | 18:40 |
benji | that'd be great | 18:41 |
*** touff has joined #zope | 18:43 | |
*** alvaro has joined #zope | 18:46 | |
*** redir_ has quit IRC | 18:47 | |
*** mahiti_skt has quit IRC | 18:49 | |
*** evilbungle has quit IRC | 18:52 | |
*** evilbungle has joined #zope | 18:52 | |
*** MatthewWilkes has quit IRC | 18:53 | |
*** redir has joined #zope | 18:54 | |
*** MrTango has quit IRC | 19:01 | |
planetzopebot | Where is my manage portlets link? (RedTurtle Technology) http://blog.redturtle.it/redturtle-blog/where-is-my-manage-portlets-link | 19:04 |
*** Theuni1 has quit IRC | 19:05 | |
*** tiwula has joined #zope | 19:13 | |
*** MrWu has joined #zope | 19:15 | |
*** MrTango has joined #zope | 19:17 | |
*** Theuni1 has joined #zope | 19:21 | |
*** Theuni1 has quit IRC | 19:24 | |
*** giampaolo has joined #zope | 19:25 | |
*** redir has quit IRC | 19:26 | |
*** alvaro has quit IRC | 19:34 | |
*** alvaro has joined #zope | 19:35 | |
*** vipod has quit IRC | 19:36 | |
*** vipod has joined #zope | 19:36 | |
*** ccomb has quit IRC | 19:36 | |
*** mitchell` is now known as mitchell`off | 19:38 | |
*** agroszer has quit IRC | 19:45 | |
*** benji is now known as benji-lunch | 19:49 | |
*** fredvd has quit IRC | 19:52 | |
*** alexpilz has quit IRC | 20:00 | |
*** MrJones has quit IRC | 20:02 | |
*** agroszer has joined #zope | 20:02 | |
*** bigkevmcd has quit IRC | 20:08 | |
*** evilbungle has quit IRC | 20:12 | |
*** touff has quit IRC | 20:13 | |
*** alvaro has quit IRC | 20:18 | |
*** touff has joined #zope | 20:18 | |
*** alvaro has joined #zope | 20:18 | |
*** alvaro has quit IRC | 20:22 | |
*** alvaro has joined #zope | 20:22 | |
*** alvaro has quit IRC | 20:25 | |
*** alvaro has joined #zope | 20:26 | |
*** prinzdezibel has quit IRC | 20:27 | |
*** Arfrever has quit IRC | 20:36 | |
*** aaronv has quit IRC | 20:37 | |
*** srichter has joined #zope | 20:38 | |
*** evilbungle has joined #zope | 20:40 | |
*** evilbungle has quit IRC | 20:41 | |
*** redir has joined #zope | 20:43 | |
*** John[a] has quit IRC | 20:44 | |
*** benji-lunch is now known as benji | 20:44 | |
*** MrWu has quit IRC | 20:49 | |
*** hever has quit IRC | 20:54 | |
*** ignas has quit IRC | 20:54 | |
*** sawdog has joined #zope | 20:55 | |
sawdog | who's monitoring zope.org — tis problems; getting a squid error | 20:58 |
*** ccomb has joined #zope | 21:05 | |
*** aaronv has joined #zope | 21:08 | |
benji | sawdog: odd, it works for me | 21:08 |
*** pepeu has quit IRC | 21:08 | |
sawdog | it did after several more timeouts for me as well | 21:08 |
sawdog | something's not right though, I sent an email to zope-web with the error..... | 21:09 |
*** yuvilio has joined #zope | 21:10 | |
*** agroszer_ has joined #zope | 21:13 | |
*** agroszer has quit IRC | 21:16 | |
*** aaronv has quit IRC | 21:19 | |
*** aaronv has joined #zope | 21:19 | |
*** davisagli|away is now known as davisagli | 21:39 | |
CIA-94 | ldr * r115672 /manuel/branches/elro-test-count: branch for test counting experiments | 21:46 |
CIA-94 | ldr elro-test-count * r115673 manuel/src/manuel/ (README.txt doctest.py): Group contiguous doctest sections as a single test case | 21:46 |
*** daMaestro has joined #zope | 21:48 | |
*** John[a] has joined #zope | 21:53 | |
*** JaRoel|4_ has joined #zope | 21:55 | |
*** prinzdezibel has joined #zope | 21:55 | |
*** JaRoel|4D has quit IRC | 21:59 | |
elro | benji: I've put my changes up in a branch here: http://zope3.pov.lt/trac/log/manuel/branches/elro-test-count and a blueprint here: https://blueprints.edge.launchpad.net/manuel/+spec/test-count | 22:05 |
benji | elro: cool; I'll take a look later | 22:06 |
elro | it reduces the test count from 305 to 90 for manuel itself | 22:06 |
CIA-94 | ldr elro-test-count * r115674 manuel/src/manuel/ (table-example.txt testing.py __init__.py doctest.py): Regions must be marked countable to be inlcuded in the test count | 22:08 |
*** mcdonc has quit IRC | 22:08 | |
*** sawdog has left #zope | 22:08 | |
*** mcdonc has joined #zope | 22:09 | |
*** agroszer_ has quit IRC | 22:42 | |
*** Arfrever has joined #zope | 22:45 | |
*** ignas has joined #zope | 22:51 | |
*** srichter has quit IRC | 22:53 | |
*** aaronv has quit IRC | 22:53 | |
*** John[a] has quit IRC | 23:00 | |
*** teix1 has quit IRC | 23:06 | |
*** davisagli is now known as davisagli|away | 23:07 | |
*** JaRoel|4_ has quit IRC | 23:15 | |
*** cwarner has quit IRC | 23:25 | |
*** vipod has quit IRC | 23:27 | |
*** minskmaz has joined #zope | 23:35 | |
minskmaz | question about skinning - I'm using zope.schema's form generation which has it's own skin - what would I do in zcml to override this and register it to my custom skin layer ? | 23:36 |
*** davisagli|away is now known as davisagli | 23:37 | |
*** jim_SFU has quit IRC | 23:40 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!