VirtualMailManager/account.py
branchv0.7.x
changeset 694 b1bfd4d1d9c0
parent 691 932cd76bf879
child 711 2a75058fc064
equal deleted inserted replaced
693:2e19ab98118a 694:b1bfd4d1d9c0
    41         When an account with the given *address* could be found in the
    41         When an account with the given *address* could be found in the
    42         database all relevant data will be loaded.
    42         database all relevant data will be loaded.
    43 
    43 
    44         Arguments:
    44         Arguments:
    45 
    45 
    46         `dbh` : pyPgSQL.PgSQL.Connection
    46         `dbh` : psycopg2._psycopg.connection
    47           A database connection for the database access.
    47           A database connection for the database access.
    48         `address` : VirtualMailManager.EmailAddress.EmailAddress
    48         `address` : VirtualMailManager.EmailAddress.EmailAddress
    49           The e-mail address of the (new) Account.
    49           The e-mail address of the (new) Account.
    50         """
    50         """
    51         if not isinstance(address, EmailAddress):
    51         if not isinstance(address, EmailAddress):
   457 
   457 
   458     Argument:
   458     Argument:
   459 
   459 
   460     `uid` : int
   460     `uid` : int
   461       The Account unique ID.
   461       The Account unique ID.
   462     `dbh` : pyPgSQL.PgSQL.Connection
   462     `dbh` : psycopg2._psycopg.connection
   463       a database connection for the database access.
   463       a database connection for the database access.
   464     """
   464     """
   465     try:
   465     try:
   466         uid = int(uid)
   466         uid = int(uid)
   467     except ValueError:
   467     except ValueError: