Changes between Initial Version and Version 1 of Ticket #68, comment 47


Ignore:
Timestamp:
2010-07-19T11:49:42Z (14 years ago)
Author:
writefaruq
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #68, comment 47

    initial v1  
    1515       
    1616        # read furl from tahoe.cfg
    17         ifurl = self.get_config("client", "introducer.furl", None)       
     17        ifurl = self.get_config("client", "introducer.furl", None)
    1818        if ifurl not in self.introducer_furls:
    19             self.introducer_furls.append(ifurl)       
    20             print "Writting tahoe.cfg's introducer_furl to introducers cfg file"
    21             write(MULTI_INTRODUCERS_CFG, '\n'.join(ifurl))
    22             if len(self.introducer_furls) > 1:
    23                 print "Warning! introducers config file modified. One furl imported from tahoe.cfg."
    24 
     19            self.introducer_furls.append(ifurl)
     20            f = open(cfg, 'a')
     21            f.writelines(ifurl)
     22            f.write('\n')
     23            f.close()
     24            if furl_count > 1:
     25                print "Warning! introducers config file modified."
    2526}}}
    2627