| *** gary_poster has quit IRC | 00:18 | |
| *** redir has quit IRC | 00:18 | |
| *** junkafarian has joined #zope3-dev | 00:42 | |
| *** drudi has quit IRC | 00:46 | |
| *** hathawsh has joined #zope3-dev | 00:57 | |
| *** benji has quit IRC | 01:05 | |
| *** lurkymclurkleton has quit IRC | 01:13 | |
| *** J1m has quit IRC | 01:17 | |
| *** hathawsh has quit IRC | 01:21 | |
| *** fcorrea has quit IRC | 01:22 | |
| *** tarek has joined #zope3-dev | 01:58 | |
| *** allisterb_ has joined #zope3-dev | 02:19 | |
| *** allisterb__ has quit IRC | 02:20 | |
| *** yotaff has quit IRC | 02:20 | |
| *** tarek has quit IRC | 02:21 | |
| *** tarek has joined #zope3-dev | 02:23 | |
| *** allisterb__ has joined #zope3-dev | 02:26 | |
| *** nathany has quit IRC | 02:36 | |
| *** malthe has quit IRC | 02:37 | |
| *** allisterb_ has quit IRC | 02:44 | |
| *** jfkw has quit IRC | 02:45 | |
| *** jbglenn has joined #zope3-dev | 02:48 | |
| *** tarek has quit IRC | 02:59 | |
| *** aaronv has quit IRC | 02:59 | |
| *** hathawsh has joined #zope3-dev | 03:11 | |
| *** junkafarian has quit IRC | 03:13 | |
| *** hathawsh has quit IRC | 03:36 | |
| *** aaronv has joined #zope3-dev | 03:43 | |
| *** pcardune_ has joined #zope3-dev | 03:55 | |
| *** aaronv has quit IRC | 03:57 | |
| *** pcardune_ has quit IRC | 04:11 | |
| *** alecm has quit IRC | 04:11 | |
| *** pcardune has quit IRC | 04:12 | |
| *** alecm has joined #zope3-dev | 04:38 | |
| *** alga has quit IRC | 04:46 | |
| *** aaronv has joined #zope3-dev | 04:50 | |
| *** alecm has quit IRC | 05:13 | |
| *** aaronv has quit IRC | 05:23 | |
| *** davisagli has left #zope3-dev | 05:47 | |
| *** pcardune has joined #zope3-dev | 05:56 | |
| brandon_rhodes | If I have a basic browser:page and want to render it inside of a unit test, how much of Zope do I have to start up and get registered to have it working? | 06:02 |
|---|---|---|
| brandon_rhodes | Is there a nice routine somewhere that sets everything up to make views callable without my having to discover all of the ZCML files to zcml.load_config()? | 06:03 |
| mcdonc | brandon_rhodes: i'm sure somebody knows the 2-sentence answer to this that makes it easy, but short of that i think you might need to look at what the browser:page zcml directive does and make the same mutations to the ZCA registry in the test setup | 06:27 |
| brandon_rhodes | mcdonc: well, I'm actually just trying to read in the ZCML. And am now sorting through the various errors that causes because of other parts of the system not being up and working. ;-) | 06:28 |
| brandon_rhodes | Next up: zope2.View permission unknown :-) | 06:28 |
| mcdonc | meh | 06:29 |
| *** sawdog has quit IRC | 06:30 | |
| brandon_rhodes | Oh. Needed configure.zcml of Products.Five rather than its meta. silly me. | 06:31 |
| mcdonc | i realize it's useless to you, but in the frameworks we build we actually provide "testing" modules that handle very common registrations for you | 06:32 |
| mcdonc | i think this would be a good pattern for people to take up | 06:32 |
| mcdonc | e.g. if you write a new zcml directive, also create a testing function that does its job and document it | 06:33 |
| mcdonc | reading zcml files to do a unit test seems extreme (but necessary, i understand) | 06:33 |
| brandon_rhodes | mcdonc: yes, that's what I'm used to from my Grok days | 06:34 |
| mcdonc | zope2 project eh | 06:34 |
| brandon_rhodes | But with this help I'm trying to provide with "GetPaid" I'm kind of in a wilderness | 06:34 |
| brandon_rhodes | I don't want to start up entire Plone instances just to ask "if the object has amount=10 then does the view spit out <amount>10</amount>?" :-) | 06:35 |
| *** jbglenn has quit IRC | 06:35 | |
| mcdonc | that appears to be what the plone folks do | 06:39 |
| brandon_rhodes | mcdonc: I am not most Plone people :-) | 06:41 |
| mcdonc | i am glad | 06:42 |
| *** pcardune has quit IRC | 06:49 | |
| *** sben has joined #zope3-dev | 07:02 | |
| brandon_rhodes | mcdonc: it's starting to get annoying how often I'm seeing my own name asking questions as I do a Google search for how to render a dratted zope2 browser:page from code :-) | 07:20 |
| mcdonc | there should be some name for this phenomena | 07:21 |
| brandon_rhodes | http://plone.org/support/forums/general#nabble-td323745 | 07:22 |
| mcdonc | google canyon-echo | 07:22 |
| brandon_rhodes | heh | 07:22 |
| brandon_rhodes | Ah, the last time it happened, They told me to do: view = view.__of__(an existing context) | 07:22 |
| mcdonc | brandon_rhodes: i hope you're being paid for this | 07:23 |
| mcdonc | this stuff is no fun | 07:23 |
| brandon_rhodes | Too bad Zope people almost never write stuff that's normal Python that you can Just Call that Just Works. :-) I was reading the bfg docs wistfully today :-) | 07:24 |
| mcdonc | i was sort of thinking about this today | 07:24 |
| mcdonc | i came to the conclusion that a) code lasts forever and b) when you make a framework, you have exactly one chance to get it right and c) if you get it wrong, see "a)" | 07:24 |
| mcdonc | the logical conclusion of course is "never make a framework" | 07:25 |
| brandon_rhodes | heh | 07:26 |
| brandon_rhodes | The problem is that if there are no frameworks then each project grows its own | 07:26 |
| mcdonc | well, at least its your own stank then | 07:26 |
| brandon_rhodes | Yeah, but each of them works differently, and each project you go back to maintain is a one-off and you have to remember how you did stuff there. | 07:27 |
| mcdonc | this is true | 07:28 |
| mcdonc | often the "old me" is harder to understand than anything else | 07:28 |
| *** davisagli has joined #zope3-dev | 07:33 | |
| *** pcardune has joined #zope3-dev | 07:47 | |
| *** jpcw has joined #zope3-dev | 09:16 | |
| *** redir has joined #zope3-dev | 09:19 | |
| *** jbglenn has joined #zope3-dev | 09:47 | |
| *** jbglenn has quit IRC | 09:48 | |
| *** tisto has joined #zope3-dev | 09:48 | |
| *** alecm has joined #zope3-dev | 09:58 | |
| *** zagy has quit IRC | 10:04 | |
| *** davisagli has quit IRC | 10:33 | |
| *** jukart has joined #zope3-dev | 10:38 | |
| * Theuni1 pokes mcdonc | 11:01 | |
| Theuni1 | oh | 11:02 |
| * Theuni1 just notices that that conversion was 4 hours ago ... | 11:02 | |
| *** mgedmin has joined #zope3-dev | 11:13 | |
| *** tarek has joined #zope3-dev | 11:17 | |
| *** Theuni1 has quit IRC | 11:28 | |
| *** Theuni2 has joined #zope3-dev | 11:28 | |
| *** malthe has joined #zope3-dev | 11:41 | |
| *** markusleist has joined #zope3-dev | 12:02 | |
| *** markusleist has quit IRC | 12:05 | |
| *** markusleist has joined #zope3-dev | 12:06 | |
| *** pcardune has quit IRC | 12:23 | |
| *** mgedmin has quit IRC | 12:30 | |
| *** malthe is now known as malthe|away | 12:35 | |
| *** mgedmin has joined #zope3-dev | 12:37 | |
| *** junkafarian has joined #zope3-dev | 12:38 | |
| *** romanofski has joined #zope3-dev | 12:46 | |
| *** alga has joined #zope3-dev | 12:57 | |
| *** junkafarian has quit IRC | 12:58 | |
| *** zagy has joined #zope3-dev | 13:15 | |
| *** JaRoel|4D has quit IRC | 13:18 | |
| *** mgedmin has quit IRC | 13:26 | |
| *** mgedmin has joined #zope3-dev | 13:52 | |
| *** jukart has quit IRC | 13:53 | |
| *** matthal has quit IRC | 14:03 | |
| *** zagy has quit IRC | 14:17 | |
| *** tisto has quit IRC | 14:18 | |
| *** jukart has joined #zope3-dev | 14:22 | |
| *** JaRoel|4D has joined #zope3-dev | 14:28 | |
| *** aaronv has joined #zope3-dev | 14:31 | |
| *** djinni has quit IRC | 14:40 | |
| *** djinni has joined #zope3-dev | 14:40 | |
| *** jukart has quit IRC | 14:45 | |
| *** markusleist has quit IRC | 14:49 | |
| *** zagy has joined #zope3-dev | 14:50 | |
| *** mcdonc has quit IRC | 14:58 | |
| *** zagy has quit IRC | 15:23 | |
| *** jukart has joined #zope3-dev | 15:41 | |
| *** jukart has quit IRC | 15:42 | |
| *** dunny has quit IRC | 16:01 | |
| *** allisterb has joined #zope3-dev | 16:14 | |
| *** tisto has joined #zope3-dev | 16:18 | |
| *** kiorky has quit IRC | 16:29 | |
| *** kiorky has joined #zope3-dev | 16:30 | |
| *** allisterb__ has quit IRC | 16:30 | |
| *** tarek has quit IRC | 16:34 | |
| *** chaoflow has quit IRC | 16:37 | |
| *** chaoflow has joined #zope3-dev | 16:37 | |
| *** yota has joined #zope3-dev | 16:46 | |
| *** Theuni2 has left #zope3-dev | 16:59 | |
| *** romanofski has quit IRC | 17:08 | |
| *** jukart has joined #zope3-dev | 17:28 | |
| *** jukart has quit IRC | 17:29 | |
| *** zagy has joined #zope3-dev | 17:35 | |
| *** zagy has quit IRC | 17:36 | |
| *** jukart has joined #zope3-dev | 17:57 | |
| *** menesis has joined #zope3-dev | 18:19 | |
| *** mcdonc has joined #zope3-dev | 19:04 | |
| *** kaeru has quit IRC | 19:05 | |
| *** kaeru has joined #zope3-dev | 19:06 | |
| *** tarek has joined #zope3-dev | 19:12 | |
| *** pcardune has joined #zope3-dev | 19:17 | |
| *** jukart has quit IRC | 19:22 | |
| *** jukart has joined #zope3-dev | 19:23 | |
| *** jukart has quit IRC | 19:26 | |
| *** alecm has quit IRC | 19:42 | |
| *** kaeru has quit IRC | 19:50 | |
| *** kaeru has joined #zope3-dev | 19:52 | |
| *** pcardune has quit IRC | 19:58 | |
| *** J1m has joined #zope3-dev | 20:05 | |
| *** Theuni1 has joined #zope3-dev | 20:33 | |
| *** pcardune has joined #zope3-dev | 20:37 | |
| *** Theuni1 has quit IRC | 20:40 | |
| *** tisto has quit IRC | 21:02 | |
| *** matthal has joined #zope3-dev | 21:04 | |
| *** jukart has joined #zope3-dev | 21:15 | |
| *** alga has quit IRC | 21:23 | |
| *** alecm has joined #zope3-dev | 21:36 | |
| *** pcardune has quit IRC | 21:37 | |
| *** davisagli has joined #zope3-dev | 21:57 | |
| *** pcardune has joined #zope3-dev | 22:01 | |
| *** aaronv has quit IRC | 22:08 | |
| *** jukart has quit IRC | 22:16 | |
| *** davisagli has quit IRC | 22:19 | |
| *** brandon_rhodes has quit IRC | 22:26 | |
| *** jukart has joined #zope3-dev | 22:30 | |
| *** alecm has quit IRC | 22:41 | |
| *** davisagli has joined #zope3-dev | 22:49 | |
| *** Theuni1 has joined #zope3-dev | 22:51 | |
| *** mgedmin has quit IRC | 22:53 | |
| *** mgedmin has joined #zope3-dev | 22:55 | |
| *** alecm has joined #zope3-dev | 23:04 | |
| *** jpcw has quit IRC | 23:33 | |
| *** jukart has quit IRC | 23:36 | |
| *** tarek_ has joined #zope3-dev | 23:49 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!