~fwereade/pyjuju/related-units-watcher

Viewing all changes in revision 200.

  • Committer: Frank Mueller
  • Author(s): Frank Mueller
  • Date: 2012-06-04 14:51:01 UTC
  • mfrom: (146.4.12 go)
  • Revision ID: themue@gmail.com-20120604145101-2u8h93yunbmyz6cb
state: Added two methods to add relations to State.

AddClientServerReleation() gets a client and a server endpoint,
AddPeerRelation() a peer endpoint. They return the relation and
both service relations for client/server or the one for peer.
The seperation into two methods with well defined arguments make
it easier to ensure a valid relation creation.

R=niemeyer
CC=
https://codereview.appspot.com/6223055

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: