plcapi.git
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

17 years ago- whitespace nit
Mark Huang [Tue, 19 Sep 2006 19:35:05 +0000 (19:35 +0000)]
- whitespace nit

17 years ago- fix parameter documentation
Mark Huang [Tue, 19 Sep 2006 19:34:52 +0000 (19:34 +0000)]
- fix parameter documentation
- whitespace nits
- remove tech role check
- remove incorrect redundant node network check
- associate node network with specified node

17 years ago- fix parameter documentation
Mark Huang [Tue, 19 Sep 2006 19:30:55 +0000 (19:30 +0000)]
- fix parameter documentation
- whitespace nits
- remove tech role check

17 years ago- add functions add_node_network() and set_primary_node_network(). Node
Mark Huang [Tue, 19 Sep 2006 19:28:39 +0000 (19:28 +0000)]
- add functions add_node_network() and set_primary_node_network(). Node
  networks cannot be associated with multiple nodes, so there is no need
  for remove_node_network() at this time.

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

17 years ago- update comment
Mark Huang [Tue, 19 Sep 2006 19:08:24 +0000 (19:08 +0000)]
- update comment

17 years ago- fix documentation for return value
Mark Huang [Tue, 19 Sep 2006 19:06:22 +0000 (19:06 +0000)]
- fix documentation for return value

17 years ago- fix documentation for return value
Mark Huang [Tue, 19 Sep 2006 19:05:49 +0000 (19:05 +0000)]
- fix documentation for return value
- remove redundant roles check

17 years ago- move assertion to right place
Mark Huang [Tue, 19 Sep 2006 19:03:47 +0000 (19:03 +0000)]
- move assertion to right place

17 years ago- updated some validate functions
Tony Mack [Fri, 15 Sep 2006 20:31:59 +0000 (20:31 +0000)]
- updated some validate functions

17 years agoInitial checkin of new API implementation
Tony Mack [Fri, 15 Sep 2006 20:31:06 +0000 (20:31 +0000)]
Initial checkin of new API implementation

17 years ago- added: check if caller is admin
Tony Mack [Fri, 15 Sep 2006 20:27:39 +0000 (20:27 +0000)]
- added: check if caller is admin

17 years ago- added: check if caller is admin
Tony Mack [Fri, 15 Sep 2006 20:27:17 +0000 (20:27 +0000)]
- added:  check if caller is admin

17 years ago- added tests for AdmGetNodeGroups, AdmUpdateNodeGroup, AdmAddNodeToNodeGroup and...
Tony Mack [Thu, 14 Sep 2006 15:47:27 +0000 (15:47 +0000)]
- added tests for AdmGetNodeGroups, AdmUpdateNodeGroup, AdmAddNodeToNodeGroup and AdmRemoveNodeFromNodeGroup

17 years agomodified can_update variable
Tony Mack [Thu, 14 Sep 2006 15:46:23 +0000 (15:46 +0000)]
modified can_update variable

17 years agoadded all_fields class variable
Tony Mack [Thu, 14 Sep 2006 15:45:24 +0000 (15:45 +0000)]
added all_fields class variable

17 years agoInitial checkin of new API implementation
Tony Mack [Thu, 14 Sep 2006 15:44:03 +0000 (15:44 +0000)]
Initial checkin of new API implementation

17 years agonow accepts nodegroup_id or name (previously only accepted nodegroup_id)
Tony Mack [Wed, 13 Sep 2006 16:32:23 +0000 (16:32 +0000)]
now accepts nodegroup_id or name (previously only accepted nodegroup_id)

17 years ago-now accepts node_id or name (previously only accepted node_id)
Tony Mack [Wed, 13 Sep 2006 16:27:13 +0000 (16:27 +0000)]
-now accepts node_id or name (previously only accepted node_id)

17 years ago- added tests for AdmAddNodeGroup, AdmGetNodeGroupNodes and AdmDeleteNode
Tony Mack [Wed, 13 Sep 2006 15:48:25 +0000 (15:48 +0000)]
- added tests for AdmAddNodeGroup, AdmGetNodeGroupNodes and AdmDeleteNode

17 years agoInitial checkin of new API implementation
Tony Mack [Wed, 13 Sep 2006 15:46:29 +0000 (15:46 +0000)]
Initial checkin of new API implementation

17 years ago- fixed NodeGroup.delete function
Tony Mack [Wed, 13 Sep 2006 15:40:26 +0000 (15:40 +0000)]
- fixed NodeGroup.delete function

17 years ago1- addes validate_description function
Tony Mack [Tue, 12 Sep 2006 18:04:02 +0000 (18:04 +0000)]
1- addes validate_description function
2- modified validate_name function to remove trailing/leading spaces

17 years ago-fixed validate_name function. It now returns the name if it is valid.
Tony Mack [Tue, 12 Sep 2006 16:08:50 +0000 (16:08 +0000)]
-fixed validate_name function. It now returns the name if it is valid.

17 years agoAdded Tests for AdmGetSiteNodes
Tony Mack [Mon, 11 Sep 2006 17:52:31 +0000 (17:52 +0000)]
Added Tests for AdmGetSiteNodes

17 years agoInitial checkin of new API implementation
Tony Mack [Mon, 11 Sep 2006 17:50:51 +0000 (17:50 +0000)]
Initial checkin of new API implementation

17 years ago- fix randstr to return (possibly unicode) strings of the specified
Mark Huang [Fri, 8 Sep 2006 19:47:51 +0000 (19:47 +0000)]
- fix randstr to return (possibly unicode) strings of the specified
  *byte length* (as encoded into UTF-8 by default)
- bump all random strings to their appropriate maximums
- use random (possibly unicode) string for password

17 years ago- set min and max for str fields
Mark Huang [Fri, 8 Sep 2006 19:45:57 +0000 (19:45 +0000)]
- set min and max for str fields

17 years ago- no need for md5crypt module, newer standard crypt modules support md5
Mark Huang [Fri, 8 Sep 2006 19:45:46 +0000 (19:45 +0000)]
- no need for md5crypt module, newer standard crypt modules support md5
crypt
- set min and max for str fields

17 years ago- add min and max Parameter attributes
Mark Huang [Fri, 8 Sep 2006 19:45:04 +0000 (19:45 +0000)]
- add min and max Parameter attributes

17 years ago- add min and max validation to type_check routine
Mark Huang [Fri, 8 Sep 2006 19:44:31 +0000 (19:44 +0000)]
- add min and max validation to type_check routine

17 years ago- handle non-ascii passwords correctly
Mark Huang [Fri, 8 Sep 2006 19:44:12 +0000 (19:44 +0000)]
- handle non-ascii passwords correctly

17 years ago- set default byte encodings for DB and XML-RPC/SOAP transactions to
Mark Huang [Fri, 8 Sep 2006 19:43:31 +0000 (19:43 +0000)]
- set default byte encodings for DB and XML-RPC/SOAP transactions to
  UTF-8

17 years agono need for md5crypt module, newer standard crypt modules support md5 crypt
Mark Huang [Fri, 8 Sep 2006 19:41:05 +0000 (19:41 +0000)]
no need for md5crypt module, newer standard crypt modules support md5 crypt

17 years ago- If any XML-RPC options have been specified, do not try
Mark Huang [Fri, 8 Sep 2006 15:37:01 +0000 (15:37 +0000)]
- If any XML-RPC options have been specified, do not try
  connecting directly to the DB.
- fix auto URL generation
- ignore undefined methods for now

17 years agoExample test script
Mark Huang [Fri, 8 Sep 2006 00:29:56 +0000 (00:29 +0000)]
Example test script

17 years ago- add XML-RPC support
Mark Huang [Fri, 8 Sep 2006 00:29:34 +0000 (00:29 +0000)]
- add XML-RPC support
- now more like plcsh; specifying authentication parameter as first
  argument is optional (automagically added if required and not
  specified)

17 years agoadd validation
Mark Huang [Fri, 8 Sep 2006 00:28:19 +0000 (00:28 +0000)]
add validation

17 years ago- use Person.set_primary_site
Mark Huang [Thu, 7 Sep 2006 23:49:15 +0000 (23:49 +0000)]
- use Person.set_primary_site

17 years ago- use Person.remove_role
Mark Huang [Thu, 7 Sep 2006 23:49:01 +0000 (23:49 +0000)]
- use Person.remove_role

17 years ago- use Site.remove_person
Mark Huang [Thu, 7 Sep 2006 23:48:53 +0000 (23:48 +0000)]
- use Site.remove_person

17 years ago- use Person.add_role
Mark Huang [Thu, 7 Sep 2006 23:48:44 +0000 (23:48 +0000)]
- use Person.add_role