X-Git-Url: https://sipb.mit.edu/gitweb.cgi/wiki.git/blobdiff_plain/4dee1080af5783162be97b6b702edc1a2629264e..97e54cd50b9fdf7010005823eb61144930fa6f66:/projects/clockworks.mdwn diff --git a/projects/clockworks.mdwn b/projects/clockworks.mdwn index ac35557..bd5bbf4 100644 --- a/projects/clockworks.mdwn +++ b/projects/clockworks.mdwn @@ -24,29 +24,33 @@ What do people not like about Doodle? * We can deal with this by collapsing the three-page wizard Doodle has into a single page. Be careful not to sacrifice too much simplicity for such a setup. * No obvious "I can, but would rather not" * Alleviated also by the above; this might want to be the default poll setup. +* Trac, one of the first Python web applications to hit mainstream, was long bemoaned for being complex to install. Try not to have the same story ### What to do? -* [Configure](http://docs.turbogears.org/1.0/Configuration?action=show&redirect=1.0%2FGettingStarted%2FConfiguration) the default TurboGears scaffolding -* Work through the [TurboGears tutorial](http://docs.turbogears.org/1.0/Wiki20/Page1) (the tutorial seems to focus on SQLObject, which is not necessarily the best thing. Maybe someone can find some better docs?) -* Setup database configuration and installer (an auxiliary issue is the presence of an installer for people). Also, make sure SQLAlchemy is being used -* Learn SQLAlchemy +* Work through the [TurboGears tutorial](http://docs.turbogears.org/1.0/Wiki20/Page1) (the tutorial seems to focus on SQLObject, which is not necessarily the best thing. Maybe someone can find some better docs?) +* Setup database configuration and installer (an auxiliary issue is the presence of an installer for people). (**ezyang**) +* Learn SQLAlchemy (**ezyang**) * Make sure the default scaffolding works on Scripts (this includes running TurboGears as CGI). Any work done here should be considered for a TurboGears auto-installer, the equivalent of tgsetup) (**ezyang**) * Write a .gitignore file for generated/not versionable items -* Get friendly URLs working -* Learn Kid (TurboGear's default templating interface) +* Get friendly URLs working * Setup a zephyrbot that watches the repository -* Learn [Widgets](http://docs.turbogears.org/1.0/Widgets) (we'll be using them for all of the forms in this website) -* Polish up and get SSL authentication working with TurboGears identity +* [Configure](http://turbogears.org/2.0/docs/main/Config.html) the default TurboGears scaffolding +* Learn [Genshi](http://turbogears.org/2.0/docs/main/Genshi.html), the templating engine +* Learn [Widgets](http://turbogears.org/2.0/docs/main/ToscaWidgets/forms.html) (we'll be using them for all of the forms in this website) +* Polish up and get SSL authentication working with TurboGears Identity (the two should be integrated together in a sane manner.) +* Write model classes for all of our tables +* Write controllers for each of the pages ### Architecture -* **Language**: Python -* **Framework**: TurboGears +* **Language**: Python 2.5+ +* **Framework**: TurboGears 2.0 * **SCM**: Git * **JavaScript**: Mochikit * **Database**: SQLite for development, ? for production * **ORM**: SQLAlchemy +* **Templating**: Genshi Other ideas: @@ -60,7 +64,15 @@ Other ideas: ### Schema -To be transferred from the whiteboard +You can view the database schema in *model.py*. Some notable features: + +* All `user.user_id` foreign keys are paired with an `anon_name` field. If user_id is null, then the associated entity was posted by an anonymous user, and `anon_name` contains the name they submitted for themselves +* The current `time_slots` table uses `DateTime` and `Interval` to define events. We should consider whether or not 15 minute timeslices will be the native representation in the database, or simply a simpler model for the interface +* `length` is likely common through all possible times for an event, so it's stored in both `time_slots` and `event` +* `events.timezone` represents the timezone that the event is occurring in, so we can give user-friendly times. If this field is null, then the creator's `user.timezone` field is used (if that is also null, we should probably use EST) +* `key` and `admin_key` in `event` refer to random values that will compose the URLs for events. +* For full backwards compatibility, `hidden` and `extended` are stored as boolean attributes (the former refers to hiding the responses of users, the latter refers to allowing Yes/No/IfNeedBe responses). We may want to consider an alternate model for these properties +* The schema is not very generalized. Certain parts should definitely be generalized, but let's try to avoid the architecture astronaut syndrome. ### Page Inventory @@ -92,6 +104,7 @@ List of "screens" in Doodle Doodle killer. Extra features. Pump it up. +* Better UI * Integration * Basic: integration with ICS calendars, GoogleCalendar, Exchange, and TechTime (for faculty) * Advanced: integration with MIT's course schedules, Facebook