Exemplo n.º 1
0
 def _constructInstance(self, container, id, *args, **kw):
     topicmap = kw['topicmap'] = self.portal_topicmaps.getTopicMap()  
     ob = FactoryTypeInformation._constructInstance( self
                                                   , container
                                                   , id
                                                   , *args
                                                   , **kw
                                                   )        
     ob.addType(psis.documentbank)
     
     
     #ob.invokeFactory(id='filearchive', type_name='CMF BTree Folder')        
     #ob.invokeFactory(id='discussion', type_name='CMF BTree Folder')        
     #getattr(ob, 'filearchive').__parent__ = ob
     #getattr(ob, 'discussion').__parent__ = ob        
     
     return ob
Exemplo n.º 2
0
 def _constructInstance(self, container, id, *args, **kw):
     topicmap = kw['topicmap'] = self.portal_topicmaps.getTopicMap()  
     ob = FactoryTypeInformation._constructInstance( self
                                                   , container
                                                   , id
                                                   , *args
                                                   , **kw
                                                   )        
     ob.addType(psis.workarea)
     
     
     ob.invokeFactory(id='filer', type_name='CMF BTree Folder')        
     ob.invokeFactory(id='diskusjoner', type_name='CMF BTree Folder')        
     getattr(ob, 'filer').__parent__ = ob
     getattr(ob, 'diskusjoner').__parent__ = ob        
     
     return ob