734af1c431c93768638e306e9b08f5ef30c1c2f7,modules/s3db/asset.py,S3AssetModel,asset_onaccept,#Any#,650
Before Change
form_vars = form.vars
asset_id = form_vars.id
kit = form_vars.get("kit", None)
site_id = form_vars.get("site_id", None)
if site_id:
stable = db.org_site
// Set the Base Location
location_id = db(stable.site_id == site_id).select(stable.location_id,
After Change
site_id = form_vars_get("site_id")
if not organisation_id or not site_id:
// Component Tab: load record to read
record = db(atable.id == asset_id).select(atable.organisation_id,
atable.site_id,
limitby = (0, 1)
).first()
organisation_id = record.organisation_id
site_id = record.site_id
if site_id:
// Set the Base Location
stable = db.org_site
site = db(stable.site_id == site_id).select(stable.location_id,
limitby = (0, 1)
).first()
location_id = site.location_id
tracker = S3Tracker()
asset_tracker = tracker(atable, asset_id)
asset_tracker.set_base_location(location_id)
if kit:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: sahana/eden
Commit Name: 734af1c431c93768638e306e9b08f5ef30c1c2f7
Time: 2020-03-05
Author: fran@aidiq.com
File Name: modules/s3db/asset.py
Class Name: S3AssetModel
Method Name: asset_onaccept
Project Name: OpenMined/Grid
Commit Name: 0bce5765b02513a167e454f112a61bd70d47d6ff
Time: 2020-03-02
Author: ionesiojr@gmail.com
File Name: gateway/app/main/processes/controller.py
Class Name: FLController
Method Name: last_participation
Project Name: cmu-db/ottertune
Commit Name: 8cec62160ffd56f90c781f7524f643b95896c455
Time: 2020-01-08
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/tasks/async_tasks.py
Class Name:
Method Name: configuration_recommendation_ddpg