# survey types
type(u'questionnaire', u'Fragebogen', viewName=u'survey.html', 
    typeInterface=u'loops.knowledge.survey.interfaces.IQuestionnaire', 
    options=u'action.portlet:create_subtype,edit_concept')
type(u'questiongroup', u'Fragengruppe', viewName=u'', 
    typeInterface=u'loops.knowledge.survey.interfaces.IQuestionGroup', 
    options=u'action.portlet:create_subtype,edit_concept\nchildren_append\nshow_navigation')
type(u'question', u'Frage', viewName=u'', 
    typeInterface=u'loops.knowledge.survey.interfaces.IQuestion', 
    options=u'action.portlet:edit_concept\nshow_navigation')
    #options=u'action.portlet:create_subtype,edit_concept')
type(u'feedbackitem', u'Feedback-Element', viewName=u'', 
    typeInterface=u'loops.knowledge.survey.interfaces.IFeedbackItem', 
    options=u'action.portlet:edit_concept\nshow_navigation')

# subtypes
#child(u'questionnaire', u'questionnaire', u'issubtype')
#child(u'questionnaire', u'question', u'issubtype')
child(u'questionnaire', u'questiongroup', u'issubtype')
child(u'questiongroup', u'question', u'issubtype')
child(u'questiongroup', u'feedbackitem', u'issubtype')
#child(u'question', u'feedbackitem', u'issubtype')

# records
records(u'survey_responses', u'loops.knowledge.survey.response.Response')
