Commit c5903a75 authored by Jim Fulton's avatar Jim Fulton

Change to get version_txt from a module function rather than from

a persistent object.  Importing Main breaks Zope 2 (which doesn't use Main).
Note that something needs to import Main or Zope before this gets called.
parent 1f2c15e5
...@@ -124,9 +124,8 @@ CONNECTION = regex.compile ('Connection: \(.*\)', regex.casefold) ...@@ -124,9 +124,8 @@ CONNECTION = regex.compile ('Connection: \(.*\)', regex.casefold)
ZSERVER_VERSION='1.1b1' ZSERVER_VERSION='1.1b1'
try: try:
import Main import App.ApplicationManager
ZOPE_VERSION=Main.app.Control_Panel.version_txt() ZOPE_VERSION=App.ApplicationManager.version_txt()
del Main
except: except:
ZOPE_VERSION='experimental' ZOPE_VERSION='experimental'
......
...@@ -124,9 +124,8 @@ CONNECTION = regex.compile ('Connection: \(.*\)', regex.casefold) ...@@ -124,9 +124,8 @@ CONNECTION = regex.compile ('Connection: \(.*\)', regex.casefold)
ZSERVER_VERSION='1.1b1' ZSERVER_VERSION='1.1b1'
try: try:
import Main import App.ApplicationManager
ZOPE_VERSION=Main.app.Control_Panel.version_txt() ZOPE_VERSION=App.ApplicationManager.version_txt()
del Main
except: except:
ZOPE_VERSION='experimental' ZOPE_VERSION='experimental'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment