~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to serve-branches

  • Committer: Matt Nordhoff
  • Date: 2009-04-24 05:20:37 UTC
  • mto: (389.2.2 pep8-2009-10)
  • mto: This revision was merged to the branch mainline in revision 392.
  • Revision ID: mnordhoff@mattnordhoff.com-20090424052037-39fsyegppvuf3jqf
Replace hasattr with getattr

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
            return Reloader.restart_with_reloader()
64
64
 
65
65
    if config.get_option('user_dirs'):
66
 
        if not config.get_option['trunk_dir']:
 
66
        if not config.get_option('trunk_dir'):
67
67
            print "You didn't specify a directory for the trunk directories."
68
68
            sys.exit(1)
69
69
        app = UserBranchesFromFileSystemRoot(
77
77
    logger = getattr(app, 'log', logging.getLogger('loggerhead'))
78
78
    if config.get_option('log_folder'):
79
79
        logfile_path = os.path.join(
80
 
            config.get_option['log_folder'], 'serve-branches.log')
 
80
            config.get_option('log_folder'), 'serve-branches.log')
81
81
    else:
82
82
        logfile_path = 'serve-branches.log'
83
83
    logfile = logging.FileHandler(logfile_path, 'a')