dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #04079
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1352: Function Excel-File Management - Working in process
------------------------------------------------------------
revno: 1352
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: trunk
timestamp: Wed 2010-01-27 12:33:50 +0700
message:
Function Excel-File Management - Working in process
modified:
dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/filemanager/action/DeleteExcelTemplateAction.java
dhis-2/dhis-web/dhis-web-excel-reporting/src/main/resources/struts.xml
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== modified file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/filemanager/action/DeleteExcelTemplateAction.java'
--- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/filemanager/action/DeleteExcelTemplateAction.java 2010-01-26 08:19:44 +0000
+++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/filemanager/action/DeleteExcelTemplateAction.java 2010-01-27 05:33:50 +0000
@@ -91,7 +91,6 @@
String templateDirectory = (String) systemSettingManager
.getSystemSetting( SystemSettingManager.KEY_REPORT_TEMPLATE_DIRECTORY );
- System.out.println("\n\n\n === File : " + templateDirectory + File.separator + fileName);
FileUtils.delete( templateDirectory + File.separator + fileName );
return SUCCESS;
=== modified file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/resources/struts.xml 2010-01-26 09:04:04 +0000
+++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/resources/struts.xml 2010-01-27 05:33:50 +0000
@@ -1220,6 +1220,7 @@
<param name="page">/dhis-web-excel-reporting/excelTemplateList.vm</param>
<param name="menu">/dhis-web-excel-reporting/menu.vm</param>
<param name="javascripts">javascript/commons.js,javascript/exceltemplate.js</param>
+ <param name="requiredAuthorities">F_EXCEL_TEMPLATE_MAMAGEMENT_LIST</param>
</action>
<action name="deleteExcelTemplate"
@@ -1228,6 +1229,7 @@
/dhis-web-excel-reporting/responseSuccess.vm</result>
<result name="error" type="velocity-xml">
/dhis-web-excel-reporting/responseError.vm</result>
+ <param name="requiredAuthorities">F_EXCEL_TEMPLATE_MAMAGEMENT_DELETE</param>
</action>