[Zope-PTK] Re: index_html/index_html problem

Francisco Monge Francisco Monge <fmonge@cecosi.com.sv>
31 Jul 2000 00:48:40 -0000


Thank you very much ... it worked!!!


FM


> howard chang wrote:
>   you can add a method named asHTML in Document.py as
class Document
> method,code as follow :
> 
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
> class Document(Implicit, PortalContent):
>     """
>     A Document
>     """
> 
>     meta_type='Document'
> 
>     __ac_permissions__=(
>         ('View', ('', 'index_html')),
>         ('View management screens',('editForm',)),
>         ('Change Documents', ('edit',),
('Owner','Manager')),
>         )
>     index_html=HTMLFile('dtml/documentView',
globals())
> 
>     editForm=HTMLFile('dtml/documentEdit',globals())
> 
>     def asHTML(self):
>  	return self.index_html(self)
>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 	   
> 
> 
> 
> 
> >Hi,
> 
> >I'm new with Zope and PTK.  When I create a new
member,
> >I cannot access directly his home page and I have to
add
> >index_html/index_html to the URL.  I have found many
> >messages from people having the same problem, but not
> >any fix.
> 
> >I'm using:
> >Zope 2.2.0 (using PCGI)
> >Today's cvs version of ptk
> >Apache 1.3.12
> >Suse 6.4
> 
> >thank you and sorry for my english
>             howard
>             howardchang@netease.com
> 
> 
> _______________________________________________
> Zope-PTK maillist  -  Zope-PTK@zope.org
> http://lists.zope.org/mailman/listinfo/zope-ptk
> 
> See http://www.zope.org/Products/PTK/Tracker for bug
reports and feature
> requests
>