Changeset 3071

Show
Ignore:
Timestamp:
01/16/08 12:04:22 (11 months ago)
Author:
bobbysmith007
Message:

Got the trac 10 version working

Had missed teh id form field in the copy

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • estimatorplugin/0.10/estimatorplugin/templates/estimate.cs

    r3061 r3071  
    33 
    44    <form method="post" action="<?cs var:estimate.href ?>" > 
    5  
     5      <input type="hidden" name="id" value="<?cs var:estimate.id?>"/> 
    66      <div id="content" class="estimate"> 
    77        <div id="messages" > 
  • estimatorplugin/0.10/estimatorplugin/webui.py

    r3061 r3071  
    1010from estimator import * 
    1111from trac.ticket import Ticket 
    12 import datetime 
    13 from trac.util.datefmt import utc, to_timestamp 
     12import time 
     13 
    1414 
    1515class EstimationsPage(Component): 
     
    6161                    #there were problems if we update the same tickets comment in the same tick 
    6262                    # so we subtract an arbitrary tick to get around this 
    63                       to_timestamp(datetime.datetime.now(utc)) - 1, 
     63                      time.time() - 1, 
    6464                      req.authname, 
    6565                      "{{{\n#!html\n<del>%s</del>\n}}}" % comment]) 
     
    8989    def save_from_form (self, req, addMessage): 
    9090        #try: 
    91  
    9291            args = req.args 
    9392            tickets = args["tickets"] 
    94             id = args["id"] 
     93            if args.has_key("id"): 
     94                id = args['id'] 
     95            else: 
     96                id = None 
    9597            old_tickets = None 
    9698            if id == None or id == '' : 
  • estimatorplugin/0.10/setup.py

    r3060 r3071  
    1313      Produce Detailed Range Based Estimations 
    1414      """, 
    15       package_data={PACKAGE : ['templates/*.html', 'htdocs/*']}, 
     15      package_data={PACKAGE : ['templates/*.cs', 'htdocs/*']}, 
    1616      entry_points={'trac.plugins': '%s = %s' % (PACKAGE, PACKAGE)}, 
    1717)