[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r6644 - trunk/gnue-appserver/src/generator
From: |
johannes |
Subject: |
r6644 - trunk/gnue-appserver/src/generator |
Date: |
Mon, 8 Nov 2004 01:40:29 -0600 (CST) |
Author: johannes
Date: 2004-11-08 01:40:27 -0600 (Mon, 08 Nov 2004)
New Revision: 6644
Modified:
trunk/gnue-appserver/src/generator/classdef.py
Log:
If a reference class defines no search field treat it as non-lookup
Modified: trunk/gnue-appserver/src/generator/classdef.py
===================================================================
--- trunk/gnue-appserver/src/generator/classdef.py 2004-11-08 07:30:34 UTC
(rev 6643)
+++ trunk/gnue-appserver/src/generator/classdef.py 2004-11-08 07:40:27 UTC
(rev 6644)
@@ -252,8 +252,11 @@
# a reference is a 'lookup reference' if the first search field has a
# search-order other than 0. Otherwise it would be a 'search reference'
- first = self.properties [0]
- self.isLookup = first.search is not None and first.search != 0
+ if len (self.properties):
+ first = self.properties [0]
+ self.isLookup = first.search is not None and first.search != 0
+ else:
+ self.isLookup = False
for item in self.properties:
item.updateStyle ()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r6644 - trunk/gnue-appserver/src/generator,
johannes <=