I&#39;m a long-time Zope/Plone guy, but I&#39;m starting my first real project with Grok. I figured I&#39;d publicly document problems I&#39;ve had getting started; hopefully they can be fixed and avoided, and at least they&#39;d be discoverable. I&#39;m not exactly a naive user, but I do have fresh eyes, so probably I can be of some help streamlining new developer startup.<div>
<br></div><div>Item 1: getting a traceback for errors.</div><div><br></div><div>Default config is to show a simple &quot;system error&quot; message. Unlike Zope 2, tracebacks are not shown on the console, nor--so far as I can tell--in the logs. (I&#39;m not entirely certain about the Grok logging system, so tell me if I&#39;m wrong; but, none of the log files extant had anything.)</div>
<div><br></div><div>You can get a TTW traceback if running the debug.ini. This is, however, not easy. Requires a config change and a re-buildout. Also, it still doesn&#39;t go to the console or logs.</div><div><br></div><div>
I would recommend adding a script or adding an option to an existing script to run with debug.ini instead of deploy.ini. There&#39;s a shortcut for the debug console, so it&#39;s not without precedent. In fact, this is what thought PROJECTNAME-debug would do.</div>
<div><br></div><div>Item 2: leaving off the super call in init</div><div><br></div><div>This is simply a case of RTFM, but I&#39;ll note that an error like so::</div><div><br></div><div>  AttributeError: &#39;ObjectName&#39; object has no attribute &#39;_SampleContainer__data&#39;</div>
<div><br></div><div>is a symptom of adding an __init__ method to a Container-subclassing object and not calling the parent&#39;s init method  with &#39;super&#39;.</div><div><br></div><div>I don&#39;t know if there&#39;s a way to fix that or at least make the error clearer, but it would help fools like me if there were.</div>
<div><br></div><div>        --jcc</div><div>-- <br>J Cameron Cooper<br><a href="mailto:jccooper@gmail.com">jccooper@gmail.com</a><br><a href="mailto:anything@jcameroncooper.com">anything@jcameroncooper.com</a><br>mobile: 713.882.7395<br>
Skype: jcameroncooper<br>
</div>