~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/exercise_service.py

  • Committer: William Grant
  • Date: 2009-12-09 11:37:08 UTC
  • mto: This revision was merged to the branch mainline in revision 1396.
  • Revision ID: grantw@unimelb.edu.au-20091209113708-imwzy8icubb5ugqp
Drop TestCasePart filename UI.

Show diffs side-by-side

added added

removed removed

Lines of Context:
236
236
    
237
237
    @named_operation(u'edit')
238
238
    def edit_testpart(self, req, suiteid, testid, partid, part_type, test_type, 
239
 
                      data, filename):
 
239
                      data):
240
240
    
241
241
        suite = req.store.find(TestSuite,
242
242
            TestSuite.suiteid == int(suiteid),
259
259
        test_part.part_type = unicode(part_type)
260
260
        test_part.test_type = unicode(test_type)
261
261
        test_part.data = unicode(data)
262
 
        test_part.filename = unicode(filename)
263
262
        
264
263
        return {'result': 'ok'}
265
264
    
266
265
    @named_operation(u'edit')
267
266
    def add_testpart(self, req, suiteid, testid, part_type, test_type, 
268
 
                      data, filename):
 
267
                      data):
269
268
    
270
269
        suite = req.store.find(TestSuite,
271
270
            TestSuite.suiteid == int(suiteid),
283
282
        test_part.part_type = unicode(part_type)
284
283
        test_part.test_type = unicode(test_type)
285
284
        test_part.data = unicode(data)
286
 
        test_part.filename = unicode(filename)
287
285
        
288
286
        test_case.parts.add(test_part)
289
287