Граф коммитов

127 Коммитов

Автор SHA1 Сообщение Дата
Ricky Rosario ec3859b9e3 Added view for deleting documents and some permissions to protect it. [bug 647449] 2011-04-21 16:54:02 -04:00
Paul Craciunoiu 4de3fdcd4d Refactor group dashboards to be properties of groups.
* Announcements are per group, independent of user's groups.
* Tabs are all about user's groups. Tab titles are group names.
* Add migration for unique group id in GroupDashboard because of OneToOneField.
* Create utils.py to avoid circular imports.
2011-04-20 12:47:01 -07:00
James Socol 00f1fd793e Create Messages app and models.
Message storage based on separate models for Inbox and Outbox.
2011-04-18 15:24:39 -04:00
Paul Craciunoiu eeb2903b12 [bug 623429] Add is_draft field to gallery models. 2011-04-15 15:00:45 -07:00
James Socol ae705071a9 Upgrade to Waffle 0.6. [bug 649801] 2011-04-13 18:48:15 -04:00
Erik Rose b60f21df23 Fix errant migration 95 and the test that let it slip through. 2011-04-13 15:36:06 -07:00
Erik Rose cfc190fe12 [bug 638477] [bug 649201] Add framework for mapping dashboards to groups.
* Add GroupDashboard model
* Change dashboard_tabs from a macro to a helper so it can get at dashboards(). Rename it "user_dashboard_tabs". Remove explicit references to tabs; look them up from dashboards.user instead.
* Enable Questions dashboard.
2011-04-13 14:36:46 -07:00
Erik Rose d98e4d6728 Move notifications app into its own repo, and rename it "tidings". 2011-03-31 11:16:22 -07:00
Paul Craciunoiu 067c97bc7c [bug 638472] Announcements app, used in review/questions dashboards.
* Announcement model + migration.
* Model utils: get_for_group, get_side_wide, is_visible
* Site-wide announcements are in no group.
* Minimally formatted and styled for review/question dashboards.
2011-03-17 19:19:49 +02:00
James Socol 6e4ff7d016 New method for storing and formatting actions.
* Drop the `Activity` class and table, replace with `Action`.
* And associated renaming.
* Define the concept of an `ActionFormatter` and a base class.
* Add a README.
2011-03-11 09:29:42 -05:00
James Socol 0146678ec3 Add a 'locale' field to user profiles. [bug 638247] 2011-03-08 18:27:25 -05:00
James Socol 9e063c132a Fix waffle migration. 2011-03-08 14:29:03 -05:00
James Socol c9b96adaaa Install Waffle 0.2. [bug 638306] 2011-03-08 14:05:29 -05:00
James Socol a33e4b36b7 Add 'activity' app and Activity model [bug 639526]
* Adds a model representing an activity stream object.
* Includes a mixin to add the bi-directional generic relation.
2011-03-08 11:49:37 -05:00
James Socol 92c5252424 Fix migration numbers. 2011-03-03 16:22:32 -05:00
James Socol ebbd99c8c5 Add a Signature model for postcrash. [bug 631341] 2011-03-03 15:59:51 -05:00
James Socol 78df39ade8 Create a permission to delete attachments to answers. [bug 600176]
Adds the default permissions for upload.imageattachment and switches the
views to check for the correct permission. Also ensures that del_image_async
returns JSON and improves test coverage of that view.
2011-03-03 14:54:34 -05:00
Erik Rose cc0335ef9f [bug 637836] Delete orphaned reply tweets so adding foreign key contraint doesn't fail. 2011-03-02 14:58:46 -08:00
Erik Rose 2d0bbc6552 Add missing migration from 602144100. 2011-02-28 17:23:30 -08:00
James Socol f370de8526 Drop old migrations. [bug 634677] 2011-02-28 09:45:20 -05:00
Fred Wenzel 8dac105b96 Remove tweets button for Army of Awesome. Bug 624464. 2011-02-17 15:16:28 -08:00
James Socol 804c7993ec Remove EventWatch model and table. [bug 632184] 2011-02-16 15:08:28 -05:00
Erik Rose 9b40cca31a [bug 633050] Make notifications_watch.email nullable again. 2011-02-09 17:33:21 -08:00
Erik Rose b1b4935acd [bug 623961] Switch to SQL-based migrations for notifications. 2011-02-09 17:06:56 -08:00
Erik Rose d4b83320d7 [bug 620644] Fix migration of translated revisions so they have based_on_ids. 2011-02-07 18:57:38 -08:00
Paul Craciunoiu 24a13e54fd [bug 623982, bug 629520] Anonymous watches. Delete watch when delivery fails.
* Add an is_active column.
* Add stub implementation for confirmation email.
* Update .notify() to send a confirmation email and raise an ActivationRequestFailed exception if the email message fails to send.
* Add function Event._activation_email, which receives a watch and an email and returns an EmailMessage.
* Make questions anonymous watches work, add extra views for confirming/unsubscribing from watches.
* Add Event.get_activation_url() for use in email templates.
* Add Event.get_watch_description() for events to describe their watches in string form. This comes in handy when sending out emails, to explain why the receiver is getting this.
* Catch SMTPRecipientsRefused exception and show message about it.
* Update wiki tests.
2011-02-07 17:15:46 -08:00
Erik Rose dd08a1a845 [bug 628752] Port wiki app to new notification system. 2011-02-07 14:24:15 -08:00
Erik Rose 82e7ca96cc [bug 630718] Hash string filter values down to ints. Recreate your tables.
Not factoring up search app's implementation of crc32() since the notifications app is going to break off anyway.
2011-02-02 13:32:27 -08:00
Erik Rose 127423fa48 Merge branch 'notifications-623641'
Renumber Notifications migration to be at home on master.
2011-02-01 17:53:51 -08:00
Erik Rose 6f765932c6 [bug 629515] Let us fire more than one event at a time, de-duping among them. Made schema changes, so reload your tables.
* New: EventUnion. Made some interesting building blocks in the process. For example, peekable iterators are really useful sometimes. Also wrote a merge() routine which is handy for merging sorted lists.
* Make (watch, name) unique on WatchFilter.
* Make _unique_by_email() usable not only on (possibly-no-email-having-User, Watch) pairs but on ones with EmailUsers as well. Users will trump (the anonymous) EmailUsers when merging.
* Make _unique_by_email() responsible for the creation of EmailUsers when necessary.
* Quit skipping the cross-event de-duping integration test in forums.
* Adjust forums' ThreadReplyEvent to use EventUnion.
2011-01-31 16:10:06 -08:00
James Socol 312a77fb93 Move in-product redirects from htaccess to new app. [bug 629406] 2011-01-31 11:24:13 -05:00
James Socol 44c77f4e71 Inproduct redirect view. [bug 625387] 2011-01-31 11:24:13 -05:00
James Socol a53fab2b35 Add models for inproduct redirects [bug 625386] 2011-01-31 11:19:16 -05:00
Paul Craciunoiu b812a931a9 [bug 627781] Move object_id back into Watch and test for cascading deletes.
Also add missing migration (accidentally removed in previous commit).
2011-01-25 15:40:19 -08:00
Paul Craciunoiu ab3758b182 Bump migration number for notifications. 2011-01-25 12:09:18 -08:00
Erik Rose 962a72a6c3 [bug 623644] Implement (and consequently iterate the design of) most of the system: creating, examining, and deleting watches and finding which users to bother when an event fires. Cover everything but fire() (which is uninteresting so far) with tests, which means things have moved from "should work" status to "do work". You'll need to recreate your watch tables.
* Rename watch() and its brethren to notify(). Before, it sounded like Events were watching Users, which is wrong and also spooky.
* Rename _watches() to _users_watching(), since it returns Users after all.
* Rename _build_mails() to mails() for brevity and to reflect its return value.
* Tweak DB field lengths. 10 chars of secret is plenty when our alphabet is 52 chars. 30 for event_type is plenty. 20 for watch filter name makes James happy (and causes Event.filters to become a set rather than a map).
* Make a user() test helper.
* Add `save` kwargs to watch() and watch_filter() helpers. watch() now uses the user() helper instead of get_user(), which means it no longer needs the users.json fixture.
* Reorder fields in Watch to put the required fields first.
* Add a confirm() method to Watch.
* Stop speccing CRC32; it's handy since MySQL knows it and it's portable, but it's not much of a hash function.
2011-01-25 12:00:38 -08:00
Paul Craciunoiu 70271b414d [bug 623643] Notifications models. 2011-01-25 12:00:37 -08:00
Paul Craciunoiu 8f57f629fb [bug 623341] Localized canned responses.
Also add and use LocaleField. [bug 625937]
2011-01-21 14:55:43 -08:00
James Socol c040d10045 Remove all MD5 hashes from auth_user. [bug 622675] 2011-01-14 15:04:16 -05:00
Erik Rose a814221dea [bug 610527] Implement very tolerant fetching and storing of WebTrends stats. Expose a cron job for refreshing them. Also...
* Valign table headers to the bottom and table data to the middle.
* Add a test for number() Jinja function.
2011-01-11 17:08:34 -08:00
Paul Craciunoiu e887c25154 [bug 622927] Add poster for Videos. 2011-01-11 12:06:23 -08:00
Paul Craciunoiu 6bbdaece9d [bug 621490] User ability to change own email.
* Abstract some stuff from RegistrationProfile into ConfirmationProfile
* Add EmailChange model with an EmailChangeManager
* Store emails temporarily in EmailChange model and use email activation to confirm the newly set email.
* Update notifications to send to the new email. (This should be removed once we have a better notifications model.)
2011-01-04 16:36:47 -08:00
Paul Craciunoiu 0a14f00d7e [bug 620712] Drop TikiWiki tables. 2010-12-21 13:17:16 -08:00
Erik Rose af6c15d572 [bug 617464] Move remaining MyISAM tables to InnoDB and add a test that keeps them that way.
Also make sure all newly created tables are UTF-8.
2010-12-13 18:53:52 -08:00
Paul Craciunoiu 87e18d9cda [617452] Migrate Live Chat helpers. 2010-12-09 15:53:10 -08:00
Erik Rose 8c1c78d04c [616284] Make auto-created redirects unlocalizable.
As for the other deleted comment, we decided to implement the locale fallback instead of doing that.
2010-12-06 11:23:10 -08:00
James Socol ebaca5ebc3 Make profile/nick/display name optional. 2010-12-03 11:48:37 -05:00
Ricky Rosario a10cdef003 Implemented user account activation via confirmation email. [bug 614703] 2010-12-02 12:13:20 -05:00
Paul Craciunoiu a523e8084c [614049] Profile model! Included: one test and test helper. 2010-12-01 15:22:54 -08:00
Ricky Rosario 7213950d4b New users app for login, logout, and redirect (and more to come). [bug 613986, bug 614002, bug 612750, bug 612749]
* Includes a SHA-256 auth backend.
2010-11-24 12:16:15 -05:00