Changes between Version 17 and Version 18 of DeveloperGuidelines/PrePopulate


Ignore:
Timestamp:
02/27/14 16:30:47 (11 years ago)
Author:
Fran Boon
Comment:

reformat

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/PrePopulate

    v17 v18  
    8989auth.override = True
    9090resource = 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")
     91stylesheet= os.path.join(request.folder, "static", "formats", "s3csv", "supply", "item.xsl")
     92filename = os.path.join(request.folder, "static", "private", "templates", "default", "supply_item.csv")
     93File = open(filename, "r")
     94resource.import_xml(File, format="csv", stylesheet=stylesheet)
    9495db.commit()
    9596}}}