[Grok-dev] Re: Broken tests on trunk?
Kevin Smith
kevin at mcweekly.com
Thu Apr 26 17:19:06 EDT 2007
Awesome thanks! Weird how that one only showed up in clean buildouts.
Jan-Wijbrand Kolman wrote:
> On 4/26/07, Jan-Wijbrand Kolman <janwijbrand at gmail.com> wrote:
>> Martjin and I experience the same error now, here on my machine. So,
>> you're not alone... Maybe, now that he can actually look at it, we can
>> find something.
>
> We got it!
>
> Since we're on *my* machine we cannot commit to the Zope SVN
> repository. So, here's a patch...
>
> kind regards,
> jw
>
> ------------------------------------------------------------------------
>
> Index: src/grok/ftests/url/url_function.py
> ===================================================================
> --- src/grok/ftests/url/url_function.py (revision 74814)
> +++ src/grok/ftests/url/url_function.py (working copy)
> @@ -6,8 +6,8 @@
> >>> from grok import url
> >>> import grok
> >>> grok.grok('grok.ftests.url.url_function')
> -
> - >>> from grok.ftests.url.url import Herd, Mammoth
> +
> + >>> from grok.ftests.url.url_function import Herd, Mammoth
> >>> herd = Herd()
> >>> getRootFolder()['herd'] = herd
> >>> manfred = Mammoth()
> @@ -24,7 +24,7 @@
> >>> browser.open("http://localhost/herd/manfred/another")
> >>> print browser.contents
> http://localhost/herd/manfred/another
> -
> +
> We get the views manually so we can do a greater variety of url() calls:
>
> >>> from zope import component
> @@ -65,6 +65,7 @@
> True
> """
> import grok
> +from grok import url
>
> class Herd(grok.Container, grok.Model):
> pass
> @@ -77,7 +78,7 @@
> class Index(grok.View):
> def render(self):
> return url(self.request, self)
> -
> +
> class Another(grok.View):
> def render(self):
> return url(self.request, self)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20070426/dee03802/attachment.htm
More information about the Grok-dev
mailing list