<div>I am trying to create simple content type with zope 2.10.4 and five.&nbsp; I have performed the following:</div>  <div>&nbsp;</div>  <div>&nbsp;- created a content&nbsp;interface </div>  <div>&nbsp;- created a content type class implementing the interface and extending both Persistent and SimpleItem</div>  <div>&nbsp;- created zcml class entries for the content type</div>  <div>&nbsp;- created zcml browser entries for 'addform' and 'editform'</div>  <div>&nbsp;</div>  <div>I am trying to get Zope to automatically create the forms based on the content schema.&nbsp; Once these steps were completed, I found my content type in the ZMI add menu.&nbsp; However, once I selected my content type, I got an error (see below).</div>  <div>&nbsp;</div>  <div>The error looks like it is missing a 'main_template' object.&nbsp; Any ideas what might be wrong?</div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div>ERROR MESSAGE:</div>  <div>&nbsp;</div>  <div>2007-11-07
 12:31:01 ERROR Zope.SiteErrorLog <A href="http://localhost:8080/+/Password_add">http://localhost:8080/+/Password_add</A></div>  <div>Traceback (innermost last):<BR>&nbsp; Module ZPublisher.Publish, line 119, in publish<BR>&nbsp; Module ZPublisher.mapply, line 88, in mapply<BR>&nbsp; Module ZPublisher.Publish, line 42, in call_object<BR>&nbsp; Module Products.Five.browser.metaconfigure, line 417, in __call__<BR>&nbsp; Module Shared.DC.Scripts.Bindings, line 313, in __call__<BR>&nbsp; Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec<BR>&nbsp; Module Products.PageTemplates.PageTemplateFile, line 129, in _exec<BR>&nbsp; Module Products.PageTemplates.PageTemplate, line 89, in pt_render<BR>&nbsp; Module zope.pagetemplate.pagetemplate, line 117, in pt_render<BR>&nbsp;&nbsp; - Warning: Macro expansion failed<BR>&nbsp;&nbsp; - Warning: exceptions.KeyError: 'main_template'<BR>&nbsp; Module zope.tal.talinterpreter, line 271, in __call__<BR>&nbsp; Module
 zope.tal.talinterpreter, line 346, in interpret<BR>&nbsp; Module zope.tal.talinterpreter, line 891, in do_useMacro<BR>&nbsp; Module zope.tal.talinterpreter, line 346, in interpret<BR>&nbsp; Module zope.tal.talinterpreter, line 536, in do_optTag_tal<BR>&nbsp; Module zope.tal.talinterpreter, line 521, in do_optTag<BR>&nbsp; Module zope.tal.talinterpreter, line 516, in no_tag<BR>&nbsp; Module zope.tal.talinterpreter, line 346, in interpret<BR>&nbsp; Module zope.tal.talinterpreter, line 870, in do_useMacro<BR>&nbsp; Module zope.tales.tales, line 696, in evaluate<BR>&nbsp;&nbsp; - URL: index<BR>&nbsp;&nbsp; - Line 2, Column 1<BR>&nbsp;&nbsp; - Expression: &lt;PathExpr standard:'context/main_template/macros/master'&gt;<BR>&nbsp;&nbsp; - Names:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {'container': &lt;+ at /&gt;,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'context': &lt;+ at /&gt;,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'default': &lt;object object at
 0x0099F528&gt;,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'here': &lt;+ at /&gt;,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'loop': {},<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'nothing': None,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'options': {'args': (&lt;Products.Five.metaclass.SimpleViewClass from add.pt<BR>&nbsp;object at 0x05D4C710&gt;,)},<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'repeat': &lt;Products.PageTemplates.Expressions.SafeMapping object at 0x05D<BR>49D78&gt;,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'request': &lt;HTTPRequest, URL=http://localhost:8080/+/Password_add&gt;,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'root': &lt;Application at &gt;,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'template': &lt;ImplicitAcquirerWrapper object at 0x05D4CDB0&gt;,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'traverse_subpath': [],<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'user': &lt;User 'admin'&gt;,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'view':
 &lt;Products.Five.metaclass.SimpleViewClass from add.pt object at 0x<BR>05D4C710&gt;,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'views': &lt;zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at<BR>&nbsp;0x05D4CD50&gt;}<BR>&nbsp; Module zope.tales.expressions, line 217, in __call__<BR>&nbsp; Module Products.PageTemplates.Expressions, line 153, in _eval<BR>&nbsp; Module zope.tales.expressions, line 124, in _eval<BR>&nbsp; Module Products.PageTemplates.Expressions, line 100, in trustedBoboAwareZopeTr<BR>averse<BR>&nbsp; Module OFS.Traversable, line 284, in unrestrictedTraverse<BR>&nbsp;&nbsp; - __traceback_info__: ([], 'main_template')<BR>KeyError: 'main_template'</div>