2 # Copyright (c) 2008 David Aguilar
12 from cola
.model
import Model
14 class SettingsModel(Model
):
17 self
.create( bookmarks
= [] )
18 if not HAS_SIMPLEJSON
:
20 settings
= self
.path()
21 if os
.path
.exists(settings
):
25 return os
.path
.join(user
.home
, '.cola')
27 def save_all_settings(self
):
28 if not HAS_SIMPLEJSON
:
30 self
.save(self
.path())