11 from cola
.model
import Model
13 class SettingsModel(Model
):
16 self
.create( bookmarks
= [] )
17 if not HAS_SIMPLEJSON
:
19 settings
= self
.path()
20 if os
.path
.exists(settings
):
24 return os
.path
.join(user
.home
, '.cola')
26 def save_all_settings(self
):
27 if not HAS_SIMPLEJSON
:
29 self
.save(self
.path())