plcapi.git
17 years ago- add default for boot_state
Mark Huang [Wed, 11 Oct 2006 19:53:42 +0000 (19:53 +0000)]
- add default for boot_state
- allow pcu hostnames to be null
- create pcu views
- add pcu_ids to view_sites

17 years ago- add pcu_ids
Mark Huang [Wed, 11 Oct 2006 19:52:19 +0000 (19:52 +0000)]
- add pcu_ids

17 years ago- fix hostname checking
Mark Huang [Wed, 11 Oct 2006 19:51:18 +0000 (19:51 +0000)]
- fix hostname checking

17 years ago- fix hostname checking
Mark Huang [Wed, 11 Oct 2006 19:51:09 +0000 (19:51 +0000)]
- fix hostname checking
- fix references to Nodes

17 years ago- allow members of slice to delete nodes from slice
Mark Huang [Wed, 11 Oct 2006 17:48:14 +0000 (17:48 +0000)]
- allow members of slice to delete nodes from slice

17 years ago- allow members of slice to call
Mark Huang [Wed, 11 Oct 2006 17:31:46 +0000 (17:31 +0000)]
- allow members of slice to call
- whitespace nits

17 years ago- valid_fields is a list
Mark Huang [Wed, 11 Oct 2006 17:20:24 +0000 (17:20 +0000)]
- valid_fields is a list

17 years agofix slice attribute functions
Mark Huang [Wed, 11 Oct 2006 15:46:09 +0000 (15:46 +0000)]
fix slice attribute functions

17 years agoadded and removed key functions
Mark Huang [Wed, 11 Oct 2006 15:44:30 +0000 (15:44 +0000)]
added and removed key functions

17 years agoremoved is_primary concept from keys table
Mark Huang [Wed, 11 Oct 2006 15:44:14 +0000 (15:44 +0000)]
removed is_primary concept from keys table

17 years ago- add admin-only BlacklistKey() function with giant warning
Mark Huang [Wed, 11 Oct 2006 15:43:59 +0000 (15:43 +0000)]
- add admin-only BlacklistKey() function with giant warning

17 years ago- remove is_blacklisted from fields that can be updated
Mark Huang [Wed, 11 Oct 2006 15:43:01 +0000 (15:43 +0000)]
- remove is_blacklisted from fields that can be updated

17 years ago- check for both key_id_list = None and key_id_list = [], both of which
Mark Huang [Wed, 11 Oct 2006 15:42:29 +0000 (15:42 +0000)]
- check for both key_id_list = None and key_id_list = [], both of which
  Keys interprets to mean "all keys"

17 years ago- clarify comments
Mark Huang [Wed, 11 Oct 2006 15:41:27 +0000 (15:41 +0000)]
- clarify comments

17 years ago- add mandatory fields to method arguments
Mark Huang [Wed, 11 Oct 2006 15:41:10 +0000 (15:41 +0000)]
- add mandatory fields to method arguments
- fix documentation

17 years agomove add_key/remove_key here
Mark Huang [Wed, 11 Oct 2006 15:40:25 +0000 (15:40 +0000)]
move add_key/remove_key here

17 years ago- remove is_primary
Mark Huang [Wed, 11 Oct 2006 15:39:58 +0000 (15:39 +0000)]
- remove is_primary
- set max on key length
- validate key_type against KeyTypes
- fix blacklisted key check (check for is_blacklisted IS True)
- accounts can have multiple keys but not vice-versa; move
  add_person/remove_person to Persons.add_key/remove_key
- validate SSH version 2 public keys
- add blacklist() function to permanently blacklist key (disassociate it
  and all other identical keys, and set is_blacklisted to True)
- whitespace nits
- Keys: only return non-blacklisted keys

17 years ago- remove unused is_primary from person_key
Mark Huang [Wed, 11 Oct 2006 15:37:12 +0000 (15:37 +0000)]
- remove unused is_primary from person_key
- remove unused node_attributes
- clarify attributes comments; should probably rename table to
  slice_attribute_types

