Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 749 Bytes
from google.appengine.ext import bulkload
from google.appengine.tools import bulkloader
import sys
import os
sys.path.insert(0, '/home/ed/projects/mediatypes/lib')
sys.path.insert(0, '/home/ed/projects/mediatypes/')
import models
class MediaTypeLoader(bulkloader.Loader):
def __init__(self):
bulkloader.Loader.__init__(self, 'MediaType',
[('name', str),
('type', str),
('subtype', str),
('application_url', str),
('rfc_url', str),
('obsolete', bool),
])
loaders = [MediaTypeLoader]