On 1/27/10 11:54 AM, Jacek Kałucki wrote: > Użytkownik Paul McNett napisał: >> On 1/27/10 10:22 AM, Jacek Kałucki wrote: >> >>> Why virtual fields can hold only string values? >>> >> What makes you think this? >> > > I can store value of any type but...
I know you know this, but for any lurkers out there: virtual field values are never stored anywhere: they are calculated as needed. So what Jacek's talking about is the return value from the virtual field function, not a value being 'stored' or 'held' anywhere. > I can filter only strings. Ah, the filtering was contributed by someone else, and I've never used it. > Here is excerpt from dBizobj class code: > > <code> > def scanVirtualFields(self, fld, expr, op): > virtValue = self.getFieldVal(fld) > virtLower = virtValue.lower() > </code> > > As you see, lower() method is valid only for strings and > raises an exception for other types. I attempted a (untested) fix in r5605. Paul _______________________________________________ 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]
