|
Last change
on this file since 3197 was
3197,
checked in by mylan, 15 years ago
|
|
updated interface
|
-
Property svn:eol-style set to
native
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | from zope.interface import Interface |
|---|
| 2 | # -*- Additional Imports Here -*- |
|---|
| 3 | from zope import schema |
|---|
| 4 | |
|---|
| 5 | from ploneorg.kudobounty import kudobountyMessageFactory as _ |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | class IBountyProgramSubmission(Interface): |
|---|
| 9 | """Information for Bounty Program Submission""" |
|---|
| 10 | |
|---|
| 11 | # -*- schema definition goes here -*- |
|---|
| 12 | mission = schema.Text( |
|---|
| 13 | title=_(u"Bounty mission"), |
|---|
| 14 | required=True, |
|---|
| 15 | description=_(u"Bounty mission trac ticket #"), |
|---|
| 16 | ) |
|---|
| 17 | # |
|---|
| 18 | email = schema.TextLine( |
|---|
| 19 | title=_(u"Email address"), |
|---|
| 20 | required=False, |
|---|
| 21 | ) |
|---|
| 22 | # |
|---|
| 23 | organization = schema.TextLine( |
|---|
| 24 | title=_(u"Organization name"), |
|---|
| 25 | required=False, |
|---|
| 26 | ) |
|---|
| 27 | # |
|---|
| 28 | lastName = schema.TextLine( |
|---|
| 29 | title=_(u"Last name"), |
|---|
| 30 | required=False, |
|---|
| 31 | ) |
|---|
| 32 | # |
|---|
| 33 | firstName = schema.TextLine( |
|---|
| 34 | title=_(u"First name"), |
|---|
| 35 | required=False, |
|---|
| 36 | ) |
|---|
| 37 | # |
|---|
| 38 | description = schema.TextLine( |
|---|
| 39 | title=_(u"alt text"), |
|---|
| 40 | required=False, |
|---|
| 41 | ) |
|---|
| 42 | # |
|---|
| 43 | remoteUrl = schema.TextLine( |
|---|
| 44 | title=_(u"URL"), |
|---|
| 45 | required=True, |
|---|
| 46 | ) |
|---|
| 47 | # |
|---|
| 48 | image = schema.Bytes( |
|---|
| 49 | title=_(u"Image"), |
|---|
| 50 | required=True, |
|---|
| 51 | description=_(u"Image or Logo"), |
|---|
| 52 | ) |
|---|
| 53 | # |
|---|
Note: See
TracBrowser
for help on using the repository browser.