>
> Haven't tried it yet  but wanted to know if it' was possible. Had you not
> gotten back with an affirmative that a method can be called for a default
> value before I was finish creating the form I would have tried it anyway.
>
> Thanks
>  -- Carey
>

Ok...finally had a chance to give this a try. In one of my programs it works
no problem:

In my bizobj file

self.DefaultValues["yearextra"] = self.getTwoDigitYear()

    def getTwoDigitYear(self):
        now = datetime.datetime.now()
        twodigityear = now.strftime("%y")
        return twodigityear

In another app I have the same thing but get the following traceback:
(truncated)

    self.DefaultValues["yearextra"] = self.getCurrentYear()
AttributeError: 'ProjectExtrasBizobj' object has no attribute
'getCurrentYear'

I don't undertsnd why it works in one app and not in another.

-- Carey


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to