Drop support for auth plugins using site-config functions for instance config
Bug 1331863: Now that we've add a default validate_config_options()
implementation to the base Plugin class, we get a warning when saving
the config for auth plugins that say yes to has_instance_config() but have
not implemented the (optional) function validate_instance_config_options.
This is because of backwards-compatibility code to deal with older
auth plugins that were using get_config_options(), validate_config_options(),
and save_config_options(), to handle instance config. We made this change
in Mahara 1.5 and added a warning message then, that says to update the
plugin. I think that's a long enough warning period to just go ahead and
drop support for it.
>From now on, plugins that have instance configs, will have to implement
get_instance_config_options(), validate_instance_config_options(), and
save_instance_config_options(). (All the core auth plugins already do.)
Reviewed: https:/ /reviews. mahara. org/3453 gitorious. org/mahara/ mahara/ commit/ e53a30c087143ae 75985abc73430bf 9a483d34d5
Committed: http://
Submitter: Ghada El-Zoghbi (<email address hidden>)
Branch: master
commit e53a30c087143ae 75985abc73430bf 9a483d34d5
Author: Aaron Wells <email address hidden>
Date: Thu Jun 19 21:28:53 2014 +1200
Drop support for auth plugins using site-config functions for instance config
Bug 1331863: Now that we've add a default validate_ config_ options( ) config( ) but have instance_ config_ options.
implementation to the base Plugin class, we get a warning when saving
the config for auth plugins that say yes to has_instance_
not implemented the (optional) function validate_
This is because of backwards- compatibility code to deal with older options( ), validate_ config_ options( ), options( ), to handle instance config. We made this change
auth plugins that were using get_config_
and save_config_
in Mahara 1.5 and added a warning message then, that says to update the
plugin. I think that's a long enough warning period to just go ahead and
drop support for it.
>From now on, plugins that have instance configs, will have to implement config_ options( ), validate_ instance_ config_ options( ), and config_ options( ). (All the core auth plugins already do.)
get_instance_
save_instance_
Change-Id: Ia135a96a6d8c36 d36708a9b9a66ea ef71bc788e9