View Single Post
Old 04-24-2008, 11:22 AM   #207
astrodad
Guru
astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.
 
astrodad's Avatar
 
Posts: 962
Karma: 568242
Join Date: Dec 2007
Device: Kindle Oasis 3, Kindle Paperwhite 1, iPad, iPhone
Thanks! I've modified database.py to get the default tags from Settings and then to call set_tags, but here's what's stored:

default tag is test,test2
stored tag: ., 0, 4, 6, <, >, c, l, q, p, s, a, b, e, d, g, i, j, o, n, r, t, y, x, 5, 9

here's the code (i know I need to add a check to make sure we actually have default tags, but I'll do that as soon as I know this works)


Quote:
settings = Settings()

self.set_tags(id, unicode(settings.value("defaultTags").toString().s plit(',')) )
astrodad is offline   Reply With Quote