Hello phil,
Phil Morden a �crit :
>
> Hello, I am in the process of creating a FTP Server module for the
> SNF. I am stuck on the use of the .wvm files in the html
> directory particularly how the IF statement works. for expample what
> does "IF 2 5 8" do? Thanks for any help.
>
>
>
> ----------------------------------------------------------------------
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.
Thanks for looking at the NAAT development tool.
I will give you here, few informations on the creation of naat modules,
and on the NAAT Architecture.
(More information in the CVS: http://www.linux-mandrake.com/en/cvs.php3,
co naat)
It is very easy to understand.
All modules find in the html directory were generated during the rpm
compilation. So don't modify those files.
As we are very lazy (;=)) in coding html, or php code, we use an XML
description for each module(the one you can find in the cvs module
"naat" on mandrakesoft.com).
We compile all XML modules through XSL templates to generate the right
frontend (actually HTML/PHP code, and in the future newt, gtk.....)
The XML Langage we use, is a small navigation langage and description
langage of the module or wizard.
It is composed of:
Description Langage:
<Wizard>, <Page>, <Title>,<Description>,<Input>......
and Navigation Langage:
<If>,<Then>,<Else>,<While>,<Switch>,<Case>
After processing the XML+XSL, the result is: PHP page, and .wvm file
(Wizard Virtual Machine) wich define the navigation state of the module
of wizard.(Previous,Next,If,Switch)
A small Virtual Machine (previous version in Java, actual version in
PHP, and in the future C,or C++), read the navigation state of the
module in the wvm file and activate the next steps.
So the IF statement in the wvm is read as:
IF test in line 2 true THEN go to step 5 ELSE step 8
Here is brief information on the NAAT tools.
--
Philippe Libat <[EMAIL PROTECTED]>
Linux-Mandrake http://www.linux-mandrake.com
_____________________________________________
Think Different, Think Linux