comparison gpp/messages/forms.py @ 6:b6263ac72052

Use DRY principle to manage third party javascript libraries. Created script_tags template tags to generate the correct link and script tags for 3rd party libraries. The settings.py file is the only place where the full path name is specified.
author Brian Neal <bgneal@gmail.com>
date Sat, 11 Apr 2009 22:50:56 +0000
parents dbd703f7d63a
children c515b7401078
comparison
equal deleted inserted replaced
5:63696b279e35 6:b6263ac72052
65 if receiver_opts.notify_email: 65 if receiver_opts.notify_email:
66 notify_receiver(new_msg) 66 notify_receiver(new_msg)
67 67
68 class Media: 68 class Media:
69 css = { 69 css = {
70 'all': ('js/markitup/skins/markitup/style.css', 70 'all': settings.GPP_THIRD_PARTY_CSS['markitup'],
71 'js/markitup/sets/markdown/style.css')
72 } 71 }
73 js = ( 72 js = ('js/messages/compose.js', ) + settings.GPP_THIRD_PARTY_JS['markitup']
74 'js/messages/compose.js',
75 'js/markitup/jquery.markitup.pack.js',
76 'js/markitup/sets/markdown/set.js',
77 )
78 73
79 74
80 class OptionsForm(forms.ModelForm): 75 class OptionsForm(forms.ModelForm):
81 class Meta: 76 class Meta:
82 model = Options 77 model = Options