[web2py] Re: response.js leads to error

2015-01-06 Thread ArtDijk
I tweaked a bit and problem is gone...(for the time) Op zaterdag 3 januari 2015 19:30:31 UTC+1 schreef Anthony: Your code doesn't show any use of response.js. In any case, what leads you to believe response.js is related to the problem? -- Resources: - http://web2py.com -

[web2py] Reload .load file

2015-01-06 Thread Gael Princivalle
Hello all. In a .load file I have some products. When the user click on one of them I would like to reload the .load file with the product id, for showing only this product. If I do like that: a href={{=URL('products_controller', 'products_function', extension=False,

Re: [web2py] Re: Domain model and web2py DAL

2015-01-06 Thread Alan Evangelista
In DAL it can be done like one single command: db.define_table('my_items', Field('name', 'string', length=100), Field('description', 'string', length=400), Field('priority', 'integer'), Field('creator_id', 'reference user'), Field('dept_id',

[web2py] Re: Reload .load file

2015-01-06 Thread Anthony
http://web2py.com/books/default/chapter/29/12/components-and-plugins#Trapped-Ajax-links-and-the-A-Helper On Tuesday, January 6, 2015 8:26:10 AM UTC-5, Gael Princivalle wrote: Hello all. In a .load file I have some products. When the user click on one of them I would like to reload the .load

Re: [web2py] Re: Domain model and web2py DAL

2015-01-06 Thread Anthony
Can you provide an example of a request that involves the kind of synchronization you are looking for? On Tuesday, January 6, 2015 7:23:48 AM UTC-5, Alan Evangelista wrote: In DAL it can be done like one single command: db.define_table('my_items', Field('name', 'string',

[web2py] Re: Reload .load file

2015-01-06 Thread Gael Princivalle
Thanks a lot Anthony, and sorry in fact the answer was in the online documentation. Il giorno martedì 6 gennaio 2015 15:32:10 UTC+1, Anthony ha scritto: http://web2py.com/books/default/chapter/29/12/components-and-plugins#Trapped-Ajax-links-and-the-A-Helper On Tuesday, January 6, 2015

Re: [web2py] Re: Rocket // HTTP 400 Bad Request - Body is incomplete

2015-01-06 Thread Derek
Just a question, Amon, do you need to use Rocket, or can you use anyserver.py and try something like greenlets? On Saturday, January 3, 2015 4:56:54 PM UTC-7, Louis Amon wrote: I've tested the native error handler (working fine) versus my custom error handler (generating HTTP 400 error +

Re: [web2py] Re: Rocket // HTTP 400 Bad Request - Body is incomplete

2015-01-06 Thread Derek
Yeah, this is strange, I wonder why Rocket reports it's version as 1.2.6 when the latest version of Rocket is 1.2.4? On Monday, December 29, 2014 11:19:55 AM UTC-7, Louis Amon wrote: This is the request received by my ticket handler (I removed some big chunks so that it's readable):

[web2py] Re: javascript problem (in load called via response js)

2015-01-06 Thread Derek
make sure it's loading jqx. It doesn't appear to be. did you put it in a folder 'js' inside the static files? mixing javascript and web2py's templating system should be discouraged if it's not already. It's bad practice to have web2py write your javascript for you. it may be that the mix

[web2py] Re: javascript problem (in load called via response js)

2015-01-06 Thread Derek
make sure it's loading jqx. It doesn't appear to be. did you put it in a folder 'js' inside the static files? mixing javascript and web2py's templating system should be discouraged if it's not already. It's bad practice to have web2py write your javascript for you. it may be that the mix

Re: [web2py] Re: Rocket // HTTP 400 Bad Request - Body is incomplete

2015-01-06 Thread Derek
You are running this on a Mac OSX server? Python has issues with this kind of thing a long time and there is no fix. On Saturday, January 3, 2015 4:56:54 PM UTC-7, Louis Amon wrote: I've tested the native error handler (working fine) versus my custom error handler (generating HTTP 400 error

[web2py] Re: Please help us test the 2.9.12 binaries

2015-01-06 Thread JorgeH
Is there a changelog? On Tuesday, January 6, 2015 12:37:59 PM UTC-5, Massimo Di Pierro wrote: The 2.9.12 source is in http://web2py.com/examples/static/nightly/web2py_src.zip The 2.9.12 binaries are in http://web2py.com/examples/static/nightly/web2py_win.zip

[web2py] Re: Please help us test the 2.9.12 binaries

2015-01-06 Thread Massimo Di Pierro
I will post a changelog after we know it works. I have re-posted it. Massimo On Tuesday, 6 January 2015 14:10:10 UTC-6, JorgeH wrote: Is there a changelog? On Tuesday, January 6, 2015 12:37:59 PM UTC-5, Massimo Di Pierro wrote: The 2.9.12 source is in

[web2py] Re: New Powered by site - advertise your work

2015-01-06 Thread Massimo Di Pierro
When people submit sites they may submit some metadata. It shows when you mouseover. Some metadata was in the language of the site which made it useless. I am not sure it is the purpose of this site to do it. We do not want to have to maintain that. I am thking about a simple tagging system

[web2py] Re: error handling: Record doesn't exist

2015-01-06 Thread Alex Glaros
I had the same record up at the same time in both browsers. So browser 2 had the page up and was looking at the record. I deleted the record from browser 1 while it was currently up on browser 2. Browser 2 had no way of knowing where to go after record was deleted. The record created a

[web2py] Re: Web2py query relevance rank

2015-01-06 Thread Massimo Di Pierro
No. :-( On Tuesday, 6 January 2015 12:23:49 UTC-6, Ruud Schroen wrote: Hi all, I have this raw sql which I execute: val = what the user enters in the searchbar sql_statement = SELECT pid, title, description, created_on, slug FROM (SELECT

[web2py] error handling: Record doesn't exist

2015-01-06 Thread Alex Glaros
let's say I bring up the same record on two browsers from browser 1, I delete the record browser 2 trys to display the record but shows type 'exceptions.AttributeError' how to write error handling for that? thanks Alex Glaros -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] How to do one-to-many selection for all records in the most efficient way?

2015-01-06 Thread Przemysław Loesch
Hallo! Lets say we have a table called 'cities' and another one called 'institutions' with a field referencing to cities: db.define_table('cities', Field('name')) db.define_table('institutions', Field('name'), Field('city', 'reference cities') Field('type', 'reference types'))

[web2py] Re: error handling: Record doesn't exist

2015-01-06 Thread Massimo Di Pierro
What's the code. this is most likely a user's error. The SQLFORM should not generate this error. On Tuesday, 6 January 2015 16:00:46 UTC-6, Alex Glaros wrote: let's say I bring up the same record on two browsers from browser 1, I delete the record browser 2 tries to display the record but

[web2py] FORM or SQLFORM

2015-01-06 Thread Steve
Goodevening, I am a newby with web2py and i am struggeling how to start with a specific Form ( do i use Form or SQLFORM ) What i would like to do is build a page with some different imput fields ( see below) and after selecting i would like to have a confirm button ( which in a later state

[web2py] Re: New Powered by site - advertise your work

2015-01-06 Thread Derek
Looks good. I'd love to see a bit of metadata added to the websites. For example, I see some great sites, but when I click on them, I can't speak the language (German or Spanish or Portuguese). It would be nice to group them by language at a minimum. On Friday, January 2, 2015 6:44:47 AM

Re: [web2py] Re: Rocket // HTTP 400 Bad Request - Body is incomplete

2015-01-06 Thread Massimo Di Pierro
The version of rocket that ships with web2py is 1.2.6. But what version of web2py are you using. What is the controller in question? On Tuesday, 6 January 2015 13:03:52 UTC-6, Derek wrote: Yeah, this is strange, I wonder why Rocket reports it's version as 1.2.6 when the latest version of

Re: [web2py] Please help us test the 2.9.12 binaries

2015-01-06 Thread Kiran Subbaraman
Downloaded this:, and extracted to disk. Run web2py.exe, and see this: C:\Users\subbaraman\Downloads\web2py_win_001\web2pyweb2py.exe Traceback (most recent call last): File string, line 6, in module File __main__.py, line 128, in module File __main__web2py__.py, line 18,

Re: [web2py] Please help us test the 2.9.12 binaries

2015-01-06 Thread Kiran Subbaraman
Downloaded this: http://web2py.com/examples/static/nightly/web2py_win.zip, and extracted to disk. Run web2py.exe, and see this: C:\Users\subbaraman\Downloads\web2py_win_001\web2pyweb2py.exe Traceback (most recent call last): File string, line 6, in module File __main__.py,

Re: [web2py] Re: Please help us test the 2.9.12 binaries

2015-01-06 Thread Kiran Subbaraman
SRC seems to work ok now. I haven't deployed a working application on it to test it. WIN starts, but shows an error: Traceback(most recent call last): Filegluon/restricted.py,line224,inrestricted FileC:/Users/subbaraman/Downloads/web2py_win/web2py/applications/welcome/models/db.py

[web2py] Re: Please help us test the 2.9.12 binaries

2015-01-06 Thread Massimo Di Pierro
OK. One more try. The problems with SRC and OSX versions are fixed. How about the WIN version? The GTK widget of the OSX version seems very slow on my Mac. I cannot figure out if it is a local problem or a more general one. On Tuesday, 6 January 2015 11:37:59 UTC-6, Massimo Di Pierro wrote:

[web2py] Re: How to do one-to-many selection for all records in the most efficient way?

2015-01-06 Thread Dave S
On Tuesday, January 6, 2015 1:09:05 PM UTC-8, Przemysław wrote: Hallo! Hello! Partial response below ... Lets say we have a table called 'cities' and another one called 'institutions' with a field referencing to cities: db.define_table('cities', Field('name'))

[web2py] javascript problem (in load called via response js)

2015-01-06 Thread ArtDijk
Via a response after a form selection I call: response.js = jQuery(web2py_component('%s','graph3')) % ( URL('graphs', 'graph3') ) then in: def graph3(): left out some code ... ... json format is tested and OK ... df_drill_asr_to_json = df_drill_asr.to_json(orient='records',

[web2py] Re: Request Password not working correct

2015-01-06 Thread Dave S
On Monday, January 5, 2015 10:31:40 PM UTC-8, Ramashish Gaurav wrote: Thanks Dave, I will take your valuable advice but I still need to debug it. Can you (and someone) please help me about it. I won't be much help with the next step, because auth isn't in my skill set yet. (internal

[web2py] Re: Python-Docx Split Between Controller and View

2015-01-06 Thread Massimo Di Pierro
Just looking at your test5 document is unused (why do you need this object)? output is a StringIO but you never write anything in it. You call both response.write(output.getvalue()) and return output.getvalue(). I think you only want the latter. I think this: attachment; filename=Comparable

[web2py] Re: response.js leads to error

2015-01-06 Thread Dave S
On Tuesday, January 6, 2015 4:21:22 AM UTC-8, ArtDijk wrote: I tweaked a bit and problem is gone...(for the time) Scary thought: we don't know what caused it or what fixed it. Keeping my fingers crossed for you. /dps Op zaterdag 3 januari 2015 19:30:31 UTC+1 schreef Anthony: Your

[web2py] Re: Is the .select(cache.x) cleared automatically upon expiration?

2015-01-06 Thread Derek
No, there's nothing going on in the background unless something is processing. It will check as soon as a new request comes in that references the cache, it will review the expiration date of the cached item before using it. On Monday, January 5, 2015 6:27:29 PM UTC-7, Robin Manoli wrote:

Re: [web2py] Re: pagination issue redirecting to the current page

2015-01-06 Thread Joe
Michele, Thanks so much for this. I tried to remove the select action and change the view as suggested but that wasn't working. So, I experimented with the redirect from the select action to the index a couple of times. I removed the request.vars.id, from the redirect and now it's working!

[web2py] Re: routes_app

2015-01-06 Thread Dmitry Ermolaev
routes_in = ( (r'/', r'/bs3b/default/index'), (r'/about', r'/bs3b/default/about'), (r'/what', r'/bs3b/default/what'), (r'/download', r'/bs3b/default/download'), (r'/support', r'/bs3b/default/support'), (r'/$anything', r'/bs3b/$anything'), ) routes_out = [(x, y) for (y, x) in routes_in] my app is

Re: [web2py] Please help us test the 2.9.12 binaries

2015-01-06 Thread Richard Vézina
Does not boot up!! Richard On Tue, Jan 6, 2015 at 12:37 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: The 2.9.12 source is in http://web2py.com/examples/static/nightly/web2py_src.zip The 2.9.12 binaries are in http://web2py.com/examples/static/nightly/web2py_win.zip

[web2py] Re: Request Password not working correct

2015-01-06 Thread Derek
I prefer 'Fossil' myself, having ticketing and a wiki and a single binary as your source control makes everything super easy. Plus, it's what the sqlite people use for their source control. http://fossil-scm.org/index.html/doc/tip/www/index.wiki That said, the problem at hand is that it's not

[web2py] Re: Reload .load file

2015-01-06 Thread Dmitry Ermolaev
try .html extension instead .load вторник, 6 января 2015 г., 16:26:10 UTC+3 пользователь Gael Princivalle написал: Hello all. In a .load file I have some products. When the user click on one of them I would like to reload the .load file with the product id, for showing only this product.

[web2py] Please help us test the 2.9.12 binaries

2015-01-06 Thread Massimo Di Pierro
The 2.9.12 source is in http://web2py.com/examples/static/nightly/web2py_src.zip The 2.9.12 binaries are in http://web2py.com/examples/static/nightly/web2py_win.zip http://web2py.com/examples/static/nightly/web2py_osx.zip Please help us test them so we can released 2.9.12. 2.9.12 includes

[web2py] Web2py query relevance rank

2015-01-06 Thread Ruud Schroen
Hi all, I have this raw sql which I execute in my query: sql_statement = SELECT id, title, description, created_on, slug FROM (SELECT infobank_article.id as id, infobank_article.title as title,