I’ve been working on various web interfaces at work over the last month or so, here are some interesting links that I’ve been looking at:
Turbogears - Turbogears is an excellent Python web framework tying together lots of open source components. There is a new version just out, 0.9a6.
Yahoo UI Grids - Easy grid layouts for [...]
When writing a widget that you’re only going to use in your own project, you might still want to take advantage of the automatic javascript link insertion. This little class lets you do that:
from turbogears import startup
from turbogears.widgets.base import JSLink
class LocalJSLink(JSLink):
register = False
def __init__(self, name):
[...]
The Widgets features in Turbogears allow you to easily insert forms in your page. But what if you want to control the behaviour and look of the form tag?
You need the “form_attrs” parameter:
importConfigForm = widgets.TableForm(
fields = [
widgets.TextField(name="name", label="Configuration Name:")
],
[...]
Lee has a great article on making the TurboGears “flash” functionality more useful. “tg_flash” or “turbogears.flash” in 0.9 is a method used to set a status message on the next page to be displayed. In its default form this allows you to send some plain text or HTML to the page.
I was looking for [...]
So 0.9a1 supports forms, that’s great. However, I found getting hold of suitable examples for use in the real world difficult. The examples all show how to create a form and display it, and also how to validate the information in the response. What they didn’t show, is how to get information into the form [...]
TurboGears is a “mega-framework” collecting a number of well-known web architecture components and glueing them together to form a productive environment for web development.
I’m using TurboGears at work to develop a service management and configuration application, and had held off implementing things like users, authentication and configuration forms in order to wait for 0.9 which [...]