IRC log of #zope3-dev for Saturday, 2009-10-17

*** gary_poster has quit IRC00:18
*** redir has quit IRC00:18
*** junkafarian has joined #zope3-dev00:42
*** drudi has quit IRC00:46
*** hathawsh has joined #zope3-dev00:57
*** benji has quit IRC01:05
*** lurkymclurkleton has quit IRC01:13
*** J1m has quit IRC01:17
*** hathawsh has quit IRC01:21
*** fcorrea has quit IRC01:22
*** tarek has joined #zope3-dev01:58
*** allisterb_ has joined #zope3-dev02:19
*** allisterb__ has quit IRC02:20
*** yotaff has quit IRC02:20
*** tarek has quit IRC02:21
*** tarek has joined #zope3-dev02:23
*** allisterb__ has joined #zope3-dev02:26
*** nathany has quit IRC02:36
*** malthe has quit IRC02:37
*** allisterb_ has quit IRC02:44
*** jfkw has quit IRC02:45
*** jbglenn has joined #zope3-dev02:48
*** tarek has quit IRC02:59
*** aaronv has quit IRC02:59
*** hathawsh has joined #zope3-dev03:11
*** junkafarian has quit IRC03:13
*** hathawsh has quit IRC03:36
*** aaronv has joined #zope3-dev03:43
*** pcardune_ has joined #zope3-dev03:55
*** aaronv has quit IRC03:57
*** pcardune_ has quit IRC04:11
*** alecm has quit IRC04:11
*** pcardune has quit IRC04:12
*** alecm has joined #zope3-dev04:38
*** alga has quit IRC04:46
*** aaronv has joined #zope3-dev04:50
*** alecm has quit IRC05:13
*** aaronv has quit IRC05:23
*** davisagli has left #zope3-dev05:47
*** pcardune has joined #zope3-dev05:56
brandon_rhodesIf 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_rhodesIs 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
mcdoncbrandon_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 setup06:27
brandon_rhodesmcdonc: 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_rhodesNext up: zope2.View permission unknown :-)06:28
mcdoncmeh06:29
*** sawdog has quit IRC06:30
brandon_rhodesOh.  Needed configure.zcml of Products.Five rather than its meta. silly me.06:31
mcdonci realize it's useless to you, but in the frameworks we build we actually provide "testing" modules that handle very common registrations for you06:32
mcdonci think this would be a good pattern for people to take up06:32
mcdonce.g. if you write a new zcml directive, also create a testing function that does its job and document it06:33
mcdoncreading zcml files to do a unit test seems extreme (but necessary, i understand)06:33
brandon_rhodesmcdonc: yes, that's what I'm used to from my Grok days06:34
mcdonczope2 project eh06:34
brandon_rhodesBut with this help I'm trying to provide with "GetPaid" I'm kind of in a wilderness06:34
brandon_rhodesI 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 IRC06:35
mcdoncthat appears to be what the plone folks do06:39
brandon_rhodesmcdonc: I am not most Plone people :-)06:41
mcdonci am glad06:42
*** pcardune has quit IRC06:49
*** sben has joined #zope3-dev07:02
brandon_rhodesmcdonc: 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
mcdoncthere should be some name for this phenomena07:21
brandon_rhodeshttp://plone.org/support/forums/general#nabble-td32374507:22
mcdoncgoogle canyon-echo07:22
brandon_rhodesheh07:22
brandon_rhodesAh, the last time it happened, They told me to do: view = view.__of__(an existing context)07:22
mcdoncbrandon_rhodes: i hope you're being paid for this07:23
mcdoncthis stuff is no fun07:23
brandon_rhodesToo 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
mcdonci was sort of thinking about this today07:24
mcdonci 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
mcdoncthe logical conclusion of course is "never make a framework"07:25
brandon_rhodesheh07:26
brandon_rhodesThe problem is that if there are no frameworks then each project grows its own07:26
mcdoncwell, at least its your own stank then07:26
brandon_rhodesYeah, 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
mcdoncthis is true07:28
mcdoncoften the "old me" is harder to understand than anything else07:28
*** davisagli has joined #zope3-dev07:33
*** pcardune has joined #zope3-dev07:47
*** jpcw has joined #zope3-dev09:16
*** redir has joined #zope3-dev09:19
*** jbglenn has joined #zope3-dev09:47
*** jbglenn has quit IRC09:48
*** tisto has joined #zope3-dev09:48
*** alecm has joined #zope3-dev09:58
*** zagy has quit IRC10:04
*** davisagli has quit IRC10:33
*** jukart has joined #zope3-dev10:38
* Theuni1 pokes mcdonc11:01
Theuni1oh11:02
* Theuni1 just notices that that conversion was 4 hours ago ...11:02
*** mgedmin has joined #zope3-dev11:13
*** tarek has joined #zope3-dev11:17
*** Theuni1 has quit IRC11:28
*** Theuni2 has joined #zope3-dev11:28
*** malthe has joined #zope3-dev11:41
*** markusleist has joined #zope3-dev12:02
*** markusleist has quit IRC12:05
*** markusleist has joined #zope3-dev12:06
*** pcardune has quit IRC12:23
*** mgedmin has quit IRC12:30
*** malthe is now known as malthe|away12:35
*** mgedmin has joined #zope3-dev12:37
*** junkafarian has joined #zope3-dev12:38
*** romanofski has joined #zope3-dev12:46
*** alga has joined #zope3-dev12:57
*** junkafarian has quit IRC12:58
*** zagy has joined #zope3-dev13:15
*** JaRoel|4D has quit IRC13:18
*** mgedmin has quit IRC13:26
*** mgedmin has joined #zope3-dev13:52
*** jukart has quit IRC13:53
*** matthal has quit IRC14:03
*** zagy has quit IRC14:17
*** tisto has quit IRC14:18
*** jukart has joined #zope3-dev14:22
*** JaRoel|4D has joined #zope3-dev14:28
*** aaronv has joined #zope3-dev14:31
*** djinni has quit IRC14:40
*** djinni has joined #zope3-dev14:40
*** jukart has quit IRC14:45
*** markusleist has quit IRC14:49
*** zagy has joined #zope3-dev14:50
*** mcdonc has quit IRC14:58
*** zagy has quit IRC15:23
*** jukart has joined #zope3-dev15:41
*** jukart has quit IRC15:42
*** dunny has quit IRC16:01
*** allisterb has joined #zope3-dev16:14
*** tisto has joined #zope3-dev16:18
*** kiorky has quit IRC16:29
*** kiorky has joined #zope3-dev16:30
*** allisterb__ has quit IRC16:30
*** tarek has quit IRC16:34
*** chaoflow has quit IRC16:37
*** chaoflow has joined #zope3-dev16:37
*** yota has joined #zope3-dev16:46
*** Theuni2 has left #zope3-dev16:59
*** romanofski has quit IRC17:08
*** jukart has joined #zope3-dev17:28
*** jukart has quit IRC17:29
*** zagy has joined #zope3-dev17:35
*** zagy has quit IRC17:36
*** jukart has joined #zope3-dev17:57
*** menesis has joined #zope3-dev18:19
*** mcdonc has joined #zope3-dev19:04
*** kaeru has quit IRC19:05
*** kaeru has joined #zope3-dev19:06
*** tarek has joined #zope3-dev19:12
*** pcardune has joined #zope3-dev19:17
*** jukart has quit IRC19:22
*** jukart has joined #zope3-dev19:23
*** jukart has quit IRC19:26
*** alecm has quit IRC19:42
*** kaeru has quit IRC19:50
*** kaeru has joined #zope3-dev19:52
*** pcardune has quit IRC19:58
*** J1m has joined #zope3-dev20:05
*** Theuni1 has joined #zope3-dev20:33
*** pcardune has joined #zope3-dev20:37
*** Theuni1 has quit IRC20:40
*** tisto has quit IRC21:02
*** matthal has joined #zope3-dev21:04
*** jukart has joined #zope3-dev21:15
*** alga has quit IRC21:23
*** alecm has joined #zope3-dev21:36
*** pcardune has quit IRC21:37
*** davisagli has joined #zope3-dev21:57
*** pcardune has joined #zope3-dev22:01
*** aaronv has quit IRC22:08
*** jukart has quit IRC22:16
*** davisagli has quit IRC22:19
*** brandon_rhodes has quit IRC22:26
*** jukart has joined #zope3-dev22:30
*** alecm has quit IRC22:41
*** davisagli has joined #zope3-dev22:49
*** Theuni1 has joined #zope3-dev22:51
*** mgedmin has quit IRC22:53
*** mgedmin has joined #zope3-dev22:55
*** alecm has joined #zope3-dev23:04
*** jpcw has quit IRC23:33
*** jukart has quit IRC23:36
*** tarek_ has joined #zope3-dev23:49

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!