Skip to content

Commit ec455a9

Browse files
committed
Use E_Type.UI_Spec in User_Entity.__init__
1 parent 3ffaa86 commit ec455a9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

_CNDB/_GTW/RST_addons.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@
132132
# 7-Jul-2015 (CT) Add `net_device_type` to `DB_Device.view_field_names`
133133
# 8-Jul-2015 (CT) Remove `filter` from `_action_map`
134134
# 18-Nov-2015 (CT) Pass `abs_href_dynamic`, not `abs_href`, to `pp_join`
135+
# 16-Dec-2015 (CT) Fix ETM-splitting in `User_Entity.__init__`
136+
# 16-Dec-2015 (CT) Use `E_Type.UI_Spec`
135137
# ««revision-date»»···
136138
#--
137139

@@ -312,12 +314,9 @@ class User_Entity (_Ancestor) :
312314

313315
def __init__ (self, ** kw) :
314316
app_type = self.top.App_Type
315-
ET_Map = self.top.ET_Map
316317
ETM = kw.pop ("ETM", None) or self._ETM
317-
pns, etm = ETM.split (".")
318-
PNS = app_type.PNS_Map [pns]
319-
Nav = getattr (getattr (PNS, "Nav", None), "Admin", None)
320-
xkw = dict (getattr (Nav, etm, {}), ETM = ETM, ** kw)
318+
E_Type = app_type.entity_type (ETM)
319+
xkw = dict (E_Type.UI_Spec, ETM = ETM, ** kw)
321320
self.__super.__init__ (** xkw)
322321
# end def __init__
323322

0 commit comments

Comments
 (0)