[Pulp-list] Client Refactoring
jslagle at redhat.com
Thu Jul 21 13:12:19 UTC 2011
On Thu, Jul 21, 2011 at 11:35:21AM +1000, Nick Coghlan wrote:
> Alternatively, the SQL Alchemy session model may be useful here.
> That allows you to either invoke operations directly on a DB
> session, or else use an implicit session that is held in thread
> local storage. For the Pulp client API, the global server connection
> could be used implicitly when invoking operations on model
> instances, with a separate explicit mechanism to perform operations
> against a specific server.
That sounds like a reasonable approach, and something I will look into.
Knowing the requirement, I'll definitely make it such that you aren't locked
into using only a single global or active server.
-- James Slagle
More information about the Pulp-list