Commit graph

125 commits

Author SHA1 Message Date
Henrik Levkowetz ec684e1b4e Added a pylint rc-file, and fixed or silenced a number of issues found by pylint using the settings .pylintrc (which enable only error checking).
- Legacy-Id: 11941
2016-09-08 14:48:59 +00:00
Henrik Levkowetz 03d5b07e51 Added document information and submission timeline to profile pages. Refactored the chart data generation.
- Legacy-Id: 11928
2016-09-06 19:25:51 +00:00
Henrik Levkowetz 4537f91424 Modified the alias factory to work around the problem with the backend collapsing aliases with accented and unaccented versions of the same name.
- Legacy-Id: 11580
2016-07-09 19:57:37 +00:00
Henrik Levkowetz c0c3d2a5d6 Removed an unnecessary storage location argument, and corrected the use of ImageField upload_to in order to point at media/photo instead of media/photo/photo.
- Legacy-Id: 11536
2016-07-07 12:23:34 +00:00
Henrik Levkowetz 5acff0e95f Added a method Person.ascii_name() for use when generating 1id-*.txt files. Added caching for Person.plain_name(). Fixes a problem with non-ascii names in 1id-*.txt which lead to non-ascii names in xml2rfc reference files.
- Legacy-Id: 11510
2016-07-01 20:08:28 +00:00
Henrik Levkowetz fa5a89f3d7 Added a backwards migration for person.0013_add_plain_name_aliases.
- Legacy-Id: 11368
2016-06-14 15:11:05 +00:00
Henrik Levkowetz 45e9801955 Added a migration which provides photo field default values and updates the upload path to the one used in production.
- Legacy-Id: 11345
2016-06-13 14:54:40 +00:00
Henrik Levkowetz 289dd0c2a9 Minor tweaks.
- Legacy-Id: 11343
2016-06-13 14:03:19 +00:00
Henrik Levkowetz e20ffc9e86 Improved data migration for plain_name aliases.
- Legacy-Id: 11339
2016-06-13 10:39:36 +00:00
Henrik Levkowetz 80dc67f109 Fixed pyflakes and consistency issues in person.views.profile().
- Legacy-Id: 11322
2016-06-11 23:05:08 +00:00
Henrik Levkowetz 8ba02dfd2c Added fixes for various profile page problems found by the test crawler.
- Legacy-Id: 11321
2016-06-11 21:54:14 +00:00
Henrik Levkowetz e3cbabaf9b Made it possible to filter on photo and bio fields in the API.
- Legacy-Id: 11320
2016-06-11 19:48:36 +00:00
Henrik Levkowetz f384a134c4 Added a migration to provide plain-name aliases where they are missing, as we expect those for the person profile URLs.
- Legacy-Id: 11319
2016-06-11 11:58:30 +00:00
Henrik Levkowetz 9eacdbf2c6 Merged in ^/personal/henrik/6.21.1-biophoto@11313, with work from rjsparks@nostrum.com and henrik@levkowetz.com which provides support for profile biography and photo.
- Legacy-Id: 11314
2016-06-10 19:36:47 +00:00
Henrik Levkowetz a9980d5cc1 Added a default for photo and photo_thumb to the migration.
- Legacy-Id: 11306
2016-06-10 09:41:09 +00:00
Henrik Levkowetz ebe45e5312 Added tests for various photo pages.
- Legacy-Id: 11305
2016-06-09 21:59:17 +00:00
Henrik Levkowetz 2c456cea73 Added default values to the photo and photo_thumb fields. Made photo_name() return unicode. Made plain_name not fall back to ascii_short, as that's not meaningful.
- Legacy-Id: 11301
2016-06-09 21:53:52 +00:00
Henrik Levkowetz f4d2f19ffb Tweaked the person factory to provide bio and photo on request.
- Legacy-Id: 11300
2016-06-09 21:51:46 +00:00
Henrik Levkowetz dd781c9367 Added and updated migrations.
- Legacy-Id: 11286
2016-06-06 16:30:54 +00:00
Henrik Levkowetz ab20d0002d Added some guards against bad data in name_parts().
- Legacy-Id: 11285
2016-06-06 16:30:30 +00:00
Henrik Levkowetz 9e382bb711 Added support for reStructuredText markup in bios.
- Legacy-Id: 11284
2016-06-06 16:29:25 +00:00
Henrik Levkowetz c4b59f0363 Added personal photo+bio pages.
- Legacy-Id: 11278
2016-06-05 20:14:50 +00:00
Henrik Levkowetz ed583bcc5f Used a more sophisticated algorithm for separation of person name parts in the photo_name() method. Added support for 'Dr' (without dot) as a titular prefix.
- Legacy-Id: 11275
2016-06-05 09:54:13 +00:00
Henrik Levkowetz 1410168a5a Fixed some missed instances of a setting name-change.
- Legacy-Id: 11266
2016-06-02 19:30:25 +00:00
Henrik Levkowetz ab095fca5b MOdified the 0011_populate_photos migration to set photo thumbnail values which include the photos dirname under the media_root. Added a reverse migration, for easier testing from a clean state.
- Legacy-Id: 11264
2016-06-02 19:20:34 +00:00
Henrik Levkowetz 14a4ea177c Merged in ^/personal/rjs/6.21.1.dev0@11257
- Legacy-Id: 11259
2016-06-01 16:37:01 +00:00
Henrik Levkowetz b9fa1905c3 Fixed a problem with person alias updates where get_or_create() could find two results for one alias name because utf8_general_ci collation would match multiple different utf8 forms to the same name.
- Legacy-Id: 11257
2016-05-31 12:21:18 +00:00
Henrik Levkowetz 9d81ddc239 Added a migration to match the Person model changes in [11180].
- Legacy-Id: 11210
Note: SVN reference [11180] has been migrated to Git commit 7e61ce84e8
2016-05-20 10:11:42 +00:00
Ole Laursen 793bc3c2fa Merge account registration fixes branch
- Legacy-Id: 11169
2016-05-05 15:44:47 +00:00
Henrik Levkowetz bf4350f6dc Merged in [11129] from rjsparks@nostrum.com:
Have person.formatted_email() return the primary address if one is so marked. Fixes #1928.
 - Legacy-Id: 11150
Note: SVN reference [11129] has been migrated to Git commit 2fd2b3a8e6
2016-05-04 08:44:19 +00:00
Henrik Levkowetz 35ef32485a Tweaked the field names of Person name fields to make the intended use clearer.
- Legacy-Id: 11140
2016-05-03 16:39:17 +00:00
Ole Laursen a99aa32c59 Refactor account code to use the built-in Django signing framework
(reusing code previously written for the community lists) instead of
the a custom MD5 scheme, add tests of all views, rewrite custom form
handling code to use plain forms and ensure that the data is properly
validated and errors visible in the UI. Move help texts on the Person
form up to the model.
 - Legacy-Id: 11136
2016-04-27 16:26:04 +00:00
Robert Sparks 2fd2b3a8e6 Have person.formatted_email() return the primary address if one is so marked. Fixes #1928. Commit ready for merge.
- Legacy-Id: 11129
2016-04-22 20:19:21 +00:00
Henrik Levkowetz adb8625635 Introduced caching for the api resources.
- Legacy-Id: 10929
2016-03-15 23:12:04 +00:00
Henrik Levkowetz 846a02c3f9 Fixed pyflakes complaints introduced with pyflakes 1.1.0
- Legacy-Id: 10896
2016-03-04 21:24:26 +00:00
Robert Sparks c8c45e2213 Stop making active unknown-email- objects. Mark existing such objects as inactive. Tweak exception handling in submit/utils to make it obvious that the utilities will not change the person an existing Email record is pointing to. Commit ready for merge.
- Legacy-Id: 10780
2016-02-04 22:50:50 +00:00
Robert Sparks a9abd3c2cd Tweak factories to not randomly create keys that violate constraints. Commit ready for merge
- Legacy-Id: 10756
2016-01-28 20:12:00 +00:00
Robert Sparks dc5ae398f2 Improved SearchablePersonField to show the primary email address for any search results where a name appears more than once.
Simplified the edit nominee form.
Replaced the merge nominee form with a request to the secretariat to merge Person records. Fixes #1847.
Added merging nominees to the secretariat's person merging script.
Restructured the person merging script to make it testable.
Updated some tests to match changes to the mailtriggers that hadn't made it to the fixtures.
 - Legacy-Id: 10625
2015-12-22 21:42:55 +00:00
Robert Sparks 6bf4227974 Checkpoint: main nomination forms use SearchableEmailField
- Legacy-Id: 10609
2015-12-18 20:38:17 +00:00
Robert Sparks e81b473282 Expose views for concluded nomcoms. Close feedback and nomination. Initial work on factory-boy based testing. Partially addresses #1856
- Legacy-Id: 10520
2015-11-25 22:17:41 +00:00
Henrik Levkowetz 2fe8dcb4c2 Added a very simple html version of the json API, to make it easier to explore the api manually.
- Legacy-Id: 9991
2015-08-09 16:28:55 +00:00
Henrik Levkowetz d0f05cf924 Addressed another bug related to using SearchablePersonsField to choose Person objects, rather than Email objects. If one uses this for Person objects, then object.address isn't going to be terribly useful in the form ,,:-). Addresses issue #1684, #1685 and #1686.
- Legacy-Id: 9530
2015-04-21 15:51:26 +00:00
Henrik Levkowetz 625347cd2f Merged trunk@9354 to facelift copy
- Legacy-Id: 9357
2015-04-02 06:51:34 +00:00
Henrik Levkowetz fb4bd964e4 Tweaked the email activation migration slightly.
- Legacy-Id: 9172
2015-03-10 20:24:31 +00:00
Henrik Levkowetz 5f86b73d0e Tweaked the email activation migration to not send email when there's no active email address; it's not meaningful as the best we can do then is simply to activate the draft-related address.
- Legacy-Id: 9171
2015-03-10 20:13:49 +00:00
Henrik Levkowetz f71e6166f3 Added a migration which changes the active bit from False to True to all email addresses associated with active drafts, and sends out notification emails about this.
- Legacy-Id: 9166
2015-03-08 13:21:02 +00:00
Henrik Levkowetz 7258dc6eff Made sure that Email.__unicode__() will return a string even if address is None. Fixes an exception on deleting an email address for a Person object in the admin interface.
- Legacy-Id: 9159
2015-03-07 15:42:34 +00:00
Henrik Levkowetz 4dbdf475fa Merged in [9141] from rjsparks@nostrum.com:
Fix ordering issue on agenda.html.
 - Legacy-Id: 9150
Note: SVN reference [9141] has been migrated to Git commit 29ac6363a1
2015-03-04 19:16:21 +00:00
Henrik Levkowetz a64961977b Added a new field 'primary' to the Email model, added a matching migration, and a data migration to set primary fields to match the way a primary address is chosen today.
- Legacy-Id: 9149
2015-03-04 17:53:48 +00:00
Henrik Levkowetz 7bd647c0d6 Don't create empty Alias records. Fixes issue #1603.
- Legacy-Id: 9086
2015-02-13 13:04:42 +00:00