# from modu import editable from modu.editable import define, util from modu.editable.datatypes import string, relational, boolean from feedme.util import checker __itemdef__ = define.itemdef( __config = dict( name = 'feed', label = 'feeds', category = 'content', acl = 'access admin', weight = 0, prewrite_callback = util.get_url_code_callback('title', 'url_code'), ), id = string.LabelField( label = 'id:', size = 10, weight = -10, listing = True ), title = string.StringField( label = 'title:', size = 60, maxlength = 255, weight = 2, listing = True,
from gigkeeper.model import event from gigkeeper.editable import url, note, history, media def contact_callback(req, frm, storable): return getattr(storable, 'contact_id', None) __itemdef__ = define.itemdef( __config = dict( name = 'event', label = 'events', acl = 'access admin', category = 'relationships', weight = 3, model_class = event.Event, title_column = 'name', prewrite_callback = get_url_code_callback('name', 'url_code') ), name = string.StringField( label = 'summary:', size = 60, maxlength = 255, weight = 1, listing = True, link = True, search = True, required = True, ), url_code = string.StringField( label = 'url code:',