On 2/12/06, Oleg Broytmann <[EMAIL PROTECTED]> wrote:
> On Sun, Feb 12, 2006 at 08:14:06AM -0300, F?bio Eduardo do Amaral Corr?a 
> wrote:
> >       sqlhub.processConnection(connection)
>
>    sqlhub.processConnection = connection

I keep making the same mistake.  I figured it out by looking at the
source more closely.

The problem is (or at least was for me), 'process' looks like a verb
so you expect it to be a method.  But it's really an adjective: "the
connection for this process".  (Or at least that's what I surmised
from the source.)  Many packages would make that a method as well, but
SQLObject chose to make it an attribute instead.  (Which I favor
because the overuse of accessor methods is unpythonic.  But it is
unusual to have the user set a normally-not-present attribute. 
Perhaps it should default to None so it would at least show up in a
'dir'.  That would make it easier for the user to prevent/recognize
misspellings.)

One of the biggest things that needs to be documented is all the
places you can specify a connection and the tradeoffs for each, and
all the ways of using hubs.  Plus, for TurboGears users, the hub
front-end it provides.  I'll take a stab at it for the wiki.

--
Mike Orr <[EMAIL PROTECTED]>
([EMAIL PROTECTED] address is semi-reliable)


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to