Foxer
Jul 25th, 2005, 01:18 AM
from com.pplus.workflow.server import WFSystem
from com.pplus.util import SystemLog, PropertiesUtils
from com.pplus.db import DBUtils
import java
SystemLog.logMessage( 'DumpPublicHolidays extension - dumping public holidays to database table', SystemLog.ADVICE )
db = WFSystem.getDatabase( dbName )
conn, stmt = None, None
try:
conn = db.getConnection()
# clear the table
stmt = conn.createStatement()
stmt.executeUpdate( deleteSQL )
# now need to parse the holiday details from the system props (since the business calendar isn't accessible)
props = WFSystem.getProperties()
holProps = PropertiesUtils.getSubSections( props, 'calendar.holiday' )
...
...
There is more to this code but what is 'calendar.holiday' and where can I find this file!!!???
Any clues would be appreciated!
from com.pplus.util import SystemLog, PropertiesUtils
from com.pplus.db import DBUtils
import java
SystemLog.logMessage( 'DumpPublicHolidays extension - dumping public holidays to database table', SystemLog.ADVICE )
db = WFSystem.getDatabase( dbName )
conn, stmt = None, None
try:
conn = db.getConnection()
# clear the table
stmt = conn.createStatement()
stmt.executeUpdate( deleteSQL )
# now need to parse the holiday details from the system props (since the business calendar isn't accessible)
props = WFSystem.getProperties()
holProps = PropertiesUtils.getSubSections( props, 'calendar.holiday' )
...
...
There is more to this code but what is 'calendar.holiday' and where can I find this file!!!???
Any clues would be appreciated!