1
|
import datetime
|
2
|
|
3
|
# A "strftime" string for formatting start and end time selectors in forms
|
4
|
TIMESLOT_TIME_FORMAT = '%I:%M %p'
|
5
|
|
6
|
# Used for creating start and end time form selectors as well as time slot grids.
|
7
|
# Value should be datetime.timedelta value representing the incremental
|
8
|
# differences between temporal options
|
9
|
TIMESLOT_INTERVAL = datetime.timedelta(minutes=15)
|
10
|
|
11
|
# A datetime.time value indicting the starting time for time slot grids and form
|
12
|
# selectors
|
13
|
TIMESLOT_START_TIME = datetime.time(9)
|
14
|
|
15
|
# A datetime.timedelta value indicating the offset value from
|
16
|
# TIMESLOT_START_TIME for creating time slot grids and form selectors. The for
|
17
|
# using a time delta is that it possible to span dates. For instance, one could
|
18
|
# have a starting time of 3pm (15:00) and wish to indicate a ending value
|
19
|
# 1:30am (01:30), in which case a value of datetime.timedelta(hours=10.5)
|
20
|
# could be specified to indicate that the 1:30 represents the following date's
|
21
|
# time and not the current date.
|
22
|
TIMESLOT_END_TIME_DURATION = datetime.timedelta(hours=+8)
|
23
|
|
24
|
# Indicates a minimum value for the number grid columns to be shown in the time
|
25
|
# slot table.
|
26
|
TIMESLOT_MIN_COLUMNS = 4
|
27
|
|
28
|
# Indicate the default length in time for a new occurrence, specifed by using
|
29
|
# a datetime.timedelta object
|
30
|
DEFAULT_EVENT_DURATION = datetime.timedelta(hours=+1)
|
31
|
|
32
|
# If not None, passed to the calendar module's setfirstweekday function.
|
33
|
CALENDAR_FIRST_WEEKDAY = 1
|
34
|
|