Skip to content

Commit 4ff2288

Browse files
committed
ooaofooa: ignore attributes with unsupported data types when instantiating
a mode, in python
1 parent 286ceb5 commit 4ff2288

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bridgepoint/ooaofooa.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,15 @@ def mk_class(m, o_obj, derived_attributes=False):
281281

282282
while o_attr:
283283
s_dt = get_attribute_type(o_attr)
284+
ty = _get_data_type_name(s_dt)
284285
if not derived_attributes and one(o_attr).O_BATTR[106].O_DBATTR[107]():
285286
pass
286287
# logger.warning('Omitting derived attribute %s.%s ' %
287288
# (o_obj.Key_Lett, o_attr.Name))
288-
elif not s_dt:
289+
elif not ty:
289290
logger.warning('Omitting unsupported attribute %s.%s ' %
290291
(o_obj.Key_Lett, o_attr.Name))
291292
else:
292-
ty = _get_data_type_name(s_dt)
293293
attributes.append((o_attr.Name, ty))
294294

295295
o_attr = one(o_attr).O_ATTR[103, 'precedes']()

0 commit comments

Comments
 (0)