http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/templates/classic/detectors/userauditor.py Mercurial Repository: p/roundup/code: templates/classic/detectors/userauditor.py history 2007-09-12T21:11:14+00:00 fuller email validition (request [SF#216291]) http://hg.code.sf.net:8000/p/roundup/code/#changeset-21420ba64b0dc0e9237198b68a976b4046fe0cb8 Justus Pendleton jpend@users.sourceforge.net 2007-09-12T21:11:14+00:00 2007-09-12T21:11:14+00:00
changeset 21420ba64b0d
branch
bookmark
tag
user Justus Pendleton <jpend@users.sourceforge.net>
description fuller email validition (request [SF#216291])

Checks email syntax more rigorously.
Perform address checks against "address" and any "alternate_addresses".
Changed all of the unit tests to have addresses that pass this new check.
files
only validate timezone if they set it http://hg.code.sf.net:8000/p/roundup/code/#changeset-fa611c22489580ff14067c30078d1a9cc11951a7 Justus Pendleton jpend@users.sourceforge.net 2007-09-11T21:28:29+00:00 2007-09-11T21:28:29+00:00
changeset fa611c224895
branch
bookmark
tag
user Justus Pendleton <jpend@users.sourceforge.net>
description only validate timezone if they set it

they can clear the timezone which resulted in tz==None and
an exception
files
fix [SF#611787]: ensure unique email addresses http://hg.code.sf.net:8000/p/roundup/code/#changeset-4fcf7a52767e2184b38bcdc6248f0ee71a2fd320 Justus Pendleton jpend@users.sourceforge.net 2007-09-06T16:52:20+00:00 2007-09-06T16:52:20+00:00
changeset 4fcf7a52767e
branch
bookmark
tag
user Justus Pendleton <jpend@users.sourceforge.net>
description fix [SF#611787]: ensure unique email addresses

enhance userauditor to make sure the email address is unique in the
tracker.

add a unittest for it.
files
strip rolename & fix rolename unittest http://hg.code.sf.net:8000/p/roundup/code/#changeset-4c8d853017f2113e93af496c430b83c49225900a Justus Pendleton jpend@users.sourceforge.net 2007-08-31T17:45:17+00:00 2007-08-31T17:45:17+00:00
changeset 4c8d853017f2
branch
bookmark
tag
user Justus Pendleton <jpend@users.sourceforge.net>
description strip rolename & fix rolename unittest

- strip the rolename earlier in processing so we handle pure-whitespace
- change modeline per alex's suggestion
- add unittest for all-white space roles
- somehow I managed to check in a broken unittest previously. add in
the user lookup so it works.
files
more small userauditor changes and a unittest http://hg.code.sf.net:8000/p/roundup/code/#changeset-4d1928ce993e1bf9fa40caaf26318679d66074b5 Justus Pendleton jpend@users.sourceforge.net 2007-08-31T15:57:47+00:00 2007-08-31T15:57:47+00:00
changeset 4d1928ce993e
branch
bookmark
tag
user Justus Pendleton <jpend@users.sourceforge.net>
description more small userauditor changes and a unittest

- changes the "roles" loop per alex's suggestion
- figured out (I think) why vim wasn't obeying the modeline and
corrected it
- removed trailing whitespace per alex
- synchronized classic/minimal templates (boy I wish CVS allowed symlinks)
- added unit tests for userauditor.py: checks timezone, email, and role
handling
files
Fix [SF#738470]. Validate timezone setting in userauditor http://hg.code.sf.net:8000/p/roundup/code/#changeset-d6bab60f9ca4b5b056171836363300b1f4a24ed3 Justus Pendleton jpend@users.sourceforge.net 2007-08-30T00:31:16+00:00 2007-08-30T00:31:16+00:00
changeset d6bab60f9ca4
branch
bookmark
tag
user Justus Pendleton <jpend@users.sourceforge.net>
description Fix [SF#738470]. Validate timezone setting in userauditor

The timezone setting is just a plain string, which was being
stored blindly. The problem is that certain parts of the roundup
web UI (notably the user details page) try to use, assuming that it
is valid. If a user enters garbage then they cannot access their
details page (and possibly other parts of roundup) until an admin
fixes their timezone for them.

During userauditor, we attempt to use the new timezone value and
catch any exceptions that may be raised.

I posted this patch to roundup-users several days ago and no one
screamed. Now that I have commit access I'll check it in.

I also noticed that the classic and minimal template userauditors
were slightly different in their check for 'roles'. I couldn't discern
a reason for the difference so I made them the same. I can change it
back if need be.
files
removing all roles now works (issue [SF#538758]) http://hg.code.sf.net:8000/p/roundup/code/#changeset-20f63b6b806f9b31bf2d998be144d84e168caf6b Tobias Herp tobias-herp@users.sourceforge.net 2006-09-18T03:24:38+00:00 2006-09-18T03:24:38+00:00
changeset 20f63b6b806f
branch
bookmark
tag
user Tobias Herp <tobias-herp@users.sourceforge.net>
description removing all roles now works (issue [SF#538758])
files
[maint-0.6] remove SHA hashes from source ([SF#827510] http://hg.code.sf.net:8000/p/roundup/code/#changeset-e2727ced8bea86a8a6e92c253294c6499169914b Richard Jones richard@users.sourceforge.net 2003-11-11T22:25:37+00:00 2003-11-11T22:25:37+00:00
changeset e2727ced8bea
branch maint-0.6
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description remove SHA hashes from source ([SF#827510]
files
remove SHA hashes from source ([SF#827510] http://hg.code.sf.net:8000/p/roundup/code/#changeset-00f0267db956e25f86ab91c25634450b2894d478 Richard Jones richard@users.sourceforge.net 2003-11-11T22:25:37+00:00 2003-11-11T22:25:37+00:00
changeset 00f0267db956
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description remove SHA hashes from source ([SF#827510]
files
audit some user properties for valid values (roles, address) http://hg.code.sf.net:8000/p/roundup/code/#changeset-64f448ff07f241f30fd8bf7d45e8fbb96eb688f3 Richard Jones richard@users.sourceforge.net 2003-06-24T04:16:35+00:00 2003-06-24T04:16:35+00:00
changeset 64f448ff07f2
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description audit some user properties for valid values (roles, address)

[SF#742968] and [SF#739653]
files