Changes between Initial Version and Version 1 of Ticket #64


Ignore:
Timestamp:
05/22/2008 03:57:07 PM (16 years ago)
Author:
Brian Warner
Comment:

fix code formatting

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #64 – Description

    initial v1  
    11The following call doesn't work:
    22
    3 mytub.registerReference(fooo, 'fooname', furlFile='foo.furl')
     3{{{mytub.registerReference(fooo, 'fooname', furlFile='foo.furl')}}}
    44
    5 If foo.furl already exists.  This is because in registerReference, there is code:
     5If foo.furl already exists. This is because in registerReference, there is
     6code:
    67
     8{{{
    79       oldfurl = None
    810       if furlFile:
     
    2022                                     " TubID as I do (%s)" %
    2123                                     (oldfurl, self.tubID))
     24}}}
    2225
    2326If there is an existing furlFile (oldfurl == True), but there is a
     
    2629
    2730The following seems to fix the problem:
    28 
     31{{{
    2932        oldfurl = None
    3033        if furlFile:
     
    4245                                      " TubID as I do (%s)" %
    4346                                      (oldfurl, self.tubID))
     47}}}
    4448
    45 By moving the creation of sr outside the if name is None test, the sr object gets created no matter what so it is available in the subsequent if self.tubID != sr.tubID test. 
     49By moving the creation of sr outside the if name is None test, the sr object
     50gets created no matter what so it is available in the subsequent if
     51self.tubID != sr.tubID test.
    4652
    4753