<div>Sorry for bothering with the question. I figured it out. the vm was an object derived from Folder() but not a Folder() object. So probably certain permissions were not working probably. Things work fine on a normal Folder() object. 
</div>
<div>&nbsp;</div>
<div>With regards,</div>
<div>-shailesh</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 11/25/06, <b class="gmail_sendername">Shailesh Kumar</b> &lt;<a href="mailto:shaileshk@gmail.com">shaileshk@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi, </div>
<div>&nbsp;</div>
<div>I was trying the following. </div>
<div>&nbsp;</div>
<div>During the startup I caught the IDatabaseOpenedWithRootEvent. I created a folder inside the root, and then setup the folder as a site by using: </div>
<div>&nbsp;&nbsp;&nbsp; sm = site.LocalSiteManager(vm)<br>&nbsp;&nbsp;&nbsp; vm.setSiteManager(sm)</div>
<div>&nbsp;</div>
<div># vm is basically now <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://localhost:8080/vm" target="_blank">http://localhost:8080/vm</a></div>
<div>&nbsp;</div>
<div>Following things work: </div>
<div>&nbsp;&nbsp;&nbsp; assert vm.getSiteManager() is sm<br>&nbsp;&nbsp;&nbsp; default = sm['default']<br><br>&nbsp;</div>
<div>So far so good. Now when I look through ZMI, I see that on the vm folder Manage site action is available. But there is nothing like ++etc++site inside vm. Also, when I click on Manage site,&nbsp;zope returns&nbsp;'page not found'&nbsp;error.&nbsp; 
</div>
<div>&nbsp;</div>
<div>Could you please tell me what is going wrong here ?</div>
<div>&nbsp;</div>
<div>With regards,</div><span class="sg">
<div>-shailesh</div>
<div>&nbsp;</div></span></blockquote></div><br>