Exemple #1
0
 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])
Exemple #2
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')])
Exemple #3
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)
Exemple #5
0
    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()
Exemple #6
0
 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
Exemple #7
0
 def __init__(self, firstweekday=settings.FIRST_DAY_OF_WEEK):
     HTMLCalendar.__init__(self, firstweekday)
Exemple #8
0
 def __init__(self, firstweekday):
     HTMLCalendar.__init__(self, firstweekday)