## Script (Python) "getObjectType"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=obj, type_actions
##title=
##
# Try to find out which type we should use (meta_type or portal_type)

obj_type = obj.Type()

if not type_actions.has_key(obj_type):
  return obj.meta_type

return obj_type
