You are not logged in Log in Join
You are here: Home » Members » TheJester » Dynamic Button Generation » dc_view

Log in
Name

Password

 
 


Dublin Core Elements

The Dublin Core metadata element set is a standard for cross-domain information resource description.
Element Description Value
Identifier resource ID http://old.zope.org/Members/TheJester/ZButtons
Title resource name Dynamic Button Generation
Description resource summary This is a two part product, it consists of an Image Factory product, which caches the generated images, and a <dtml-button> tag that is used for generating said buttons. The README file contains the example code from the ZButton Demo page, but, you'll have to fetch the template I used (the URL is in the README). This product *REQUIRES* PIL, it's tested with 1.1.1. you also need jpeg support (paletted image support in PIL really sucks) Consequently the following things that I'd really like to have are missing; o Transparent backgrounds o True/Free Type support. If someone motivates me enough (pays me to), I might be convinced to create a write filter for PIL to write out transparent PNG files. If one appears in PIL that doesn't have absolutely crap palette reduction, its pretty simple to fix Buttons to use it, and transparent backgrounds will be available. PyFT doesn't support the latest FreeType libraray that comes with XFree-4, and I wasn't going to destroy my workstation after spending eons getting the way I like it, just for buttons d8) If a later version of PyFT comes out, I'll look at using True Type fonts. This is a large product, because it contains all of the 75dpi X fonts on my system, these fonts are unencumbered, and have been pre-converted to work with PIL. Once you've installed an Image Factory somewhere in your tree. <dtml-button help=''></dtml-button> will give you a nifty usage page. All arguments to <dtml-button> are expressions... that means literals need to be enclosed by "' '" to make sure they don't clash with Zope Ids you might have. While this is annoying if you hard code buttons, it's quite nice if you generate them, which I expect the normal case to be.
Creator resource creator TheJester
Date default date 2001-09-25 11:55:00
Format resource format text/html
Type resource type Software Package
Subject resource keywords Visual
Contributors resource collaborators
Language resource language
Publisher resource publisher No publisher
Rights resource copyright


Additional Zope Elements

Element Description Value
CreationDate date resource created 2001-09-25 11:55:00
ModificationDate date resource last modified 2001-09-25 11:55:00
EffectiveDate date resource becomes effective None
ExpirationDate date resource expires None

Backlinks: via Google / Technorati