| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -327,3 +327,9 @@ def test_students(self): | |||
| 327 | 327 | assert type(student) == webuntis.objects.StudentObject | |
| 328 | 328 | assert student.full_name == "Alexander Mueller" | |
| 329 | 329 | assert student.gender == "male" | |
| 330 | + | ||
| 331 | + | ||
| 332 | + | ||
| 333 | + | ||
| 334 | + def test_examtype(self): | ||
| 335 | + pass | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -625,6 +625,7 @@ def date(self): | |||
| 625 | 625 | ||
| 626 | 626 | ||
| 627 | 627 | class SubstitutionObject(PeriodObject): | |
| 628 | + """Information about substitution.""" | ||
| 628 | 629 | ||
| 629 | 630 | @lazyproperty | |
| 630 | 631 | def type(self): | |
@@ -670,6 +671,8 @@ class SubstitutionList(ListResult): | |||
| 670 | 671 | ||
| 671 | 672 | ||
| 672 | 673 | class TimeUnitObject(Result): | |
| 674 | + """Information about the time grid""" | ||
| 675 | + | ||
| 673 | 676 | @lazyproperty | |
| 674 | 677 | def name(self): | |
| 675 | 678 | """Name of Timeunit""" | |
@@ -689,6 +692,7 @@ def end(self): | |||
| 689 | 692 | ||
| 690 | 693 | ||
| 691 | 694 | class TimegridDayObject(Result): | |
| 695 | + """Information about one day in the time grid""" | ||
| 692 | 696 | @lazyproperty | |
| 693 | 697 | def day(self): | |
| 694 | 698 | return self._data[u'day'] | |
@@ -707,6 +711,7 @@ def timeUnits(self): | |||
| 707 | 711 | ||
| 708 | 712 | ||
| 709 | 713 | class TimegridObject(ListResult): | |
| 714 | + """A list of TimegridDayObjects""" | ||
| 710 | 715 | _itemclass = TimegridDayObject | |
| 711 | 716 | ||
| 712 | 717 | ||
@@ -723,4 +728,15 @@ def gender(self): | |||
| 723 | 728 | return self._data[u'gender'] | |
| 724 | 729 | ||
| 725 | 730 | class StudentsList(ListResult): | |
| 731 | + """A list of students""" | ||
| 726 | 732 | _itemclass = StudentObject | |
| 733 | + | ||
| 734 | + ''' | ||
| 735 | + @TODO: need additional rights | ||
| 736 | + class ExamTypeObject(Result): | ||
| 737 | + """Represents an Exam Type.""" | ||
| 738 | + | ||
| 739 | + class ExamTypeList(ListResult): | ||
| 740 | + """A list of exam types""" | ||
| 741 | + _itemclass = ExamTypeObject | ||
| 742 | + ''' | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -412,3 +412,19 @@ class TimegridObject(ListResult): | |||
| 412 | 412 | ||
| 413 | 413 | def __getitem__(self, i: int) -> TimegridDayObject: | |
| 414 | 414 | ... | |
| 415 | + | ||
| 416 | + """ | ||
| 417 | + @TODO: need additional rights | ||
| 418 | + | ||
| 419 | + class ExamTypeObject(Result): | ||
| 420 | + ... | ||
| 421 | + | ||
| 422 | + class ExamTypeList(ListResult): | ||
| 423 | + _itemclass = ExamTypeObject | ||
| 424 | + | ||
| 425 | + def filter(self, **criterions) -> ExamTypeObject: | ||
| 426 | + ... | ||
| 427 | + | ||
| 428 | + def __getitem__(self, i: int) -> ExamTypeObject: | ||
| 429 | + ... | ||
| 430 | + """ | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -331,6 +331,16 @@ def students(self): | |||
| 331 | 331 | """ | |
| 332 | 332 | return objects.StudentsList, 'getStudents', {} | |
| 333 | 333 | ||
| 334 | + ''' | ||
| 335 | + @TODO: need additional rights | ||
| 336 | + @result_wrapper | ||
| 337 | + def examTypes(self): | ||
| 338 | + """Information about the Exams. | ||
| 339 | + | ||
| 340 | + :rtype: :py:class:`webuntis.objects.ExamTypeList` | ||
| 341 | + """ | ||
| 342 | + return objects.ExamTypeList, 'getExamTypes', {} | ||
| 343 | + ''' | ||
| 334 | 344 | ||
| 335 | 345 | class Session(JSONRPCSession, ResultWrapperMixin): | |
| 336 | 346 | """The origin of everything you want to do with the WebUntis API. Can be | |
| Back | FazBrowse Home | New Git URL |
0 commit comments