We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'd import a csv containing real database field name (dumped outside web2py).
db.define_table('test_1', Field('name', rname='firstname')) import os file_path = os.path.join(request.folder, 'test_1.csv') db.test_1.import_from_csv_file(open(file_path, 'r')) print db(db.test_1).select() test_1.id,test_1.name 1,<NULL> 2,<NULL>
The content of test_1.csv is
"firstname" Paolo Luca
Without explicitly map the field names rname is not supported.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'd import a csv containing real database field name (dumped outside web2py).
The content of test_1.csv is
Without explicitly map the field names rname is not supported.
The text was updated successfully, but these errors were encountered: