X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FPersons.py;h=970e6e0528fe3217db8221dcafd60ddad90ed406;hb=ed7fa1ebf97ec2f88f18f8fa538e46c6ae9525c4;hp=1bc588e6683103250752ac96cc5fe4122c7e8feb;hpb=7e36d319170a9ec7c4f1f31c76087c2b671dd7a7;p=plcapi.git diff --git a/PLC/Persons.py b/PLC/Persons.py index 1bc588e..970e6e0 100644 --- a/PLC/Persons.py +++ b/PLC/Persons.py @@ -4,7 +4,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: Persons.py,v 1.11 2006/10/11 15:40:25 mlhuang Exp $ +# $Id: Persons.py,v 1.12 2006/10/20 17:52:24 mlhuang Exp $ # from types import StringTypes @@ -33,15 +33,15 @@ class Person(Row): primary_key = 'person_id' fields = { 'person_id': Parameter(int, "Account identifier"), - 'first_name': Parameter(str, "Given name", max = 128), - 'last_name': Parameter(str, "Surname", max = 128), + 'first_name': Parameter(str, "Given name", max = 128, optional = False), + 'last_name': Parameter(str, "Surname", max = 128, optional = False), 'title': Parameter(str, "Title", max = 128), - 'email': Parameter(str, "Primary e-mail address", max = 254), + 'email': Parameter(str, "Primary e-mail address", max = 254, optional = False), 'phone': Parameter(str, "Telephone number", max = 64), 'url': Parameter(str, "Home page", max = 254), 'bio': Parameter(str, "Biography", max = 254), 'enabled': Parameter(bool, "Has been enabled"), - 'password': Parameter(str, "Account password in crypt() form", max = 254), + 'password': Parameter(str, "Account password in crypt() form", max = 254, optional = False), 'last_updated': Parameter(str, "Date and time of last update", ro = True), 'date_created': Parameter(str, "Date and time when account was created", ro = True), 'role_ids': Parameter([int], "List of role identifiers", ro = True),