[web2py] Re: Need Help Using CRUD with Self-Referencing Tables

2011-01-14 Thread Savio Sabino
Hi, the follow model is rigth to crud: db.define_table('category',iObj, Field('parent','reference category'), Field('name'), format='%(name)s') db.category.parent.requires = IS_EMPTY_OR(IS_IN_DB(db, db.category.id, '%(name)s')) db.category.name.requires = IS_NOT_IN_DB(db,

[web2py] How to do a list:upload Field?

2010-12-13 Thread Savio Sabino
Have a mode to do this work? Or a other solution?

[web2py] Re: How to do a list:upload Field?

2010-12-13 Thread Savio Sabino
://web2pyslices.com/main/slices/take_slice/103 2010/12/13 Savio Sabino savi...@gmail.com Have a mode to do this work? Or a other solution? -- Bruno Rochahttp://about.me/rochacbruno/bio

[web2py] Re: How to do a list:upload Field?

2010-12-13 Thread Savio Sabino
This exists? On Dec 13, 5:53 pm, Savio Sabino savi...@gmail.com wrote: The best solution to this is a widget to insert multi record of a referenced table like: db.define_table('post',    Field('title'),    Field('content')) db.define_table('comment',    Field('post_id', db.post

[web2py] Re: How to create fields with links and events in jqgrid?

2010-10-21 Thread Savio Sabino
and they should appear in jqgrid On Oct 20, 9:35 am, Savio Sabino savi...@gmail.com wrote: Thanks this is nice solution. And very thanks for the great framework. And now... How do I add the two fields (deposit and withdraw) that no store data and be used only in the view? Must create a virtual

[web2py] Re: How to create fields with links and events in jqgrid?

2010-10-21 Thread Savio Sabino
Complementing the line: db.produto.virtualfields.append(VirtualFields()) causes error in creating the tables below it. On Oct 21, 9:00 am, Savio Sabino savi...@gmail.com wrote: Hello. I did the following test with virtual fields: db.define_table('product',                 Field ('type

[web2py] What is missing for the virtual field work?

2010-10-21 Thread Savio Sabino
Hello. I did the following test with virtual fields: db.define_table('product', Field ('type', db.tp_produto) Field ('manufacturer', db.fabricante) Field ('qt', 'integer', default = 0), Field ('qt_min', 'integer', default = 0)

[web2py] Re: What is missing for the virtual field work?

2010-10-21 Thread Savio Sabino
prodEnt field in any situation. On Oct 21, 10:13 am, mdipierro mdipie...@cs.depaul.edu wrote: I assume this is a typo: VirtualFields class: should be class VirtualFields: What is the error? Can you show the traceback? On Oct 21, 8:09 am, Savio Sabino savi...@gmail.com wrote: Hello. I

[web2py] Re: What is missing for the virtual field work?

2010-10-21 Thread Savio Sabino
this. It is not a but, it just that virtual fields and not listed an must be retrieved explicitly. On Oct 21, 12:25 pm, Savio Sabino savi...@gmail.com wrote: The version is 1.87.3 Ok, I found the problem. More this method shows the query in console ok? More this do not send virtual field to crud methods

[web2py] How to create fields with links and events in jqgrid?

2010-10-20 Thread Savio Sabino
Hello again. I have a new question. The current way of using jqgrid is with plugin_wiki? Even in the view or controller? How would I do to implement a grid like this: Table user id, name, email, money, deposit, withdraw The id field must have a link for editing the user. Add and drop fields

[web2py] Re: How to create fields with links and events in jqgrid?

2010-10-20 Thread Savio Sabino
newbie to web2py (I think it already has to see it) and running of java and .net. On Oct 20, 11:18 am, mdipierro mdipie...@cs.depaul.edu wrote: In model: db.table.field.represent=lambda value:A('click me',_href=value)) and this will be used by jqgrid On Oct 20, 6:41 am, Savio Sabino savi

[web2py] Re: How to create fields with links and events in jqgrid?

2010-10-20 Thread Savio Sabino
going to test. Thanks. On Oct 20, 11:40 am, mdipierro mdipie...@cs.depaul.edu wrote: I never tried but you can try define virtualfields: http://www.web2py.com/book/default/chapter/06?search=virtualfield and they should appear in jqgrid On Oct 20, 9:35 am, Savio Sabino savi...@gmail.com wrote

[web2py] What is default or best datagrid? Webgrid or Jqgrid?

2010-10-19 Thread Savio Sabino
Hi. What is best choose to use datagrid in web2py? Webgrid or jqgrid? What the comparision be do with this tools? Or is the best use the two to interoperate? If is this, how?

[web2py] Re: What is default or best datagrid? Webgrid or Jqgrid?

2010-10-19 Thread Savio Sabino
:37 am, Savio Sabino savi...@gmail.com wrote: Hi. What is best choose to use datagrid in web2py? Webgrid or jqgrid? What the comparision be do with this tools? Or is the best use the two to interoperate? If is this, how?

[web2py] Re: Web2py like clone in Java?

2010-10-15 Thread Savio Sabino
You can see the alternatives to agile frameworks in Java: Grails; Spring Roo; Scooter Framework; Play Framework; Next Framework. But none compares to Python Web Frameworks or Rails in respect to simplicity, amount of features and the maturity in the field of agile frameworks. And I think beyond