This sounds like exactly what the env upgrade system is for. Go for it. --Noah
On Dec 4, 2008, at 10:24 PM, Michael Renzmann wrote: > > Hi all. > > I'm working on TracPastePlugin, and so far it had just one permission, > PASTEBIN_USE, which allows to view existing and create new pastes. I > intend to introduce finer-grained permissions, starting with > PASTEBIN_VIEW > and PASTEBIN_CREATE. > > To make upgrading easier for the admin, I'm considering to let the > plugin > take care of adjusting permissions accordingly as part of an > environment > upgrade. The idea is to let the plugin require an environment > upgrade if > PASTEBIN_USE is still assigned to any subject in table "permission". > As > part of the environment upgrade permissions PASTEBIN_VIEW and > PASTEBIN_CREATE are granted to those subjects that have PASTEBIN_USE > permission, then PASTEBIN_USE is revoked. > > That way, when upgrading to the new plugin version nothing changes > for the > users per se, unless the admin decides to make use of the new > options the > plugin then provides. > > Is it a good idea to implement that? Is there any policy of a kind > saying > that plugins should (not) behave like this? > > Bye, Mike > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en -~----------~----~----~----~------~----~------~--~---
