projects
/
MosaicDocument.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f5de39a
)
_finishConsrtuction a disparu => les slots ne sont plus construits. On assure donc...
author
Benoît Pin
<benoit.pin@gmail.com>
Sat, 13 Nov 2010 10:32:03 +0000
(11:32 +0100)
committer
Benoît Pin
<benoit.pin@gmail.com>
Sat, 13 Nov 2010 10:32:03 +0000
(11:32 +0100)
MosaicBlockInformation.py
patch
|
blob
|
history
diff --git
a/MosaicBlockInformation.py
b/MosaicBlockInformation.py
index
f284df7
..
1ff5c3a
100755
(executable)
--- a/
MosaicBlockInformation.py
+++ b/
MosaicBlockInformation.py
@@
-233,14
+233,11
@@
class MosaicBlockInformation(ObjectManager, FactoryTypeInformation) :
return FactoryTypeInformation._getFactoryMethod(self, container)
raise Unauthorized, ('Cannot create %s' % self.getId())
return FactoryTypeInformation._getFactoryMethod(self, container)
raise Unauthorized, ('Cannot create %s' % self.getId())
-
-
- security.declarePrivate('_finishConstruction')
- def _finishConstruction(self, ob) :
- """Finish the construction of a content block object."""
- if hasattr(ob, '_setPortalTypeName'):
- ob._setPortalTypeName(self.getId())
-
+
+
+ security.declarePrivate('_constructInstance')
+ def _constructInstance(self, container, id, *args, **kw):
+ ob = super(MosaicBlockInformation, self)._constructInstance(container, id, *args, **kw)
typesTool = getToolByName(self, 'portal_types')
# Add and init slots in block
typesTool = getToolByName(self, 'portal_types')
# Add and init slots in block
@@
-250,9
+247,6
@@
class MosaicBlockInformation(ObjectManager, FactoryTypeInformation) :
kw[key] = value
typesTool.constructContent(si.type, ob, si.id, **kw)
kw[key] = value
typesTool.constructContent(si.type, ob, si.id, **kw)
-
- if self.notify_wf :
- ob.notifyWorkflowCreated()
return ob
return ob