Archives week 38 of 2009

Sept. 21, 2009 - Sept. 27, 2009

ToscaWidgets JQuery and TinyMCE (Tutorialish-ly)

So you've browsed the ToscaWidgets web-site and know that there's a JQuery Plugin and a TinyMCE (Rich-text-editor control) plugin... now how the heck do you use them?  Not a lot of documentation for these two pieces, so I've tried to cobble together a minimal example.  Fair warning, I'm piecing this together basically without any documentation ...

Continue reading

ToscaWidgets JQuery and Flot Plotting (Tutorialish-ly)

Continuing on from our previous tutorial, here's a quick example showing how to create a Flot plotting library plot using tw.jquery's FlotWidget class.  In our root.py controller module, we'll import the widget and some support functions:

from tw.jquery import FlotWidget
from math import sin,cos
import simplejson

The FlotWidget is part of the core tw.jquery support, ...

Continue reading

Wrapping JQuery plugins for ToscaWidgets/TurboGears

Continuing my explorations of JQuery + TurboGears today, I started working on a simple RTE-light wrapper widget.  RTE-light is an extremely small, simple analogue to TinyMCE, so I figured it would be easy to set it up with the tw.tinymce project as reference.

There's a paster script to auto-start a widget project, so that went ...

Continue reading

I forget how advanced TurboGears 2.0 is, sometimes

I wanted to code up a single-form application for updating/editing the PyGTA events.  Since it runs on Vex and I didn't want to bother them with setting up per-user WSGIs or TurboGears for me (they do give me the space free, after all), I went with bald CGI.

Wow.

I've written very large CGI-only systems ...

Continue reading

Daily archives

Previous week

Week 37 of 2009

Next week

Week 39 of 2009

Archives