taobao.crm.group.update 修改一个已经存在的分组
        
        修改一个已经存在的分组，接口返回分组的修改是否成功
190263
def update(self, group_id, new_group_name, session):
        ''''''
        request = TOPRequest('taobao.crm.group.update')
        request['group_id'] = group_id
        request['new_group_name'] = new_group_name
        self.create(self.execute(request, session), fields=['is_success',])
        return self.is_success
1094900
def get(self, session, **kwargs):
        ''''''
        request = TOPRequest('taobao.fenxiao.cooperation.get')
        for k, v in kwargs.iteritems():
            if k not in ('status', 'start_date', 'end_date', 'trade_type', 'page_no', 'page_size') and v==None: continue
            request[k] = v
        self.create(self.execute(request, session), fields=['total_results','cooperations'], models={'cooperations':Cooperation})
        return self.cooperations
1295135
def update_resourcegroup(group,**kwargs):
    

    group_i                 = _get_group(group.id)
    group_i.name            = group.name
    group_i.description     = group.description
    group_i.status          = group.status

    db.DBSession.flush()

    return group_i
1018711
def check(self, group_id, session):
        ''''''
        request = TOPRequest('taobao.crm.grouptask.check')
        request['group_id'] = group_id
        self.create(self.execute(request, session))
        return self.is_finished
938562
@Override
	public Response update(String CorpNum, int ItemCode, String MgtKey,
			Statement statement, String UserID) throws PopbillException {
		if (MgtKey == null || MgtKey.isEmpty())
			throw new PopbillException(-99999999, "관리번호가 입력되지 않았습니다.");
		
		String PostData = toJsonString(statement);
		
		return httppost("/Statement/" + ItemCode + "/" + MgtKey, CorpNum, 
				PostData, UserID, "PATCH", Response.class);
	}
619770
def update(self, session, **kwargs):
        ''''''
        request = TOPRequest('taobao.fenxiao.discount.update')
        for k, v in kwargs.iteritems():
            if k not in ('discount_id', 'discount_name', 'discount_status', 'detail_ids', 'target_types', 'target_ids', 'discount_types', 'discount_values', 'detail_statuss') and v==None: continue
            request[k] = v
        self.create(self.execute(request, session), fields=['is_success',])
        return self.is_success
1303930
public static function groupUpdate(Api\GroupUpdate $groupUpdate)
    {
        $fields = [];

        if (null != $groupUpdate->getName()) {
            $fields['name'] = $groupUpdate->getName() === Api\Reset::reset()
                            ? null
                            : $groupUpdate->getName();
        }

        if (!empty($groupUpdate->getMemberInsertions())) {
            $fields['add'] = $groupUpdate->getMemberInsertions();
        }

        if (!empty($groupUpdate->getMemberRemovals())) {
            $fields['remove'] = $groupUpdate->getMemberRemovals();
        }

        if (!empty($groupUpdate->getChildGroupInsertions())) {
            $fields['child_groups_add']
                = $groupUpdate->getChildGroupInsertions();
        }

        if (!empty($groupUpdate->getChildGroupRemovals())) {
            $fields['child_groups_remove']
                = $groupUpdate->getChildGroupRemovals();
        }

        if (null != $groupUpdate->getAddFromGroup()) {
            $fields['add_from_group'] = $groupUpdate->getAddFromGroup();
        }

        if (null != $groupUpdate->getRemoveFromGroup()) {
            $fields['remove_from_group'] = $groupUpdate->getRemoveFromGroup();
        }

        if (null != $groupUpdate->getAutoUpdate()) {
            if ($groupUpdate->getAutoUpdate() === Api\Reset::reset()) {
                $fields['auto_update'] = null;
            } else {
                $fields['auto_update'] = Serialize::_groupAutoUpdateHelper(
                    $groupUpdate->getAutoUpdate()
                );
            }
        }

        return empty($fields) ? '{}' : Serialize::_toJson($fields);
    }
