[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Pulp-list] Client Refactoring



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.

Nick, 

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
--


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]