You are not logged in Log in Join
You are here: Home » Members » Jim Washington » ZClasses Survey/quiz product » swpackage_view

Log in
Name

Password

 
 

ZClasses Survey/quiz product

It's a ZClasses thingy to make multi-page surveys or quizzes. Use this only if you really need to get a multi-page survey up online quickly. If you want lots of customization, use Formulator.

QSurvey automatically creates a "RESULTS" folder and saves the results of submission in the ZODB.

Version 0.31 requires Zope-2.5+

V0.31 currently breaks existing QSurveys. You have been warned.

New with version 0.30

  • Uses Zope-2.5's Session Tracking and commits save at the last page. To make this happen, create a final QPage, and on the Button_Text tab, set submittext to "", i.e., nothing. This is a good place to say "thanks for completing the survey."
  • Guesses IP address, particularly will use http-x-forwarded-for if available.
  • Still saves only to the ZODB, but should be easy to modify to save elsewhere by changing the filethedatapersistent method of QSurvey:QSurveyClass
  • More of the logic is in Python Scripts; easier to figure out what is going on.
  • By popular request, style sheet is localized to the instance rather than the class.
  • More things are allowed within QPages/QSurveys for flexibility. Particularly, you may put a QSurvey within a QSurvey. We used this for rudimentary managing of a bilingual survey.

There is a wiki page about QSurvey in the zope-edu Wiki. Zope.org members may now give me persistent! feedback about QSurvey.

The product is designed to make on-line surveys easy to write. Instead of having first to develop the backend for the storage, then adapt the questions to the storage available, this product allows you to concentrate on the survey and its questions. Zope takes care of the storage.

The page-centric model with optional branching determines at run-time which page to display next.

If you need more than simply questions, you may include DTML Document material interspersed with your questions. This means that Images and other content are allowed inside a QPage.

QSurvey features:

  • A page-oriented model, with the QSurvey holding QPages, and QPages holding DTML Documents and Questions.
  • Multi-page interaction is possible with branching dependent on the values of a multiple-choice question.
  • All Multiple-Choice are a single type. Select listbox, radio, checkbox, formatting from a single "options" tab.
  • Ordering of things within a page from a management tab in the QPage object.
  • Uses css instead of tables. Looks very nice in IE4+, Mozilla. Acceptable on NS4. Degrades nicely for Lynx. Deliberately ugly default css provided to encourage customization.
  • Pays attention to AUTHENTICATED_USER for results ID creation
  • Still does no validation.
  • Some hooks do nothing yet
  • RESULTS available in various tab-delimited formats.
  • Still too much global Add-list pollution (2 items: QSurvey, QPage, TextQuestion, MultipleChoiceQuestion)
  • Each survey writes only what is actually submitted to the ZODB.

Installation: Delete the old Survey Product if you still have it! Import QSurvey.zexp into your Control_Panel/Products folder.

Usage:Create a QSurvey. Within the Qsurvey, create a QPage. Within the QPage, add questions. Within each question, enter the text for the question and the choices if it is a multiple-choice question. Set options on each question from the "Options" management tab.
"View" or index_html from the QSurvey level actually writes to the ZODB when submitted; "View" from QPage or "Question" level will dump REQUEST when submitted.

QPages, MultipleChoiceQuestions, and TextQuestions will not work outside a QSurvey. I will move them off the global add list as soon as I figure out how.
This is posted, not as a finished product, but as a framework to start with (plus, it's off-location storage!). Assistance and commentary in the form of code is graciously accepted. It is getting cooler and more useful now. Please help me make this product do everything it should.
Does anyone have any ideas for icons for these ZClasses?

Latest Release: 0.32
Last Updated: 2003-09-17 09:34:38
Author: jwashin
License: GPL
Categories: Content Object, Examples, Feedback, Helpers
Maturity: Development
  Information
  Changes
  License

Available Releases

Version Maturity Platform Released
Software_Release.2003-09-13.0016 Development   2003-09-13 00:00:00
  QSurvey-0.32.zexp (148 K) All md5
0.31 Development   2002-03-18 07:59:54
  QSurvey-0.31.zexp (148 K) All
0.25 Development   2000-10-15 13:32:56
  QSurvey-0.25.zexp (113 K) All
0.24 Development   2000-09-22 13:14:10
  QSurvey-0.24.zexp (111 K) All
0.23 Development   2000-07-26 09:19:01
  QSurvey-0.23.zexp (87 K) All
0.22 Development   2000-05-12 14:42:46
  QSurvey-0.22.zexp (87 K) All
0.21 Development   2000-05-10 11:05:04
  QSurvey-0.21.zexp (82 K) All
0.2 Development   2000-04-24 09:48:13
  QSurvey.zexp (78 K) All
0.0.0.1a (really pre-alpha) Development   2000-02-02 09:24:05
  Survey.zexp (52 K) All