> Diez B. Roggisch a écrit :
>> Gerardo Herzig wrote:
>>
>>> Hi all. Im wondering the way to share a database connection between
>>> some
>>> classes:
>>>
>>> So far, i came up with a simple class schema, where each class means
>>> each different relation, i mean i have the follow classes
>>>
>>> c
Diez B. Roggisch a écrit :
> Gerardo Herzig wrote:
>
>> Hi all. Im wondering the way to share a database connection between some
>> classes:
>>
>> So far, i came up with a simple class schema, where each class means
>> each different relation, i mean i have the follow classes
>>
>> class Database(
Gerardo Herzig wrote:
> Hi all. Im wondering the way to share a database connection between some
> classes:
>
> So far, i came up with a simple class schema, where each class means
> each different relation, i mean i have the follow classes
>
> class Database(object):
> ## make the connection
Hi all. Im wondering the way to share a database connection between some
classes:
So far, i came up with a simple class schema, where each class means
each different relation, i mean i have the follow classes
class Database(object):
## make the connection
self.conn = make_conn()
class