django-orchestra/orchestra/apps/saas/services/bscw.py

20 lines
532 B
Python
Raw Normal View History

2014-09-26 19:21:09 +00:00
from django import forms
from django.utils.translation import ugettext_lazy as _
2014-09-28 12:28:57 +00:00
from orchestra.forms import PluginDataForm
2014-09-26 19:21:09 +00:00
2014-09-28 12:28:57 +00:00
from .options import SoftwareService
2014-09-26 19:21:09 +00:00
2014-09-28 12:28:57 +00:00
class BSCWForm(PluginDataForm):
username = forms.CharField(label=_("Username"), max_length=64)
password = forms.CharField(label=_("Password"), max_length=64)
2014-09-26 19:21:09 +00:00
quota = forms.IntegerField(label=_("Quota"))
class BSCWService(SoftwareService):
verbose_name = "BSCW"
form = BSCWForm
2014-09-26 21:24:23 +00:00
description_field = 'username'
2014-10-11 12:43:08 +00:00
icon = 'saas/icons/BSCW.png'