thoughts about PyLucid's preferences
links
- old:
- ticket:126
- Forum discussions:
- dbsettings django project
- new:
new multiple model
new multiple model, see:
- ticket:206
- http://pylucid.org/phpBB2/viewtopic.php?p=1239#1239
- browser:trunk/pylucid/PyLucid/models/Plugin.py
class Plugin(models.Model): """ Model for Plugin administration. """ objects = PluginManager() plugin_name = models.CharField(max_length=90, unique=True) package_name = models.CharField(max_length=255) author = models.CharField(blank=True, max_length=150) url = models.CharField(blank=True, max_length=255) description = models.CharField(blank=True, max_length=255) can_deinstall = models.BooleanField(default=True, help_text=( "If false and/or not set:" " This essential plugin can't be deinstalled." ) ) active = models.BooleanField(default=False, help_text="Is this plugin is enabled and useable?" ) default_pref = models.ForeignKey("Preferences", help_text="Witch preferences used as default (If no id specified in lucidTag)" ) class Preference(models.Model): id = models.AutoField(primary_key=True) plugin = models.ForeignKey(Plugin) comment = models.CharField(max_length=255, help_text="Small comment for this preference entry" ) pref_data_string = models.TextField( null=True, blank=True, help_text="printable representation of the newform data dictionary" )