plcapi.git
17 years agoInitial checkin of new API implementation
Tony Mack [Mon, 9 Oct 2006 17:51:27 +0000 (17:51 +0000)]
Initial checkin of new API implementation

17 years ago- fixed allowed roles
Tony Mack [Mon, 9 Oct 2006 15:41:03 +0000 (15:41 +0000)]
- fixed allowed roles

17 years ago- Renamed (changed Remove to Delete)
Tony Mack [Fri, 6 Oct 2006 20:02:16 +0000 (20:02 +0000)]
- Renamed (changed Remove to Delete)

17 years ago- Changed Remove to Delete
Tony Mack [Fri, 6 Oct 2006 19:57:17 +0000 (19:57 +0000)]
- Changed Remove to Delete

17 years agounnecessary call
Tony Mack [Fri, 6 Oct 2006 19:54:36 +0000 (19:54 +0000)]
unnecessary call

17 years ago- Renamed (changed Remove to Delete)
Tony Mack [Fri, 6 Oct 2006 19:50:59 +0000 (19:50 +0000)]
- Renamed (changed Remove to Delete)

17 years agoInitial checkin of new API implementation
Tony Mack [Fri, 6 Oct 2006 19:47:18 +0000 (19:47 +0000)]
Initial checkin of new API implementation

17 years ago- implement AddressType and Address manipulation
Mark Huang [Fri, 6 Oct 2006 19:36:19 +0000 (19:36 +0000)]
- implement AddressType and Address manipulation

17 years ago- no need to pass in slice_id_or_name
Mark Huang [Fri, 6 Oct 2006 19:33:20 +0000 (19:33 +0000)]
- no need to pass in slice_id_or_name

17 years ago- validate: check for attempt to unset non-null values
Mark Huang [Fri, 6 Oct 2006 19:29:39 +0000 (19:29 +0000)]
- validate: check for attempt to unset non-null values
- implement base class delete()

17 years ago- removed 'Adm' prefix
Tony Mack [Fri, 6 Oct 2006 19:21:25 +0000 (19:21 +0000)]
- removed 'Adm' prefix

17 years ago- add_person, remove_person, add_node, remove_node: fix case when person/node
Mark Huang [Fri, 6 Oct 2006 19:08:26 +0000 (19:08 +0000)]
- add_person, remove_person, add_node, remove_node: fix case when person/node
  is already part of/no longer a part of the slice

17 years ago- add_person, remove_person: fix case when person is already part of/no longer
Mark Huang [Fri, 6 Oct 2006 19:07:33 +0000 (19:07 +0000)]
- add_person, remove_person: fix case when person is already part of/no longer
  a part of the site

17 years ago- add_role, remove_role: fix case when role is already set/no longer set
Mark Huang [Fri, 6 Oct 2006 19:06:06 +0000 (19:06 +0000)]
- add_role, remove_role: fix case when role is already set/no longer set

17 years ago- add_node, remove_node: fix case when node is already part of/no longer
Mark Huang [Fri, 6 Oct 2006 19:05:31 +0000 (19:05 +0000)]
- add_node, remove_node: fix case when node is already part of/no longer
  a part of the nodegroup

17 years ago- implement interface to Addresses
Mark Huang [Fri, 6 Oct 2006 19:02:33 +0000 (19:02 +0000)]
- implement interface to Addresses

17 years ago- implement interface to address_types table
Mark Huang [Fri, 6 Oct 2006 18:19:41 +0000 (18:19 +0000)]
- implement interface to address_types table

17 years ago- add address_types back
Mark Huang [Fri, 6 Oct 2006 18:19:07 +0000 (18:19 +0000)]
- add address_types back
- just associate addresses directly with sites; they are not
  standalone entities

17 years ago*** empty log message ***
Tony Mack [Fri, 6 Oct 2006 18:02:36 +0000 (18:02 +0000)]
*** empty log message ***

17 years ago- removed 'Adm' prefix
Tony Mack [Fri, 6 Oct 2006 18:01:00 +0000 (18:01 +0000)]
- removed 'Adm' prefix

17 years ago- added explicit 'WITH OIDS' when creating tables (tables are not created with oids...
Tony Mack [Fri, 6 Oct 2006 15:41:50 +0000 (15:41 +0000)]
- added explicit 'WITH OIDS' when creating tables (tables are not created with oids unless specified in postgresql-8.1.4)

17 years ago- allow marshalling of None
Mark Huang [Tue, 3 Oct 2006 19:34:05 +0000 (19:34 +0000)]
- allow marshalling of None

17 years ago- add slice, attribute, and slice attribute tests
Mark Huang [Tue, 3 Oct 2006 19:33:16 +0000 (19:33 +0000)]
- add slice, attribute, and slice attribute tests

17 years agoslice attribute methods
Mark Huang [Tue, 3 Oct 2006 19:32:53 +0000 (19:32 +0000)]
slice attribute methods

17 years ago- attribute types and attribute settings
Mark Huang [Tue, 3 Oct 2006 19:32:41 +0000 (19:32 +0000)]
- attribute types and attribute settings

17 years ago- added new methods
Mark Huang [Tue, 3 Oct 2006 19:32:09 +0000 (19:32 +0000)]
- added new methods

17 years ago- fix documentation
Mark Huang [Tue, 3 Oct 2006 19:32:01 +0000 (19:32 +0000)]
- fix documentation

17 years ago- no need to filter out None anymore
Mark Huang [Tue, 3 Oct 2006 19:31:40 +0000 (19:31 +0000)]
- no need to filter out None anymore

17 years ago- deleted no longer included in the Site.fields definition
Mark Huang [Tue, 3 Oct 2006 19:30:03 +0000 (19:30 +0000)]
- deleted no longer included in the Site.fields definition
- no need to specify return_fields when instantiating Sites()

17 years ago- deleted no longer included in the Node.fields definition
Mark Huang [Tue, 3 Oct 2006 19:29:33 +0000 (19:29 +0000)]
- deleted no longer included in the Node.fields definition
- no need to specify return_fields when instantiating Nodes()

17 years ago- added new helper classes
Mark Huang [Tue, 3 Oct 2006 19:28:38 +0000 (19:28 +0000)]
- added new helper classes

17 years ago- move common sync() functionality here
Mark Huang [Tue, 3 Oct 2006 19:28:22 +0000 (19:28 +0000)]
- move common sync() functionality here

17 years ago- move common sync() functionality to Table.Row
Mark Huang [Tue, 3 Oct 2006 19:28:10 +0000 (19:28 +0000)]
- move common sync() functionality to Table.Row
- validate slice names

17 years ago- fix typo
Mark Huang [Tue, 3 Oct 2006 19:27:28 +0000 (19:27 +0000)]
- fix typo

17 years ago- move common sync() functionality to Table.Row
Mark Huang [Tue, 3 Oct 2006 19:27:16 +0000 (19:27 +0000)]
- move common sync() functionality to Table.Row

17 years ago- make last_insert_id() return the primary key value of the last
Mark Huang [Tue, 3 Oct 2006 19:27:07 +0000 (19:27 +0000)]
- make last_insert_id() return the primary key value of the last
  inserted row, like DBI
- add notnull and hasdef keywords to fields() so that we know which
  columns must be set

17 years ago- set allow_none to allow XML-RPC marshalling of None values
Mark Huang [Tue, 3 Oct 2006 19:24:31 +0000 (19:24 +0000)]
- set allow_none to allow XML-RPC marshalling of None values

17 years ago- constrain indices to non-deleted accounts, sites, etc.
Mark Huang [Tue, 3 Oct 2006 19:24:15 +0000 (19:24 +0000)]
- constrain indices to non-deleted accounts, sites, etc.
- ensure that various foreign key references are non-null
- make attributes represent generic attribute types, possibly applicable
  to nodes too
- add primary key to slice_attribute to support multiple values per
  attribute per slice, and to make API programming easier

17 years ago- commit
Mark Huang [Mon, 2 Oct 2006 20:50:58 +0000 (20:50 +0000)]
- commit

17 years agomake read-only a Parameter attribute
Mark Huang [Mon, 2 Oct 2006 18:32:31 +0000 (18:32 +0000)]
make read-only a Parameter attribute

17 years agono need to filter out deleted fields anymore
Mark Huang [Mon, 2 Oct 2006 16:05:44 +0000 (16:05 +0000)]
no need to filter out deleted fields anymore

17 years ago- no need to override __setitem__() anymore, all helper classes query
Mark Huang [Mon, 2 Oct 2006 16:05:21 +0000 (16:05 +0000)]
- no need to override __setitem__() anymore, all helper classes query
  the DB schema for valid fields now

17 years ago- do not document or advertise deleted, this is an internal field
Mark Huang [Mon, 2 Oct 2006 16:04:42 +0000 (16:04 +0000)]
- do not document or advertise deleted, this is an internal field

17 years ago- renamed state to instantiation
Mark Huang [Mon, 2 Oct 2006 16:03:57 +0000 (16:03 +0000)]
- renamed state to instantiation
- do not document or advertise is_deleted, this is an internal field

17 years agoadd new slice functions
Mark Huang [Mon, 2 Oct 2006 15:38:54 +0000 (15:38 +0000)]
add new slice functions

17 years ago- import SliceInstantiations
Mark Huang [Mon, 2 Oct 2006 15:37:00 +0000 (15:37 +0000)]
- import SliceInstantiations

17 years ago- add helper class for slice_instantiations
Mark Huang [Mon, 2 Oct 2006 15:36:48 +0000 (15:36 +0000)]
- add helper class for slice_instantiations

17 years ago- allow max_slivers to be updated
Mark Huang [Mon, 2 Oct 2006 15:34:55 +0000 (15:34 +0000)]
- allow max_slivers to be updated
- removed organizations and consortiums tables

17 years ago- accept role_id_or_name
Mark Huang [Mon, 2 Oct 2006 15:34:16 +0000 (15:34 +0000)]
- accept role_id_or_name

17 years ago- implement Slices abstraction for new API functions
Mark Huang [Mon, 2 Oct 2006 15:33:33 +0000 (15:33 +0000)]
- implement Slices abstraction for new API functions

17 years ago- return address_ids and max_slivers
Mark Huang [Mon, 2 Oct 2006 15:30:03 +0000 (15:30 +0000)]
- return address_ids and max_slivers
- dates/times now returned as unix seconds
- clean up site slices when deleting
- removed site slice defaultattribute table

17 years ago- remove parameters, this is just an undocumented helper class
Mark Huang [Mon, 2 Oct 2006 15:25:22 +0000 (15:25 +0000)]
- remove parameters, this is just an undocumented helper class

17 years ago- removed person addresses
Mark Huang [Mon, 2 Oct 2006 15:25:03 +0000 (15:25 +0000)]
- removed person addresses
- return slice_ids
- do not set r/o fields
- clean up slice_person table when deleting account
- do not cast persons.email column with SQL lower(), kills index lookup

17 years ago- return slice_ids
Mark Huang [Mon, 2 Oct 2006 15:21:03 +0000 (15:21 +0000)]
- return slice_ids
- clean up slice_node and slice_attribute join tables
- do not set r/o fields

17 years ago- got rid of address_type joining
Mark Huang [Mon, 2 Oct 2006 15:20:10 +0000 (15:20 +0000)]
- got rid of address_type joining

17 years ago- remove UNIQUE constraint on named keys from tables that support
Mark Huang [Mon, 2 Oct 2006 15:19:35 +0000 (15:19 +0000)]
- remove UNIQUE constraint on named keys from tables that support
  marking records as deleted (e.g. persons.email should not be unique;
  even (persons.email, persons.deleted) should not be unique, since the
  same person could conceivably register and delete their account
  multiple times). Instead, just add an index on these fields.
- add indices to join tables
- sites: add max_slivers attribute
- get rid of address types, leave it to the application to decide how
  address types should be used
- get rid of person/account addresses, just add site addresses
- node_nodenetworks: order by is_primary
- add slice and sliver tables
- remove .* from all views per jonesy recommendation

17 years ago- change default maintenance account email to match that of MyPLC
Mark Huang [Mon, 25 Sep 2006 18:34:48 +0000 (18:34 +0000)]
- change default maintenance account email to match that of MyPLC

17 years ago- fix if node has no node networks
Mark Huang [Mon, 25 Sep 2006 18:13:07 +0000 (18:13 +0000)]
- fix if node has no node networks

17 years ago- fix node network handling
Mark Huang [Mon, 25 Sep 2006 18:12:45 +0000 (18:12 +0000)]
- fix node network handling

17 years ago- remove deprecated add_node_network() and set_primary_node_network()
Mark Huang [Mon, 25 Sep 2006 18:11:10 +0000 (18:11 +0000)]
- remove deprecated add_node_network() and set_primary_node_network()
  functions

17 years ago- add missing tests
Mark Huang [Mon, 25 Sep 2006 18:10:36 +0000 (18:10 +0000)]
- add missing tests
- check email value when updating accounts

17 years ago- no need to specify extra_fields when instantiating Sites lists
Mark Huang [Mon, 25 Sep 2006 15:49:17 +0000 (15:49 +0000)]
- no need to specify extra_fields when instantiating Sites lists

17 years ago- test node group functions a little more rigorously
Mark Huang [Mon, 25 Sep 2006 15:32:53 +0000 (15:32 +0000)]
- test node group functions a little more rigorously

17 years ago- remove extraneous checks
Mark Huang [Mon, 25 Sep 2006 15:31:07 +0000 (15:31 +0000)]
- remove extraneous checks

17 years ago- clean up person_site when deleting sites
Mark Huang [Mon, 25 Sep 2006 15:29:03 +0000 (15:29 +0000)]
- clean up person_site when deleting sites

17 years ago- no need to filter out deleted sites, new schema and API implementation
Mark Huang [Mon, 25 Sep 2006 15:26:23 +0000 (15:26 +0000)]
- no need to filter out deleted sites, new schema and API implementation
  should fix this

17 years ago- fix documentation
Mark Huang [Mon, 25 Sep 2006 15:26:01 +0000 (15:26 +0000)]
- fix documentation

17 years agorename flush() to sync(), removed {default,all,join}_fields
Mark Huang [Mon, 25 Sep 2006 15:23:36 +0000 (15:23 +0000)]
rename flush() to sync(), removed {default,all,join}_fields

17 years ago- no need to specify extra_fields anymore when instantiating Sites lists
Mark Huang [Mon, 25 Sep 2006 15:20:19 +0000 (15:20 +0000)]
- no need to specify extra_fields anymore when instantiating Sites lists
- removed concept of site node groups

17 years ago- support new schema
Mark Huang [Mon, 25 Sep 2006 15:17:17 +0000 (15:17 +0000)]
- support new schema
- use new table views instead of defining join_fields, extra_fields, and
  all_fields
- rename flush() to sync() to be like shelve
- get rid of weird magic aggregation, let table views do this

17 years ago- support new schema
Mark Huang [Mon, 25 Sep 2006 15:15:09 +0000 (15:15 +0000)]
- support new schema
- use new table views instead of defining join_fields, extra_fields, and
  all_fields
- rename flush() to sync() to be like shelve
- removed dslice03_siteinfo table and concept of site nodegroups
- removed organization and consortium tables

17 years ago- add fields() function for returning the column names of the specified
Mark Huang [Mon, 25 Sep 2006 15:12:20 +0000 (15:12 +0000)]
- add fields() function for returning the column names of the specified
  table

17 years ago- support new schema
Mark Huang [Mon, 25 Sep 2006 15:10:00 +0000 (15:10 +0000)]
- support new schema
- use new table views instead of defining join_fields, extra_fields, and
  all_fields
- rename flush() to sync() to be like shelve
- remove accepted_aup field
- removed unused validate_role_ids() and validate_site_ids() functions

17 years ago- support new schema
Mark Huang [Mon, 25 Sep 2006 15:00:55 +0000 (15:00 +0000)]
- support new schema
- use new table views instead of defining join_fields, extra_fields, and
  all_fields
- rename flush() to sync() to be like shelve
- remove support for returning primary node_network information

17 years ago- support new schema
Mark Huang [Mon, 25 Sep 2006 14:55:43 +0000 (14:55 +0000)]
- support new schema
- use new table views instead of defining join_fields, extra_fields, and
  all_fields
- rename flush() to sync() to be like shelve
- validate_ip: can be blank (e.g., dns2)
- fix validation of ip parameters. Not sure why locals() doesn't work.
- deprecated node_nodenetworks join table

17 years ago- support new schema
Mark Huang [Mon, 25 Sep 2006 14:52:01 +0000 (14:52 +0000)]
- support new schema
- use new table views instead of defining join_fields, extra_fields, and
  all_fields
- rename flush() to sync() to be like shelve
- whitespace nits
- no need to validate description
- fix remove_node()

17 years ago- support new schema
Mark Huang [Mon, 25 Sep 2006 14:48:07 +0000 (14:48 +0000)]
- support new schema

17 years ago- don't care about Role in the auth structure anymore
Mark Huang [Mon, 25 Sep 2006 14:47:32 +0000 (14:47 +0000)]
- don't care about Role in the auth structure anymore

17 years ago- support new schema
Mark Huang [Mon, 25 Sep 2006 14:45:12 +0000 (14:45 +0000)]
- support new schema
- rename flush() to sync() to be like shelve
- remove extraneous imports
- fix address_type association

17 years ago- Partial implementation of new schema
Mark Huang [Mon, 25 Sep 2006 14:40:16 +0000 (14:40 +0000)]
- Partial implementation of new schema

17 years ago- remove redundant auth check
Mark Huang [Thu, 21 Sep 2006 19:14:27 +0000 (19:14 +0000)]
- remove redundant auth check

17 years ago- remove extraneous import
Mark Huang [Wed, 20 Sep 2006 20:32:02 +0000 (20:32 +0000)]
- remove extraneous import
- no need to retrieve extra Node fields
- whitespace nits
- also check for invalid nodenetwork_ids

17 years ago- remove extraneous import
Mark Huang [Wed, 20 Sep 2006 20:24:10 +0000 (20:24 +0000)]
- remove extraneous import
- fix comments and documentation
- whitespace nits
- allow site_id or login_base to be specified
- fix return value

17 years ago- fix allowed update_fields
Mark Huang [Wed, 20 Sep 2006 20:17:28 +0000 (20:17 +0000)]
- fix allowed update_fields
- update_fields (nee optional_vals) are not optional
- prevent non-null fields from being unset
- whitespace nits

17 years ago- fix allowed roles
Mark Huang [Wed, 20 Sep 2006 19:44:34 +0000 (19:44 +0000)]
- fix allowed roles
- fix allowed update_fields
- accept either site_id or login_base
- fix list of unsettable fields
- only admins can update max_slices

17 years ago- remove extraneous admin check
Mark Huang [Wed, 20 Sep 2006 17:32:02 +0000 (17:32 +0000)]
- remove extraneous admin check

17 years ago- accept either id or name
Mark Huang [Wed, 20 Sep 2006 17:30:37 +0000 (17:30 +0000)]
- accept either id or name

17 years ago- remove extraneous code
Mark Huang [Wed, 20 Sep 2006 17:26:11 +0000 (17:26 +0000)]
- remove extraneous code
- fix accepts

17 years ago- remove extraneous imports and checks
Mark Huang [Wed, 20 Sep 2006 17:03:32 +0000 (17:03 +0000)]
- remove extraneous imports and checks

17 years ago- remove extra imports
Mark Huang [Wed, 20 Sep 2006 15:47:44 +0000 (15:47 +0000)]
- remove extra imports
- fix documentation
- fix comments
- make like AdmGetPersons(), where invalid nodegroup specifications are
  ignored

17 years ago- remove unnecessary admin check
Mark Huang [Wed, 20 Sep 2006 14:44:42 +0000 (14:44 +0000)]
- remove unnecessary admin check

17 years ago- node group names are case sensitive
Mark Huang [Wed, 20 Sep 2006 14:41:59 +0000 (14:41 +0000)]
- node group names are case sensitive

17 years ago- fix comments
Mark Huang [Wed, 20 Sep 2006 14:41:48 +0000 (14:41 +0000)]
- fix comments
- remove unnecessary imports and assertions
- naming nits

17 years ago- fixed return documentation
Tony Mack [Wed, 20 Sep 2006 14:41:07 +0000 (14:41 +0000)]
- fixed return documentation

17 years ago- fixed exception response
Tony Mack [Wed, 20 Sep 2006 14:38:54 +0000 (14:38 +0000)]
- fixed exception response

17 years ago- fixed return documentation
Tony Mack [Wed, 20 Sep 2006 14:29:09 +0000 (14:29 +0000)]
- fixed return documentation
- removed some unnecessary code

17 years ago- removed pi role check
Tony Mack [Wed, 20 Sep 2006 14:03:08 +0000 (14:03 +0000)]
- removed pi role check

17 years ago- removed tech role check
Tony Mack [Wed, 20 Sep 2006 14:00:32 +0000 (14:00 +0000)]
- removed tech role check

17 years ago- remove tech role check
Tony Mack [Wed, 20 Sep 2006 13:58:00 +0000 (13:58 +0000)]
- remove tech role check

17 years ago- value returned is now xml-rpc safe
Tony Mack [Tue, 19 Sep 2006 19:36:29 +0000 (19:36 +0000)]
- value returned is now xml-rpc safe