Mercurial > kallithea
comparison rhodecode/lib/db_manage.py @ 3889:b84c83b651de beta
replace equality comparision to None
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 22 May 2013 03:15:44 +0200 |
parents | dc4644865e8b |
children | a2de0de0a4a9 |
comparison
equal
deleted
inserted
replaced
3888:7aa0ff5b4e09 | 3889:b84c83b651de |
---|---|
512 ('ldap_dn_pass', ''), ('ldap_base_dn', ''), | 512 ('ldap_dn_pass', ''), ('ldap_base_dn', ''), |
513 ('ldap_filter', ''), ('ldap_search_scope', ''), | 513 ('ldap_filter', ''), ('ldap_search_scope', ''), |
514 ('ldap_attr_login', ''), ('ldap_attr_firstname', ''), | 514 ('ldap_attr_login', ''), ('ldap_attr_firstname', ''), |
515 ('ldap_attr_lastname', ''), ('ldap_attr_email', '')]: | 515 ('ldap_attr_lastname', ''), ('ldap_attr_email', '')]: |
516 | 516 |
517 if skip_existing and RhodeCodeSetting.get_by_name(k) != None: | 517 if skip_existing and RhodeCodeSetting.get_by_name(k) is not None: |
518 log.debug('Skipping option %s' % k) | 518 log.debug('Skipping option %s' % k) |
519 continue | 519 continue |
520 setting = RhodeCodeSetting(k, v) | 520 setting = RhodeCodeSetting(k, v) |
521 self.sa.add(setting) | 521 self.sa.add(setting) |
522 | 522 |
528 ('default_repo_enable_downloads', False), | 528 ('default_repo_enable_downloads', False), |
529 ('default_repo_enable_statistics', False), | 529 ('default_repo_enable_statistics', False), |
530 ('default_repo_private', False), | 530 ('default_repo_private', False), |
531 ('default_repo_type', 'hg')]: | 531 ('default_repo_type', 'hg')]: |
532 | 532 |
533 if skip_existing and RhodeCodeSetting.get_by_name(k) != None: | 533 if skip_existing and RhodeCodeSetting.get_by_name(k) is not None: |
534 log.debug('Skipping option %s' % k) | 534 log.debug('Skipping option %s' % k) |
535 continue | 535 continue |
536 setting = RhodeCodeSetting(k, v) | 536 setting = RhodeCodeSetting(k, v) |
537 self.sa.add(setting) | 537 self.sa.add(setting) |
538 | 538 |