#!/usr/bin/env python
#
# Tutorial:
#    Now that a connection has been established with the Launchpad service,
#    demonstrate one way of getting access to the informtation for a single
#    bug.
#

from lpltk.service                   import LaunchpadService

# LpltkTutorial
#
class LpltkTutorial():
    # main
    #
    def main(self):
        lp  = LaunchpadService()  # Connect to Launchpad

        # Get an instance of a bug object for a well known bug. Print out
        # the title of the bug.
        #
        bug = lp.get_bug(1)
        print("Title: %s" % bug.title)

        # Note: To see all the methods and properties on any python object
        #       you can always print out the results from a dir() call.
        #
        print dir(bug)

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

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

