[web2py] Re: I keep getting the error: invalid literal for int() with base 10: 'Plumber'

2011-08-16 Thread Jarrod Cugley
I have to use some form of autocomplete input instead of a drop down because there will be a lot of titles, like hundreds, so it would be easier to have people type and have it auto corrected. I'm still unsure why this code, would return the error: ValueError: invalid literal for int() with base

[web2py] Re: weird errors about not finding classes / objects when multiple simultaneous requests from different browsers/sessions.

2011-08-16 Thread Massimo Di Pierro
But I just want to make sure: are the environments created by web2py fully independent in every single web request (even with multiple concurrent requests) ?. yes

[web2py] auth.accessible_query(...)

2011-08-16 Thread Marin
Hi, there is a bug in documentation, http://web2py.com/book/default/chapter/08#Authorization rows = db(accessible_query('read', db.mytable, user_id))\ .select(db.mytable.ALL) should be: rows = db(auth.accessible_query('read', db.mytable, user_id))\ .select(db.mytable.ALL) Also, I

[web2py] Re: Ace now powering GitHub edit

2011-08-16 Thread Massimo Di Pierro
should we replace editarea? On Aug 15, 3:59 pm, pbreit pbreitenb...@gmail.com wrote: https://github.com/blog/905-edit-like-an-ace

[web2py] Re: migrate file system uploads to database?

2011-08-16 Thread Massimo Di Pierro
normally: Field('name','upload'),... to upload to db Field('name','upload',uploadfield=myblob),Field('myblob','blob',default=''),... or just Field('name','upload',uploadfield=myblob),... as this is implicit: Field('myblob','blob',default='') On Aug 15, 8:10 pm, Mothmonsterman

[web2py] Re: can I turn off the auto back-references?

2011-08-16 Thread Massimo Di Pierro
Look into dal.py this is added in: if not referee_table in colset: colset[referee_table] = Set(db, s == id) For now you can just comment these two lines. we could add a switch. One time I thought about if not

[web2py] Re: Speeding up model execution for large models

2011-08-16 Thread Massimo Di Pierro
I would suggest you move some tables to conditional models. If you have a lot of Field(,requires=IS_NO_EMPTY()) you can ne = IS_NO_EMPTY() and then reuse the same object Field(,requires=ne) You can do this for all validators. Set defaults in controllers if complex. you may want to do

[web2py] Re: Ace now powering GitHub edit

2011-08-16 Thread Saurabh Sawant
Yes. It has Vi keybindings too it seems.

[web2py] ajax function returns None

2011-08-16 Thread Martin Weissenboeck
Hi, I have tried the example from chapter 10.3 The ajax Function Controller: def one(): return dict() def echo(): return request.vars.name one.html: {{extend 'layout.html'}} form input id=name onkeyup=ajax('echo',['name'], 'target') / /form div id=target/div No success, because the

[web2py] Re: Birth Date

2011-08-16 Thread guruyaya
Which means web2py is celebrating it's 4th birthday this month. I say we should celebrate. Tommorow, every single one of us has to eat cake. On Aug 15, 7:44 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: The first version was written in August 2007. It was made public on Oct 1, 2007.

[web2py] Re: Can seem to get JanRain to work...

2011-08-16 Thread dhmorgan
it looks like Janrain expected to interact with 'https:...' and your browser was pointed to 'http:...' On Aug 15, 2:06 pm, Jason Brower encomp...@gmail.com wrote: Is there any restriction of using the system on localhost? I feel I have entered all the data in correctly.  But it still seems to

Re: [web2py] Re: Birth Date

2011-08-16 Thread Ramaseshan Ramachandran
Great going. I enjoy development using web2py. In my 25 years of coding and several frameworks, I found to be the best. On Mon, Aug 15, 2011 at 10:14 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: The first version was written in August 2007. It was made public on Oct 1, 2007. This

[web2py] one2many DB, delete() deleteing sons ?

