1 from Plugins.Extensions.WebInterface.WebChilds.Toplevel import addExternalChild
2 from Plugins.Extensions.EPGRefresh.EPGRefreshResource import \
3 EPGRefreshStartRefreshResource, \
4 EPGRefreshAddRemoveServiceResource, \
5 EPGRefreshListServicesResource, \
6 EPGRefreshChangeSettingsResource, \
7 EPGRefreshSettingsResource
9 root = EPGRefreshListServicesResource()
10 root.putChild("refresh", EPGRefreshStartRefreshResource())
11 root.putChild("add", EPGRefreshAddRemoveServiceResource(EPGRefreshAddRemoveServiceResource.TYPE_ADD))
12 root.putChild("del", EPGRefreshAddRemoveServiceResource(EPGRefreshAddRemoveServiceResource.TYPE_DEL))
13 root.putChild("set", EPGRefreshChangeSettingsResource())
14 root.putChild("get", EPGRefreshSettingsResource())
15 addExternalChild( ("epgrefresh", root) )