fix executable flag

This commit is contained in:
Martijn Voncken 2008-11-20 18:02:19 +00:00
parent b9a7c87a2d
commit 7c8d8a22c2
6 changed files with 22 additions and 0 deletions

View File

@ -213,6 +213,28 @@ class DelugeFloat(DelugeInt):
pass pass
return float(DelugeInt.clean(self, value)) return float(DelugeInt.clean(self, value))
class StringList(Field):
"""for a list of strings """
def __init__(self, label, *args, **kwargs):
if not "widget" in kwargs:
kwargs["widget"] = StringListWidget
newforms.Field.__init__(self, *args, **kwargs)
def clean(self, value):
if type(value) in [str, unicode]: #bug
return value.split("/n")
class StringListWidget(newforms.Textarea):
"""for a list of strings """
def __init__(self, attrs=None):
newforms.Textarea.__init__(self, attrs)
def render(self, name, value, attrs=None):
if type(value) in [list, tuple]: #bug
value = "\n".join(value)
return newforms.Textarea.render(self, name, value, attrs)
#/fields #/fields

0
deluge/ui/webui/static/images/simple_bg.jpg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
deluge/ui/webui/static/images/simple_bg_flipped.jpg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 587 B

After

Width:  |  Height:  |  Size: 587 B

0
deluge/ui/webui/static/images/simple_line.jpg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 631 B

After

Width:  |  Height:  |  Size: 631 B

0
deluge/ui/webui/static/images/simple_logo.jpg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

0
deluge/ui/webui/static/simple_site_style.css Executable file → Normal file
View File