Ignore:
Timestamp:
26 Jan 2011, 11:52:35 (14 years ago)
Author:
uli
Message:

Use a better understandable string when reporting applicant plugin actions on unnamed sites.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/root.py

    r5676 r5684  
    8484        """
    8585        app_folder = site.get('applicants', None)
    86         site_name = getattr(site, '__name__', 'Unnamed Site?')
     86        site_name = getattr(site, '__name__', '<Unnamed Site>')
    8787        if IApplicantsRoot.providedBy(app_folder):
    8888            # Applicants up to date. Return.
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_root.py

    r5676 r5684  
    9999        self.assertTrue('applicants' in site.keys())
    100100        log = self.get_log()
    101         self.assertTrue('Updating site at Unnamed Site' in log)
     101        self.assertTrue('Updating site at <Unnamed Site>' in log)
    102102        self.assertTrue('Installed applicants root.' in log)
    103103        return
     
    114114        log = self.get_log()
    115115        self.assertTrue('Outdated applicants folder detected' in log)
    116         self.assertTrue('Updating site at Unnamed Site' in log)
     116        self.assertTrue('Updating site at <Unnamed Site>' in log)
    117117        self.assertTrue('Installed applicants root.' in log)
    118118        return
     
    127127        self.assertTrue(site['applicants'] is root)
    128128        log = self.get_log()
    129         self.assertTrue('Updating site at Unnamed Site' in log)
     129        self.assertTrue('Updating site at <Unnamed Site>' in log)
    130130        self.assertTrue('Nothing to do' in log)
    131131        return
Note: See TracChangeset for help on using the changeset viewer.