[Metakit] MkPy hash view problems

Lars Heuer heuer at semagia.com
Thu Aug 18 19:07:36 CEST 2005


Hi all,

I have a problem with the hash view (Python 2.4)

Here a code snippet to illustrate the problem:
---
>>> import metakit
>>> s = metakit.storage()
>>> vw = s.getas('ex[s:S,i:I]')
>>> vwHash = s.getas('ex_hash[_H:I,_R:I]')
>>> view = vw.hash(vwHash)
>>> view.append(s='1')
0
>>> view.append(s='1')
1
>>> 
---

I'd expected a result of the 2nd append operation that I get 0 as
result. All further calls to view.append(s='1') return also 1.

Do I make a mistake here or is it a bug?

Thanks and best regards,
Lars
-- 
http://semagia.com



More information about the Metakit mailing list