Tik-76.115 Individual Project: Guinea Pig
$Id: ab_playlist_creation_internals.html,v 1.1 1996/04/22 19:02:49 kepa Exp $

Test Creation - A/B Test Playlist Creation internals

The A/B Test creation module is the modules in which the user can edit the test.items and playlist files. It uses the test.config file to get information about the used test type and the samples used in the test. For a general overview, se the document A/B Test Playlist Creation User Manual.

Internals

The A/B Test Creation module is mainly implemented with the python module gp_create_playlist.py. This module contains one class called gp_create_playlist. It handles all user interactions with the test creator.

The class config_parser.py contains all the parsing routines used to handle loading and saving test.config files. The low level parsing functions are implemented in the file parser module. Only the loading functions are used in the playlist generation.

A small utility class gpPathHandler is used to handle mapping filenames to absolute path and easing path handling in general.

Dialog boxes and file requesters are implemented by the Tkinter library modules Dialog.py and FileDialog.py.

What the playlist creation module first does is that it initializes the GUI with test.config file contents. Then it tries to load the test.items file with the help of the items_parser class. The contents of this file are used to initialize test.items data. Next it tries to load the playlist file with the help of the playlist_parser class. The playlist data structures are intialized from this file.

After this it handles GUI callback procedures for various buttons and saves test.items and playlist file when requested. The code to implement the random test items and playlist creation tasks is really straithforward. Most difficult parts of this module are the error checking parts which handle malformed input files with grace.


· Test Creation Index · Document index · Guinea Pig ·