<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Awesome thanks! Weird how that one only showed up in clean buildouts.<br>
<br>
Jan-Wijbrand Kolman wrote:
<blockquote
cite="midc20968370704261404q3bc71931we8e1abf2aa64a5a5@mail.gmail.com"
type="cite">On 4/26/07, Jan-Wijbrand Kolman
<a class="moz-txt-link-rfc2396E" href="mailto:janwijbrand@gmail.com"><janwijbrand@gmail.com></a> wrote:
<br>
<blockquote type="cite">Martjin and I experience the same error now,
here on my machine. So,
<br>
you're not alone... Maybe, now that he can actually look at it, we can
<br>
find something.
<br>
</blockquote>
<br>
We got it!
<br>
<br>
Since we're on *my* machine we cannot commit to the Zope SVN
<br>
repository. So, here's a patch...
<br>
<br>
kind regards,
<br>
jw
<br>
<br>
<pre wrap="">
<hr size="4" width="90%">
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(<a class="moz-txt-link-rfc2396E" href="http://localhost/herd/manfred/another">"http://localhost/herd/manfred/another"</a>)
>>> print browser.contents
<a class="moz-txt-link-freetext" href="http://localhost/herd/manfred/another">http://localhost/herd/manfred/another</a>
-
+
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)
</pre>
</blockquote>
</body>
</html>