librelist archives

« back to archive

[bamboo]query_set断言的bug

[bamboo]query_set断言的bug

From:
Uno Young
Date:
2012-05-15 @ 01:54
_G['isQuerySet'] = function (self)
if isList(self)
and rawget(self, '__spectype') == nil and self.__spectype == 'QuerySet'


>> and self.__tag == 'Bamboo.Model'
改为 and self.__tag == 'Object.Model'

then return true
else return false
end
end

Re: [bamboo]query_set断言的bug

From:
Tang Daogang
Date:
2012-05-15 @ 03:10
已修复。

On Tue, May 15, 2012 at 9:54 AM, Uno Young <littlehaker@gmail.com> wrote:

> _G['isQuerySet'] = function (self)
> if isList(self)
> and rawget(self, '__spectype') == nil and self.__spectype == 'QuerySet'
>
>
> >> and self.__tag == 'Bamboo.Model'
> 改为 and self.__tag == 'Object.Model'
>
>  then return true
> else return false
> end
> end
>
>


-- 
Nothing is impossible.