Hi guys,

I'd like to know how to best populate a table with a given set of default 
values. I could add them manually via the shell, but I'd like it to be done 
when the table is created. Let's consider the following table:

db.define_table('tag',
    Field('name'),
    format='%(name)s')

And assume I got some tags:

TAGS = ['nice','great','awesome']

So, how's the most appropriate way in getting those tags into the table?
-- 
Mit freundlichen Grüßen,
Sascha Peilicke
http://saschpe.wordpress.com

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to