[Schevo-devel] icon help
Patrick K. O'Brien
pobrien at orbtech.com
Thu May 18 07:55:57 EDT 2006
joseph schlesinger wrote:
> having sat out a couple of rounds of updates, i find i have several
> schemas with old-school icon support, ie:
> from schevo.icon.schema import SchevoIcon
> changing that line to
> _import('Schevo', 'icon', 1)
> raises exceptions on evo evolve and on evo create
> i don't have the specific tracebacks available at my current location,
> but i bet our developers know exactly what they would be ;-)
> as usual, any and all pointers would be greatly appreciated.
The simplest way to add icon support is to define the SchevoIcon entity
in your schema, like this:
from schevo.schema import *
schevo.schema.prep(locals())
class SchevoIcon(E.Entity):
_hidden = True
name = f.unicode()
data = f.image()
_key(name)
--
Patrick K. O'Brien
Orbtech http://www.orbtech.com
Schevo http://www.schevo.org
Louie http://www.pylouie.org
More information about the Schevo-devel
mailing list