2011-08-16 Thread TomPliss
Hey guys, (newbie here) I'm working on a batabase, with many one2many relationship. exemple : labs have equipments, which have devices. and contracts have equipments too (as they are maintenance contracts). the problem is : if I delete a contract, every equipments which refers to it is

[web2py] Re: Ace now powering GitHub edit

2011-08-16 Thread Massimo Di Pierro
If somebody sends me a patch I will take a look. On Aug 16, 6:29 am, Saurabh Sawant ris...@gmail.com wrote: Yes.  It has Vi keybindings too it seems.

[web2py] Re: ajax function returns None

2011-08-16 Thread Massimo Di Pierro
Try input name=name onkeyup=ajax('echo',['name'], 'target') / I think this is typo in the book. On Aug 16, 6:53 am, Martin Weissenboeck mweis...@gmail.com wrote: Hi, I have tried the example from chapter 10.3 The ajax Function Controller: def one():     return dict() def echo():    

[web2py] Re: one2many DB, delete() deleteing sons ?

2011-08-16 Thread Massimo Di Pierro
I think... Field(...,'reference something',ondelete='ignore') I am not sure whether this change will trigger a migration of not. Give it a try. You may have to reset the database. Please let us know if this solved the problem. On Aug 16, 4:06 am, TomPliss tompl...@gmail.com wrote: Hey guys,

[web2py] book translations

2011-08-16 Thread Massimo Di Pierro
The online book is not fully multi language. The language is set by your browser preferences The title indicates which language you are looking at: web2py Book(en) Only en and it translations exist. es, pt, de, ch, jp translations have been enabled. Register and email me to become an editor and

Re: [web2py] Re: please help me test new form API

2011-08-16 Thread Richard Vézina
Hello, Since process() not require request.vars and session does it make things faster? And if so, could it be percetible? Thanks Richard On Mon, Aug 15, 2011 at 3:56 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I agree with you that having three ways to do the same thing is not

[web2py] Re: downloads

2011-08-16 Thread peter
Thanks for your informative responses Anthony. I will do some exploring when I get a chance. The URL I gave in the example happens behind the scenes, so it does not get displayed to the user. But your comments about security are useful. Peter On Aug 15, 7:08 pm, Anthony abasta...@gmail.com

[web2py] Re: downloads

2011-08-16 Thread Anthony
On Tuesday, August 16, 2011 9:41:17 AM UTC-4, peter wrote: The URL I gave in the example happens behind the scenes, so it does not get displayed to the user. That's good, but note that an attacker could look at your HTML/Javascript source code or watch the outgoing requests from your

Re: [web2py] Re: please help me test new form API

2011-08-16 Thread Anthony
It still uses request.vars and session -- it just doesn't require you to explicitly pass them as arguments (if you don't pass them, it uses current.session and current.request.post_vars). Anthony On Tuesday, August 16, 2011 9:10:40 AM UTC-4, Richard wrote: Hello, Since process() not

[web2py] Re: weird errors about not finding classes / objects when multiple simultaneous requests from different browsers/sessions.

2011-08-16 Thread Carlos
Great to know, thanks Massimo for (re-)confirming this. I'll share more information about these problems as soon as I can. Take care, Carlos

[web2py] Re: auth.accessible_query(...)

2011-08-16 Thread Anthony
On Tuesday, August 16, 2011 4:21:37 AM UTC-4, Marin wrote: Hi, there is a bug in documentation, http://web2py.com/book/default/chapter/08#Authorization rows = db(accessible_query('read', db.mytable, user_id))\ .select(db.mytable.ALL) should be: rows =

Re: [web2py] book translations

2011-08-16 Thread Richard Vézina
I can help with French. Richard On Tue, Aug 16, 2011 at 9:03 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: The online book is not fully multi language. The language is set by your browser preferences The title indicates which language you are looking at: web2py Book(en) Only en

[web2py] Re: Insert not working on Keyed Table

2011-08-16 Thread DenesL
Fixed in trunk. Please test.

[web2py] Re: one2many DB, delete() deleteing sons ?

2011-08-16 Thread TomPliss
Have jsut tested: it works ! (without resetting the DB). Thanks ! On Aug 16, 2:35 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I think... Field(...,'reference something',ondelete='ignore') I am not sure whether this change will trigger a migration of not. Give it a try. You

[web2py] Re: can I turn off the auto back-references?

2011-08-16 Thread Carlos
Hi Massimo, What about having a new 'referee_prefix' var in DAL, which defaults to empty string, and replacing: colset[referee_table] = Set(db, s == id) with: colset[*referee_prefix+*referee_table] = Set(db, s == id) And then just have a way to override this 'referee_prefix' value as

[web2py] Re: Call web2py from a microcontroller

2011-08-16 Thread Ross Peoples
The screenshot makes it pretty clear that it can't find the view: default/count.json. If you are expecting a generic view to take over instead, you will need to go into your db.py model and change this line: response.generic_patterns = ['*'] if request.is_local else [] to:

[web2py] Re: Call web2py from a microcontroller

2011-08-16 Thread Ross Peoples
I should probably clarify why this is happening. The line I mentioned checks to see if the client is running on the localhost (i.e. the web browser running on the same machine as the web2py server). If it is, then web2py is authorized to use a generic view to respond to the request if a view

[web2py] Re: book translations

2011-08-16 Thread Anthony
On Tuesday, August 16, 2011 11:45:12 AM UTC-4, DenesL wrote: Submitting changes does not update the book. Anybody else having the same issue?. Good catch -- I thought I made a change earlier, but looks like it didn't update. Anthony

Re: [web2py] Re: ajax function returns None

2011-08-16 Thread Martin Weissenboeck
Now I have tried: {{extend 'layout.html'}} form input name=name onkeyup=ajax('echo',['name'], 'target') / /form div id=target/div Sorry, same result: None echo is called, but request.vars does not contain any value. Martin 2011/8/16 Massimo Di Pierro massimo.dipie...@gmail.com Try input

[web2py] little admin improvement

2011-08-16 Thread Richard
Hello, Consider this little change at admin app line 1195 of default controller under 1.98.2 : def update_languages(): Update available languages app = get_app() update_all_languages(apath(app, r=request)) session.flash = T('Language files (static strings) updated')

Re: [web2py] [SOLVED] Call web2py from a microcontroller

2011-08-16 Thread Angelo Compagnucci
You are absolutely right! I'm aware of the generic view issue, but I've completely forgotten! Thank you very much for your help! 2011/8/16 Ross Peoples ross.peop...@gmail.com: I should probably clarify why this is happening. The line I mentioned checks to see if the client is running on the

[web2py] Re: book translations

2011-08-16 Thread DenesL
Submitting changes does not update the book. Anybody else having the same issue?.

Re: [web2py] little admin improvement

2011-08-16 Thread Anthony
On Tuesday, August 16, 2011 12:09:45 PM UTC-4, Richard wrote: Hello, Consider this little change at admin app line 1195 of default controller under 1.98.2 : def update_languages(): Update available languages app = get_app() update_all_languages(apath(app, r=request))

Re: [web2py] little admin improvement

2011-08-16 Thread Richard Vézina
Ok, I was really sad I can't figure out how to make it works... It works now. Richard On Tue, Aug 16, 2011 at 12:18 PM, Anthony abasta...@gmail.com wrote: On Tuesday, August 16, 2011 12:09:45 PM UTC-4, Richard wrote: Hello, Consider this little change at admin app line 1195 of default

Re: [web2py] little admin improvement

2011-08-16 Thread Richard Vézina
Will you add the mod to admin app? Richard On Tue, Aug 16, 2011 at 12:20 PM, Anthony abasta...@gmail.com wrote: On Tuesday, August 16, 2011 12:18:53 PM UTC-4, Anthony wrote: In URL(), args and vars are url encoded. Instead, use the anchor argument:

[web2py] How to insert icons into a column of a table created using SQLTABLE()

2011-08-16 Thread Valter Foresto
I'm using SQLTABLE() into a controller to generate a table for the next view. A column of the table report only few states (text) that can might be better represented using small, 16x16 or 32x32, images. It is possible to insert icons, instead of text, into a table column and then pass the

[web2py] Re: Speeding up model execution for large models

2011-08-16 Thread Jay
Massimo, Would it be possible to only load db.py if it has changed and when changed generate a python object that is the db, and save/load it as required? I know it would work, But would it be too slow? Slower then running all of db.py. I am looking at using web2py to write a small ERP like

Re: [web2py] little admin improvement

2011-08-16 Thread Anthony
On Tuesday, August 16, 2011 12:18:53 PM UTC-4, Anthony wrote: In URL(), args and vars are url encoded. Instead, use the anchor argument: URL('design',args=app,anchor='#languages') Sorry, that should be: URL('design',args=app,anchor='languages') It will add the '#' for you.

Re: [web2py] Re: ajax function returns None

2011-08-16 Thread Martin Weissenboeck
Sorry, my mistake... It works! There has been a file one.html and another file one.html.bak The editor opens one.html.bak (why?), but web2py uses one.html (of course!) Thnak you very much! 2011/8/16 Martin Weissenboeck mweis...@gmail.com Now I have tried: {{extend 'layout.html'}} form

[web2py] Noob question

2011-08-16 Thread Furqan Rauf
Hey guys, I have another noob question just came to my mind while reading some online article. Web2py implements MVC logic just like .NET MVC3 right? so why companies shy away from using small frameworks as far as I am concern I believe Web2py is nice for small projects and simpler than .NET (just

[web2py] Re: please help me test new form API

2011-08-16 Thread Massimo Di Pierro
What do you think, should recommend using if form.process().accepted: over if form.accepts(request,session): The only benefit is more compact notation. On Aug 16, 8:53 am, Anthony abasta...@gmail.com wrote: It still uses request.vars and session -- it just doesn't require you

[web2py] Re: Speeding up model execution for large models

2011-08-16 Thread Massimo Di Pierro
The problem is not loading. The time is spend in execution. If there is a lot of logic in models and it is not conditional it must be executed. On Aug 16, 10:58 am, Jay jkel...@gmail.com wrote: Massimo,  Would it be possible to only load db.py if it has changed and when changed generate a

[web2py] Re: please help me test new form API

2011-08-16 Thread Ross Peoples
The compact will also reduce some mistakes. If you forget session, you can't use CSRF. So really, using form.process() assists in ensuring the security of the form.

[web2py] Re: book translations

2011-08-16 Thread Massimo Di Pierro
can you try now? On Aug 16, 11:05 am, Anthony abasta...@gmail.com wrote: On Tuesday, August 16, 2011 11:45:12 AM UTC-4, DenesL wrote: Submitting changes does not update the book. Anybody else having the same issue?. Good catch -- I thought I made a change earlier, but looks like it didn't

[web2py] Re: can I turn off the auto back-references?

2011-08-16 Thread Carlos
Hi Massimo, It seems to be working great - thanks!, Carlos

[web2py] Re: little admin improvement

2011-08-16 Thread Massimo Di Pierro
sure. in trunk. thanks! On Aug 16, 11:29 am, Richard Vézina ml.richard.vez...@gmail.com wrote: Will you add the mod to admin app? Richard On Tue, Aug 16, 2011 at 12:20 PM, Anthony abasta...@gmail.com wrote: On Tuesday, August 16, 2011 12:18:53 PM UTC-4, Anthony wrote: In URL(),

Re: [web2py] Re: Noob question

2011-08-16 Thread Furqan Rauf
great answer, and your comment about developing ERP in web2py says it all I am totally wowed how powerful it is I learned python when I started my college and every employer I talk to since was about Java or C# .NET etc and I totally neglected python until I was introduced to Django and now web2py

[web2py] Re: Speeding up model execution for large models

2011-08-16 Thread Ross Peoples
If I recall correctly, from my testing, the model is only really loaded once the first time the app is accessed. So Massimo is correct that loading is not the issue. The issue is that the model needs to be executed for every request, so breaking your models up will really help with this. Also,

[web2py] Re: Speeding up model execution for large models

2011-08-16 Thread Massimo Di Pierro
The model is loaded at every request. Instead of this if request.controller == 'mail' or request.controller == 'address_book':     db.define_table('contact',         Field('name'),             ) you can just put this     db.define_table('contact',         Field('name'),        

[web2py] DAL query - GAE local

2011-08-16 Thread ram
This following code segment displays the first row from the table in the view correctly when run using ./web2py. It returns None when run in GAE development environment. What's wrong with this code? Controller: def print_status(): row = db().select(db.Statuses.ALL).first() return

[web2py] Re: Speeding up model execution for large models

2011-08-16 Thread Ross Peoples
I didn't know could share a model file between two controllers by simply adding another folder. That's pretty cool and magic like. Would this work with a third controller as well? Like if you have 'address_book', 'mail', and 'calendar' controllers all needing to access a single model by doing

[web2py] Re: Speeding up model execution for large models

2011-08-16 Thread Massimo Di Pierro
all files in models/a/ are executed only for actions in controllers/a.py all files in models/a/b/ are executed only for actions b() in controllers/a.py this is for every a and b. On Aug 16, 1:14 pm, Ross Peoples ross.peop...@gmail.com wrote: I didn't know could share a model file between

[web2py] Re: DAL query - GAE local

2011-08-16 Thread Massimo Di Pierro
Nothing. first() returns None if there is no first record. Try     row = db().select(db.Statuses.ALL).first() or 'nothing to see here' On Aug 16, 1:09 pm, ram ramasesh...@gmail.com wrote: This  following code segment displays the first row from the table in the view correctly when run using

[web2py] Re: Speeding up model execution for large models

2011-08-16 Thread Ross Peoples
So then my previous example for having two controllers access the same model is still valid?

[web2py] Re: book translations

2011-08-16 Thread Anthony
The markmin is successfully updating, but the rendered HTML is remaining the same. Is it a caching issue? Anthony On Tuesday, August 16, 2011 1:32:13 PM UTC-4, Massimo Di Pierro wrote: can you try now? On Aug 16, 11:05 am, Anthony abas...@gmail.com wrote: On Tuesday, August 16, 2011

[web2py] XMPP chat client

2011-08-16 Thread Fernando Macedo
Hello all, I'm trying to figure out how to implement a xmpp chat bot to run some intranet queries and return those data. Like add the bot as friend on Google Talk, and ask him a 'list employees' command. I'd like to use the built-in server (not in gae). Is there an easy way to get this working?

[web2py] MSSQL Field Name: file is not allowed

2011-08-16 Thread Omi Chiba
I just want to share my experience which takes hours to figure out. I was reading web2py book - 03 Overview - An Image Blog, it worked fine with SQLite and tried to use mssql server on my local PC which is also the new experience to me... Replaced the DAL for sqlite with mssql db =

[web2py] Re: Speeding up model execution for large models

2011-08-16 Thread pbreit
I wonder if conditional model loading would be best performed with either decorators or, dare I say it, importing (if either is even possible)?

[web2py] Re: MSSQL Field Name: file is not allowed

2011-08-16 Thread Anthony
On Tuesday, August 16, 2011 3:43:41 PM UTC-4, Omi Chiba wrote: I just want to share my experience which takes hours to figure out. I was reading web2py book - 03 Overview - An Image Blog, it worked fine with SQLite and tried to use mssql server on my local PC which is also the new

[web2py] Re: Speeding up model execution for large models

2011-08-16 Thread Massimo Di Pierro
Decorators will only make thinks worse (because all decorators in the same controller are still executed at ever request for any function in the controller). importing should speed things a bit (i.e. move the db.define_table in a function called in a module, importing the module, calling the

[web2py] Re: {{web2py_conflict}}

2011-08-16 Thread Niphlod
another way to go is redefine delimiters of template. http://groups.google.com/group/web2py/browse_thread/thread/40e0d80807e14000/be29ae833c5ef23a

[web2py] web2py server console print limit?

2011-08-16 Thread António Ramos
hello, does the server console has a limit in the amount of printed data? i have an application that every time it is acessed it prints to the console so i can see for debugging purposes who was logged and the queries they made,etc. Will the server hang with the amount of printed data? The

Re: [web2py] navbar missing space before bracket

2011-08-16 Thread Richard Vézina
Did this one commited too!! ;-) Richard On Mon, Aug 15, 2011 at 11:36 AM, Richard ml.richard.vez...@gmail.comwrote: Hello, Would you correct this little glitch (gluon tools.py line 1101) : Change : bar = SPAN(prefix,self.user.first_name,' [ ', logout, ']',_class='auth_navbar') For :

Re: [web2py] How to insert icons into a column of a table created using SQLTABLE()

2011-08-16 Thread Richard Vézina
The same way I do deletion with this function you can add stuff or replace stuff base on a if case on your differents text states... Not the best approach I think, but you can... def __del_sqltable_column(sqltable, column_name): For deleting a given column in an instance of web2py

[web2py] Re: dowloading attachments with AJAX

2011-08-16 Thread mart
Hi Mic! This is very interesting! :) how does it work? you have URL('gen_pdf'), what is that referencing? would you have a model/sample app that we could peek at? :) Thanks, Mart :) On Aug 15, 4:47 pm, Michele Comitini michele.comit...@gmail.com wrote: Suppose you want to make an AJAX call

[web2py] ajax Jquery code for button

2011-08-16 Thread IK
Hi, I'm trying to implement this jquery plugin http://collectivegarbage.wordpress.com/2011/06/22/abhorred-calendarhttp://collectivegarbage.wordpress.com/2011/06/22/abhorred-calendar/#respond, check the demo http://mithundaa.kodingen.com/ and github

[web2py] proper usage of exclusive_domain = True ?

2011-08-16 Thread vapirix
So I'm attempting to set up the usage scenario of: domain1.com - load app 1 domain2.com - load app 2 etc. etc. I need domain1 to NOT have access to app 2, 3, 4, 5, etc. That all works using the router's domain settings. Obviously you run into the problem of: domain1.com loads app1, but

[web2py] Re: migrate file system uploads to database?

2011-08-16 Thread Mothmonsterman
Thank you, Massimo. Web2py rocks! I saw what you are saying in the docs as how to setup the model for filesystem vs. db, but what I was wondering was how one would switch after the app has already been deployed and files are sitting in / uploads. Will updating the model move whats currently in

[web2py] Re: {{web2py_conflict}}

2011-08-16 Thread Massimo Di Pierro
you can pass delimiters=('left|','|right') to the gluon/remplate.py render function but you have to call it explicitly. I do not want to encourage it. It can only cause portability issues. On Aug 16, 4:24 pm, Niphlod niph...@gmail.com wrote: another way to go is redefine delimiters of template.

[web2py] Re: web2py server console print limit?

2011-08-16 Thread Massimo Di Pierro
Not that I know. On Aug 16, 4:45 pm, António Ramos ramstei...@gmail.com wrote: hello, does the server console has a limit in the amount of printed data? i have an application that every time it is acessed it prints to the console so i can see for debugging purposes who was logged and the

[web2py] Re: migrate file system uploads to database?

2011-08-16 Thread Massimo Di Pierro
I am afraid it will not move the files. You have to do that yourself. There should be a script to do it. Please open a ticket in google code. Massimo On Aug 16, 5:24 pm, Mothmonsterman p.e.fletc...@gmail.com wrote: Thank you, Massimo. Web2py rocks! I saw what you are saying in the docs as how

[web2py] custom form trouble

2011-08-16 Thread Bruno de Oliva Bemfica
Hi, I'm trying to make a customized login form and when I click the submit button, the screen just blink, but no response. I'm using cas auth. -- Bruno de Oliva Bemfica *Engenheiro de Software* MSN: brunocode...@live.com bruno.bemf...@hotmail.com Mobile: +55 11 8457-0978

[web2py] Re: custom form trouble

2011-08-16 Thread pbreit
Probably need to see the relevant controller and view code.

[web2py] Re: DAL query - GAE local

2011-08-16 Thread ram
Thanks for your response. My problem is there is a record in the database. While standalone returns a record, while in GAE environment, it returns none. On Aug 16, 11:40 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Nothing. first() returns None if there is no first record. Try     

[web2py] Re: custom form trouble

2011-08-16 Thread DenesL
Hi Bruno, not sure if this is the problem but I believe you can not have nested forms. Your view has: {{form.custom.begin}} div class=wrapLogin form action= enctype=multipart/form-data method=post and /form /div div class=copyrightLogin© 2011, Groupon Inc. Todos os direitos

Re: [web2py] Re: custom form trouble

2011-08-16 Thread Bruno de Oliva Bemfica
Thanks for answering, Denes. I included manually the form/form tags because it wasn't been generated by web2py. I thought it very strange, but I'll try again tomorrow(It's 00:33AM in Brazil and I just got home, lol). Thanks for helping me again. 2011/8/16 DenesL denes1...@yahoo.ca Hi Bruno,

Re: [web2py] Re: custom form trouble

2011-08-16 Thread Anthony
On Tuesday, August 16, 2011 11:35:40 PM UTC-4, Bruno Codeman wrote: Thanks for answering, Denes. I included manually the form/form tags because it wasn't been generated by web2py. I thought it very strange, but I'll try again tomorrow(It's 00:33AM in Brazil and I just got home, lol).

[web2py] Re: Insert not working on Keyed Table

2011-08-16 Thread Andrew
Thanks Denes, The Admin database administration inserts now work correctly, but my simple application form doesn't. I'll recheck my own app as there may be an issue there (It's my first one). On Aug 17, 3:18 am, DenesL denes1...@yahoo.ca wrote: Fixed in trunk. Please test.

[web2py] Re: Insert not working on Keyed Table

2011-08-16 Thread Andrew
Hi Again, I did infact change my controller while testing from form=SQLFORM(... to form=FORM( I've changed it back to SQLFORM and it all works great. Good job and thankyou for the quick response. Regards Andrew W On Aug 17, 3:18 am, DenesL denes1...@yahoo.ca wrote: Fixed in trunk.

[web2py] How to customize widget rendering in form

2011-08-16 Thread Noel Villamor
I have this for a field definition: Field('tags','list:reference tag',widget=SQLFORM.widgets.checkboxes.widget) I use crud and it renders the field as an html table, as shown below: table name=tags id=tag_tags class=listtbody trtdinput type=checkbox value=12 name=tagsbusiness/td/ tr trtdinput

Re: [web2py] How to customize widget rendering in form

2011-08-16 Thread Bruno Rocha
insert in any place before the crud creation (model or controller) crud.settings.formstyle = 'divs' On Wed, Aug 17, 2011 at 2:15 AM, Noel Villamor noe...@gmail.com wrote: I have this for a field definition: Field('tags','list:reference tag',widget=SQLFORM.widgets.checkboxes.widget) I use

Re: [web2py] How to insert icons into a column of a table created using SQLTABLE()

2011-08-16 Thread Bruno Rocha
use virtualfields for that. class Virtual(object) def my16pximage(self): return IMG(_src=URl(...)) db.table.virtualfields.append(Virtual()) table = SQLTABLE(db.table) On Tue, Aug 16, 2011 at 1:23 PM, Valter Foresto valter.fore...@gmail.comwrote: I'm using SQLTABLE()