1362210
public function editGroup()
	{
        $this->defaultData();

		$clazz = $this->getCurrentClass();
		$group = $this->getCurrentInstance();

		$formContainer = new SignedFormInstance($clazz, $group);
		$myForm = $formContainer->getForm();
		if($myForm->isSubmited()){
			if($myForm->isValid()){
			    $this->validateInstanceRoot($group->getUri());

				$binder = new tao_models_classes_dataBinding_GenerisFormDataBinder($group);
				$group = $binder->bind($myForm->getValues());

		        $this->setData("selectNode", tao_helpers_Uri::encode($group->getUri()));
				$this->setData('message', __('Group saved'));
				$this->setData('reload', true);
			}
		}

		$memberProperty = $this->getProperty(GroupsService::PROPERTY_MEMBERS_URI);
		$memberForm = tao_helpers_form_GenerisTreeForm::buildReverseTree($group, $memberProperty);
		$memberForm->setData('title',	__('Select group test takers'));
		$this->setData('memberForm', $memberForm->render());

		if ($this->getServiceLocator()->get(common_ext_ExtensionsManager::SERVICE_ID)->isEnabled('taoDeliveryRdf')) {
		    $this->setData('deliveryForm', DeliveryWidget::renderDeliveryTree($group));
		}
        $updatedAt = $this->getServiceLocator()->get(ResourceWatcher::SERVICE_ID)->getUpdatedAt($group);
		$this->setData('updatedAt', $updatedAt);
		$this->setData('formTitle', __('Edit group'));
		$this->setData('myForm', $myForm->render());
		$this->setView('form_group.tpl');
	}
1174944
public function updateGroup($groupId)
    {
        $group = wei()->group()->findOrInitById($groupId);
        $ret = wei()->event->until('groupMove', [[$this['id']], $group]);
        if ($ret) {
            return $ret;
        }

        $this->save(['groupId' => $groupId]);

        return ['code' => 1, 'message' => '操作成功'];
    }
1180387
private void addGroup(String key, Group object) {
    int fieldIndex = getIndex(key);
    this.schema.getType(fieldIndex).asGroupType();
    this.data[fieldIndex].add(object);
  }
331997
def update_listing(self, num_iid, num, session):
        ''''''
        request = TOPRequest('taobao.item.update.listing')
        request['num_iid'] = num_iid
        request['num'] = num
        self.create(self.execute(request, session)['item'])
        return self
1153433
def queryUser(self, groupId):
        

        desc = {
            "name": "GroupUserQueryReslut",
            "desc": "groupUserQuery返回结果",
            "fields": [{
                "name": "code",
                "type": "Integer",
                "desc": "返回码，200 为正常。"
            }, {
                "name": "id",
                "type": "String",
                "desc": "群成员用户Id。"
            }, {
                "name": "users",
                "type": "List<GroupUser>",
                "desc": "群成员列表。"
            }]
        }
        r = self.call_api(
            method=('API', 'POST', 'application/x-www-form-urlencoded'),
            action='/group/user/query.json',
            params={"groupId": groupId})
        return Response(r, desc)
862551
def group_create(self, data, **kwargs):
        ""
        api_path = "/api/v2/groups.json"
        return self.call(api_path, method="POST", data=data, **kwargs)
1192025
def add_update_callback(self, group=None, name=None, cb=None):
        
        if not group and not name:
            self.all_update_callback.add_callback(cb)
        elif not name:
            if group not in self.group_update_callbacks:
                self.group_update_callbacks[group] = Caller()
            self.group_update_callbacks[group].add_callback(cb)
        else:
            paramname = '{}.{}'.format(group, name)
            if paramname not in self.param_update_callbacks:
                self.param_update_callbacks[paramname] = Caller()
            self.param_update_callbacks[paramname].add_callback(cb)
226135
def update(self, distributor_id, grade_id, session, trade_type=None):
        ''''''
        request = TOPRequest('taobao.fenxiao.cooperation.update')
        request['distributor_id'] = distributor_id
        request['grade_id'] = grade_id
        if trade_type!=None: request['trade_type'] = trade_type
        self.create(self.execute(request, session), fields=['is_success'])
        return self.is_success
1116686
private function adminUpdateGroup()
    {
        $item = $this->dbItem('groups', arg('id', 'int'));

        $item['title'] = arg('title', 'dbsafe');
        $item['description'] = arg('description', 'dbsafe');

        $this->dbUpdate('groups', $item);

        $url = arg('submitURL');
        if (strpos($url, '=group') === false)
        {
            $url .= '&action=group';
        }

        HTTP::redirect($url);
    }
186511
def group_batchadd(self, buyer_ids, group_ids, session):
        ''''''
        request = TOPRequest('taobao.crm.members.group.batchadd')
        request['buyer_ids'] = buyer_ids
        request['group_ids'] = group_ids
        self.create(self.execute(request, session), fields=['is_success', ])
        return self.is_success