A party is a person, project or organization related to a package.
| 207 | |
| 208 | @attr.attributes(slots=True) |
| 209 | class Party(ModelMixin): |
| 210 | """ |
| 211 | A party is a person, project or organization related to a package. |
| 212 | """ |
| 213 | |
| 214 | type = String( |
| 215 | repr=True, |
| 216 | validator=choices(PARTY_TYPES), |
| 217 | label='party type', |
| 218 | help='the type of this party: One of: ' |
| 219 | +', '.join(p for p in PARTY_TYPES if p)) |
| 220 | |
| 221 | role = String( |
| 222 | repr=True, |
| 223 | label='party role', |
| 224 | help='A role for this party. Something such as author, ' |
| 225 | 'maintainer, contributor, owner, packager, distributor, ' |
| 226 | 'vendor, developer, owner, etc.') |
| 227 | |
| 228 | name = String( |
| 229 | repr=True, |
| 230 | label='name', |
| 231 | help='Name of this party.') |
| 232 | |
| 233 | email = String( |
| 234 | repr=True, |
| 235 | label='email', |
| 236 | help='Email for this party.') |
| 237 | |
| 238 | url = String( |
| 239 | repr=True, |
| 240 | label='url', |
| 241 | help='URL to a primary web page for this party.') |
| 242 | |
| 243 | |
| 244 | @attr.attributes(slots=True) |