Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/c/o/commcare-hq-HEAD/corehq/apps/domainsync/management/commands/copy_group_data.py   commcare-hq(Download)
 
        print 'getting group'
        group = Group.wrap(sourcedb.get(group_id))
        group.save(force_update=True)
 

src/c/o/commcare-hq-HEAD/corehq/apps/domainsync/management/commands/copy_doc.py   commcare-hq(Download)
        domain = args[2] if len(args) == 3 else None
 
        app_json = sourcedb.get(app_id)
        if domain:
            app_json['domain'] = domain

src/c/o/commcare-hq-HEAD/corehq/apps/domainsync/management/commands/copy_case.py   commcare-hq(Download)
        def _migrate_case(case_id):
            print 'getting case %s' % case_id
            case = CommCareCase.wrap(sourcedb.get(case_id))
            original_domain = case.domain
            if domain is not None: