X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FSites.py;h=00fc964779b9d3ba2fdd5cf22e1c8a39d5122165;hb=bc48d5148c2d0b65f90e393184a213dc202ecc70;hp=da7373b3c74ad3d6de40679163978f8392ed9c12;hpb=d907e45d79297836391e66edb3c58bf7b09473b0;p=plcapi.git diff --git a/PLC/Sites.py b/PLC/Sites.py index da7373b..00fc964 100644 --- a/PLC/Sites.py +++ b/PLC/Sites.py @@ -23,13 +23,13 @@ class Site(Row): primary_key = 'site_id' fields = { 'site_id': Parameter(int, "Site identifier"), - 'name': Parameter(str, "Full site name", max = 254, optional = False), - 'abbreviated_name': Parameter(str, "Abbreviated site name", max = 50, optional = False), - 'login_base': Parameter(str, "Site slice prefix", max = 20, optional = False), + 'name': Parameter(str, "Full site name", max = 254), + 'abbreviated_name': Parameter(str, "Abbreviated site name", max = 50), + 'login_base': Parameter(str, "Site slice prefix", max = 20), 'is_public': Parameter(bool, "Publicly viewable site"), - 'latitude': Parameter(float, "Decimal latitude of the site", min = -90.0, max = 90.0), - 'longitude': Parameter(float, "Decimal longitude of the site", min = -180.0, max = 180.0), - 'url': Parameter(str, "URL of a page that describes the site", max = 254), + 'latitude': Parameter(float, "Decimal latitude of the site", min = -90.0, max = 90.0, nullok = True), + 'longitude': Parameter(float, "Decimal longitude of the site", min = -180.0, max = 180.0, nullok = True), + 'url': Parameter(str, "URL of a page that describes the site", max = 254, nullok = True), 'date_created': Parameter(int, "Date and time when site entry was created, in seconds since UNIX epoch", ro = True), 'last_updated': Parameter(int, "Date and time when site entry was last updated, in seconds since UNIX epoch", ro = True), 'max_slices': Parameter(int, "Maximum number of slices that the site is able to create"),