Changeset 1554
- Timestamp:
- 11/13/06 14:43:24 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
timingandestimationplugin/trunk/setup.py
r1516 r1554 8 8 description='Plugin to make Trac support time estimation and tracking', 9 9 keywords='trac plugin estimation timetracking', 10 version='0.2. 3',10 version='0.2.4', 11 11 url='', 12 12 license='http://www.opensource.org/licenses/mit-license.php', timingandestimationplugin/trunk/timingandestimationplugin/api.py
r1516 r1554 206 206 self.config.get( ticket_custom, "hours" ) and \ 207 207 (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 \ 208 212 self.config.get( ticket_custom, "estimatedhours")) 209 213 … … 212 216 213 217 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") 214 220 self.config.set(ticket_custom,"totalhours.value", "0") 215 221 self.config.set(ticket_custom,"totalhours.label", "Total Hours") … … 217 223 self.config.set(ticket_custom,"billable", "checkbox") 218 224 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") 219 227 self.config.set(ticket_custom,"billable.label", "Billable?") 220 228 221 229 self.config.set(ticket_custom,"hours", "text") 222 230 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") 223 233 self.config.set(ticket_custom,"hours.label", "Add Hours to Ticket") 224 234 225 235 self.config.set(ticket_custom,"estimatedhours", "text") 226 236 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") 227 239 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 235 240 236 241 self.config.save(); timingandestimationplugin/trunk/timingandestimationplugin/ticket_webui.py
r1516 r1554 12 12 13 13 def __init__(self): 14 14 pass 15 15 # INavigationContributor methods 16 16 def get_active_navigation_item(self, req):