17 years agoadd key_types interface
Mark Huang [Tue, 10 Oct 2006 22:09:31 +0000 (22:09 +0000)]
add key_types interface

17 years ago- added enabled to list of vaild update fields
Tony Mack [Tue, 10 Oct 2006 21:58:55 +0000 (21:58 +0000)]
- added enabled to list of vaild update fields

17 years agofix roles interface
Mark Huang [Tue, 10 Oct 2006 21:54:59 +0000 (21:54 +0000)]
fix roles interface

17 years agoadd boot_states interface
Mark Huang [Tue, 10 Oct 2006 21:54:20 +0000 (21:54 +0000)]
add boot_states interface

17 years ago- add giant warning
Mark Huang [Tue, 10 Oct 2006 21:53:34 +0000 (21:53 +0000)]
- add giant warning

17 years ago- sync: support forced insertion, e.g. if primary key is being explicitly provided
Mark Huang [Tue, 10 Oct 2006 21:53:12 +0000 (21:53 +0000)]
- sync: support forced insertion, e.g. if primary key is being explicitly provided

17 years ago- fix comment
Mark Huang [Tue, 10 Oct 2006 21:52:08 +0000 (21:52 +0000)]
- fix comment

17 years ago- remove extraneous imports
Mark Huang [Tue, 10 Oct 2006 21:51:35 +0000 (21:51 +0000)]
- remove extraneous imports

17 years ago- value returned is now xml-rpc safe
Tony Mack [Tue, 10 Oct 2006 21:24:37 +0000 (21:24 +0000)]
- value returned is now xml-rpc safe

17 years agonew methods
Mark Huang [Tue, 10 Oct 2006 20:28:02 +0000 (20:28 +0000)]
new methods

17 years agosync: insert if the primary key (usually an auto-incrementing serial
Mark Huang [Tue, 10 Oct 2006 20:27:43 +0000 (20:27 +0000)]
sync: insert if the primary key (usually an auto-incrementing serial
identifier) has not been specified, or the primary key is the only field
in the table.

17 years ago- query network_{methods,types} tables when validating method and type
Mark Huang [Tue, 10 Oct 2006 20:27:13 +0000 (20:27 +0000)]
- query network_{methods,types} tables when validating method and type
  values
- validate node_id values
- validate is_primary

17 years agoapi now allows marshalling of None (although type checking does not allow None yet...
Mark Huang [Tue, 10 Oct 2006 20:25:48 +0000 (20:25 +0000)]
api now allows marshalling of None (although type checking does not allow None yet for most values...)

17 years agointerface to network_types table
Mark Huang [Tue, 10 Oct 2006 20:24:06 +0000 (20:24 +0000)]
interface to network_types table

17 years agointerface to network_methods table
Mark Huang [Tue, 10 Oct 2006 20:23:49 +0000 (20:23 +0000)]
interface to network_methods table

17 years ago- rename nodenetwork_{methods,types} to network_{methods,types}
Mark Huang [Tue, 10 Oct 2006 20:22:24 +0000 (20:22 +0000)]
- rename nodenetwork_{methods,types} to network_{methods,types}
- add pcus and pcu_node{,s} tables/views

17 years agoInitial checkin of new API implementation
Tony Mack [Tue, 10 Oct 2006 20:06:36 +0000 (20:06 +0000)]
Initial checkin of new API implementation

17 years agoInitial checkin of new API implementation
Tony Mack [Tue, 10 Oct 2006 19:48:15 +0000 (19:48 +0000)]
Initial checkin of new API implementation

17 years ago- added validate_key_type(), validate_key(), add_person(), set_primary_key(), delete()
Tony Mack [Tue, 10 Oct 2006 19:40:03 +0000 (19:40 +0000)]
- added validate_key_type(), validate_key(), add_person(), set_primary_key(), delete()

17 years ago- removed 'Adm' prefix
Tony Mack [Mon, 9 Oct 2006 17:52:55 +0000 (17:52 +0000)]
- removed 'Adm' prefix

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