*** greenman has quit IRC | 00:09 | |
*** andres_f has joined #zope3-dev | 00:09 | |
*** yota has joined #zope3-dev | 00:33 | |
*** redir has joined #zope3-dev | 00:34 | |
*** timte has quit IRC | 00:36 | |
*** timte has joined #zope3-dev | 00:36 | |
*** redir has quit IRC | 00:45 | |
*** J1m has joined #zope3-dev | 00:47 | |
*** sp0cksbeard has quit IRC | 00:52 | |
*** andres_f has quit IRC | 01:05 | |
*** jodok has quit IRC | 01:05 | |
*** greenman has joined #zope3-dev | 01:06 | |
*** quodt has quit IRC | 01:07 | |
*** lucielejard has quit IRC | 01:14 | |
*** sunew has joined #zope3-dev | 01:16 | |
*** junkafarian has quit IRC | 01:24 | |
*** timte has quit IRC | 01:24 | |
*** sunew has quit IRC | 01:32 | |
*** flox has left #zope3-dev | 01:44 | |
*** vipod has quit IRC | 01:44 | |
*** nathany has quit IRC | 01:45 | |
ccomb | zope.server tests against ZEO tests are fixed but there is something bad elsewhere | 01:45 |
---|---|---|
*** lurkymclurkleton has quit IRC | 01:46 | |
srichter | ccomb: cool | 01:49 |
ccomb | not that much | 01:49 |
ccomb | the same tests fail for another reason now | 01:50 |
ccomb | apart from that, there are 4 failures from z3c.formdemo, and 1 failure from z3c.formjs | 01:51 |
*** J1m has quit IRC | 01:51 | |
ccomb | due tu z3c.form 1.8.2 formatting that seems to change | 01:52 |
ccomb | that should be easy to fix | 01:52 |
*** alga has joined #zope3-dev | 01:58 | |
*** dvschramm has quit IRC | 02:07 | |
ccomb | Ok, the failure is a mix of zope.app.server, zope.server and ZEO | 02:08 |
ccomb | same cause | 02:08 |
ccomb | ok I know how to fix it | 02:24 |
*** rmarianski has quit IRC | 02:56 | |
*** yota has quit IRC | 03:03 | |
*** whit has quit IRC | 03:15 | |
ccomb | 12178 tests, 5 failures, 0 errors in 16 minutes 26.259 seconds | 03:31 |
ccomb | 4 failures on formdemo, 1 on formjs | 03:31 |
ccomb | zope.server tests pass \o/ | 03:31 |
*** tarek has quit IRC | 03:32 | |
*** nathany has joined #zope3-dev | 03:34 | |
*** alga has quit IRC | 04:00 | |
*** nathany has quit IRC | 04:06 | |
*** fairwinds has quit IRC | 04:11 | |
*** srichter has quit IRC | 04:38 | |
*** whit has joined #zope3-dev | 04:55 | |
*** srichter has joined #zope3-dev | 05:01 | |
*** srichter has quit IRC | 05:08 | |
*** srichter has joined #zope3-dev | 05:08 | |
*** ChanServ sets mode: +o srichter | 05:09 | |
*** brandon_rhodes has quit IRC | 05:24 | |
*** srichter has quit IRC | 05:42 | |
*** stub has joined #zope3-dev | 05:57 | |
*** alecm has quit IRC | 06:17 | |
*** stub has quit IRC | 06:21 | |
*** lurkymclurkleton has joined #zope3-dev | 06:30 | |
*** srichter has joined #zope3-dev | 06:32 | |
*** ChanServ sets mode: +o srichter | 06:36 | |
*** kursor has joined #zope3-dev | 06:57 | |
*** stub has joined #zope3-dev | 07:17 | |
*** lurkymclurkleton has quit IRC | 07:21 | |
*** greenman has quit IRC | 07:33 | |
*** philiKON_ has joined #zope3-dev | 07:53 | |
*** stub has quit IRC | 07:54 | |
*** deo has quit IRC | 07:57 | |
*** philiKON has quit IRC | 08:03 | |
*** whit has quit IRC | 08:05 | |
*** stub has joined #zope3-dev | 08:45 | |
*** stub has quit IRC | 08:52 | |
*** afd_ has joined #zope3-dev | 08:55 | |
*** stub has joined #zope3-dev | 08:58 | |
*** __mac__ has joined #zope3-dev | 09:00 | |
*** redir has joined #zope3-dev | 09:01 | |
*** redir has quit IRC | 09:05 | |
*** philiKON_ has quit IRC | 09:11 | |
*** philiKON has joined #zope3-dev | 09:31 | |
*** aclark is now known as aclark|away | 09:37 | |
*** afd__ has joined #zope3-dev | 09:40 | |
*** basti_ has joined #zope3-dev | 09:51 | |
*** afd_ has quit IRC | 09:54 | |
*** tarek has joined #zope3-dev | 10:04 | |
*** tarek has quit IRC | 10:10 | |
*** malthe has joined #zope3-dev | 10:15 | |
*** junkafarian has joined #zope3-dev | 10:16 | |
*** tarek has joined #zope3-dev | 10:19 | |
*** stub has quit IRC | 10:20 | |
*** timte has joined #zope3-dev | 10:23 | |
*** mustap has joined #zope3-dev | 10:25 | |
*** timte has quit IRC | 10:25 | |
*** timte has joined #zope3-dev | 10:27 | |
*** tarek has quit IRC | 10:30 | |
*** stub has joined #zope3-dev | 10:53 | |
*** b52laptop has joined #zope3-dev | 10:56 | |
*** b52laptop has quit IRC | 10:57 | |
*** MJ has joined #zope3-dev | 11:00 | |
*** basti__ has joined #zope3-dev | 11:08 | |
*** basti_ has quit IRC | 11:08 | |
*** tarek has joined #zope3-dev | 11:09 | |
*** junkafarian has quit IRC | 11:26 | |
*** tarek has quit IRC | 11:26 | |
*** fxcp has joined #zope3-dev | 11:30 | |
*** fxcp has quit IRC | 11:39 | |
*** elro has joined #zope3-dev | 11:43 | |
*** maurits has joined #zope3-dev | 11:52 | |
*** junkafarian has joined #zope3-dev | 11:52 | |
*** sunew has joined #zope3-dev | 11:53 | |
*** thruflo has joined #zope3-dev | 11:59 | |
*** goschtl has joined #zope3-dev | 12:05 | |
*** junkafarian_ has joined #zope3-dev | 12:06 | |
*** alecghica has joined #zope3-dev | 12:07 | |
*** junkafarian has quit IRC | 12:09 | |
*** junkafarian_ is now known as junkafarian | 12:09 | |
*** agroszer has joined #zope3-dev | 12:11 | |
*** baijum has joined #zope3-dev | 12:11 | |
*** alecghica has quit IRC | 12:11 | |
*** flox has joined #zope3-dev | 12:14 | |
*** alecghica has joined #zope3-dev | 12:15 | |
*** ktwilight_ has joined #zope3-dev | 12:27 | |
*** ktwilight has quit IRC | 12:41 | |
*** sunew has quit IRC | 12:43 | |
*** afd__ has quit IRC | 12:53 | |
*** quodt has joined #zope3-dev | 12:53 | |
*** zagy has quit IRC | 13:07 | |
*** zagy has joined #zope3-dev | 13:08 | |
*** greenman_ has joined #zope3-dev | 13:12 | |
*** junkafarian_ has joined #zope3-dev | 13:28 | |
*** thruflo_ has joined #zope3-dev | 13:28 | |
*** junkafarian has quit IRC | 13:37 | |
*** thruflo has quit IRC | 13:37 | |
*** dirceu has joined #zope3-dev | 13:38 | |
*** junkafarian_ is now known as junkafarian | 13:41 | |
*** sunew has joined #zope3-dev | 13:50 | |
*** fcorrea_ has joined #zope3-dev | 13:52 | |
*** fcorrea has quit IRC | 13:58 | |
*** jsadjohnson has joined #zope3-dev | 14:06 | |
*** mustap has left #zope3-dev | 14:07 | |
*** mintsauce has joined #zope3-dev | 14:11 | |
*** fxcp has joined #zope3-dev | 14:16 | |
*** ChrisW has joined #zope3-dev | 14:18 | |
ChrisW | hey all, how would I tests a post to a url? | 14:18 |
ChrisW | I guess this is a functional test type thing? | 14:19 |
philiKON | yes | 14:19 |
ChrisW | any good examples? | 14:19 |
philiKON | in my book | 14:19 |
ChrisW | chapter? | 14:19 |
philiKON | the one on testing | 14:19 |
philiKON | see ToC | 14:19 |
ChrisW | so I guess this would be using testbrowser? | 14:21 |
philiKON | either that or the http() callable, if you something more low-level | 14:22 |
ChrisW | yeah, where does that come from? | 14:23 |
*** quodt has quit IRC | 14:23 | |
philiKON | it's available in functioanl doc tests | 14:24 |
ChrisW | so does that mean I need zope.app.testing in my buildout or some other thing? | 14:24 |
philiKON | yes | 14:25 |
philiKON | look at what zopeproject generates | 14:25 |
mintsauce | Two quick questions, with what I suspect are much longer answers ... | 14:31 |
*** dirceu has quit IRC | 14:31 | |
*** seletz has joined #zope3-dev | 14:31 | |
*** seletz is now known as seletz|ontheroad | 14:32 | |
*** stub1 has joined #zope3-dev | 14:33 | |
*** stub has quit IRC | 14:33 | |
*** stub1 is now known as stub | 14:34 | |
mintsauce | Actually - 1 question - as is often the case I realised the answer to the first while typing it :P | 14:35 |
*** afd__ has joined #zope3-dev | 14:35 | |
mintsauce | Is is possible to stop objects being named with 'invalid' characters - eg: site.com/folder/An Example Object - should arguably be: site.com/folder/An_Example_Object | 14:37 |
afd__ | mintsauce: write your own adapter for INameChooser | 14:37 |
mintsauce | afd__: that filters and swaps these out? | 14:37 |
afd__ | also, when writing it, you should lower case all the characters. I'd also translate all characters to ascii | 14:38 |
mintsauce | k ... just wanted to check that zope didnt do it somewhere already :) | 14:38 |
afd__ | look at the INameChooser interface and your questions will be answered :) | 14:38 |
*** afd__ has quit IRC | 14:39 | |
ccomb | there is a default namechoose already registered, but it does do much | 14:39 |
philiKON | my book demonstrates a custom INameChooser | 14:42 |
philiKON | i should set up a RTFB bot | 14:42 |
mintsauce | lol | 14:45 |
* baijum think an up-to-date online docs is necessary for Zope 3 | 14:45 | |
junkafarian | there are the api docs | 14:46 |
ccomb | that's not enough, give the apidoc to a beginner and see the result | 14:46 |
philiKON | also, people shouldn't be afraid to read the code once in a while | 14:46 |
philiKON | api doc is a reference | 14:46 |
baijum | junkafarian: Somthing like a book | 14:46 |
philiKON | beginners won't learn with a reference. never. | 14:47 |
* mintsauce waves | 14:47 | |
* baijum has started few efforts earlier ... but couldn't continue :( | 14:47 | |
junkafarian | a zope book would get outdated very quickly as far as i can tell | 14:48 |
junkafarian | each package should just have well documented code/tests/docstrings etc | 14:48 |
junkafarian | zope isnt a beginners framework | 14:48 |
baijum | junkafarian: I disagree, now Zope 3 is not changing fundamentally much | 14:48 |
thruflo_ | I'm a beginner! :p | 14:48 |
ccomb | actually, philiKON's book is not outdated at all, excepted for deployment | 14:49 |
philiKON | i don't think my book's 2nd and 3rd editions are much outdated | 14:49 |
* thruflo_ agrees | 14:49 | |
junkafarian | very true | 14:49 |
* baijum also agree | 14:49 | |
philiKON | and then there's grok for those who are overwhelmed in the beginning | 14:49 |
junkafarian | depends what sort of detail you want i spose | 14:49 |
* mintsauce agrees - only thing missing is buildout, but he knows that ;) | 14:49 | |
thruflo_ | perhaps there's a gap before you get to the book, i.e.: "why do I want to learn web component development with Zope 3?" | 14:50 |
philiKON | junkafarian: as i've said, after a certain point you should just be comfortable to do some digging. python is legible enough, i think | 14:50 |
baijum | Well, I recently started yet another book effort :) here it is: http://en.wikibooks.org/wiki/The_Zope_3_Book | 14:50 |
philiKON | thruflo_: yes. i'm planning to address that issue | 14:50 |
philiKON | there isn't that much rocket science in zope 3 | 14:52 |
philiKON | a few parts are a bit complex, maybe | 14:52 |
mintsauce | philiKON: Out of interest, and briefly, why would you want to? (For me I liked what I had seen of python and Zope 2, but didn't need a lot of what Zope 2 had) | 14:52 |
junkafarian | philiKON: yup :) also, the codebase tends to be very nicely written so its very easy to follow | 14:52 |
philiKON | junkafarian: and if it isn't, something's wrong, so people should feel free to improve it and make it clearer | 14:52 |
thruflo_ | perhaps one approach is to make the links between pop science best practise and zope methodology clear, i.e.: everyone's read Getting It Done / guides on agile development, etc. | 14:52 |
philiKON | mintsauce: i' | 14:53 |
philiKON | mintsauce: i didn't say i wanted to cover more zope2 | 14:53 |
*** J1m has joined #zope3-dev | 14:55 | |
mintsauce | philiKON: didnt mean that ....... i meant, how would you summarise "why do I want to learn web component development with Zope 3?" - For me i had used and liked python and zope2 with plone, but for full application development didn't need or want what they offered - Zope 3 seemed like the natural next step .. | 14:55 |
*** afd_ has joined #zope3-dev | 14:58 | |
* ccomb will use the response as the headline for http://new.zope.org :) | 14:59 | |
ccomb | s/response/answer/ | 14:59 |
mintsauce | ccomb: nice design, first time ive seen it :) | 15:00 |
ccomb | actually we need content | 15:00 |
ccomb | Help is needed for http://new.zope.org/projects/zope-application-server/zope2 | 15:01 |
ccomb | and http://new.zope.org/projects/grok | 15:01 |
thruflo_ | oooh | 15:01 |
*** singletoned has joined #zope3-dev | 15:02 | |
*** rcrafton has joined #zope3-dev | 15:02 | |
* mintsauce thinks the whole 'Why Zope 3' is a bit of a problem anyway - even among experienced users | 15:03 | |
*** yota has joined #zope3-dev | 15:04 | |
philiKON | ccomb: are you going to merge r89870 to the trunk as well? | 15:04 |
*** mintsauce is now known as mintsauce_lunch | 15:05 | |
ccomb | philiKON: ah yes, and 89765 too | 15:06 |
ccomb | and others that fix just the tests (zope.server, zc.zope3recipes) | 15:07 |
*** greenman_ has quit IRC | 15:28 | |
*** redir has joined #zope3-dev | 15:30 | |
Theuni | gnarr | 15:32 |
Theuni | zope.security is broken on the simple and ppix indexes | 15:33 |
*** philiKON_ has joined #zope3-dev | 15:33 | |
ccomb | Theuni: missing or broken ? | 15:34 |
Theuni | the .zip file is missing | 15:34 |
Theuni | i wonder who deleted that | 15:35 |
ccomb | on which version ? | 15:35 |
Theuni | 3.4.1 | 15:35 |
Theuni | I would think pypi doesn't loose it by itself. | 15:35 |
*** dunny has quit IRC | 15:35 | |
ccomb | Theuni: give me upload right and I upload what's missing | 15:36 |
*** ignas has joined #zope3-dev | 15:37 | |
Theuni | ccomb: i'm already about to do that | 15:37 |
ccomb | ok | 15:37 |
Theuni | i'm just *really* annoyed this happened and we have no way to find out why | 15:37 |
*** sunew has quit IRC | 15:42 | |
*** sunew has joined #zope3-dev | 15:49 | |
*** philiKON has quit IRC | 15:53 | |
*** philiKON_ is now known as philiKON | 15:53 | |
*** tarek has joined #zope3-dev | 15:55 | |
*** redir has quit IRC | 15:56 | |
*** mrevoir has joined #zope3-dev | 15:56 | |
*** lurkymclurkleton has joined #zope3-dev | 15:58 | |
*** mrevoir has quit IRC | 15:59 | |
*** mrevoir has joined #zope3-dev | 15:59 | |
*** redir has joined #zope3-dev | 16:01 | |
*** tarek has quit IRC | 16:03 | |
*** redir has quit IRC | 16:05 | |
*** ktenney has joined #zope3-dev | 16:08 | |
*** thruflo has joined #zope3-dev | 16:15 | |
*** singletoned_ has joined #zope3-dev | 16:15 | |
*** junkafarian_ has joined #zope3-dev | 16:16 | |
*** stub has quit IRC | 16:20 | |
*** sunew has quit IRC | 16:21 | |
*** whit has joined #zope3-dev | 16:25 | |
*** stub has joined #zope3-dev | 16:25 | |
*** baijum has quit IRC | 16:26 | |
elro | Is there a better way to set up dynamic default values on an add form other than stuffing them into request.form? | 16:29 |
elro | widget.setRenderedValue | 16:31 |
*** singletoned has quit IRC | 16:31 | |
*** junkafarian has quit IRC | 16:31 | |
*** thruflo_ has quit IRC | 16:31 | |
*** tarek has joined #zope3-dev | 16:36 | |
*** junkafarian_ is now known as junkafarian | 16:37 | |
*** philiKON has quit IRC | 16:39 | |
*** flox has left #zope3-dev | 16:42 | |
*** lucielejard has joined #zope3-dev | 16:43 | |
*** tarek has quit IRC | 16:47 | |
*** rcrafton has left #zope3-dev | 16:50 | |
*** __mac__ has quit IRC | 16:55 | |
*** __mac__ has joined #zope3-dev | 16:56 | |
*** redir_ has joined #zope3-dev | 16:56 | |
*** __mac__ has quit IRC | 16:56 | |
*** vimes656 has joined #zope3-dev | 16:56 | |
*** thruflo has quit IRC | 16:56 | |
*** whit has quit IRC | 16:58 | |
*** Jell-O-Fishi has quit IRC | 17:00 | |
*** Jell-O-Fishi has joined #zope3-dev | 17:00 | |
*** philiKON has joined #zope3-dev | 17:00 | |
*** tarek has joined #zope3-dev | 17:00 | |
*** MrTopf has joined #zope3-dev | 17:07 | |
*** vimes656 has quit IRC | 17:08 | |
*** lurkymclurkleton has quit IRC | 17:08 | |
*** lurkymclurkleton has joined #zope3-dev | 17:09 | |
*** basti__ has quit IRC | 17:15 | |
*** malthe has quit IRC | 17:18 | |
*** tarek has quit IRC | 17:25 | |
*** afd_ has quit IRC | 17:28 | |
*** stub has quit IRC | 17:35 | |
*** goschtl has quit IRC | 17:36 | |
*** tarek has joined #zope3-dev | 17:42 | |
*** malthe has joined #zope3-dev | 17:43 | |
*** tarek has quit IRC | 17:48 | |
*** fairwinds has joined #zope3-dev | 17:49 | |
*** seletz|ontheroad has quit IRC | 17:49 | |
*** nathany has joined #zope3-dev | 17:54 | |
*** rmarianski has joined #zope3-dev | 17:57 | |
*** __mac__ has joined #zope3-dev | 18:10 | |
mintsauce_lunch | do object id's have to be unique site wide, or folder wide? | 18:18 |
mintsauce_lunch | oops | 18:18 |
*** mintsauce_lunch is now known as mintsauce | 18:18 | |
*** alecm has joined #zope3-dev | 18:19 | |
mintsauce | long lunch :P | 18:19 |
*** timte has quit IRC | 18:23 | |
*** alecghica has quit IRC | 18:23 | |
*** timte has joined #zope3-dev | 18:26 | |
*** mintsauce has quit IRC | 18:26 | |
*** b52laptop has joined #zope3-dev | 18:28 | |
*** b52laptop has quit IRC | 18:30 | |
*** sunew has joined #zope3-dev | 18:34 | |
*** seletz has joined #zope3-dev | 18:40 | |
*** thruflo has joined #zope3-dev | 18:44 | |
*** thruflo has left #zope3-dev | 18:45 | |
*** fcorrea_ has quit IRC | 18:47 | |
*** norro has joined #zope3-dev | 18:49 | |
*** srichter has quit IRC | 18:56 | |
*** fcorrea has joined #zope3-dev | 18:58 | |
*** sunew has quit IRC | 19:02 | |
*** seletz has quit IRC | 19:12 | |
*** ignas has quit IRC | 19:16 | |
*** ktenney is now known as ktenney_afk | 19:23 | |
*** singletoned_ has quit IRC | 19:31 | |
*** __mac__ has quit IRC | 19:32 | |
*** junkafarian has quit IRC | 19:32 | |
*** __mac__ has joined #zope3-dev | 19:33 | |
*** elro has quit IRC | 19:34 | |
*** srichter has joined #zope3-dev | 19:34 | |
*** elro has joined #zope3-dev | 19:35 | |
*** alga has joined #zope3-dev | 19:43 | |
*** elro has quit IRC | 19:50 | |
*** sm is now known as sm-work | 19:50 | |
*** tarek has joined #zope3-dev | 19:54 | |
*** brandon_rhodes has joined #zope3-dev | 19:55 | |
*** norro_ has joined #zope3-dev | 19:55 | |
*** tarek has quit IRC | 19:56 | |
*** srichter has quit IRC | 20:04 | |
*** srichter has joined #zope3-dev | 20:04 | |
*** norro_ has quit IRC | 20:05 | |
*** dbfrombrc has quit IRC | 20:07 | |
*** norro has quit IRC | 20:09 | |
*** whit has joined #zope3-dev | 20:15 | |
*** ChrisW1 has joined #zope3-dev | 20:25 | |
*** ChrisW has quit IRC | 20:25 | |
*** srichter has quit IRC | 20:26 | |
*** srichter has joined #zope3-dev | 20:28 | |
*** ChrisW1 has quit IRC | 20:29 | |
*** ChrisW has joined #zope3-dev | 20:29 | |
philiKON | ccomb: about the 'size' argument | 20:29 |
philiKON | ccomb: have you actually updated twisted? | 20:30 |
philiKON | i don't see wehre zope.publisher now depends on a more modern twisted | 20:30 |
* ccomb is looking for this dependency somewhere | 20:31 | |
philiKON | i guess zope.publisher doesn't depend on twisted | 20:31 |
philiKON | it's independent | 20:31 |
philiKON | however | 20:31 |
ccomb | zope.app.twisted does? | 20:32 |
philiKON | zope.app.twisted actually contains the twisted code | 20:32 |
philiKON | i don't think zope.publisher should rely on zope.app.twisted, that would be silly | 20:32 |
philiKON | but we should make a new zope.app.twisted with the more modern twisted version | 20:32 |
ccomb | twisted is embedded in zope.app.twisted ?? | 20:33 |
philiKON | it's part of the zope.app.twisted egg | 20:33 |
philiKON | the twisted package is part of the zope.app.twisted egg | 20:33 |
philiKON | as is the zope.app.twisted package | 20:34 |
ccomb | mmh | 20:35 |
ccomb | I should probably revert for the 3.4 branch | 20:35 |
philiKON | maybe | 20:35 |
philiKON | certainly this can't be part of the same known-good set as the old twisted | 20:36 |
*** baijum has joined #zope3-dev | 20:39 | |
*** isembard has joined #zope3-dev | 20:50 | |
isembard | Hi folks im new to the CA world and have a specific question about design patterns | 20:51 |
ccomb | philiKON: It looks like it's supported in all 3.4.x versions of zope.app.twisted | 20:53 |
ccomb | the svn:external points to twisted 2.5.0 | 20:54 |
ccomb | In version 2.2.0 it was not supported http://twistedmatrix.com/trac/browser/tags/release-2.2.0/twisted/web2/wsgi.py | 20:54 |
ccomb | The actual version for zope.app.twisted is http://twistedmatrix.com/trac/browser/tags/releases/twisted-core-2.5.0/twisted/web2/wsgi.py | 20:57 |
isembard | I have a number of reports that I am currently displaying via viewlets, I use formlib so use an IViewlet adapter, but I want to add some functionality that allows me to export as CSV some values of the ZODB. do I provide a CSV adapter to IViewlet, or should I subclass IViewlet to IReportViewlet and the provide the functionality to that??? Whats best practice? | 20:57 |
ChrisW | philiKON: ping? | 20:58 |
*** whitmo has joined #zope3-dev | 21:00 | |
philiKON | ccomb: ok looks good then | 21:00 |
philiKON | ChrisW: pong | 21:00 |
*** lucielejard is now known as lu|sprintgodess | 21:00 | |
*** flox has joined #zope3-dev | 21:04 | |
ChrisW | philiKON: so, functional testing, your chapter didn't go into enough detail ;-) | 21:04 |
*** whit has quit IRC | 21:04 | |
philiKON | i bet it didn't indeed | 21:05 |
ChrisW | so why'd you tell me to read it? :-P | 21:05 |
philiKON | coz it's a good start nonetheless, i hope | 21:05 |
ChrisW | yeah, but I new 90% of that stuff already ;-) | 21:06 |
philiKON | how should i know that :) | 21:06 |
ChrisW | 'cos you know I've been working on/with Zope 3 since before you wrote the book ;-) | 21:06 |
ChrisW | anyway, if I want to use zope.testbrowser.testing.Browser, what's the minimum I need to do to set up a couple of objects to traverse and a staple on a view? | 21:07 |
philiKON | phew, i don't know that from memory | 21:07 |
ChrisW | I'll probably od the view stapling with a call to xmlconfig, sicne I need to show it in my doctest | 21:07 |
*** mrevoir has quit IRC | 21:07 | |
philiKON | xmlconfig? just use a layer | 21:07 |
philiKON | ZCMLLayer to be precise | 21:07 |
ChrisW | the book kinda covers a belt'n'braces approach | 21:07 |
philiKON | (I also told you to tak ea look at what zopeproject generates) | 21:07 |
ChrisW | philiKON: nah, I want the xml config to actually form part of the doctest | 21:07 |
philiKON | uh huh | 21:08 |
ChrisW | eg: "you need to configure an ISomething utility, this can be done using the following zcml:" | 21:08 |
philiKON | well to be able to run the pbulsihing machienry, traversal , etc. you 're going to need a bucnh of stuff | 21:08 |
philiKON | most of what ozpe.app.zcmlfiles includes | 21:08 |
philiKON | so best is you look there | 21:08 |
philiKON | both meta and configure | 21:09 |
ChrisW | waagh | 21:09 |
ChrisW | I wonder how I can just simulate a post the view class by hand | 21:09 |
ChrisW | ? | 21:09 |
philiKON | sure you can | 21:09 |
ChrisW | unfortunately, it actually needs to process the body of a POST, how would I do that? | 21:10 |
philiKON | make a TestRequest | 21:10 |
ChrisW | ooo | 21:10 |
philiKON | TestRequest | 21:10 |
ChrisW | where does TestRequest live? | 21:10 |
philiKON | grep | 21:10 |
*** isembard has left #zope3-dev | 21:12 | |
ChrisW | yeah thanks, greo, that well known windows utility :-( | 21:12 |
philiKON | it's not my fault you don't have the proper tools :) | 21:12 |
ChrisW | also bear in mind that with the advent of buildout, I no longer have a convenient entire zope 3 source tree lying around ;-) | 21:12 |
philiKON | there's cygwin | 21:12 |
philiKON | you can still grep through your eggs | 21:13 |
ChrisW | and what if it's in an egg I don't have? ;-) | 21:13 |
philiKON | then it's not part of zope is it | 21:13 |
ChrisW | huh? | 21:13 |
*** MrTopf has quit IRC | 21:13 | |
ChrisW | I'm only using minimal parts of zope 3 | 21:13 |
philiKON | sorry, don't have time to discuss this in length | 21:14 |
philiKON | i will just refuse to grep for you | 21:14 |
*** sunew has joined #zope3-dev | 21:14 | |
ChrisW | currently z.interface, z.component,z.configuration and z.publisher... | 21:14 |
*** dbfrombrc has joined #zope3-dev | 21:14 | |
ChrisW | sheesh, sicne when did you get so fucking grumpy.. | 21:14 |
ChrisW | google appears to be helping... | 21:14 |
philiKON | i'm not grumpy, i'm just short on time | 21:15 |
philiKON | and you're asking me questions w/o appearing to invest any time yourself | 21:15 |
philiKON | you couldn't have googled five minutes ago? | 21:15 |
philiKON | instead of asking "where does it live?" | 21:15 |
ChrisW | well, you're making an incorrect assumption on at least two counts | 21:15 |
ChrisW | I googles the same time as I asked | 21:15 |
philiKON | good | 21:16 |
ChrisW | google is helping a little, but there are a lot of TestRequests all over the place | 21:16 |
ChrisW | I suspect this would also be a problem with grep, although I don't have a handy grep expression for finding a line if a load for eggs | 21:16 |
philiKON | googling for "zope api testrequest" produces quite some correct hits | 21:17 |
philiKON | they all point to the right thing | 21:17 |
ChrisW | right, that key "api" bit which I had no idea idea i had to magically add ;-) | 21:17 |
*** maurits has quit IRC | 21:17 | |
philiKON | well, i was hoping it would point me to a page on http://apidoc.zope.org | 21:18 |
ChrisW | z3c.form is a bit annoying in that it's the top hit but is the wrong hit... | 21:18 |
philiKON | which is why i added it | 21:18 |
ChrisW | I bet apidoc has some kinda spider block on it | 21:18 |
philiKON | hrm | 21:18 |
ChrisW | and bear in mind I didn't even know that site existed ;-) | 21:18 |
ChrisW | (it's not particularly well advertised, if at all) | 21:18 |
ChrisW | hmm, is pypi down? | 21:19 |
*** kursor has quit IRC | 21:19 | |
philiKON | hmm, it appears to be indeed | 21:19 |
ChrisW | joy | 21:19 |
ChrisW | from zope.publisher.browser import TestRequest ? | 21:20 |
philiKON | i guess. that's what google told me too :) | 21:20 |
philiKON | looks good | 21:20 |
philiKON | btw, there's always index = http://download.zope.org/simple | 21:20 |
ChrisW | hmm, would be lovely if there were any docs for TestRequest | 21:21 |
philiKON | help(TestRequest) works for me | 21:21 |
*** dbfrombrc has quit IRC | 21:22 | |
ChrisW | well for me it doesn't... | 21:23 |
ChrisW | "Browser request with a constructor convenient for testing" | 21:23 |
ChrisW | wow. that's helpful ;-) | 21:23 |
* ChrisW was hoping for some narrative docs somewhere... | 21:23 | |
philiKON | __init__(self, body_instream=None, environ=None, form=None, skin=None, **kw) | 21:23 |
philiKON | what narrative docs do you need? | 21:24 |
philiKON | i thought you wanted to test your view manually? | 21:24 |
ChrisW | well, would be nice to know what those parameters actually meant ;-) | 21:24 |
philiKON | so you just make one of those test request objects, stub out a POST and pass the request to the view | 21:24 |
philiKON | body_instream and environ are pretty clear i think | 21:24 |
ChrisW | would be great to see some examples, in my case especially simulating a POST where the data in in the body... | 21:24 |
philiKON | form is probalby what ends up as request.form | 21:24 |
philiKON | ChrisW: just pass in a HTTP POST as a StringIO in body_instream ?!? | 21:25 |
ChrisW | body_instream and environ are not :-( | 21:25 |
philiKON | they're pretty much WSGIesque | 21:25 |
philiKON | or even CGIesque | 21:25 |
ChrisW | whatever that means... | 21:25 |
*** baijum has left #zope3-dev | 21:26 | |
ChrisW | anyway, I'll likely figure out TestRequest after a few more years of suffering, now how would I simulate what would, in Zope 2 land, be sometestobj.restrictedTraverse('child/@@view')? | 21:26 |
ChrisW | (to similuate the url traversal part of the publication process, so I can demonstrate tha tthe view-stpaling zcml has worked) | 21:27 |
philiKON | there isn't anything like restrictedTraverse | 21:28 |
ChrisW | Hurm, I wonder where the traversal code in zope.publisher is? | 21:29 |
philiKON | it isn't really | 21:29 |
philiKON | the publication implements traversal | 21:30 |
*** dbfrombrc has joined #zope3-dev | 21:30 | |
ChrisW | hurm... well, let me come at this from a totally different angle... your book covers integration testing from the point of view of having a zope 3 instance... what do people like me do when we're starting from a buildout for hte package we're developing? | 21:33 |
ChrisW | (you persuaded me and I now finally like the "svn co, python bootstrap.py, bin/buildout, bin/test" dance ;-) ) | 21:34 |
philiKON | you mean for integration teesting? | 21:34 |
ChrisW | indeed | 21:36 |
philiKON | ok | 21:36 |
philiKON | well | 21:36 |
ChrisW | if, as in my packages case, it needs some views and post backs to those views to work properly | 21:36 |
philiKON | right | 21:36 |
philiKON | i would write an ftesting.zcml | 21:36 |
philiKON | that would load up as much config as necessary | 21:36 |
philiKON | for all of this work | 21:36 |
*** junkafarian has joined #zope3-dev | 21:36 | |
philiKON | then i would make a layer out of that (cf zopeproject) | 21:36 |
philiKON | write a normal test and place it on that layer | 21:37 |
philiKON | by saying suite.layer = TheLayer | 21:37 |
philiKON | so the secret sauce is in ftesting.zcml, mostly | 21:37 |
ChrisW | how does ftesting.zcl get processed though? | 21:37 |
philiKON | that's the layer's job | 21:37 |
ChrisW | you say zopep[roject has an example of this? | 21:38 |
philiKON | yes | 21:38 |
ChrisW | (to the point where I could use tesrbrowser... | 21:38 |
philiKON | yes | 21:38 |
ChrisW | and doesn't require a full zope instance to run? ;-) | 21:38 |
philiKON | though admittedly zopeproject doens't assume your'e minimalistic about your requirements | 21:38 |
philiKON | but i trust you can narrow down your ftesting.zcml enough | 21:39 |
ChrisW | yeah, I suspect it';ll be almost empty | 21:39 |
philiKON | no, the layer only needs that one ftesting.zcml | 21:39 |
ChrisW | I literally need to have one demo object to hang views off | 21:39 |
*** __mac__ has quit IRC | 21:40 | |
ChrisW | which svn does zopeproject live in? | 21:41 |
philiKON | svn.zope.org -> Sandbox/philikon | 21:42 |
ChrisW | ah | 21:42 |
ChrisW | well hidden ;-) | 21:42 |
philiKON | note that i'm not talking about what zopeproject uses but what it generates (it's a sandbox generation tool) | 21:42 |
ChrisW | http://svn.zope.org/Sandbox/philikon/zopeproject/trunk/zopeproject/zope_app/src/%2Bpackage%2B/testing.py?rev=80386&view=auto ? | 21:43 |
philiKON | y | 21:43 |
ChrisW | bleh... zope.app.testing | 21:44 |
ChrisW | hurm, what egg is that in? | 21:44 |
ChrisW | zope.app.testing per chance? | 21:44 |
philiKON | yes :( | 21:44 |
ChrisW | and does it have dependencies on 10 million other eggs? | 21:45 |
philiKON | prolly :( | 21:45 |
ChrisW | waaagh | 21:45 |
philiKON | i know, "modular and flexible my ***" | 21:45 |
ChrisW | hmm, I wonder if it ships with zope 2? | 21:45 |
philiKON | hmmm | 21:45 |
philiKON | that i dont' know | 21:45 |
ChrisW | yep, it does | 21:46 |
ChrisW | wow, zope really is a fucking mess when you step back and look at it as a whole ;-) | 21:46 |
ChrisW | I wonder if there's any other framework in existence where most users of the framework simultaneously use two major versions at the same time? ;-) | 21:46 |
ChrisW | yay! pypi lives again ;-) | 21:47 |
* ChrisW puts zope.app.testing in the eggs for the testrunner recipe and watches with glee ;-) | 21:49 | |
ChrisW | yay! it's raining eggs! hallelujah it's raining eggs! (apologies to the weather girls) | 21:51 |
ChrisW | oh WOW! I get ZODB! how cooool! :-( | 21:52 |
*** junkafarian has quit IRC | 21:53 | |
philiKON | i suppose you could just not use zcmllalyer ;) | 21:53 |
ChrisW | hey, and pagetemplates too, awesome, I need them ;-) | 21:53 |
ChrisW | zcmllayer comes from zope.app.testing.functional, hence the rain of eggs | 21:53 |
ChrisW | unless you're telling me there's a much simpler zcmllayer lurking somewhere? | 21:54 |
philiKON | unfortunately not | 21:55 |
ChrisW | hahaha - fuck, I even get docutils and RestrictedPython | 21:55 |
ChrisW | wow, talk about the kitchen sink... | 21:55 |
*** junkafarian has joined #zope3-dev | 21:56 | |
*** junkafarian has quit IRC | 21:56 | |
*** vipod has joined #zope3-dev | 22:00 | |
*** dbfrombrc_ has joined #zope3-dev | 22:04 | |
*** philiKON has quit IRC | 22:16 | |
*** dbfrombrc has quit IRC | 22:21 | |
*** agroszer has quit IRC | 22:25 | |
*** MJ has quit IRC | 22:35 | |
*** sp0cksbeard has joined #zope3-dev | 22:35 | |
whitmo | is there any particular reason that pdbs don't seem to work in generations? | 22:41 |
*** ChrisW has left #zope3-dev | 22:41 | |
* whitmo is having a sanity losing moment | 22:41 | |
* whitmo magically realizes the issue | 22:42 | |
*** quodt has joined #zope3-dev | 22:48 | |
*** alecm has quit IRC | 22:54 | |
*** quodt has quit IRC | 22:56 | |
*** rcrafton has joined #zope3-dev | 23:03 | |
*** sunew has quit IRC | 23:09 | |
*** dbfrombrc_ has quit IRC | 23:10 | |
*** tarek has joined #zope3-dev | 23:18 | |
*** J1m has quit IRC | 23:18 | |
*** whit has joined #zope3-dev | 23:50 | |
*** tarek has quit IRC | 23:52 | |
*** rcrafton has quit IRC | 23:56 | |
*** dunny has joined #zope3-dev | 23:58 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!