RE: [Zope3-dev] Questions about onlinehelp

2005-05-11 Thread Roger Ineichen
Hi Peter

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 11, 2005 9:12 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Zope3-dev] Questions about onlinehelp
> 
> Hi Roger
> >
> 
> >>
> >> 
> >>
> >> I got the message:
> >>
> >> NameError: name 'helpsystem' is not defined
> >>
> >> What is the missing piece?
> >
> 
> I have found the error,,
> The biggest error is sitting in front of the keyboard ;-))
> 
> I don't know how, the word "helpsystem" was inserted by me in  
> __init__.py. I haven't realiased the meaning of the messages in the  
> traceback.
> 
> Sorry

No, problem

> >
> >> 2. The content of the online-help says:
> >>
> >> The Online Help supports
> >>
> >>  * plain text documents
> >>  * structured text documents
> >>  * restructured text documents
> >>  * HTML documents
> >>  * Page template based content
> >>
> >> but HTML and ZPT's are rendered as resturctured text, so there is a
> >> difference between reality and online help.
> >> Will that be changing in the future?
> >
> > I don't understand this? What's not working? Do you really use
> > a ZPT and also use the right class for the help:regsiter directive?
> >
> 
> If the help:register directive looks like that:
> 
> id="dictum"
>title="my first application"
>doc_path="package_intro.pt"
>class="zope.app.onlinehelp.onlinehelptopic.RESTOnlineHelpTopic"
>/>

Use the right class for register ZPT's as help topics.
This should look like this:



Use:
zope.app.onlinehelp.onlinehelptopic.ZPTOnlineHelpTopic
instead of:
zope.app.onlinehelp.onlinehelptopic.RESTOnlineHelpTopic

otherwise you get "REST" restructured text regsistred like
you propose.

> And the content of packag_intro.pt is:
> 
>  tal:content="context/title">TitleThis is a ZPT  
> help!
> 
> the source of the rendered page is :
> 
>
> <html><head><title  
> tal:content="context/title">Title</title></ 
> head><body>This is a ZPT 
> help!</body></html>
> 
> 
> 
> 
> > See src\zope\app\onlinehelp\tests\help.zcml this is what we test.
> >
> >> 3. Ok, I am using resturctured text, but I can't use all german
> >> characters. How can I configure other encodings for the 
> online help?
> >
> > What do you need?
> >
> 
> Showing german umlauts in helpscreens. This problem could be solved  
> with the correct rendering of zpt-pages.
> 
> Thanks for your help.
> 
> Regards
> Peter

Regards
Roger Ineichen

Projekt01 GmbH
www.projekt01.ch
_
END OF MESSAGE  

___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



RE: [Zope3-dev] Questions about onlinehelp

2005-05-10 Thread Roger Ineichen
Hi Peter

Behalf Of Peter Koppatz
> Sent: Tuesday, May 10, 2005 9:33 AM
> To: zope3-dev@zope.org
> Subject: [Zope3-dev] Questions about onlinehelp
> 
> Hello All,
> 
> I have created some helppages for my application and want to connect 
> this helppages to the online helpsystem of zope 3.
> 
> 1.
> 
> I do that with:
> 
>
> 
> id="dictum"
>   title="My first application"
>   doc_path="./help/package_intro.rst"
>   class="zope.app.onlinehelp.onlinehelptopic.RESTOnlineHelpTopic"
>   />
> 
>id="app.version01"
>parent="dictum"
>title="Version I"
>doc_path="./help/version01/content.rst"
>class="zope.app.onlinehelp.onlinehelptopic.RESTOnlineHelpTopic"
>/>
>
> 
> That works fine.
> 
> If I put the configuration in an extra folder "help" and try 
> to include 
> it as a package:
> 
> 
> 
> I got the message:
> 
> NameError: name 'helpsystem' is not defined
> 
> What is the missing piece?

Can you post the comfigure.zcml in the "help" folder?


> 2. The content of the online-help says:
> 
> The Online Help supports
> 
>  * plain text documents
>  * structured text documents
>  * restructured text documents
>  * HTML documents
>  * Page template based content
> 
> but HTML and ZPT's are rendered as resturctured text, so there is a 
> difference between reality and online help.
> Will that be changing in the future?

I don't understand this? What's not working? Do you really use 
a ZPT and also use the right class for the help:regsiter directive?

See src\zope\app\onlinehelp\tests\help.zcml this is what we test.

> 3. Ok, I am using resturctured text, but I can't use all german 
> characters. How can I configure other encodings for the online help?

What do you need?

> Regards,
> Peter

Regards
Roger Ineichen

___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com