|
@@ -141,10 +141,11 @@ class Model(object):
|
141
|
141
|
datas['uid'] = self.new_uid()
|
142
|
142
|
em_component = em_obj(self, **datas)
|
143
|
143
|
|
|
144
|
+ em_component.rank = em_component.get_max_rank()
|
|
145
|
+
|
144
|
146
|
self._components['uids'][em_component.uid] = em_component
|
145
|
147
|
self._components[self.name_from_emclass(em_component.__class__)].append(em_component)
|
146
|
148
|
|
147
|
|
- em_component.rank = em_component.get_max_rank()
|
148
|
149
|
if rank != 'last':
|
149
|
150
|
em_component.set_rank(1 if rank == 'first' else rank)
|
150
|
151
|
|