[PyCS-devel] Re: [Pyds-users] Maybe problems with Metakit 2.4.9.3
Status: Alpha
Brought to you by:
myelin
|
From: Yasushi I. <ya...@lo...> - 2004-04-20 03:09:37
|
Hi,
I found this code causes segmentation fault with Metakit 2.4.9.3. But
no problem with 2.4.9.2.
--
import metakit
db = metakit.storage('foo.dat', 1)
comments = db.getas(
'comments[user:S, paragraph:S, link:S, notes[name:S, email:S, url:S, comment:S, date:S]]').ordered( 2 )
user = '0000001'
paragraph = 'P1'
link = 'http://foobar.com/weblog/2004/04/20.html#P1'
print 'Now, appending...'
comments.append({
'user': user,
'paragraph': paragraph,
'link': link,
'notes': metakit.view()
})
print 'Appended.'
db.commit()
print 'committed.'
|