diff options
author | Russ Allbery <rra@stanford.edu> | 2007-09-26 18:55:03 +0000 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2007-09-26 18:55:03 +0000 |
commit | 7ec47028dbfe6df70d4c07e9546ae1680cf4e91f (patch) | |
tree | a962f796c0ee3b1393d8a6af882d83f498c3a528 /docs | |
parent | 50d3cd92ea42f76d5a76ec43d869dd8d721ff5f4 (diff) |
Include the synchronization configuration in show() output. Provide a
new object method that subclasses can override to add attribute
information to show() and remove the documentation about overriding
show().
Diffstat (limited to 'docs')
-rw-r--r-- | docs/design-api | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/docs/design-api b/docs/design-api index c0af5d5..8c5c1d5 100644 --- a/docs/design-api +++ b/docs/design-api @@ -47,6 +47,19 @@ Object API a "type_data <attribute>" argument) as part of storing the attribute in the database to update the history information. + attr_show() + + Returns formatted attribution information for inclusion in show(). + Object implementations should not have to override show() (and + generally should not). Instead, if there is any type-specific data, + they should implement this method and return that metadata, formatted + as key:value pairs with the keys right-aligned in the first 15 + characters, followed by a space, a colon, and the value. Each line + should end in a newline. If any error occurs reading the data, return + undef set the internal reror and show() will abort with an error. + + The default implementation of this method returns the empty string. + create(NAME, TYPE, DBH, PRINCIPAL, HOSTNAME [, DATETIME]) Creates a new object of a particular type. The parent method will @@ -117,14 +130,6 @@ Object API successfully storing the data to update the history and trace information. - show() - - Normally, new backends don't need to override this method, since it - displays all the metadata in the database. It's only necessary to - override it if the backend stores additional metadata separately. - When overriding, call the parent method first and then edit the - resulting string to add additional information as needed. - ACL Verifier API New ACL verifiers should inherit from Wallet::ACL::Base. There are |