Changeset 333

Show
Ignore:
Timestamp:
Wed Sep 26 15:51:51 2007
Author:
Alexander
Message:

scripts: Install Partial Hour Duration now includes holidays

Files:

Legend:

Unmodified
Added
Removed
Modified
  • scripts/trunk/Install/Install Partial Hour Duration.py

    r304 r333  
    25 25 # 060725 - first version  
    26 26 # 060815 - added assignment  
    27   # 070321 - fixed error and changed setundo text  
      27 # 070321 - fixed error and changed setundo text  
      28 # 070926 - added holiday  
    28 29  
    29 30 def Do():  
    30 31     rt = { 'Name': 'Task' }   
    31 32     ct = [  
    32       { 'Name': 'DurationHours','DataType': 'f', },  # this seems to work  
    33       { 'Name': 'EffortHours','DataType': 'f', },  # this seems to work (min 1 hour per day??)  
      33     { 'Name': 'DurationHours','DataType': 'f', },  # this seems to work (min 1 hour per day??)  
      34     { 'Name': 'EffortHours','DataType': 'f', },  
    34 35         ]  
    35 36     Data.AddReportType(rt, ct)  
     
    37 38     rt = { 'Name': 'Task/Assignment' }   
    38 39     ct = [  
    39       { 'Name': 'EffortHours','DataType': 'f', },  # this seems to work (min 1 hour per day??)  
      40     { 'Name': 'EffortHours','DataType': 'f', },  
    39 40         ]  
    40 41     Data.AddReportType(rt, ct)  
     
    43 44     rt = { 'Name': 'Resource/Assignment' }   
    44 45     ct = [  
    45       { 'Name': 'EffortHours','DataType': 'f', },  # this seems to work (min 1 hour per day??)  
      46     { 'Name': 'EffortHours','DataType': 'f', },  
      47         ]  
      48     Data.AddReportType(rt, ct)  
      49  
      50     rt = { 'Name': 'Holiday' }   
      51     ct = [  
      52     { 'Name': 'Hours', 'DataType': 'f', },  
    46 53         ]  
    47 54     Data.AddReportType(rt, ct)