[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, db.category.

[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 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

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

2010-12-13 Thread Savio Sabino
d a custom widget. > > But, if you need multi file upload there > is:http://web2pyslices.com/main/slices/take_slice/103 > > 2010/12/13 Savio Sabino > > > Have a mode to do this work? Or a other solution? > > -- > > Bruno Rochahttp://about.me/rochacbruno/bio

[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: What is missing for the virtual field work?

2010-10-26 Thread Savio Sabino
Hello everybody. Please, anybory know a alternative or workaround to do this work? And Sorry by my bad english. On Oct 21, 5:17 pm, Savio Sabino wrote: > And reading the model of plugin_wiki I see that in def jqgrid the > parameters and you doc are divergent in fields -> columns and >

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

2010-10-21 Thread Savio Sabino
ow I see the problem... need to think about 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 wrote: > > > The version is 1.87.3 > > Ok, I found the problem. > > More this met

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

2010-10-21 Thread Savio Sabino
;                 ) > class VirtualFields: >     def prodEnt(self): >         return self.produto.quant_min * 2 > db.produto.virtualfields.append(VirtualFields()) > db.produto.insert(nome='book',quant_min=5) > for row in db(db.produto).select(): >     print row.nome, row.prodEnt > > It works

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

2010-10-21 Thread Savio Sabino
#x27;,default=0), Field('quant_min','integer',default=0) ) More, this do no have effect. On Oct 21, 11:37 am, Savio Sabino wrote: > Ops, sorry. Desconsider this. I used google translate because I > develop in Portugu

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

2010-10-21 Thread Savio Sabino
builtindict: * key: 'quant_min' Creatin a new app test with the model: db.define_table('produto', Field('nome','string'), Field('quant','integer',default=0), Field('quant_min'

[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: 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 wrote: > Hello. > I did the following test with virtual fields: > > db.define_table('product', >                 Fie

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

2010-10-21 Thread Savio Sabino
gt; > http://www.web2py.com/book/default/chapter/06?search=virtualfield > > and they should appear in jqgrid > > On Oct 20, 9:35 am, Savio Sabino wrote: > > > Thanks this is nice solution. And very thanks for the great > > framework. > > > And now... How do I add

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

2010-10-20 Thread Savio Sabino
t. Now I'm going to test. Thanks. On Oct 20, 11:40 am, mdipierro 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 wrote

[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 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 S

[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 sho

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

2010-10-19 Thread Savio Sabino
Ok. Thanks for you explanation. On Oct 19, 11:22 am, "mr.freeze" wrote: > I would say jqGrid is definitely better.  I wrote WebGrid because I > needed something that didn't require javascript.  jqGrid has more > features, an excellent API and is better supported. >

[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: 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