|Newbie questions about Pliant
avoir differentes bases de donnes
|Message posted by maybe mairoula on 2004/05/07 10:27:50
|Hallo! Looking into
C:\pliant\pliant\protocol\http\login.page file i found the next peace of code,
which i used in my application in order to have a new record registered:
user create id
user:id first_name := first_name
user:id name := name
user:id abstract := abstract
user:id email := email
user_secret_database:data:user create id
user_secret_database:data:user:id password_md5 := string_md5_hexa_signature password
user:id public_key := key
[Welcome ] ; text name ; [.]
Can you please tell me how i can modify this code, in order to create
different databases for other types of users;
|Message posted by marcus on 2004/05/07 14:01:03
I am not sure what you mean, but if you would like to take a look on a simple
sample on how to interface Pliant programs with the database engine, take a look
This is a lab which I used in one of my courses sometime ago.
Let me know if you have problems with it.
|Message posted by maybe mairoula on 2004/05/10 16:53:49
|thank you for your help! i 've solved my broblem.
I have an other question!Where can i find the code which is used to buid
the forrum pages; i want to add something similar to my application, a page
where different users can appload their messages,or even their files.
Thank you for your time!
|Message posted by marcus on 2004/05/10 20:53:47
|Message posted by michel on 2004/05/10 21:00:09
1 - there is no problem to create bew databases but use it for users seems to me a bad idea,
because when something sen his first request to the server, how do you wan the server to know
what data base it has to unvoke. You can in the same DB of user have groups and splted groups,
more flexible tan unix groups. You can find an example in the user DB of :
http://pliant.gassendi.asso.fr , you can also see, at this location, the files in /home/outils/
2 - at the same location you can see two new forums in french language, I've not modify any standard file
but add a "virtual_tree.page" in "/pliant/browse/forum/" which intercepts the forum request and redirects it
to a new file "/pliant/appli/forum_fr.pli" translated in french.
You can make a lot of modifications in such a file, without any domage for the original ones.