method getattr should default to handler.url (#1029245)
commit264f545944ace6df7f72142e64e1b94b4520ec9d
authorBrian C. Lane <bcl@redhat.com>
Wed, 16 Oct 2013 17:49:42 +0000 (16 10:49 -0700)
committerBrian C. Lane <bcl@redhat.com>
Mon, 16 Dec 2013 22:42:32 +0000 (16 14:42 -0800)
treee94ffdc8484dd1c1a5d3068e2427185efad9067c
parentf2a52c74101b76a69ab47fd82ec475c9aefe738e
method getattr should default to handler.url (#1029245)

When setting method attributes it defaults to using the url handler when
method is None, but there was no way to retrieve them once set. This
re-factors the __getattr__ handler so that internal methods go to the
right place and all others go to the first seen handler, or to
handler.url if method is None (used for closest mirror).

Related: rhbz#1029245
pykickstart/commands/method.py