[ZDP] BackTalk to Document Zope Developer's Guide (2.4 edition)/Components and Interfaces

webmaster@zope.org webmaster@zope.org
Mon, 18 Nov 2002 23:39:36 -0500


A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZDG/current/ComponentsAndInterfaces.stx#2-34

---------------

    Interfaces can be queried for information.
    The simplest case is to ask an interface the names of all
    the various interface items it describes.  From the Python interpreter,
    for example, you can walk right up to an interface and ask it for its
    *names*::

      >>> User.names()
      ['getUserName', 'getFavoriteColor', 'getPassword']

      % Anonymous User - Nov. 18, 2002 11:39 pm:
       Where did User come from? This might be better using Hello, or SmartHello.