Add a new node to the session tree.
Parameters: |
|
---|
(Re)build the survey SQL tree. The existing tree for the session is deleted before a new tree is created.
Parameters: |
|
---|
Determine the current profile for the current survey. The euphorie.client.session.SessionManager is used to find the current session.
The profile is returned as a dictionary. The id of the profile questions are used as keys. For optional profile questions the value is a boolean. For repetable profile questions the value is a list of titles as provided by the user. This format is compatible with Profile.getDesiredProfile().
Parameters: | survey (euphorie.client.model.Survey) – current survey |
---|---|
Return type: | dictionary with profile answers |
Determine the profile for the current survey and build the session tree.
All profile questions in the survey are shown to the user in one screen. The user can then determine the profile for his organisation. If there are no profile questions user is directly forwarded to the inventory phase.
This view assumes there already is an active session for the current survey.
Return information for all profile questions in this survey.
The data is returned as a list of dictionaries with the following keys:
Get the requested profile from the request.
The profile is returned as a dictionary. The id of the profile questions are used as keys. For optional profile questions the value is a boolean. For repetable profile questions the value is a list of titles as provided by the user. This format is compatible with extractProfile().
Return type: | dictionary with profile answers |
---|
Setup the session for the context survey. This will rebuild the session tree if the profile has changed.
Update a survey session after a survey has been republished. If a the survey has a profile the user is asked to confirm the current profile before continueing.
The behaviour is exactly the same as the normal start page for a session (see the Profile view), but uses a different template with more detailed instructions for the user.