Changeset 1554

Show
Ignore:
Timestamp:
11/13/06 14:43:24 (2 years ago)
Author:
bobbysmith007
Message:

TimingAndEstimationPlugin:

added field ordinalls and added missing pass in init of ticket_webui

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • timingandestimationplugin/trunk/setup.py

    r1516 r1554  
    88      description='Plugin to make Trac support time estimation and tracking', 
    99      keywords='trac plugin estimation timetracking', 
    10       version='0.2.3', 
     10      version='0.2.4', 
    1111      url='', 
    1212      license='http://www.opensource.org/licenses/mit-license.php', 
  • timingandestimationplugin/trunk/timingandestimationplugin/api.py

    r1516 r1554  
    206206                     self.config.get( ticket_custom, "hours" ) and \ 
    207207                     (not self.config.get( ticket_custom, "lastbilldate" )) and \ 
     208                     self.config.get( ticket_custom, "totalhours.order") and \ 
     209                     self.config.get( ticket_custom, "hours.order") and \ 
     210                     self.config.get( ticket_custom, "estimatedhours.order") and \ 
     211                     self.config.get( ticket_custom, "billable.order") and \ 
    208212                     self.config.get( ticket_custom, "estimatedhours")) 
    209213     
     
    212216         
    213217        self.config.set(ticket_custom,"totalhours", "text") 
     218        if not self.config.get( ticket_custom, "totalhours.order") : 
     219            self.config.set(ticket_custom,"totalhours.order", "4") 
    214220        self.config.set(ticket_custom,"totalhours.value", "0") 
    215221        self.config.set(ticket_custom,"totalhours.label", "Total Hours")                 
     
    217223        self.config.set(ticket_custom,"billable", "checkbox") 
    218224        self.config.set(ticket_custom,"billable.value", "1") 
     225        if not self.config.get( ticket_custom, "billable.order") : 
     226            self.config.set(ticket_custom,"billable.order", "3") 
    219227        self.config.set(ticket_custom,"billable.label", "Billable?") 
    220228             
    221229        self.config.set(ticket_custom,"hours", "text") 
    222230        self.config.set(ticket_custom,"hours.value", "0") 
     231        if not self.config.get( ticket_custom, "hours.order") : 
     232            self.config.set(ticket_custom,"hours.order", "2") 
    223233        self.config.set(ticket_custom,"hours.label", "Add Hours to Ticket") 
    224234             
    225235        self.config.set(ticket_custom,"estimatedhours", "text") 
    226236        self.config.set(ticket_custom,"estimatedhours.value", "0") 
     237        if not self.config.get( ticket_custom, "estimatedhours.order") : 
     238            self.config.set(ticket_custom,"estimatedhours.order", "1") 
    227239        self.config.set(ticket_custom,"estimatedhours.label", "Estimated Number of Hours") 
    228  
    229          
    230         #self.config.set(ticket_custom,"lastbilldate", "text") 
    231         #self.config.set(ticket_custom,"lastbilldate.label", "Date Last Billed") 
    232         self.config.remove(ticket_custom,"lastbilldate") 
    233         self.config.remove(ticket_custom,"lastbilldate.label") 
    234  
    235240 
    236241        self.config.save(); 
  • timingandestimationplugin/trunk/timingandestimationplugin/ticket_webui.py

    r1516 r1554  
    1212     
    1313    def __init__(self): 
    14          
     14        pass 
    1515     # INavigationContributor methods 
    1616    def get_active_navigation_item(self, req):