- Timestamp:
- 25 Oct 2012, 21:52:10 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py
r9334 r9420 28 28 from waeup.kofa.students.vocabularies import ( 29 29 StudyLevelSource, contextual_reg_num_source, contextual_mat_num_source, 30 GenderSource, nats_vocab ,30 GenderSource, nats_vocab 31 31 ) 32 32 from waeup.kofa.payments.interfaces import ( 33 33 IPaymentsContainer, IOnlinePayment) 34 34 from waeup.kofa.university.vocabularies import ( 35 CourseSource, StudyModeSource, CertificateSource )35 CourseSource, StudyModeSource, CertificateSource, SemesterSource) 36 36 37 37 # VerdictSource can't be placed into the vocabularies module because it … … 488 488 489 489 class ICourseTicket(IKofaObject): 490 """A course ticket.490 """An interface for course tickets. 491 491 492 492 """ 493 493 code = Attribute('code of the original course') 494 title = Attribute('title of the original course')495 credits = Attribute('credits of the original course')496 passmark = Attribute('passmark of the original course')497 semester = Attribute('semester of the original course')498 fcode = Attribute('faculty code of the original course')499 dcode = Attribute('department code of the original course')500 494 certcode = Attribute('certificate code of the study course') 495 496 title = schema.TextLine( 497 title = _(u'Title'), 498 required = False, 499 ) 500 501 fcode = schema.TextLine( 502 title = _(u'Faculty Code'), 503 required = False, 504 ) 505 506 dcode = schema.TextLine( 507 title = _(u'Department Code'), 508 required = False, 509 ) 510 511 semester = schema.Choice( 512 title = _(u'Semester/Term'), 513 source = SemesterSource(), 514 required = False, 515 ) 516 517 passmark = schema.Int( 518 title = _(u'Passmark'), 519 required = False, 520 ) 521 522 credits = schema.Int( 523 title = _(u'Credits'), 524 required = False, 525 ) 501 526 502 527 mandatory = schema.Bool( … … 504 529 default = False, 505 530 required = False, 506 readonly = False,507 531 ) 508 532 … … 511 535 default = 0, 512 536 required = False, 513 readonly = False, 537 ) 538 539 carry_over = schema.Bool( 540 title = _(u'Carry-over Course'), 541 default = False, 542 required = False, 514 543 ) 515 544 … … 518 547 default = False, 519 548 required = False, 520 readonly = True, 521 ) 522 523 carry_over = schema.Bool( 524 title = _(u'Carry-over Course'), 525 default = False, 526 required = False, 527 readonly = False, 528 ) 529 530 credits = schema.Int( 531 title = _(u'Credits'), 532 required = False, 533 ) 534 535 passmark = schema.Int( 536 title = _(u'Passmark'), 537 required = False, 538 ) 549 ) 550 539 551 540 552 def getLevel(): … … 546 558 """ 547 559 548 class ICourseTicketAdd(I CourseTicket):560 class ICourseTicketAdd(IKofaObject): 549 561 """An interface for adding course tickets. 550 562 … … 556 568 ) 557 569 570 class ICourseTicketImport(ICourseTicket): 571 """An interface for importing course results and nothing more. 572 573 """ 574 score = schema.Int( 575 title = _(u'Score'), 576 required = False, 577 readonly = False, 578 ) 579 580 level_session = schema.Choice( 581 title = _(u'Level Session'), 582 source = academic_sessions_vocab, 583 required = False, 584 readonly = False, 585 ) 586 558 587 class IStudentAccommodation(IKofaObject): 559 588 """A container for student accommodation objects.
Note: See TracChangeset for help on using the changeset viewer.