Hi. Please answer to the list, not to my personal address.

On Fri, Mar 12, 2010 at 04:09:23PM -0600, j...@qlf.com wrote:
> My apologies for providing the superfluous info.  I was just trying to be 
> thorough.  However, I've inserted the following code and again, am not 
> getting to the second debug statement.
> 
>     def _set_dateRequested(self, value):
>         dateRequested = value.strftime('%Y/%m/%d')
>         log.debug('here')
>         requisitionPeriod = self.requisitionPeriod.id
>         log.debug(requisitionPeriod)

   With Python, a code is either executed, or raise an exception, or crash
an interpreter. Did the code raise an exception or crash the interpreter?
Perhaps, no. Hence the code was executed.
   How come requisitionPeriod was not in the log? I am not sure. It could
be because it is None, though it's stranage for a ForeignKey. Try logging
it with additional text:

    log.debug('requisitionPeriod=%s', requisitionPeriod)

Even better log it with its type:

    log.debug('requisitionPeriod: %r %s', type(requisitionPeriod), 
requisitionPeriod)

Oleg.
-- 
     Oleg Broytman            http://phd.pp.ru/            p...@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to