Changeset 152 for trunk/module/pg.py


Ignore:
Timestamp:
Dec 22, 2003, 8:21:00 AM (16 years ago)
Author:
darcy
Message:

Move to version 3.4 release.
Add changes.
Use new PyGreSQL.org addresses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module/pg.py

    r151 r152  
    4949                self.db = apply(connect, args, kw)
    5050
    51                 # Create convience methods, in a way that is still overridable
     51                # Create convenience methods, in a way that is still overridable
    5252                # (members are not copied because they are actually functions)
    5353                for e in self.db.__methods__:
     
    5757                self.__pkeys = {}
    5858                self.__args = args, kw
    59                 self.debug = None       # For debugging scripts, set to output format
    60                                                         # that takes a single string arg.  For example
    61                                                         # in a CGI set to "%s<BR>"
    62 
    63                 # this is an aid to debugging by putting the program name into
    64                 # the PostgreSQL log if turned on in PostgreSQL's config
    65                 # left off by default
    66                 ##self.query("SELECT 'Start PyGreSQL program: %s'" % sys.argv[0])
     59                self.debug = None       # For debugging scripts, this can be set to a
     60                                                        # string format specification (e.g. in a CGI
     61                                                        # set to "%s<BR>",) to a function which takes
     62                                                        # a string argument or a file object to write
     63                                                        # debug statements to.
    6764
    6865        def _do_debug(self, s):
Note: See TracChangeset for help on using the changeset viewer.