librelist archives

« back to archive

Warning: Property sortable_columns is obsolete, please use column_sortable_list i nstead

Warning: Property sortable_columns is obsolete, please use column_sortable_list i nstead

From:
Kundan Singh
Date:
2013-04-21 @ 15:16
When i run my app it gives warning as:

UserWarning : Property rename_columns is obsolete, please use column_labels
instead if self.column_labels and field in self.column_labels

*************Complete Warning******************

*E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:437:
UserW*
*arning: Property rename_columns is obsolete, please use column_labels
instead*
*  if self.column_labels and field in self.column_labels:*
*E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:477:
UserW*
*arning: Property sortable_columns is obsolete, please use
column_sortable_list i*
*nstead*
*  if self.column_sortable_list is None:*
*E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:482:
UserW*
*arning: Property sortable_columns is obsolete, please use
column_sortable_list i*
*nstead*
*  for c in self.column_sortable_list:*
*E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:357:
UserW*
*arning: Property rename_columns is obsolete, please use column_labels
instead*
*  if self.column_labels is None:*
*
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\form.p
*
*y:41: UserWarning: Property rename_columns is obsolete, please use
column_labels*
* instead*
*  column_labels = get_property(self.view, 'column_labels',
'rename_columns')*
*
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
*
*y:378: UserWarning: Property searchable_columns is obsolete, please use
column_s*
*earchable_list instead*
*  if self.column_searchable_list:*
*
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
*
*y:382: UserWarning: Property searchable_columns is obsolete, please use
column_s*
*earchable_list instead*
*  for p in self.column_searchable_list:*
*
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
*
*y:396: UserWarning: Property searchable_columns is obsolete, please use
column_s*
*earchable_list instead*
*  return bool(self.column_searchable_list)*
********************************************************
*
*
How to resolve this?

Re: [flask] Warning: Property sortable_columns is obsolete, please use column_sortable_list i nstead

From:
Andrey V. Martyanov
Date:
2013-04-21 @ 15:23
Please see http://flask-admin.readthedocs.org/en/latest/renamed_columns/for
details.


On Sun, Apr 21, 2013 at 8:16 PM, Kundan Singh <ksingh.pilani@gmail.com>wrote:

> When i run my app it gives warning as:
>
> UserWarning : Property rename_columns is obsolete, please use
> column_labels instead if self.column_labels and field in self.column_labels
>
> *************Complete Warning******************
>
> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:437:
> UserW*
> *arning: Property rename_columns is obsolete, please use column_labels
> instead*
> *  if self.column_labels and field in self.column_labels:*
> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:477:
> UserW*
> *arning: Property sortable_columns is obsolete, please use
> column_sortable_list i*
> *nstead*
> *  if self.column_sortable_list is None:*
> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:482:
> UserW*
> *arning: Property sortable_columns is obsolete, please use
> column_sortable_list i*
> *nstead*
> *  for c in self.column_sortable_list:*
> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:357:
> UserW*
> *arning: Property rename_columns is obsolete, please use column_labels
> instead*
> *  if self.column_labels is None:*
> *
> E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\form.p
> *
> *y:41: UserWarning: Property rename_columns is obsolete, please use
> column_labels*
> * instead*
> *  column_labels = get_property(self.view, 'column_labels',
> 'rename_columns')*
> *
> E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
> *
> *y:378: UserWarning: Property searchable_columns is obsolete, please use
> column_s*
> *earchable_list instead*
> *  if self.column_searchable_list:*
> *
> E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
> *
> *y:382: UserWarning: Property searchable_columns is obsolete, please use
> column_s*
> *earchable_list instead*
> *  for p in self.column_searchable_list:*
> *
> E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
> *
> *y:396: UserWarning: Property searchable_columns is obsolete, please use
> column_s*
> *earchable_list instead*
> *  return bool(self.column_searchable_list)*
> ********************************************************
> *
> *
> How to resolve this?
>

Re: [flask] Warning: Property sortable_columns is obsolete, please use column_sortable_list i nstead

From:
Kundan Singh
Date:
2013-04-21 @ 15:46
I'm a newbie to flask.

So should i change:
*column_labels = ObsoleteAttr('column_labels', 'rename_columns', None) *
to
*column_labels = ObsoleteAttr('column_labels', column_labels', None) *or
What?

I checked github for flask-admin and it still has the above code only.
How should i change to resolve issue  ?


On Sun, Apr 21, 2013 at 8:53 PM, Andrey V. Martyanov <realduke@gmail.com>wrote:

> Please see 
http://flask-admin.readthedocs.org/en/latest/renamed_columns/for details.
>
>
> On Sun, Apr 21, 2013 at 8:16 PM, Kundan Singh <ksingh.pilani@gmail.com>wrote:
>
>> When i run my app it gives warning as:
>>
>> UserWarning : Property rename_columns is obsolete, please use
>> column_labels instead if self.column_labels and field in self.column_labels
>>
>> *************Complete Warning******************
>>
>> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:437:
>> UserW*
>> *arning: Property rename_columns is obsolete, please use column_labels
>> instead*
>> *  if self.column_labels and field in self.column_labels:*
>> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:477:
>> UserW*
>> *arning: Property sortable_columns is obsolete, please use
>> column_sortable_list i*
>> *nstead*
>> *  if self.column_sortable_list is None:*
>> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:482:
>> UserW*
>> *arning: Property sortable_columns is obsolete, please use
>> column_sortable_list i*
>> *nstead*
>> *  for c in self.column_sortable_list:*
>> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:357:
>> UserW*
>> *arning: Property rename_columns is obsolete, please use column_labels
>> instead*
>> *  if self.column_labels is None:*
>> *
>> 
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\form.p
>> *
>> *y:41: UserWarning: Property rename_columns is obsolete, please use
>> column_labels*
>> * instead*
>> *  column_labels = get_property(self.view, 'column_labels',
>> 'rename_columns')*
>> *
>> 
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
>> *
>> *y:378: UserWarning: Property searchable_columns is obsolete, please use
>> column_s*
>> *earchable_list instead*
>> *  if self.column_searchable_list:*
>> *
>> 
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
>> *
>> *y:382: UserWarning: Property searchable_columns is obsolete, please use
>> column_s*
>> *earchable_list instead*
>> *  for p in self.column_searchable_list:*
>> *
>> 
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
>> *
>> *y:396: UserWarning: Property searchable_columns is obsolete, please use
>> column_s*
>> *earchable_list instead*
>> *  return bool(self.column_searchable_list)*
>> ********************************************************
>> *
>> *
>> How to resolve this?
>>
>
>

Re: [flask] Warning: Property sortable_columns is obsolete, please use column_sortable_list i nstead

From:
Andrey V. Martyanov
Date:
2013-04-21 @ 15:52
You should  rename the property names in your own application not in
flask-admin extension.


On Sun, Apr 21, 2013 at 8:46 PM, Kundan Singh <ksingh.pilani@gmail.com>wrote:

> I'm a newbie to flask.
>
> So should i change:
> *column_labels = ObsoleteAttr('column_labels', 'rename_columns', None) *
> to
> *column_labels = ObsoleteAttr('column_labels', column_labels', None) *or
> What?
>
> I checked github for flask-admin and it still has the above code only.
> How should i change to resolve issue  ?
>
>
> On Sun, Apr 21, 2013 at 8:53 PM, Andrey V. Martyanov <realduke@gmail.com>wrote:
>
>> Please see 
http://flask-admin.readthedocs.org/en/latest/renamed_columns/for details.
>>
>>
>> On Sun, Apr 21, 2013 at 8:16 PM, Kundan Singh <ksingh.pilani@gmail.com>wrote:
>>
>>> When i run my app it gives warning as:
>>>
>>> UserWarning : Property rename_columns is obsolete, please use
>>> column_labels instead if self.column_labels and field in self.column_labels
>>>
>>> *************Complete Warning******************
>>>
>>> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:437:
>>> UserW*
>>> *arning: Property rename_columns is obsolete, please use column_labels
>>> instead*
>>> *  if self.column_labels and field in self.column_labels:*
>>> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:477:
>>> UserW*
>>> *arning: Property sortable_columns is obsolete, please use
>>> column_sortable_list i*
>>> *nstead*
>>> *  if self.column_sortable_list is None:*
>>> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:482:
>>> UserW*
>>> *arning: Property sortable_columns is obsolete, please use
>>> column_sortable_list i*
>>> *nstead*
>>> *  for c in self.column_sortable_list:*
>>> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:357:
>>> UserW*
>>> *arning: Property rename_columns is obsolete, please use column_labels
>>> instead*
>>> *  if self.column_labels is None:*
>>> *
>>> 
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\form.p
>>> *
>>> *y:41: UserWarning: Property rename_columns is obsolete, please use
>>> column_labels*
>>> * instead*
>>> *  column_labels = get_property(self.view, 'column_labels',
>>> 'rename_columns')*
>>> *
>>> 
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
>>> *
>>> *y:378: UserWarning: Property searchable_columns is obsolete, please
>>> use column_s*
>>> *earchable_list instead*
>>> *  if self.column_searchable_list:*
>>> *
>>> 
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
>>> *
>>> *y:382: UserWarning: Property searchable_columns is obsolete, please
>>> use column_s*
>>> *earchable_list instead*
>>> *  for p in self.column_searchable_list:*
>>> *
>>> 
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
>>> *
>>> *y:396: UserWarning: Property searchable_columns is obsolete, please
>>> use column_s*
>>> *earchable_list instead*
>>> *  return bool(self.column_searchable_list)*
>>> ********************************************************
>>> *
>>> *
>>> How to resolve this?
>>>
>>
>>
>

Re: [flask] Warning: Property sortable_columns is obsolete, please use column_sortable_list i nstead

From:
Andrey V. Martyanov
Date:
2013-04-21 @ 15:57
The application you use is written by yourself? Could your provide the code?


On Sun, Apr 21, 2013 at 8:52 PM, Andrey V. Martyanov <realduke@gmail.com>wrote:

> You should  rename the property names in your own application not in
> flask-admin extension.
>
>
> On Sun, Apr 21, 2013 at 8:46 PM, Kundan Singh <ksingh.pilani@gmail.com>wrote:
>
>> I'm a newbie to flask.
>>
>> So should i change:
>> *column_labels = ObsoleteAttr('column_labels', 'rename_columns', None) *
>> to
>> *column_labels = ObsoleteAttr('column_labels', column_labels', None) *or
>> What?
>>
>> I checked github for flask-admin and it still has the above code only.
>> How should i change to resolve issue  ?
>>
>>
>> On Sun, Apr 21, 2013 at 8:53 PM, Andrey V. Martyanov <realduke@gmail.com>wrote:
>>
>>> Please see 
http://flask-admin.readthedocs.org/en/latest/renamed_columns/for details.
>>>
>>>
>>> On Sun, Apr 21, 2013 at 8:16 PM, Kundan Singh <ksingh.pilani@gmail.com>wrote:
>>>
>>>> When i run my app it gives warning as:
>>>>
>>>> UserWarning : Property rename_columns is obsolete, please use
>>>> column_labels instead if self.column_labels and field in self.column_labels
>>>>
>>>> *************Complete Warning******************
>>>>
>>>> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:437:
>>>> UserW*
>>>> *arning: Property rename_columns is obsolete, please use column_labels
>>>> instead*
>>>> *  if self.column_labels and field in self.column_labels:*
>>>> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:477:
>>>> UserW*
>>>> *arning: Property sortable_columns is obsolete, please use
>>>> column_sortable_list i*
>>>> *nstead*
>>>> *  if self.column_sortable_list is None:*
>>>> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:482:
>>>> UserW*
>>>> *arning: Property sortable_columns is obsolete, please use
>>>> column_sortable_list i*
>>>> *nstead*
>>>> *  for c in self.column_sortable_list:*
>>>> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:357:
>>>> UserW*
>>>> *arning: Property rename_columns is obsolete, please use column_labels
>>>> instead*
>>>> *  if self.column_labels is None:*
>>>> *
>>>> 
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\form.p
>>>> *
>>>> *y:41: UserWarning: Property rename_columns is obsolete, please use
>>>> column_labels*
>>>> * instead*
>>>> *  column_labels = get_property(self.view, 'column_labels',
>>>> 'rename_columns')*
>>>> *
>>>> 
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
>>>> *
>>>> *y:378: UserWarning: Property searchable_columns is obsolete, please
>>>> use column_s*
>>>> *earchable_list instead*
>>>> *  if self.column_searchable_list:*
>>>> *
>>>> 
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
>>>> *
>>>> *y:382: UserWarning: Property searchable_columns is obsolete, please
>>>> use column_s*
>>>> *earchable_list instead*
>>>> *  for p in self.column_searchable_list:*
>>>> *
>>>> 
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
>>>> *
>>>> *y:396: UserWarning: Property searchable_columns is obsolete, please
>>>> use column_s*
>>>> *earchable_list instead*
>>>> *  return bool(self.column_searchable_list)*
>>>> ********************************************************
>>>> *
>>>> *
>>>> How to resolve this?
>>>>
>>>
>>>
>>
>

Re: [flask] Warning: Property sortable_columns is obsolete, please use column_sortable_list i nstead

From:
Serge S. Koval
Date:
2013-04-21 @ 16:01
This warning was shown because you used old `searchable_columns` in one of
your administrative views instead of `column_searchable_list`.

So, you have something like this in your code:

class MyAdminView(ModelView):
    searchable_columns = ('a', 'b', 'c')

Change it to:

class MyAdminView(ModelView):
    column_searchable_list = ('a', 'b', 'c')

And warning will be gone.

Serge.

On Sun, Apr 21, 2013 at 6:57 PM, Andrey V. Martyanov <realduke@gmail.com>wrote:

> The application you use is written by yourself? Could your provide the
> code?
>
>
> On Sun, Apr 21, 2013 at 8:52 PM, Andrey V. Martyanov <realduke@gmail.com>wrote:
>
>> You should  rename the property names in your own application not in
>> flask-admin extension.
>>
>>
>> On Sun, Apr 21, 2013 at 8:46 PM, Kundan Singh <ksingh.pilani@gmail.com>wrote:
>>
>>> I'm a newbie to flask.
>>>
>>> So should i change:
>>> *column_labels = ObsoleteAttr('column_labels', 'rename_columns', None) *
>>> to
>>> *column_labels = ObsoleteAttr('column_labels', column_labels', None) *or
>>> What?
>>>
>>> I checked github for flask-admin and it still has the above code only.
>>> How should i change to resolve issue  ?
>>>
>>>
>>> On Sun, Apr 21, 2013 at 8:53 PM, Andrey V. Martyanov <realduke@gmail.com
>>> > wrote:
>>>
>>>> Please see
>>>> http://flask-admin.readthedocs.org/en/latest/renamed_columns/ for
>>>> details.
>>>>
>>>>
>>>> On Sun, Apr 21, 2013 at 8:16 PM, Kundan Singh <ksingh.pilani@gmail.com>wrote:
>>>>
>>>>> When i run my app it gives warning as:
>>>>>
>>>>> UserWarning : Property rename_columns is obsolete, please use
>>>>> column_labels instead if self.column_labels and field in self.column_labels
>>>>>
>>>>> *************Complete Warning******************
>>>>>
>>>>> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:437:
>>>>> UserW*
>>>>> *arning: Property rename_columns is obsolete, please use
>>>>> column_labels instead*
>>>>> *  if self.column_labels and field in self.column_labels:*
>>>>> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:477:
>>>>> UserW*
>>>>> *arning: Property sortable_columns is obsolete, please use
>>>>> column_sortable_list i*
>>>>> *nstead*
>>>>> *  if self.column_sortable_list is None:*
>>>>> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:482:
>>>>> UserW*
>>>>> *arning: Property sortable_columns is obsolete, please use
>>>>> column_sortable_list i*
>>>>> *nstead*
>>>>> *  for c in self.column_sortable_list:*
>>>>> *E:\Python\BackMunch\flask\lib\site-packages\flask_admin\model\base.py:357:
>>>>> UserW*
>>>>> *arning: Property rename_columns is obsolete, please use
>>>>> column_labels instead*
>>>>> *  if self.column_labels is None:*
>>>>> *
>>>>> 
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\form.p
>>>>> *
>>>>> *y:41: UserWarning: Property rename_columns is obsolete, please use
>>>>> column_labels*
>>>>> * instead*
>>>>> *  column_labels = get_property(self.view, 'column_labels',
>>>>> 'rename_columns')*
>>>>> *
>>>>> 
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
>>>>> *
>>>>> *y:378: UserWarning: Property searchable_columns is obsolete, please
>>>>> use column_s*
>>>>> *earchable_list instead*
>>>>> *  if self.column_searchable_list:*
>>>>> *
>>>>> 
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
>>>>> *
>>>>> *y:382: UserWarning: Property searchable_columns is obsolete, please
>>>>> use column_s*
>>>>> *earchable_list instead*
>>>>> *  for p in self.column_searchable_list:*
>>>>> *
>>>>> 
E:\Python\BackMunch\flask\lib\site-packages\flask_admin\contrib\sqlamodel\view.p
>>>>> *
>>>>> *y:396: UserWarning: Property searchable_columns is obsolete, please
>>>>> use column_s*
>>>>> *earchable_list instead*
>>>>> *  return bool(self.column_searchable_list)*
>>>>> ********************************************************
>>>>> *
>>>>> *
>>>>> How to resolve this?
>>>>>
>>>>
>>>>
>>>
>>
>