Currently, there is 1 user in the database (in the oq_user table): 'openquake'
- When a calculation is run, get the current username (using getpass.getuser(): http://docs.python.org/library/getpass.html#getpass.getuser)
- If the user does not exist, create an oq_user record for that username
- If it already exists, great; do nothing
- Get the OqUser Django model object for the user record
- This is user should be the owner all subsequent oq_job_profile, oq_calculation, and output records.
Currently, there is 1 user in the database (in the oq_user table): 'openquake'
- When a calculation is run, get the current username (using getpass.getuser(): http:// docs.python. org/library/ getpass. html#getpass. getuser)
- If the user does not exist, create an oq_user record for that username
- If it already exists, great; do nothing
- Get the OqUser Django model object for the user record
- This is user should be the owner all subsequent oq_job_profile, oq_calculation, and output records.