[Zope] Kind of hotfix
   
    Rares Vernica
     
    verni0@hotmail.com
       
    Wed, 16 Oct 2002 15:28:55 +0300
    
    
  
Hi,
I want to make a kind of Hotfix product.
Here is what "__init__.py" (from my hotfix product folder) contains:
import OFS
import Globals
OFS.ObjectManager.ObjectManager.manage_main=Globals.DTMLFile('dtml/main',globals()) 
               # line 1
OFS.ObjectManager.ObjectManager.manage_options=                              
                                          # line 2
  (
    {'label' : 'LocalRoles','action' : 
'manage_main','help':('OFSP','ObjectManager_Contents.stx')},
  )
"line 1" si OK, it works, but "line 2" does not.
The syntax used in "line 2" is the same as the one in "OFS/ObjectManager.py" 
in ObjectManager - manage_options member.
For OBS.Folder.Folder.manage_options it works, only for ObjectManager it 
don't.
It is very spooky, why can I overide manage_options from Folder and cannot 
overide manage_options from ObjectManager.
I thpought maybe the syntax is wrong, and I tried diferent syntaxes. Even if 
I use:
OFS.ObjectManager.ObjectManager.manage_options=()
I cannot see any results... :(
Very curious, don't you think...
Thanks in advance,
Rares
_________________________________________________________________
Unlimited Internet access -- and 2 months free!  Try MSN. 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp