コード例 #1
0
ファイル: calendar.py プロジェクト: silencecorner/blog
 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])
コード例 #2
0
ファイル: calendar.py プロジェクト: englandbaron/newton-www
 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')])
コード例 #3
0
ファイル: calendar.py プロジェクト: APSL/django-blog-zinnia
 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')])
コード例 #4
0
 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)
コード例 #5
0
ファイル: dashboard.py プロジェクト: SpreadBand/SpreadBand
    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()
コード例 #6
0
ファイル: views.py プロジェクト: lnalkman/education_platform
 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
コード例 #7
0
ファイル: ecalendar.py プロジェクト: yoza/base-elements
 def __init__(self, firstweekday=settings.FIRST_DAY_OF_WEEK):
     HTMLCalendar.__init__(self, firstweekday)
コード例 #8
0
ファイル: calendar.py プロジェクト: heyoni/DjangoProject
 def __init__(self, firstweekday):
     HTMLCalendar.__init__(self, firstweekday)