File: list_result.py

package info (click to toggle)
chargebee-python 1.6.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 484 kB
  • sloc: python: 1,008; makefile: 6; sh: 3
file content (13 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
from chargebee.result import Result


class ListResult(list):
    
    def __init__(self, response, next_offset):
        self.response = response
        self.next_offset = next_offset
        self._init_items()

    def _init_items(self):
        for item in self.response:
            self.append(Result(item))