Changes between Version 17 and Version 18 of DeveloperGuidelines/PrePopulate
- Timestamp:
- 02/27/14 16:30:47 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/PrePopulate
v17 v18 89 89 auth.override = True 90 90 resource = s3db.resource("supply_item") 91 resource.import_xml(open("/home/web2py/applications/eden/static/formats/s3csv/eric.csv", "r"), 92 format="csv", 93 stylesheet="/home/web2py/applications/eden/static/formats/s3csv/eric.xsl") 91 stylesheet= os.path.join(request.folder, "static", "formats", "s3csv", "supply", "item.xsl") 92 filename = os.path.join(request.folder, "static", "private", "templates", "default", "supply_item.csv") 93 File = open(filename, "r") 94 resource.import_xml(File, format="csv", stylesheet=stylesheet) 94 95 db.commit() 95 96 }}}