[dabo-dev] Two questions

Author: Ed Leafe

Posted: 2005-03-15 at 09:46:51

First, I tracked down a bug in our datanav Page class when working

with date fields. The class uses the dDateTextBox's getDateTuple()

method to get the year, month and day. The problem is that getDateTuple

uses the date class's GetMonth() method to get its month value, and

GetMonth() returns a zero-indexed value: IOW, it ranges from 0-11, not

from 1-12.

Should we change getDateTuple() to return the one-based month? Should

today's date be returned as (2005, 2, 15) or (2005, 3, 15)?

Second, app launching and form creation seems to have slowed down

considerably lately. You mentioned some sort of profiling code a while

back, but I can't find that message. Can you post it again?

___/

/

__/

/

____/

Ed Leafe

http://leafe.com/

http://dabodev.com/

Come to PyCon!!!! http://www.python.org/pycon/2005/

©2005 Ed Leafe