Sorry for the long post...

I'm trying to create a general insert method that will be inherited by all my sub-objects.  I would like to send a parameter, "type", that will determine what type of object to create.

I tried this:

<dtml-with "manage_addProduct['normalisation']">
    <dtml-with "_[type].createInObjectManager(REQUEST['NewId'], REQUEST)">
      <dtml-call reindex_object>
    </dtml-with>
</dtml-with>

And I pass the meta-type as parameter "type".  I receive the following error:

Error Type: AttributeError
Error Value: createInObjectManager
Traceback (innermost last):
  File D:\INTRAN~1\lib\python\ZPublisher\Publish.py, line 222, in publish_module
  File D:\INTRAN~1\lib\python\ZPublisher\Publish.py, line 187, in publish
  File D:\INTRAN~1\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook
    (Object: CatalogAware)
  File D:\INTRAN~1\lib\python\ZPublisher\Publish.py, line 171, in publish
  File D:\INTRAN~1\lib\python\ZPublisher\mapply.py, line 160, in mapply
    (Object: insert)
  File D:\INTRAN~1\lib\python\ZPublisher\Publish.py, line 112, in call_object
    (Object: insert)
  File D:\INTRAN~1\lib\python\OFS\DTMLMethod.py, line 189, in __call__
    (Object: insert)
  File D:\INTRAN~1\lib\python\DocumentTemplate\DT_String.py, line 538, in __call__
    (Object: insert)
  File D:\INTRAN~1\lib\python\DocumentTemplate\DT_With.py, line 146, in render
    (Object: manage_addProduct['normalisation_externe'])
  File D:\INTRAN~1\lib\python\DocumentTemplate\DT_With.py, line 133, in render
    (Object: _[type].propertysheets.createInObjectManager(REQUEST['NewId'], REQUEST))
  File D:\INTRAN~1\lib\python\DocumentTemplate\DT_Util.py, line 334, in eval
    (Object: _[type].propertysheets.createInObjectManager(REQUEST['NewId'], REQUEST))
    (Info: type)
  File <string>, line 0, in ?
  File D:\INTRAN~1\lib\python\DocumentTemplate\DT_Util.py, line 127, in careful_getattr
AttributeError: (see above)


Any ideas?