At a casual glance, the code looks OK (except "super(Aquisicao, self)"<br>
should be calling "MyApp" instead?<br>
<br>
Indeed. I've just changed the names to english, but i forgot to put the super(MyApp, self)<br><br>"(..)gotcha that might be tripping you up is that Local utilities are<br>
only instantiated when an instance of MyApp is created. If you've<br>
already made an instance of MyApp for testing, and then you add the<br>
grok.local_utility code later, you'll need to create a new app from<br>
the Grok Admin screen (or if you have a production app with lots of<br>
data (...)<br><br>I know this, but the tests are failing. And i'm running them with the functional layer. Every time i run the tests, a new instance is created(obviously), so, the local_utilities should be accessible.<br>
<br>thanks!<br><br><br><div class="gmail_quote">2009/2/19 Kevin Teague <span dir="ltr"><<a href="mailto:kevin@bud.ca">kevin@bud.ca</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
At a casual glance, the code looks OK (except "super(Aquisicao, self)"<br>
should be calling "MyApp" instead?).<br>
<br>
One gotcha that might be tripping you up is that Local utilities are<br>
only instantiated when an instance of MyApp is created. If you've<br>
already made an instance of MyApp for testing, and then you add the<br>
grok.local_utility code later, you'll need to create a new app from<br>
the Grok Admin screen (or if you have a production app with lots of<br>
data, you can write a migration script to add the local utilities).<br>
<br>
_______________________________________________<br>
Grok-dev mailing list<br>
<a href="mailto:Grok-dev@zope.org">Grok-dev@zope.org</a><br>
<a href="http://mail.zope.org/mailman/listinfo/grok-dev" target="_blank">http://mail.zope.org/mailman/listinfo/grok-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Vanderson Mota dos Santos<br><br>