List all `huisnummers` in a `Straat`.

        :param straat: The :class:`Straat` for which the \
            `huisnummers` are wanted.
        :rtype: A :class: `list` of :class:`Huisnummer`
335849
def list_huisnummers_by_straat(self, straat, sort=1):
        '''
        
        '''
        try:
            id = straat.id
        except AttributeError:
            id = straat

        def creator():
            res = crab_gateway_request(
                self.client, 'ListHuisnummersWithStatusByStraatnaamId',
                id, sort
            )
            try:
                return[
                    Huisnummer(
                        r.HuisnummerId,
                        r.StatusHuisnummer,
                        r.Huisnummer,
                        id
                    ) for r in res.HuisnummerWithStatusItem
                ]
            except AttributeError:
                return []
        if self.caches['short'].is_configured:
            key = 'ListHuisnummersWithStatusByStraatnaamId#%s%s' % (id, sort)
            huisnummers = self.caches['short'].get_or_create(key, creator)
        else:
            huisnummers = creator()
        for h in huisnummers:
            h.set_gateway(self)
        return huisnummers
388391
def list_adresposities_adapter(obj, request):
    
    return {
        'id': obj.id,
        'herkomst': {
            'id': obj.herkomst.id,
            'naam': obj.herkomst.naam,
            'definitie': obj.herkomst.definitie
        }
    }
1143788
def list_records(self, rtype=None, name=None, content=None, **kwargs):
        

        if not rtype and kwargs.get('type'):
            warnings.warn('Parameter "type" is deprecated, use "rtype" instead.',
                          DeprecationWarning)
            rtype = kwargs.get('type')

        return self._list_records(rtype=rtype, name=name, content=content)
563754
def values(self):
        
        if ver == (2, 7):
            return self.viewvalues()
        elif ver == (2, 6):
            return self.itervalues()
        elif ver >= (3, 0):
            return self.values()
1309403
def p_lconst_case_list(self, p):
        ''''''
        if len(p) == 4:
            p[0] = [('lconst', (p[1], p[3]))]
        elif len(p) == 6:
            p[1].append(('lconst', (p[3], p[5])))
            p[0] = p[1]
148640
def check_lazy_load_huisnummer(f):
    '''
    
    '''
    def wrapper(*args):
        huisnummer = args[0]
        if (
            huisnummer._metadata is None
        ):
            log.debug('Lazy loading Huisnummer %d', huisnummer.id)
            huisnummer.check_gateway()
            h = huisnummer.gateway.get_huisnummer_by_id(huisnummer.id)
            huisnummer._metadata = h._metadata
        return f(*args)
    return wrapper
1322849
def get_list_representation(self):
        """"""
        if self.is_list:
            return self.list_or_slice
        else:
            return self[list(range(self.num_examples))]
780825
def check_lazy_load_straat(f):
    '''
    
    '''
    def wrapper(*args):
        straat = args[0]
        if (
            straat._namen is None or straat._metadata is None
        ):
            log.debug('Lazy loading Straat %d', straat.id)
            straat.check_gateway()
            s = straat.gateway.get_straat_by_id(straat.id)
            straat._namen = s._namen
            straat._metadata = s._metadata
        return f(*args)
    return wrapper
549750
def cycle_list(self,*args):
        '''
        
        '''
        noargs = len(args) == 0
        return np.unique(self.cycle) if noargs else np.unique(self.cycle.compress(args[0]))
1251995
def list(self, cur_p=''):
        '''
        
        '''
        current_page_number = int(cur_p) if cur_p else 1
        current_page_number = 1 if current_page_number < 1 else current_page_number

        kwd = {
            'current_page': current_page_number
        }
        recs = MEntity.get_all_pager(current_page_num=current_page_number)
        self.render('misc/entity/entity_list.html',
                    imgs=recs,
                    cfg=config.CMS_CFG,
                    kwd=kwd,
                    userinfo=self.userinfo)
993114
def p_property_list(self, p):
        
        if len(p) == 2:
            p[0] = [p[1]]
        else:
            p[1].append(p[3])
            p[0] = p[1]
803859
def postadressen(self):
        '''
         
        '''
        return [h.postadres for h in self.huisnummers if h.status.id == '3']
114580
async def List(self, arches, region, root_storage_type, series, stream, virt_type):
        '''
        
        '''
        # map input types to rpc msg
        _params = dict()
        msg = dict(type='ImageMetadata',
                   request='List',
                   version=2,
                   params=_params)
        _params['arches'] = arches
        _params['region'] = region
        _params['root-storage-type'] = root_storage_type
        _params['series'] = series
        _params['stream'] = stream
        _params['virt-type'] = virt_type
        reply = await self.rpc(msg)
        return reply
992753
def list(self, rule, **kwargs):
        
        return '<ul class="pynspect-rule-list">{}</ul>'.format(''.join(['<li class="pynspect-rule-list-item">{}</li>'.format(v.traverse(self, **kwargs)) for v in rule.value]))
1191301
def displayTriples(triples, qname=qname):
    
    [print(*(e[:5]
             if isinstance(e, rdflib.BNode) else
             qname(e)
             for e in t), '.')
             for t in sorted(triples)]
848933
def generate_fieldvalues(self, count=1):
        
        ar_context = self.get_ar()

        # mapping of UID index to AR objects {1: <AR1>, 2: <AR2> ...}
        copy_from = self.get_copy_from()

        out = {}
        # the original schema fields of an AR (including extended fields)
        fields = self.get_ar_fields()

        # generate fields for all requested ARs
        for arnum in range(count):
            source = copy_from.get(arnum)
            parent = None
            if source is not None:
                parent = self.get_parent_ar(source)
            for field in fields:
                value = None
                fieldname = field.getName()
                if source and fieldname not in SKIP_FIELD_ON_COPY:
                    # get the field value stored on the source
                    context = parent or source
                    value = self.get_field_value(field, context)
                else:
                    # get the default value of this field
                    value = self.get_default_value(
                        field, ar_context, arnum=arnum)
                # store the value on the new fieldname
                new_fieldname = self.get_fieldname(field, arnum)
                out[new_fieldname] = value

        return out
252968
def get_postadres_by_huisnummer(self, huisnummer):
        '''
        
        '''
        try:
            id = huisnummer.id
        except AttributeError:
            id = huisnummer
        def creator():
            res = crab_gateway_request(
                self.client, 'GetPostadresByHuisnummerId', id
            )
            if res == None:
                 raise GatewayResourceNotFoundException()
            return res.Postadres
        if self.caches['short'].is_configured:
            key = 'GetPostadresByHuisnummerId#%s' % (id)
            postadres = self.caches['short'].get_or_create(key, creator)
        else:
            postadres = creator()
        return postadres