euphorie.client.session

class euphorie.client.session.SessionManagerFactory

Session management handling for the client.

Never use this class directly: instead use the global SessionManager instance.

id

The id of the current session, or None if there is no active session.

Return type:int or None
resume(session)

Activate the given session.

Parameters:session (euphorie.client.model.SurveySession) – session to activate
session

The current active client session. If no session is active None is returned.

Return type:euphorie.client.model.SurveySession or None
start(title, survey, account=None)

Create a new session and activate it.

Parameters:
  • title (unicode) – title for the new session.
  • survey (euphorie.content.survey.Survey) – survey for which the session is being created
Return type:

euphorie.client.model.SurveySession instance

stop()

End the current active session.

euphorie.client.session.SessionManager = <euphorie.client.session.SessionManagerFactory object at 0x3a00e50>

Global instance of SessionManagerFactory.

Previous topic

euphorie.client.publish

Next topic

euphorie.client.survey

This Page