Changes between Initial Version and Version 1 of Ticket #64
- Timestamp:
- 05/22/2008 03:57:07 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #64 – Description
initial v1 1 1 The following call doesn't work: 2 2 3 mytub.registerReference(fooo, 'fooname', furlFile='foo.furl') 3 {{{mytub.registerReference(fooo, 'fooname', furlFile='foo.furl')}}} 4 4 5 If foo.furl already exists. This is because in registerReference, there is code: 5 If foo.furl already exists. This is because in registerReference, there is 6 code: 6 7 8 {{{ 7 9 oldfurl = None 8 10 if furlFile: … … 20 22 " TubID as I do (%s)" % 21 23 (oldfurl, self.tubID)) 24 }}} 22 25 23 26 If there is an existing furlFile (oldfurl == True), but there is a … … 26 29 27 30 The following seems to fix the problem: 28 31 {{{ 29 32 oldfurl = None 30 33 if furlFile: … … 42 45 " TubID as I do (%s)" % 43 46 (oldfurl, self.tubID)) 47 }}} 44 48 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. 49 By moving the creation of sr outside the if name is None test, the sr object 50 gets created no matter what so it is available in the subsequent if 51 self.tubID != sr.tubID test. 46 52 47 53