# -*- coding: utf-8 -*-
'''
Copyright (c) 2016, Jan Brohl <janbrohl@t-online.de>.
All rights reserved.
See LICENSE.txt
'''
from __future__ import print_function # python 2
from pyscoutnet.api import ScoutnetAPI
api = ScoutnetAPI()
dpsg = api.group(3)
events = dpsg.events('start_date > ? AND start_date < ?',
['2011-01-01', '2011-06-01'])
print('Termine der %s:' % dpsg.name)
for e in events:
print(e.title)
print()
print('Teile der %s sind:' % dpsg.name)
for g in dpsg.children():
print(g.name)
print(dpsg)