mò
v
Lc @ si d Z d Z d Z d Z d k l Z d k l Z d k Td e f d „ ƒ YZ d e f d
„ ƒ YZ
d S( s $Id$sO Sam Ruby and Mark Pilgrim s
$Revision$s, Copyright (c) 2002 Sam Ruby and Mark Pilgrim( s
validatorBase( s text( t *t skipHoursc B s# t Z d „ Z d „ Z d „ Z RS( Nc C s g | _ t i | ƒ d S( N( t selft hourst
validatorBaset __init__( R ( ( tB /web/script/rubys/feedvalidator.org/src/feedvalidator/skipHours.pyR s c C sm d | i j o, | i t h d | i <d d <ƒ ƒ n t | i ƒ d j o | i t h ƒ ƒ n d S( Nt hourt parentt elementi ( R t childrent logt MissingElementt namet lent NotEnoughHoursInTheDay( R ( ( R t validate s ,c C s t ƒ S( N( R ( R ( ( R t do_hour s ( t __name__t
__module__R R R ( ( ( R R s R c B s t Z d „ Z RS( Nc C s¡ yÿ t | i ƒ } | | i i j p* | d d g j oU d | | i i j o> | i t h d | i i <d | i <d | i <ƒ ƒ n | d j p
| d j o
t ‚ nN | i i i
| ƒ | i t h d | i i <d | i <d | i <ƒ ƒ Wn› t j
o | i d j o> | i t h d | i i <d | i <d | i <ƒ ƒ q| i t
h d | i i <d | i <d | i <ƒ ƒ n Xd S( Ni i R R t valuei t 24( t intR R t hR R R t DuplicateValueR
t
ValueErrort appendt ValidHourt UseZeroForMidnightt InvalidHour( R R ( ( R R s =>
>>( R R R ( ( ( R R s N( t __doc__t
__author__t __version__t
__copyright__t baseR t
validatorst textt loggingR R ( R! R R R$ R R R ( ( R t ? s