ctrochalakis /
tx-submissions
(http://transifex.org/)
fork of transifex
GSoC '08: Introducing a new transifex submission system, an api and a command line client
Clone URL : http://bitbucket.org/ctrochalakis/tx-submissions/ (size: 1.4 MB)
| commit 459: | 8b349d4e0a61 |
| parent 458: | 5ef4a2e3412c |
| branch: | default |
Fixing list of repos type on the repo form
4 months ago
Changed (Δ61 bytes):
raw changeset »
transifex/repo.py (2 lines added, 2 lines removed)
Up to file-list transifex/repo.py:
| … | … | @@ -19,7 +19,7 @@ from tw.forms import DataGrid |
19 |
19 |
from tw.forms import DataGrid |
20 |
20 |
from transifex.util import get_repositories |
21 |
21 |
from genshi import HTML |
22 |
||
22 |
from transifex.submissions import SUBMISSION_CHOICES |
|
23 |
23 |
|
24 |
24 |
log = logging.getLogger(__name__) |
25 |
25 |
|
| … | … | @@ -42,7 +42,7 @@ class RepoForm(TableForm): |
42 |
42 |
attrs={'cols':50, 'rows':3}) |
43 |
43 |
|
44 |
44 |
root = TextField(id='root', label_text=_('Root'), validator=validators.UnicodeString(not_empty=True, max=300)) |
45 |
type = SingleSelectField(id='type', label_text=_('Type'), options=['' |
|
45 |
type = SingleSelectField(id='type', label_text=_('Type'), options=['']+[t[1] for t in SUBMISSION_CHOICES], |
|
46 |
46 |
validator=validators.PlainText(not_empty=True)) |
47 |
47 |
webpage = TextField(id='webpage', label_text=_('Webpage'), validator=validators.UnicodeString(), |
48 |
48 |
attrs={'size':50}) |
