[web2py] Re: Troubleshooting represent

2015-01-20 Thread americandewd
() -- it does not apply to update forms (in that case, the field's widget controls what is displayed). Anthony On Monday, January 19, 2015 at 10:26:26 PM UTC-5, americandewd wrote: How would one go about troubleshooting represent? I am at the point where the ID matches the data I am looking

[web2py] Re: Troubleshooting represent

2015-01-20 Thread americandewd
). Anthony On Monday, January 19, 2015 at 10:26:26 PM UTC-5, americandewd wrote: How would one go about troubleshooting represent? I am at the point where the ID matches the data I am looking for however it is not showing the title for the matching ID. Specifically I have categories held

[web2py] Represent not working properly, behavior I am experiencing is not documented. Is this a bug?

2015-01-20 Thread americandewd
I have a form that was created by CRUD, I also update this form by CRUD. In another thread I was told by Anthony about a field widget controlling what is seen (he stated this is for: read-only forms, SQLTABLE, SQLFORM.grid, and when calling rows.render()) however per the book it says that to

[web2py] Re: Troubleshooting represent

2015-01-20 Thread americandewd
this was driving me bonkers!!! On Tuesday, January 20, 2015 at 9:08:50 AM UTC-6, Anthony wrote: On Tuesday, January 20, 2015 at 6:07:47 AM UTC-5, americandewd wrote: I have not set any widget controls per what the book specifies shows me can be done for the field. Could you please explain since if I did

[web2py] Re: Represent not working properly, behavior I am experiencing is not documented. Is this a bug?

2015-01-20 Thread americandewd
which holds what I want represented). On Tuesday, January 20, 2015 at 6:55:30 AM UTC-6, americandewd wrote: I have a form that was created by CRUD, I also update this form by CRUD. In another thread I was told by Anthony about a field widget controlling what is seen (he stated this is for: read

[web2py] Bug? IS_IN_SET used with items removed does not show existing DB value

2015-01-19 Thread americandewd
I have a dropdown list of categories I have created for users to select from, when I remove formcontrol.category.requires = IS_IN_SET(catwanted,zero=None) it shows the existing data the user has already chosen, when I put back the formcontrol.category.requires = IS_IN_SET(catwanted,zero=None)

[web2py] Re: Troubleshooting represent

2015-01-19 Thread americandewd
forms (in that case, the field's widget controls what is displayed). Anthony On Monday, January 19, 2015 at 10:26:26 PM UTC-5, americandewd wrote: How would one go about troubleshooting represent? I am at the point where the ID matches the data I am looking for however it is not showing

[web2py] Troubleshooting represent

2015-01-19 Thread americandewd
How would one go about troubleshooting represent? I am at the point where the ID matches the data I am looking for however it is not showing the title for the matching ID. Specifically I have categories held in this table: db.define_table('category', Field('title'),

[web2py] Re: Bug? IS_IN_SET used with items removed does not show existing DB value

2015-01-19 Thread americandewd
I have tried adding directly to the model: represent = lambda f: db.category[f].title this did not work either, (also ignored) Any one have any ideas? OR how I can troubleshoot this? On Monday, January 19, 2015 at 8:08:45 PM UTC-6, americandewd wrote: I noticed that in the places where I

[web2py] Re: Troubleshooting represent

2015-01-19 Thread americandewd
calling rows.render() -- it does not apply to update forms (in that case, the field's widget controls what is displayed). Anthony On Monday, January 19, 2015 at 10:26:26 PM UTC-5, americandewd wrote: How would one go about troubleshooting represent? I am at the point where the ID matches

[web2py] Re: Bug? IS_IN_SET used with items removed does not show existing DB value

2015-01-19 Thread americandewd
, americandewd wrote: I have a dropdown list of categories I have created for users to select from, when I remove formcontrol.category.requires = IS_IN_SET(catwanted,zero=None) it shows the existing data the user has already chosen, when I put back the formcontrol.category.requires

[web2py] Re: Bug? IS_IN_SET used with items removed does not show existing DB value

2015-01-19 Thread americandewd
I noticed that in the places where I used represent it wasn't a dropdown selection plus I also made the field non-writable. I cannot follow these conditions because it needs to be a list the user can select. Any ideas? On Monday, January 19, 2015 at 7:57:22 PM UTC-6, americandewd wrote: Ok

[web2py] Re: Bug? IS_IN_SET used with items removed does not show existing DB value

2015-01-19 Thread americandewd
Does anyone know what would cause represent to be ignored? On Monday, January 19, 2015 at 8:33:15 PM UTC-6, americandewd wrote: I have tried adding directly to the model: represent = lambda f: db.category[f].title this did not work either, (also ignored) Any one have any ideas? OR how

[web2py] Re: Weird problems generating menu from database

2014-01-21 Thread americandewd
I attempted to copy/paste what you have so I can modify it for my needs. However it immediately errors out with: AttributeError: 'Table' object has no attribute 'parent' So I thought I would comment out everything for the menu except response.menu = [] and populate the database (have done

[web2py] Weird problems generating menu from database

2014-01-20 Thread americandewd
Hi all, I have been trying for a little over 2 weeks to figure this out... I'm trying to generate a menu that drops down, I have been able to statically create it by overwriting sample app that has the same drop down menu like the web2py.com site. I have this in my db.py: