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

webmaster@zope.org webmaster@zope.org
Tue, 19 Nov 2002 11:02:01 -0500


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

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

      Zope products are identified in the management interface with
      icons. An icon should be a 16 by 16 pixel GIF image with a
      transparent background. Normally icons files are located in a
      'www' subdirectory of your product package. To associate an icon
      with a product class, use the 'icon' parameter to the
      'registerClass' method in your product's constructor. For
      example::

        def initialize(registrar):
            registrar.registerClass(
                PollProduct, 
                constructors = (addForm, addFunction),
                icon = 'www/poll.gif'
                )

        % Anonymous User - Nov. 19, 2002 11:01 am:
         Would a PNG be acceptable/ preferable?