In the models involved both the fields 'accredited'  and 'ibss' are 
defined as list:integer.
I get this ticket and it seems to me it has something to do with the fact 
that those two fields of the type 'list:integer'.

Is there a way to use this logic with such fields or should I change the 
type to strings?

File "applications/akb/modules/local.py", line 290, in lys_verskille
    for veld in velde:
TypeError: unhashable type: 'list'

Code listing 

285.
286.
287.
288.
289.
290.

291.
292.
293.
294.

    vv = {}
    for veld in velde:
        vv[veld] = set([])
    for art in lys:
        # import pdb; pdb.set_trace()
        for veld in velde:

            if art[veld] <> templaat[veld]:
                vv[veld].add(art[veld])
    opsies = {}
    for key in vv.keys():

 Variables  veld 'accredited'  velde ['title', 'standard_name', 'issn', 
'abbrev_iso', 'publisher', 'subject', 'heading', 'accredited', 'ibss']  
Context 

locals request session response 
localsart:
<Row {'publisher': None, 'uuid': '37e0bb6d-88d2-...<function <lambda> at 
0x7f5ea28>, 'subject': ''}>
db:
<DAL {'akb_research': <Table {'_db': <DAL {...}>...eld object at 
0x7f55490>, '_after_insert': []}>}>
lys:
<gluon.dal.Rows object>
pdb:
<module 'pdb' from '/usr/lib/python2.7/pdb.pyc'>
templaat:
<Row {'publisher': None, 'uuid': '8be2aa70-d8d5-...unction <lambda> at 
0x7f5e938>, 'subject': None}>
veld:
'accredited'
velde:
['title', 'standard_name', 'issn', 'abbrev_iso', 'publisher', 'subject', 
'heading', 'accredited', 'ibss']
vv:
{'abbrev_iso': set(['']), 'accredited': set([]), 'heading': set(['']), 
'ibss': set([]), 'issn': set(['1753-2523']), 'publisher': set([]), 
'standard_name': set(['']), 'subject': set(['']), 'title': set(['African 
Historical Review (Kleio)'])}

Regards
Johann

-- 



Reply via email to