You are not logged in Log in Join
You are here: Home » Members » Tres Seaver's Zope.org Site » Guru of the Week Site » ZGotW Installation Instructions

Log in
Name

Password

 

ZGotW Installation Instructions

  1. Uncompress the product file into the root of your Zope installation, e.g., /usr/local/zope or C:\tools\Zope. This extracts files into two subdirectories, import and /Products/ZGotW/Extensions, which will be created if needed.
    • import/ZGotW.zexp, the ZClass-based Zope Product
    • Products/ZGotW/Extensions/ZGotW.Utilities.py, the supporting Python ExternalMethod.
    Zope 2.0.x users
    Under Zope 2.0, ExternalMethods expect to find their Python files in $ZOPE_HOME/Extensions. If you have any other ExternalMethods already defined, then that subdirectory should be there already; otherwise, you will need to create this directory first. Then you can just copy/link the Utilities.py from the $ZOPE_HOME/lib/python/Products/ZGotW/Extensions into it, and rename it to 'ZGotW.Utilities.py.'*
    Zope 2.1.x and 2.2.x users
    If this is an $INSTANCE_HOME -based Zope, all is well; if not, you will need to move the ZGotW directory to your $SOFTWARE_HOME/lib/python/Products.
  2. On the Control Panel | Products screen, select the Export button (pre Zope 2.1b2) or the Export/Import tab. Use the import form to import ZGotW.zexp.
  3. Somewhere in your main Zope tree, create a ZGotW Root.
    • The "local host" and "smtp host", etc. properties are used to initialize a MailHost object -- you will need working values for them before you can create an issue.
    • The "editors" property should contain email addresses, one per line, of those fortunate individuals who will be editing the GotW.
    • The gotwList property should contain the email address to which the GotW will send its "open", "reply", and "close" announcement emails (e.g., [email protected] for the Zope GotW contest).
  4. View the newly created object, modify the default DTML documents there to suit your taste, and begin creating GotW Issues.