Re: [Zope] "indirection" problem

2000-08-02 Thread David Coe
I *think* you've stumbled upon the way _.getitem behaves by default: (from the DTML reference) getitem(name,flag) Lookup a name in the namespace. If the value is callable and the flag is true, then the result of calling the value is returned, ot

Re: [Zope] Retrieving the week number with DateTime

2000-08-02 Thread David Coe
I suspect there is no 'standard' definition of week number. E.g. if the year begins on a Wednesday, is the following Monday part of week 1 or week 2? Once you decide, you can design a calculation starting with "some_date_object.dayOfYear()" which will give you the day number in the range 1 to