#!/usr/bin/env python
#
# Tutorial:
#    The difference between this tutorial/example and tut.01 is that this shows
#    how to point at one of the other Launchpad services.
#
#    The staging service, exists for testing various things. This is running
#    against a snapshot of the database. Changes made on the staging server are
#    not permanent changes and will disapear when the database is reloaded (once
#    each day).
#

from lpltk.service                   import LaunchpadService

# LpltkTutorial
#
class LpltkTutorial():
    # main
    #
    def main(self):
        configuration = {}
        configuration['launchpad_services_root'] = 'staging'

        # By passing in the configuration dictionary, we've instructed the class
        # to connect to the Launchpad staging server.
        #
        lp = LaunchpadService(configuration)
        print("We've successfully established a connection to Launchpad services.")

if __name__ == '__main__':
    app = LpltkTutorial()
    app.main()

# vi:set ts=4 sw=4 expandtab:

