From: naoki i. <am...@us...> - 2008-04-09 17:20:43
|
Update of /cvsroot/popfile/engine/skins/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12124/skins/default Modified Files: magnet-page.thtml password-page.thtml Log Message: Change Log 1. The parameters are now automatically upgraded Classifier/Bayes.pm Parameters in the configration file (popfile.cfg) are automatically upgraded to the POPFile database as the admin's parameters exept for the password of the UI (html_password). 2. A new global option 'language' (GLOBAL_language) POPFile/Configuration.pm Classifier/Bayes.pm tests/TestBayes.tst tests/TestMailParse.tst This setting is used by POPFile to decide whether it runs some language specific codes. e.g. if GLOBAL_language is 'Nihongo', POPFile will handle Japanese texts correctly. And it is used as the default language setting for the users. TODO: In the single user mode, POPFile's 'global' language setting should be equaled to the admin's setting. 3. Localized UI strings are now cached per user (session) UI/HTML.pm tests/TestHTML.tst All of the users shared the language cache till now. If a user changed the language setting, the cache will be updated, and affect the other users' UI. The user's cache will be cleared when the session is rleased. 4. The magnet tab always show the localized magnet types UI/HTML.pm skins/default/magnet-page.thtml 5. Cookie will be deleted when closing web browsers UI/HTML.pm I think there's no need to store the cookie for two weeks. 6. Removed almost all of the hardcoded user id 1 UI/HTML.pm Classifier/Bayes.pm POPFile/History.pm 7. Login page for the single user mode UI/HTML.pm skins/default/password-page.thtml languages/English.msg languages/Nihongo.msg If admin has a password, login page will be shown even in the single user mode 8. commit_history is called before the session key is released Classifier/Bayes.pm POPFile/History.pm Avoid the 'Invalid session key' error occuring when POPFile is updating the history. 9. Messages are now ordered by their types. POPFile/MQ.pm Messages are handled in following order: 1 CREAT 2 LOGIN 3 UIREG 4 COMIT 5 TICKD 6 RELSE In some case, COMIT had been processed before the session key is created by CREAT. This caused the 'Invalid session key' errors. 10. TestPOP3 is now passed tests/TestPOP3.tst tests/TestMailParse029.msg tests/TestMailParse029.cam tests/TestMailParse029.wrd 11. Fixed some tests to output their result correctly tests/TestBayesScript.tst tests/TestConfiguration.tst tests/TestHTTP.tst tests/TestInsertScript.tst tests/TestProxy.tst Current state of the test suite: TestBayesScript PASS TestBayes PASS TestConfiguration PASS * TestHistory fail * TestHTML PASS * TestHTTP PASS TestIMAP not tested yet TestInsertScript PASS * TestLogger PASS TestMailParse PASS TestModule PASS TestMQ PASS TestMutex PASS TestPipeScript PASS TestPOP3 PASS TestProxy PASS TestWordMangle PASS TestXMLRPC PASS (but child process does not terminate) * : needs to add tests for multi user support TODO 1. multi user mode tests are needed tests/TestConfiguration.tst tests/TestHistory.tst tests/TestHTML.tst tests/TestInsertScript.tst Index: magnet-page.thtml =================================================================== RCS file: /cvsroot/popfile/engine/skins/default/magnet-page.thtml,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** magnet-page.thtml 30 Mar 2008 10:22:38 -0000 1.18 --- magnet-page.thtml 9 Apr 2008 17:20:48 -0000 1.19 *************** *** 112,116 **** <option value="<TMPL_VAR NAME="Magnet_Type">"> ! <TMPL_VAR NAME="Magnet_Type_Name"> </option> --- 112,116 ---- <option value="<TMPL_VAR NAME="Magnet_Type">"> ! <TMPL_VAR NAME="Magnet_Type_Localized"> </option> Index: password-page.thtml =================================================================== RCS file: /cvsroot/popfile/engine/skins/default/password-page.thtml,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** password-page.thtml 9 Sep 2005 23:00:42 -0000 1.11 --- password-page.thtml 9 Apr 2008 17:20:48 -0000 1.12 *************** *** 4,8 **** <h2 class="password"><TMPL_VAR NAME="Localize_Password_Title"></h2> <form action="/password" method="post"> ! <table summary=""><tr><td> <label class="passwordLabel" for="theUsername"> <TMPL_VAR NAME="Localize_Password_Username">: --- 4,10 ---- <h2 class="password"><TMPL_VAR NAME="Localize_Password_Title"></h2> <form action="/password" method="post"> ! <table summary=""> ! <TMPL_IF NAME="Password_If_SingleUser"><TMPL_ELSE> ! <tr><td> <label class="passwordLabel" for="theUsername"> <TMPL_VAR NAME="Localize_Password_Username">: *************** *** 10,14 **** </td><td> <input type="text" id="theUsername" name="username" /><br /> ! </td></tr><tr><td> <label class="passwordLabel" for="thePassword"> <TMPL_VAR NAME="Localize_Password_Password">: --- 12,18 ---- </td><td> <input type="text" id="theUsername" name="username" /><br /> ! </td></tr> ! </TMPL_IF> ! <tr><td> <label class="passwordLabel" for="thePassword"> <TMPL_VAR NAME="Localize_Password_Password">: |