16 |
# write to the Free Software Foundation, Inc., 59 Temple Place |
# write to the Free Software Foundation, Inc., 59 Temple Place |
17 |
# - Suite 330, Boston, MA 02111-1307, USA. |
# - Suite 330, Boston, MA 02111-1307, USA. |
18 |
# |
# |
19 |
# Copyright 2002 Free Software Foundation |
# Copyright 2002-2003 Free Software Foundation |
20 |
# |
# |
21 |
# FILE: |
# FILE: |
22 |
# GNObjects.py |
# GNObjects.py |
30 |
import sys, string, os, os.path |
import sys, string, os, os.path |
31 |
from gnue.common import GObjects, GDebug, GConfig, GRootObj |
from gnue.common import GObjects, GDebug, GConfig, GRootObj |
32 |
import GNParser |
import GNParser |
33 |
from gnue.reports import GREngine,GRExceptions |
try: |
34 |
|
from gnue.reports.base import GREngine,GRExceptions |
35 |
|
REPORTS_SUPPORT=0 |
36 |
|
except ImportError: |
37 |
|
REPORTS_SUPPORT=1 |
38 |
|
|
39 |
# Base class for all Navigator objects |
# Base class for all Navigator objects |
40 |
class GNObject(GObjects.GObj): |
class GNObject(GObjects.GObj): |
90 |
os.spawnve(os.P_NOWAIT,command[0],command,os.environ) |
os.spawnve(os.P_NOWAIT,command[0],command,os.environ) |
91 |
|
|
92 |
def _runReport(self, step): |
def _runReport(self, step): |
93 |
|
global REPORTS_SUPPORT |
94 |
|
if not REPORTS_SUPPORT: |
95 |
|
print "WARNING: Reports support not installed!" |
96 |
|
return |
97 |
|
|
98 |
reportCommand = gConfigNav('RunReportCommand') |
reportCommand = gConfigNav('RunReportCommand') |
99 |
|
|
100 |
# get the name of the report |
# get the name of the report |