add oxdjango to ox package
This commit is contained in:
parent
0eeecabbd2
commit
0262ae50ca
11 changed files with 355 additions and 4 deletions
9
ox/django/widgets.py
Normal file
9
ox/django/widgets.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import django.newforms as forms
|
||||
from string import Template
|
||||
from django.utils.safestring import mark_safe
|
||||
|
||||
class FirefoggWidget(forms.FileInput):
|
||||
def render(self, name, value, attrs=None):
|
||||
tpl = Template(u"""<h1>This should be a Firefogg widget for $name, current value: $value</h1>""")
|
||||
return mark_safe(tpl.substitute(name=name, value=value))
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue