[Zope-PTK] Re: index_html/index_html problem
howard
howardchang@netease.com
Sat, 29 Jul 2000 16:36:53 +0800
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