Something like this to start with....: db.define_table('category', Field('name'))
db.define_table('product', Field('name'), Field('dategory',db.category), Field('description','text',represent=lambda value: WIKI(value)), Field('price','double',default=10.00), Field('quantity_in_stock','integer',default=0), Field('on_sale_since','datetime',default=request.now)) @service.xml @service.json @service.csv @service.xmlrpc @service.jsonrpc @servcie.amfrpc3('store') def list_categories(): ... @service.xml @service.json @service.csv @service.xmlrpc @service.jsonrpc @servcie.amfrpc3('store') def list_products_by_category(id, price_range): .... @service.xml @service.json @service.csv @service.xmlrpc @service.jsonrpc @servcie.amfrpc3('store') def list_products_by_keyword(keyword, price_range): ... ... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---