[dev] Moving time_format from imp to horde preference scope

Chuck Hagenbuch chuck at horde.org
Wed Dec 7 12:07:44 PST 2005


Quoting "Kevin M. Myer" <kevin_myer at iu13.org>:

> I see a number of different scripts in horde/scripts working with
> preferences.  Some seem to make no assumption about the preference
> backend (migrate_users_categories.php) while others assume SQL
> (remove_prefs.php).  I guess my question is how would you translate a
> SQL statement like below, into higher level, preference-backend neutral
> Horde code:
>
> UPDATE `horde_prefs` SET  `pref_scope` = 'horde' where pref_name =
> 'time_format';

I don't believe there's a way to change scope like that through the API.

> Or should I just shoot for SQL conversion and let other preference
> backend users fend for themselves?

Or work up an LDAP script, since that's the other possibility. I won't  
reject this change based on just having a SQL migration script,  
certainly.

-chuck

-- 
"So we're talking near-sonic speeds for a vegetable."
Reasons to go to the Punkin Chunkin World Championships


More information about the dev mailing list