[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/gnuef setup_cvs_devel.sh src/GFClient.py s...
From: |
James Thompson |
Subject: |
gnue/gnuef setup_cvs_devel.sh src/GFClient.py s... |
Date: |
Mon, 04 Jun 2001 20:25:23 -0700 |
CVSROOT: /cvs
Module name: gnue
Changes by: James Thompson <address@hidden> 01/06/04 20:25:23
Modified files:
gnuef : setup_cvs_devel.sh
gnuef/src : GFClient.py GFObjects.py GFOptions.py
Log message:
Started adding support for new GConfig configuration settings
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnuef/setup_cvs_devel.sh.diff?cvsroot=OldCVS&tr1=1.9&tr2=1.10&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnuef/src/GFClient.py.diff?cvsroot=OldCVS&tr1=1.18&tr2=1.19&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnuef/src/GFObjects.py.diff?cvsroot=OldCVS&tr1=1.89&tr2=1.90&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnuef/src/GFOptions.py.diff?cvsroot=OldCVS&tr1=1.30&tr2=1.31&r1=text&r2=text
Patches:
Index: gnue/gnuef/setup_cvs_devel.sh
diff -u gnue/gnuef/setup_cvs_devel.sh:1.9 gnue/gnuef/setup_cvs_devel.sh:1.10
--- gnue/gnuef/setup_cvs_devel.sh:1.9 Fri Jun 1 13:34:15 2001
+++ gnue/gnuef/setup_cvs_devel.sh Mon Jun 4 20:25:23 2001
@@ -31,6 +31,11 @@
echo ' export GNUE_CONNECTIONS'
echo ' fi'
echo 'fi'
+ echo 'if [ "z$INSTALL_PREFIX" = "z" ]'
+ echo 'then'
+ echo ' INSTALL_PREFIX=/usr/local/gnue/'
+ echo ' export INSTALL_PREFIX'
+ echo 'fi'
echo "PYTHONPATH=`pwd`/.cvsdevelbase:\$PYTHONPATH; export PYTHONPATH"
echo "python `pwd`/.cvsdevelbase/gnue/forms/GFClient.py \$*"
) > client/gfcvs
Index: gnue/gnuef/src/GFClient.py
diff -u gnue/gnuef/src/GFClient.py:1.18 gnue/gnuef/src/GFClient.py:1.19
--- gnue/gnuef/src/GFClient.py:1.18 Sun Jun 3 19:05:12 2001
+++ gnue/gnuef/src/GFClient.py Mon Jun 4 20:25:23 2001
@@ -34,7 +34,7 @@
#
# Copyright (c) 2000 Free Software Foundation
#
-# $Id: GFClient.py,v 1.18 2001/06/04 02:05:12 jcater Exp $
+# $Id: GFClient.py,v 1.19 2001/06/05 03:25:23 jamest Exp $
#
import pstats
@@ -49,7 +49,7 @@
from gnue.forms.GFController import *
from gnue.forms.GFParser import loadForm
from gnue.common import GDebug
-
+from gnue.common import GConfig
from gnue.common.GClientApp import *
@@ -77,7 +77,7 @@
# Initialize the class
#
def __init__(self, connections=None):
- GClientApp.__init__(self, connections)
+ GClientApp.__init__(self, connections,'forms')
self._formInstances = {}
self._lastSerialNumber = 0
@@ -85,11 +85,6 @@
self.ui_type = self.OPTIONS['user_interface']
self.disableSplash = self.OPTIONS['splash_screen']
-
-#
-# old stuff still in use
-#
-
#
# Run the client application
#
@@ -120,7 +115,6 @@
if self.ui_type == 'text' :
from gnue.forms import UIcurses
self._ui=UIcurses.GFUserInterface
-
self.runForm(formfile, self.disableSplash)
Index: gnue/gnuef/src/GFObjects.py
diff -u gnue/gnuef/src/GFObjects.py:1.89 gnue/gnuef/src/GFObjects.py:1.90
--- gnue/gnuef/src/GFObjects.py:1.89 Sat Jun 2 18:29:45 2001
+++ gnue/gnuef/src/GFObjects.py Mon Jun 4 20:25:23 2001
@@ -36,8 +36,9 @@
from GFEvent import *
from GFTrigger import *
import GFOptions
-from GFOptions import autoCreate # Major hack to get arround the issue that
this file creates a class GFOptions
+
from gnue.common import GDebug
+from gnue.common import GConfig
import string
import types
@@ -296,7 +297,7 @@
self._recordCount = self._dataSourceLink.getLastRecordNumber()
self._currentRecord = self._currentRecord + 1
if self._currentRecord > self._recordCount :
- if autoCreate and
(self._dataSourceLink.resultSetStatus[self._recordCount] != 'saved' or
+ if int(GConfig.get('autocreate')) and
(self._dataSourceLink.resultSetStatus[self._recordCount] != 'saved' or
self._dataSourceLink.resultSet[self._recordCount].has_key(self._dataSourceLink.uniqueKey)
):
self.newRecord()
@@ -308,7 +309,7 @@
self._recordCount = self._dataSourceLink.getLastRecordNumber()
self._currentRecord = self._currentRecord - 1
if self._currentRecord < 0 :
- if autoCreate and
(self._dataSourceLink.resultSetStatus[self._recordCount] != 'saved' or
+ if int(GConfig.get('autocreate')) and
(self._dataSourceLink.resultSetStatus[self._recordCount] != 'saved' or
self._dataSourceLink.resultSet[self._recordCount].has_key(self._dataSourceLink.uniqueKey)
):
self.newRecord()
Index: gnue/gnuef/src/GFOptions.py
diff -u gnue/gnuef/src/GFOptions.py:1.30 gnue/gnuef/src/GFOptions.py:1.31
--- gnue/gnuef/src/GFOptions.py:1.30 Sat Jun 2 18:29:45 2001
+++ gnue/gnuef/src/GFOptions.py Mon Jun 4 20:25:23 2001
@@ -96,5 +96,5 @@
VERSION = "pre-0.0.8"
# Create new records in blocks automagically when you hit the bottom
-autoCreate = 0
+autoCreate = 1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/gnuef setup_cvs_devel.sh src/GFClient.py s...,
James Thompson <=