def __init__(self): """ Retrieve and convert the localized first week day http://www.17sucai.com/pins/demoshow/24573 at initialization,use sta as the first day of a week """ HTMLCalendar.__init__(self, AMERICAN_TO_EUROPEAN_WEEK_DAYS[0])
def __init__(self): """ Retrieve and convert the localized first week day at initialization. """ HTMLCalendar.__init__(self, AMERICAN_TO_EUROPEAN_WEEK_DAYS[ get_format('FIRST_DAY_OF_WEEK')])
def __init__(self): """Retrieve and convert the localized first week day at initialization""" localized_first_week_day = get_format('FIRST_DAY_OF_WEEK') if not localized_first_week_day: HTMLCalendar.__init__(self, 6) else: HTMLCalendar.__init__(self, localized_first_week_day - 1)
def __init__(self, firstweekday, aQueryset, when): HTMLCalendar.__init__(self, firstweekday) # Prepare a date-indexed list of gigbargains # XXX Maybe it's possible to do it using a query, but I don't know how self._gigbargains = defaultdict(list) for gigbargain in aQueryset: self._gigbargains[gigbargain.date].append(gigbargain) self._when = when self.today = date.today()
def __init__(self, theyear, themonth, day_url_name, prew_url='#', next_url='#', booked_days=None): """:booked_days -> контейнер в якому зберігаються дні в місяці в яких є якісь нотатки""" HTMLCalendar.__init__(self) self.theyear = theyear self.themonth = themonth self.prew_url = prew_url self.next_url = next_url self.booked_days = booked_days self.today = date.today() self.day_url_name = day_url_name
def __init__(self, firstweekday=settings.FIRST_DAY_OF_WEEK): HTMLCalendar.__init__(self, firstweekday)
def __init__(self, firstweekday): HTMLCalendar.__init__(self, firstweekday)