Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
usr
/
share
/
rhsm
/
subscription_manager
/
Upload File :
New :
File
Dir
//proc/self/root/usr/share/rhsm/subscription_manager/validity.pyc
mņ x^Sc @ s\ d k Z d k l Z d k i Z d k l Z e i d e Z d e f d YZ d S( N( s DateRange( s parse_dates rhsm-app.t ValidProductDateRangeCalculatorc B s t Z d d Z d Z RS( Nc C s | p t i t i i } t i t i | _ | i i o7 t i t i | _ | i i | | i i | _ n d S( N( t uept injt requiret CP_PROVIDERt get_consumer_auth_cpt IDENTITYt selft identityt is_validt PROD_STATUS_CACHEt prod_status_cachet load_statust uuidt prod_status( R R ( ( t0 /usr/share/rhsm/subscription_manager/validity.pyt __init__ s c C sė | i i p d Sn | i d j o d Sn x£ | i D] } | | d j o q: n d | j o\ d | j oO | d d j p | d d j o d Sn t t | d t | d Sq: t i d d Sq: Wt i d | d S( sL Calculate the valid date range for the specified product based on today's date. Partially entitled products are considered when determining the valid range. NOTE: The returned date range will be in GMT, so keep this in mind when presenting these dates to the user. t productIdt startDatet endDates, Server does not support product date ranges.sE Requested status for installed product server does not know about: %sN( R R R t NoneR t prodt product_hasht DateRanget parse_datet logt warnt error( R R R ( ( R t calculate# s$ " ( t __name__t __module__R R R ( ( ( R R s ( t loggingt rhsm.certificateR t subscription_manager.injectiont injectionR t subscription_manager.isodateR t getLoggerR R t objectR ( R R R R R R ( ( R t ? s