Primitivus now implement showDialog + new "newAlert" bridge method to show a dialog from core

This commit is contained in:
Goffi 2010-08-18 12:45:48 +08:00
commit b3bff009e8

View file

@ -109,7 +109,7 @@ class Param():
debug("Parameters init")
self.host = host
self.default_profile = None
self.params = {'goffi':{}} #gof:
self.params = {}
self.params_gen = {}
host.set_const('savefile_param_xml', SAVEFILE_PARAM_XML)
host.set_const('savefile_param_data', SAVEFILE_PARAM_DATA)
@ -150,7 +150,7 @@ class Param():
info(_('No default profile, returning first one')) #TODO: manage real default profile
default = self.params.keys()[0]
self.host.memory.setPrivate('Profile_default', default)
return default #FIXME: gof: temporary, must use real default value, and fallback to first one if it doesn't exists
return default #FIXME: temporary, must use real default value, and fallback to first one if it doesn't exists
if not self.params.has_key(profile_key):
info (_('Trying to access an unknown profile'))
return ""