commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/geas/examples/python schema.py


From: Neil Tiffin
Subject: gnue/geas/examples/python schema.py
Date: Thu, 27 Sep 2001 13:16:30 -0400

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Neil Tiffin <address@hidden>    01/09/27 13:16:30

Modified files:
        geas/examples/python: schema.py 

Log message:
        Revise to ignore if language::help table is not present.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/examples/python/schema.py.diff?cvsroot=OldCVS&tr1=1.11&tr2=1.12&r1=text&r2=text

Patches:
Index: gnue/geas/examples/python/schema.py
diff -u gnue/geas/examples/python/schema.py:1.11 
gnue/geas/examples/python/schema.py:1.12
--- gnue/geas/examples/python/schema.py:1.11    Sun Sep 16 13:35:07 2001
+++ gnue/geas/examples/python/schema.py Thu Sep 27 13:16:30 2001
@@ -7,7 +7,7 @@
 # a test file: relies on GEAS being run from gnue/geas/src
 # and this from gnue/geas/examples/python
 #
-# $Id: schema.py,v 1.11 2001/09/16 17:35:07 ntiffin Exp $
+# $Id: schema.py,v 1.12 2001/09/27 17:16:30 ntiffin Exp $
 
 import re
 import sys
@@ -19,6 +19,12 @@
             # does not handle language correctly but is very fast
             # use get_help_object1
    classname = "language::help"
+   try:
+        temp = getClassDefinition(classname)
+   except ServerError,ex:
+        return None
+   except UnknownClass, ex:
+        return None
    fieldname = "name"
    fieldcontents = re.sub(r'::', '__', full_class_name+"."+field_name)
    fieldcontents = re.sub(r'^root__', '', fieldcontents)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]