Personal tools
You are here: Home Software TeachingSchedule

TeachingSchedule

— filed under: ,

See www.plone.org/products/teachingschedule for latest releases.

Here's what the example test produces.

LICENSE

  • GPL: See TeachingSchedule.py header.

CREDITS

  • SVG all around help, http://www.carto.net
  • SVG emitting, http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/325823
  • SVG and javascript tooltips, http://svg-whiz.com/svg/Tooltip.svg
  • ReportLab toolkit and examples

AUTHORSHIP

  • initial coding: Jeff Pittman, http://www.geojeff.org

DESCRIPTION

TeachingSchedule uses the ReportLab toolkit to generate a teaching schedule plot and its own routines to emit SVG and simple HTML renderings.

TeachingSchedule is a folderish Archetypes-based Plone/Zope product. The idea is to use various renderers to create images, PDF files, and/or SVG versions of the time scale and store them. This allows flexibility for a user of TeachingSchedule to offer several format versions, if needed. TeachingSchedule takes input of the following items:

  • image size (width and height, in pixels)
  • position (x and y of upper left corner, in pixels)
  • a setting for scale-to-fit
  • courses, entered as comma-separated values on separate lines for the courses. Courses are specified by:
    • username
    • year
    • month
    • day
    • hour
    • minute
    • duration_minutes
    • recurrence_interval
    • start_year
    • start_month
    • start_day
    • end_year
    • end_month
    • end_day
    • course_name
    • red, green, blue (each 0-255)

REQUIREMENTS

  • Archetypes (tested with Archetypes-1.3.2-final bundle).
  • Plone (tested with Plone-2.0.5)
  • PIL (Python Imaging Library), http://www.pythonware.com/products/pil/
  • ReportLab Toolkit, from http://www.reportlab.org (tested with v. 1.20)
  • renderPM, from the ReportLab Toolkit, as an addon module, from: http://www.reportlab.org (renderPM provides the full functionality for formats other than ps and pdf)
  • Adobe Acrobat Reader, for fonts, from http://www.adobe.com/products/acrobat/readstep2.html. On Linux, v. 5 works; not sure about the new v. 7.

PLATFORM NOTES

  • So far, testing has only been done on Linux (RedHat 7.3, rhel 3.0, and Gentoo).

INSTALLATION

  1. Install Adobe Acrobat Reader, taking note of its installation directory.
  2. Install the ReportLab toolkit, first editing rl_config.py in the reportlab directory to set the Acrobat directory, if needed, so the fonts will be found by the renderer.
  3. Install the renderPM addon from ReportLab.org.
  4. Put TeachingSchedule in your Zope Products directory.
  5. Restart Zope.
  6. Install TeachingSchedule into your Plone site using CMFQuickInstaller. (In Plone, select "plone setup", click on "Add/Remove Products" and install TeachingSchedule.) You can also use the portal_quickinstaller tool from the ZMI to install the Product.

BUGS AND FEATURE REQUESTS

Please report bugs and feature requests to Jeff Pittman, who can be reached at jeff@geojeff.org. Jeff is often on the #plone irc channel as geojeff.

Document Actions