[web2py] Re: weird database behavior

2011-12-11 Thread ニコノコ
I meant, if the data is accessed from a function. On Dec 12, 12:07 pm, Anthony abasta...@gmail.com wrote: Can you show some code? What do you mean check the data from a view? On Sunday, December 11, 2011 8:43:50 PM UTC-5, ニコノコ wrote: I have a custom auth_user field that I could edit

[web2py] Re: Getting table a to use as default string from field in table b

2011-12-11 Thread ニコノコ
SOrry, email editor mangled the text. SHould read: db.table_settings['parent_table'].default_value.default On Dec 12, 12:21 pm, Nik Go nikolai...@gmail.com wrote: db.table_settings.default_value.requires = IS_IN_SET(['a','b']) db.table_settings['parent_table'].default_value*.default* I think

[web2py] Re: a couple of related questions

2011-10-23 Thread ニコノコ
Even if I'm logged in, I couldn't view a record when I click the parent record. The parent field is a clickable representation viewable in a grid. re [2] the relevant portion is the links parameter where I create a new button. I want to create an icon for that button. On Oct 23, 12:53 pm,

[web2py] Re: SQLFORM.factory not respecting IS_NOT_EMPTY() for list:string?

2011-10-23 Thread ニコノコ
How about:  db.table.field.requires = IS_LENGTH(1) On Oct 22, 12:35 am, TheSweetlink yanosh...@gmail.com wrote: I have a SQLFORM.factory that is respecting IS_NOT_EMPTY() for a field with type='string' but not respecting it for a diffirent field of type='list:string'. If the list:string type

[web2py] Re: grid custom button icons

2011-10-23 Thread ニコノコ
I create new buttons like this in the grid: links = [lambda row: A('X', _href=URL(args=[view, db.person, row.id] ))] How should I specify an icon for the new button? On Oct 19, 10:04 pm, Bruno Rocha rochacbr...@gmail.com wrote: Herehttps://github.com/michenriksen/css3buttonsyou can find a list

[web2py] Re: Complex CRUD Forms Examples with Web2py?

2011-10-23 Thread ニコノコ
Checkout the solidForm plugin from http://dev.s-cubism.com/web2py_plugins On Oct 24, 4:18 am, BrendanC bren...@gmail.com wrote: Hi Some time ago I developed a CRUD demo app in Django that used some some complex forms. Here's an example: http://theludditegeek.com/prescreen/1 I'd like to

[web2py] Re: SQLFORM.factory not respecting IS_NOT_EMPTY() for list:string?

2011-10-23 Thread ニコノコ
not if the field is list:string On Oct 24, 10:32 am, Vasile Ermicioi elff...@gmail.com wrote: How about:  db.table.field.requires = IS_LENGTH(1) that will limit the field to one character, not to one value from set

[web2py] Re: SQLFORM.factory not respecting IS_NOT_EMPTY() for list:string?

2011-10-23 Thread ニコノコ
Eeugh. Sorry for the ugly suggestion. Post validation could def person_processing(form): if len(form.vars.field or '')1: form.errors.field= 'Select one.' On Oct 24, 10:32 am, Vasile Ermicioi elff...@gmail.com wrote: How about:  db.table.field.requires = IS_LENGTH(1) that will