# HG changeset patch # User Sverre Rabbelier # Date 1236292237 0 # Node ID 866667e9343d4541a1a3bd9440f1cab616f1868d # Parent 242ca517c3401e18542235fe04dad41bac1bed00 Make org description use TinyMCE Also clean it as well as the contrib_template with the new cleaner. Patch by: Sverre Rabbelier diff -r 242ca517c340 -r 866667e9343d app/soc/views/models/organization.py --- a/app/soc/views/models/organization.py Thu Mar 05 22:30:06 2009 +0000 +++ b/app/soc/views/models/organization.py Thu Mar 05 22:30:37 2009 +0000 @@ -117,9 +117,14 @@ new_params['create_extra_dynaproperties'] = { 'scope_path': forms.CharField(widget=forms.HiddenInput, required=True), + 'description': forms.fields.CharField( + widget=helper.widgets.FullTinyMCE( + attrs={'rows': 25, 'cols': 100})), 'contrib_template': forms.fields.CharField( widget=helper.widgets.FullTinyMCE( attrs={'rows': 25, 'cols': 100})), + 'clean_description': cleaning.clean_html_content('description'), + 'clean_contrib_template': cleaning.clean_html_content('contrib_template'), 'clean_ideas': cleaning.clean_url('ideas'), 'clean': cleaning.validate_new_group('link_id', 'scope_path', soc.logic.models.organization, org_app_logic)