diff -r 1cd180cc56c9 -r fd2e83a297c7 app/soc/views/helper/widgets.py --- a/app/soc/views/helper/widgets.py Fri Apr 03 17:41:08 2009 +0000 +++ b/app/soc/views/helper/widgets.py Fri Apr 03 17:43:41 2009 +0000 @@ -23,8 +23,6 @@ ] -import copy - from django import forms from django.forms import util from django.forms import widgets @@ -118,7 +116,7 @@ *args, **kwargs: passed through to parent __init__() constructor """ - super(forms.widgets.Textarea, self).__init__(*args, **kwargs) + super(FullTinyMCE, self).__init__(*args, **kwargs) self.mce_settings = self.DEF_MCE_SETTINGS def render(self, name, value, attrs=None): @@ -189,10 +187,10 @@ super(AgreementField, self).__init__(*args, **kwargs) def render(self, name, value, attrs=None): - """ + """HTML renderer for Agreement field. """ - - url = 'Full Text' % self.url if self.url else "" + url_text = 'Full Text' + url = url_text % self.url if self.url else "" value = self.text.replace('\n', '
') result = self.HTML_CODE % {'url': url, 'text': value} return result