Tony Mack [Fri, 13 Oct 2006 19:36:24 +0000 (19:36 +0000)]
- turn each slice attribute into a real dict before returning
Tony Mack [Fri, 13 Oct 2006 19:33:06 +0000 (19:33 +0000)]
- turn each role into a real dict before returning
Tony Mack [Fri, 13 Oct 2006 19:29:41 +0000 (19:29 +0000)]
- turn each pcu into a real dict before returning
Tony Mack [Fri, 13 Oct 2006 19:21:55 +0000 (19:21 +0000)]
- turn each attribute into a real dict before returning
Tony Mack [Fri, 13 Oct 2006 19:20:09 +0000 (19:20 +0000)]
- turn each adddress into a real dict before returning
Tony Mack [Fri, 13 Oct 2006 18:48:29 +0000 (18:48 +0000)]
- turned each key into a real dict before returning
Tony Mack [Fri, 13 Oct 2006 15:33:02 +0000 (15:33 +0000)]
- no longer filter out None
Tony Mack [Fri, 13 Oct 2006 15:24:48 +0000 (15:24 +0000)]
- no longer filter out None
Tony Mack [Fri, 13 Oct 2006 15:11:31 +0000 (15:11 +0000)]
- added log()
Tony Mack [Fri, 13 Oct 2006 15:07:24 +0000 (15:07 +0000)]
- added events, event_types, object_types, fault_types tables (logging tables)
Tony Mack [Fri, 13 Oct 2006 14:43:14 +0000 (14:43 +0000)]
- removed return_fields param
- no longer filter out None
Tony Mack [Fri, 13 Oct 2006 14:42:40 +0000 (14:42 +0000)]
- removed return_fields param
- no longer filter out None
- added event_type, object_type memeber vars
Mark Huang [Wed, 11 Oct 2006 20:49:39 +0000 (20:49 +0000)]
- use _idx as the suffix on all custom indices to avoid conflicts with
automatic indices
- add node_pcus view
Mark Huang [Wed, 11 Oct 2006 20:48:58 +0000 (20:48 +0000)]
add pcu/node functions
Mark Huang [Wed, 11 Oct 2006 20:14:18 +0000 (20:14 +0000)]
- fix pcu@site check
Mark Huang [Wed, 11 Oct 2006 20:03:51 +0000 (20:03 +0000)]
- fix comment
Mark Huang [Wed, 11 Oct 2006 19:54:53 +0000 (19:54 +0000)]
add interface to pcus
Mark Huang [Wed, 11 Oct 2006 19:54:41 +0000 (19:54 +0000)]
- fix documentation
- don't require boot_state to be specified
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
Mark Huang [Wed, 11 Oct 2006 19:52:19 +0000 (19:52 +0000)]
- add pcu_ids
Mark Huang [Wed, 11 Oct 2006 19:51:18 +0000 (19:51 +0000)]
- fix hostname checking
Mark Huang [Wed, 11 Oct 2006 19:51:09 +0000 (19:51 +0000)]
- fix hostname checking
- fix references to Nodes
Mark Huang [Wed, 11 Oct 2006 17:48:14 +0000 (17:48 +0000)]
- allow members of slice to delete nodes from slice
Mark Huang [Wed, 11 Oct 2006 17:31:46 +0000 (17:31 +0000)]
- allow members of slice to call
- whitespace nits
Mark Huang [Wed, 11 Oct 2006 17:20:24 +0000 (17:20 +0000)]
- valid_fields is a list
Mark Huang [Wed, 11 Oct 2006 15:46:09 +0000 (15:46 +0000)]
fix slice attribute functions
Mark Huang [Wed, 11 Oct 2006 15:44:30 +0000 (15:44 +0000)]
added and removed key functions
Mark Huang [Wed, 11 Oct 2006 15:44:14 +0000 (15:44 +0000)]
removed is_primary concept from keys table
Mark Huang [Wed, 11 Oct 2006 15:43:59 +0000 (15:43 +0000)]
- add admin-only BlacklistKey() function with giant warning
Mark Huang [Wed, 11 Oct 2006 15:43:01 +0000 (15:43 +0000)]
- remove is_blacklisted from fields that can be updated
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"
Mark Huang [Wed, 11 Oct 2006 15:41:27 +0000 (15:41 +0000)]
- clarify comments
Mark Huang [Wed, 11 Oct 2006 15:41:10 +0000 (15:41 +0000)]
- add mandatory fields to method arguments
- fix documentation
Mark Huang [Wed, 11 Oct 2006 15:40:25 +0000 (15:40 +0000)]
move add_key/remove_key here
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
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
Mark Huang [Tue, 10 Oct 2006 22:09:31 +0000 (22:09 +0000)]
add key_types interface
Tony Mack [Tue, 10 Oct 2006 21:58:55 +0000 (21:58 +0000)]
- added enabled to list of vaild update fields
Mark Huang [Tue, 10 Oct 2006 21:54:59 +0000 (21:54 +0000)]
fix roles interface
Mark Huang [Tue, 10 Oct 2006 21:54:20 +0000 (21:54 +0000)]
add boot_states interface
Mark Huang [Tue, 10 Oct 2006 21:53:34 +0000 (21:53 +0000)]
- add giant warning
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
Mark Huang [Tue, 10 Oct 2006 21:52:08 +0000 (21:52 +0000)]
- fix comment
Mark Huang [Tue, 10 Oct 2006 21:51:35 +0000 (21:51 +0000)]
- remove extraneous imports
Tony Mack [Tue, 10 Oct 2006 21:24:37 +0000 (21:24 +0000)]
- value returned is now xml-rpc safe
Mark Huang [Tue, 10 Oct 2006 20:28:02 +0000 (20:28 +0000)]
new methods
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.
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
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...)
Mark Huang [Tue, 10 Oct 2006 20:24:06 +0000 (20:24 +0000)]
interface to network_types table
Mark Huang [Tue, 10 Oct 2006 20:23:49 +0000 (20:23 +0000)]
interface to network_methods table
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
Tony Mack [Tue, 10 Oct 2006 20:06:36 +0000 (20:06 +0000)]
Initial checkin of new API implementation
Tony Mack [Tue, 10 Oct 2006 19:48:15 +0000 (19:48 +0000)]
Initial checkin of new API implementation
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()
Tony Mack [Mon, 9 Oct 2006 17:52:55 +0000 (17:52 +0000)]
- removed 'Adm' prefix
Tony Mack [Mon, 9 Oct 2006 17:51:27 +0000 (17:51 +0000)]
Initial checkin of new API implementation
Tony Mack [Mon, 9 Oct 2006 15:41:03 +0000 (15:41 +0000)]
- fixed allowed roles
Tony Mack [Fri, 6 Oct 2006 20:02:16 +0000 (20:02 +0000)]
- Renamed (changed Remove to Delete)
Tony Mack [Fri, 6 Oct 2006 19:57:17 +0000 (19:57 +0000)]
- Changed Remove to Delete
Tony Mack [Fri, 6 Oct 2006 19:54:36 +0000 (19:54 +0000)]
unnecessary call
Tony Mack [Fri, 6 Oct 2006 19:50:59 +0000 (19:50 +0000)]
- Renamed (changed Remove to Delete)
Tony Mack [Fri, 6 Oct 2006 19:47:18 +0000 (19:47 +0000)]
Initial checkin of new API implementation
Mark Huang [Fri, 6 Oct 2006 19:36:19 +0000 (19:36 +0000)]
- implement AddressType and Address manipulation
Mark Huang [Fri, 6 Oct 2006 19:33:20 +0000 (19:33 +0000)]
- no need to pass in slice_id_or_name
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()
Tony Mack [Fri, 6 Oct 2006 19:21:25 +0000 (19:21 +0000)]
- removed 'Adm' prefix
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
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
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
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
Mark Huang [Fri, 6 Oct 2006 19:02:33 +0000 (19:02 +0000)]
- implement interface to Addresses
Mark Huang [Fri, 6 Oct 2006 18:19:41 +0000 (18:19 +0000)]
- implement interface to address_types table
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
Tony Mack [Fri, 6 Oct 2006 18:02:36 +0000 (18:02 +0000)]
*** empty log message ***
Tony Mack [Fri, 6 Oct 2006 18:01:00 +0000 (18:01 +0000)]
- removed 'Adm' prefix
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)
Mark Huang [Tue, 3 Oct 2006 19:34:05 +0000 (19:34 +0000)]
- allow marshalling of None
Mark Huang [Tue, 3 Oct 2006 19:33:16 +0000 (19:33 +0000)]
- add slice, attribute, and slice attribute tests
Mark Huang [Tue, 3 Oct 2006 19:32:53 +0000 (19:32 +0000)]
slice attribute methods
Mark Huang [Tue, 3 Oct 2006 19:32:41 +0000 (19:32 +0000)]
- attribute types and attribute settings
Mark Huang [Tue, 3 Oct 2006 19:32:09 +0000 (19:32 +0000)]
- added new methods
Mark Huang [Tue, 3 Oct 2006 19:32:01 +0000 (19:32 +0000)]
- fix documentation
Mark Huang [Tue, 3 Oct 2006 19:31:40 +0000 (19:31 +0000)]
- no need to filter out None anymore
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()
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()
Mark Huang [Tue, 3 Oct 2006 19:28:38 +0000 (19:28 +0000)]
- added new helper classes
Mark Huang [Tue, 3 Oct 2006 19:28:22 +0000 (19:28 +0000)]
- move common sync() functionality here
Mark Huang [Tue, 3 Oct 2006 19:28:10 +0000 (19:28 +0000)]
- move common sync() functionality to Table.Row
- validate slice names
Mark Huang [Tue, 3 Oct 2006 19:27:28 +0000 (19:27 +0000)]
- fix typo
Mark Huang [Tue, 3 Oct 2006 19:27:16 +0000 (19:27 +0000)]
- move common sync() functionality to Table.Row
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
Mark Huang [Tue, 3 Oct 2006 19:24:31 +0000 (19:24 +0000)]
- set allow_none to allow XML-RPC marshalling of None values
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
Mark Huang [Mon, 2 Oct 2006 20:50:58 +0000 (20:50 +0000)]
- commit
Mark Huang [Mon, 2 Oct 2006 18:32:31 +0000 (18:32 +0000)]
make read-only a Parameter attribute
Mark Huang [Mon, 2 Oct 2006 16:05:44 +0000 (16:05 +0000)]
no need to filter out deleted fields anymore
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
Mark Huang [Mon, 2 Oct 2006 16:04:42 +0000 (16:04 +0000)]
- do not document or advertise deleted, this is an internal field
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