File: test024.js

package info (click to toggle)
pyjamas 0.7~%2Bpre2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 10,656 kB
  • ctags: 12,331
  • sloc: python: 74,493; php: 805; sh: 291; makefile: 59; xml: 9
file content (26 lines) | stat: -rw-r--r-- 725 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
__CalendarProvider.prototype.__class__ = "CalendarProvider";
function CalendarProvider() {
    return new __CalendarProvider();
}
function __CalendarProvider() {
}
__CalendarProvider.prototype.pushResults = function(acceptor, startRow, people) {
    var rows = new pyjslib_List([]);

        var __person = people.__iter__();
        try {
            while (true) {
                var person = __person.next();
                
        
    rows.append(new pyjslib_Tuple([person.getName(), person.getDescription(), person.getSchedule(daysFilter)]));

            }
        } catch (e) {
            if (e != StopIteration) {
                throw e;
            }
        }
        
    acceptor.accept(startRow, rows);
};