• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zopefoundation / zc.form / 16248976557

21 Oct 2024 07:16AM UTC coverage: 82.759%. Remained the same
16248976557

push

github

icemac
Back to development: 2.2

126 of 180 branches covered (70.0%)

Branch coverage included in aggregate %.

786 of 922 relevant lines covered (85.25%)

0.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/zc/form/source.py
1
import pytz
×
2

3
import zc.sourcefactory.basic
×
4

5

6
class USTimeZones(zc.sourcefactory.basic.BasicSourceFactory):
×
7
    """List of timezones taken from pytz"""
8

9
    tzs = [tz
×
10
           for tz in pytz.common_timezones
11
           if 'US/' in tz and 'Pacific-New' not in tz]
12

13
    def getValues(self):
×
14
        return self.tzs
×
15

16
    def getTitle(self, value):
×
17
        return value
×
18

19
    def getToken(self, value):
×
20
        return value
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc