Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added settings for show_upcoming_events and show_past_events to control ... #3

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

geojeff
Copy link

@geojeff geojeff commented Feb 4, 2013

...whether or not lists for these show on the main page. Added a setting for calendar_position to control the position of the calendar relative to the lists, as above them, between them, or below them. These new settings are held in a calendar_settings object, as they pertain to the full page, and not to the upcoming_events_settings (renamed to be more explicit) used for the upcoming_events_widget.

…ol whether or not lists for these show on the main page. Added a setting for calendar_position to control the position of the calendar relative to the lists, as above them, between them, or below them. These new settings are held in a calendar_settings object, as they pertain to the full page, and not to the upcoming_events_settings (renamed to be more explicit) used for the upcoming_events_widget.
… site. Removed config params for Calendar, leaving config for the upcoming_events_widget, and adding functionality to the Calendar class, including a new scope property (calendar, recursive, or site wide search for events to be shown) and new select properties for controlling the appearance of an optional events list to accompany the calendar display. Moved the view code from the separate widgets.py into views.py, and updated views to use the decorator style. Improved code for recursive searching for events. Adjusted the readme and __init__.py for a more flexible way of configuring the upcoming_events_widget to any slot.
…ot widgets of some other add-ons -- looking for a consistent default style for such widgets.
…and past events are collected, with conditionals to avoid unneeded work. Also, in the related preparation for the return from calendar view code, dicts of upcoming and past events are put in a list and ordered according to properties. The template code simply iterates over the events_dicts provided, for either or both upcoming and past events lists. Fixed tests for new calendar properties and config settings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant