Re: [web2py] Re: Still having trouble with format / foreign keys

2015-04-20 Thread Jim Steil
So this fix isn't in the web2py 2.10.4 beta that was built on 4/18? -Jim On Mon, Apr 20, 2015 at 4:55 PM, Niphlod niph...@gmail.com wrote: we're waiting for 2.10.4 including https://github.com/web2py/pydal/issues/135 On Monday, April 20, 2015 at 9:46:58 PM UTC+2, Jim S wrote: I posted in

[web2py] Re: Still having trouble with format / foreign keys

2015-04-20 Thread Niphlod
we're waiting for 2.10.4 including https://github.com/web2py/pydal/issues/135 On Monday, April 20, 2015 at 9:46:58 PM UTC+2, Jim S wrote: I posted in this thread https://groups.google.com/forum/#!topic/web2py/2i9zfAzG2s8 but posted after it was closed. Evidently, this is fixed but I'm

Re: [web2py] Re: Still having trouble with format / foreign keys

2015-04-20 Thread Jim S
Ok, finally figured out my problem. Back when pydal was first announced, I did a pip install of pydal. Subsequently, I did a clean install of web2py using git clone. Must have gotten my pydal stuff out of sync, or didn't update it. I used pip to uninstall pydal and then ran git submodule

[web2py] Re: Add field with button on SQLFORM

2015-04-20 Thread Edwood
You may start looking at this code http://www.web2pyslices.com/slice/show/1616/widget-select-or-add-option-ng and build your solution from there. On Friday, April 17, 2015 at 10:50:40 PM UTC-4, KevC wrote: Hi community! Good afternoon, my name is Kevin. I want to know if you could help

[web2py] Re: Last version of plugin_wiki?

2015-04-20 Thread Ben Lawrence
Can you please remove it from the book? http://www.web2py.com/books/default/chapter/34/12/components-and-plugins regards, Ben On Wednesday, April 8, 2015 at 6:10:13 AM UTC-7, Massimo Di Pierro wrote: A Paolo says. This is no longer support because almost all of the functionality of the plugin

[web2py] csv download problem from an SQLFORM.grid populated by an AJAX call

2015-04-20 Thread drmbded
I regularly use the SQLFORM.grid, does exactly what I need with very little effort. Recently I've been doing a lot more with AJAX to enhance how my pages look and feel. But when combining AJAX with the grid, my CSV downloads don't work as expected. In a simple page with only a combobox an

Re: [web2py] creating DAL from SQL file

2015-04-20 Thread Ron Chatterjee
Yes I did. I forgot to add. The extract_sqlite_models.py didn't work as expect. And that may be because I am not doing it right. Thats why I didn't mention. python extract_sqlite_models.py C:\Users\...\applications\my_application_name\databases\storage.sqlite Which generates the following

[web2py] Re: Issue with lookup foreign key / format statement in 2.10.3

2015-04-20 Thread Dave S
On Monday, April 20, 2015 at 10:02:44 AM UTC-7, Jim S wrote: Can someone tell me if this is fixed? I'm still having issues but maybe I'm doing something wrong: What version of Web2Py are you running? /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: Issue with lookup foreign key / format statement in 2.10.3

2015-04-20 Thread Jim Steil
I'm running 2.10.4 beta. Grabbed it from github this morning. On Mon, Apr 20, 2015 at 5:10 PM, Dave S snidely@gmail.com wrote: On Monday, April 20, 2015 at 10:02:44 AM UTC-7, Jim S wrote: Can someone tell me if this is fixed? I'm still having issues but maybe I'm doing something

Re: [web2py] Re: Still having trouble with format / foreign keys

2015-04-20 Thread Massimo Di Pierro
re-pushing. Check the nightly built in 20 minutes. On Monday, 20 April 2015 16:58:04 UTC-5, Jim S wrote: So this fix isn't in the web2py 2.10.4 beta that was built on 4/18? -Jim On Mon, Apr 20, 2015 at 4:55 PM, Niphlod niph...@gmail.com wrote: we're waiting for 2.10.4 including

Re: [web2py] Re: Setup.py

2015-04-20 Thread Massimo Di Pierro
It is possible to have a the gluon folder under site packages and the applications folder somewhere else. This used to work. I am not sure how and when it broke but it has nothing to do with the web2py default folder structure. Perhaps the problem is that the options.py example moved from

Re: [web2py] Re: question about components

2015-04-20 Thread Ramkrishan Bhatt
Sorry my typo by auto spell correction . I meant ractive.js and Angular.js. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message

[web2py] Re: question about components

2015-04-20 Thread Gary Cowell
Thanks for the opinions. I'm looking at ractive On Monday, 20 April 2015 04:30:32 UTC+1, Ramkrishan Bhatt wrote: I am agree with Massimo you must try angular or reactive to make SPA. It will surly solve your problem. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

[web2py] Re: Web2py: Using images in HTML data

2015-04-20 Thread Sébastien Loix
That's what I thought too And if it's all coming from static, why don't you just keep in db the path from inside the static folder ( in your case images/image.gif) and then in your view you build the path img src={{appname}}/'static/{{path_from_db}} / On Sunday, 19 April 2015 04:57:00

Re: [web2py] Re: Still having trouble with format / foreign keys

2015-04-20 Thread Jim S
I just grabbed the latest, timestamp looks like this: Version 2.10.4-beta+timestamp.2015.04.20.18.00.31 and still having the same issue. -Jim On Monday, April 20, 2015 at 6:03:03 PM UTC-5, Massimo Di Pierro wrote: re-pushing. Check the nightly built in 20 minutes. On Monday, 20 April 2015

Re: [web2py] creating DAL from SQL file

2015-04-20 Thread Richard Vézina
Does the script complete correctly... These scripts are old, and I don't know many person who have use them... Anyway, 20 tables 50 tables is not much... You can write your own which can be basic parser that convert table and field only and you have to set constrains yourself... Richard On Mon,

Re: [web2py] LOAD component inside component

2015-04-20 Thread Richard Vézina
Interresting! Richard On Sun, Apr 19, 2015 at 12:54 PM, Dmitry Ermolaev eds.pr...@gmail.com wrote: # -*- coding: utf-8 -*- AJ_FROM_SERVER = True UPD_TIMEOUT = 6000 def reload_btn(s): return DIV(T('RELOAD'), _onclick = 'ajax(%s, [], reload_tag)' % URL('aj_load2','reload'),

Re: [web2py] Re: question about components

2015-04-20 Thread Michele Comitini
Massimo is talking about ractive.js ractive.js != reactive even if adopts the reactive pattern 2015-04-20 5:30 GMT+02:00 Ramkrishan Bhatt ramkrishan.bh...@gmail.com: I am agree with Massimo you must try angular or reactive to make SPA. It will surly solve your problem. -- Resources: -

Re: [web2py] Re: Need support for web2py application with over 1 million users.

2015-04-20 Thread Michele Comitini
Hi Sandeep, To help us try help you, please let us know: 1. database 2. http web server 3. WSGI adapter (eg. uwsgi, fcgi etc..) 4. WSGI execution model (threading, processing) 5. OS OR if you are running in some PaaS, which one. 2015-04-20 5:25 GMT+02:00 Ramkrishan Bhatt

[web2py] MENU - active element

2015-04-20 Thread Dmitry Ermolaev
active element in MENU insert in documentation and in layout.html =MENU(response.menu, _class='mobile-menu nav' if is_mobile else 'nav',mobile=is_mobile,li_class='dropdown',ul_class='dropdown-menu', *active_url=URL()*) and in css: .web2py-menu-active a { color:#C8FF7B; }

Re: [web2py] Re: Setup.py

2015-04-20 Thread Angelo Compagnucci
Hi Massimo, I'm trying to look at it. I have only a question about permission. Applications should run in a writable folder such as the whole web2py. I don't think there is an easy way to give writable permissions to slices of python sitepackage. I don't think also web2py could be disjointed to

Re: [web2py] websocket_messaging.py not working online

2015-04-20 Thread António Ramos
Maybe your online server platform is blocking websockets. check it with your provider. 2015-04-20 16:02 GMT+01:00 Samuel Sowah sam...@official-notebook.com: So... I just read something on stackoverflow about that and I think I had that idea, just didn't know it was a thing. the i'm

Re: [web2py] websocket_messaging.py not working online

2015-04-20 Thread Samuel Sowah
I think I'm still a bit lost On Monday, April 20, 2015 at 4:02:21 PM UTC+1, Samuel Sowah wrote: So... I just read something on stackoverflow about that and I think I had that idea, just didn't know it was a thing. i'm executing the websocket_messaging.py line from the same server though...

Re: [web2py] websocket_messaging.py not working online

2015-04-20 Thread Samuel Sowah
I'm not aware. What exactly do you mean by that please? On Monday, April 20, 2015 at 3:53:24 PM UTC+1, Niphlod wrote: are you aware that websockets have the same limitation as ajax requests (same domain) ? On Monday, April 20, 2015 at 4:39:08 PM UTC+2, Samuel Sowah wrote: telnet

Re: [web2py] websocket_messaging.py not working online

2015-04-20 Thread António Ramos
try to telnet to that url : and see if your get a black screen 2015-04-20 15:15 GMT+01:00 Samuel Sowah sam...@official-notebook.com: Hello, I need help getting websocket_messaging.py to work. when I use it locally (127.0.0.1) python websocket_messaging.py -k mykey -p --- script

Re: [web2py] websocket_messaging.py not working online

2015-04-20 Thread Samuel Sowah
telnet http://official-notebook.com: telnet: could not resolve http://official-notebook.com:/telnet: Name or service not known telnet official-notebook.com Trying 109.123.86.98... telnet: Unable to connect to remote host: Connection refused On Monday, April 20, 2015 at 3:32:32 PM

Re: [web2py] creating DAL from SQL file

2015-04-20 Thread Richard Vézina
https://github.com/web2py/web2py/blob/master/scripts/extract_sqlite_models.py Have you check gluon/scripts/ before ask? Richard On Sun, Apr 19, 2015 at 5:07 PM, Ron Chatterjee achatterjee...@gmail.com wrote: I have the following SQL file: BEGIN TRANSACTION; CREATE TABLE topic( id

Re: [web2py] websocket_messaging.py not working online

2015-04-20 Thread Samuel Sowah
So... I just read something on stackoverflow about that and I think I had that idea, just didn't know it was a thing. the i'm executing the websocket_messaging.py line from the same server though... not sure why that won't work, yet it works when I'm connecting from my local machine. On

Re: [web2py] websocket_messaging.py not working online

2015-04-20 Thread Niphlod
are you aware that websockets have the same limitation as ajax requests (same domain) ? On Monday, April 20, 2015 at 4:39:08 PM UTC+2, Samuel Sowah wrote: telnet http://official-notebook.com: telnet: could not resolve http://official-notebook.com:/telnet: Name or service not known

Re: [web2py] websocket_messaging.py not working online

2015-04-20 Thread Samuel Sowah
Okay, will do Ramos. Thanks On Monday, April 20, 2015 at 4:05:32 PM UTC+1, Ramos wrote: Maybe your online server platform is blocking websockets. check it with your provider. 2015-04-20 16:02 GMT+01:00 Samuel Sowah sam...@official-notebook.com javascript:: So... I just read something

[web2py] websocket_messaging.py not working online

2015-04-20 Thread Samuel Sowah
Hello, I need help getting websocket_messaging.py to work. when I use it locally (127.0.0.1) python websocket_messaging.py -k mykey -p --- script $(document).ready(function(){ var data;

Re: [web2py] What's the proper way to use URL helper from one app to another (having routed one domain per app)?

2015-04-20 Thread Richard Vézina
I guess you will need scheme=True... Richard On Mon, Apr 20, 2015 at 12:46 PM, Lisandro rostagnolisan...@gmail.com wrote: I have one instance of web2py installed on production, with several apps. Each app is served by a specific domain. This is acomplished usign parameter-based routing

Re: [web2py] websocket_messaging.py not working online

2015-04-20 Thread Samuel Sowah
That doesn't appear to be the case. I send and receive just fine from my local server when it loads a page with the script in it. script $(document).ready(function(){ var data; $.web2py.web2py_websocket('ws:

[web2py] Re: response.json() not working?

2015-04-20 Thread Niphlod
what are you expecting and what do you see instead ? returning from controllers is the only supported way. On Monday, April 20, 2015 at 6:28:14 PM UTC+2, Jim S wrote: I have some controller methods that I call using ajax and they return a json string using: return

Re: [web2py] response.json() not working?

2015-04-20 Thread Richard Vézina
https://groups.google.com/forum/#!searchin/web2py/response.json()/web2py/7EJ0-rOd1bo/iR6YWJOSaQgJ On Mon, Apr 20, 2015 at 12:28 PM, Jim S j...@qlf.com wrote: I have some controller methods that I call using ajax and they return a json string using: return response.json(list_of_dictionaries)

Re: [web2py] response.json() not working?

2015-04-20 Thread Niphlod
On Monday, April 20, 2015 at 8:10:56 PM UTC+2, Richard wrote: https://groups.google.com/forum/#!searchin/web2py/response.json()/web2py/7EJ0-rOd1bo/iR6YWJOSaQgJ @richard: that's not helping: @jim is using response.json in a controller, that is supported, not in a view, that is not

Re: [web2py] response.json() not working?

2015-04-20 Thread Richard Vézina
I just saw this post pass I though it could be related... I read that there seems to have issue with response.json... Sorry that it not help... Richard On Mon, Apr 20, 2015 at 2:13 PM, Niphlod niph...@gmail.com wrote: On Monday, April 20, 2015 at 8:10:56 PM UTC+2, Richard wrote:

[web2py] Re: Need advice/help with url rewrite: multiple domains, multiple apps, two apps per domain

2015-04-20 Thread Lisandro
I've just figured it out. I wasn't thinking right. I realised that, instead of having each site accesing its panel through those kind of urls (site1.dev/panel, site2.dev/panel, etc), I could use subdomains like panel.site1.dev, panel.site2.dev, etc, and then the thing is as easy as editing

[web2py] Re: Issue with lookup foreign key / format statement in 2.10.3

2015-04-20 Thread Jim S
Can someone tell me if this is fixed? I'm still having issues but maybe I'm doing something wrong: I have this in my db.py: db.define_table('customer', Field('customerId', 'id', readable=True, writable=False, label='Customer #'), Field('name', length=30, required=True, writable=False,

[web2py] What's the proper way to use URL helper from one app to another (having routed one domain per app)?

2015-04-20 Thread Lisandro
I have one instance of web2py installed on production, with several apps. Each app is served by a specific domain. This is acomplished usign parameter-based routing system, this what I have in routes.py file: # -*- coding: utf-8 -*- routers = dict(BASE = dict(\ default_controller =

[web2py] response.json() not working?

2015-04-20 Thread Jim S
I have some controller methods that I call using ajax and they return a json string using: return response.json(list_of_dictionaries) I just realized today that it isn't working on newer releases. Based on the web2py releases that I have, I can see that it works in 2.9.5 but not 2.9.12.

Re: [web2py] response.json() not working?

2015-04-20 Thread Jim S
Richard - I saw that thread too before I posted my message. I'm assuming this is the same issue. I have a workaround, but just pointing out that this used to work and now it doesn't, breaking backward compatibility. ...unless I was just doing it wrong and by chance it worked... -Jim On

[web2py] Re: response.json() not working?

2015-04-20 Thread Jim S
Using jQuery and the $.ajax function, I'm returning a json object from my controller function using response.json(list_of_dictionaries). I'm seeing an error in firebug saying: SyntaxError: JSON.parse: unexpected end of data at ... Here is the javascript: $.ajax({url:

[web2py] Re: response.json() not working?

2015-04-20 Thread Niphlod
there you are! response.json now sets content-type = application/json as it's supposed to be (if no specific content-type header is specified) Previous versions relied on the user setting the right content-type, but we noticed that nobody was properly setting it. tl;dr web2py fixed a

[web2py] Re: response.json() not working?

2015-04-20 Thread Niphlod
On Monday, April 20, 2015 at 9:16:49 PM UTC+2, Jim S wrote: Shoot, so now I have to have different behavior based on the web2py version. If I fix this code so it runs properly, it will quit working on my production servers unless I upgrade them to 2.9.12 or later. Again, the only

[web2py] Re: response.json() not working?

2015-04-20 Thread Jim S
Thank you! I went through and made the changes as suggested and is working fine in both environments. -Jim On Monday, April 20, 2015 at 2:40:33 PM UTC-5, Niphlod wrote: On Monday, April 20, 2015 at 9:16:49 PM UTC+2, Jim S wrote: Shoot, so now I have to have different behavior based on

[web2py] Re: response.json() not working?

2015-04-20 Thread Jim S
Shoot, so now I have to have different behavior based on the web2py version. If I fix this code so it runs properly, it will quit working on my production servers unless I upgrade them to 2.9.12 or later. To make it compatible with both versions I'd need to use

[web2py] Still having trouble with format / foreign keys

2015-04-20 Thread Jim S
I posted in this thread https://groups.google.com/forum/#!topic/web2py/2i9zfAzG2s8 but posted after it was closed. Evidently, this is fixed but I'm still not seeing my 'formats' for foreign keys. Here are the details: I have this in my db.py: db.define_table('customer', Field('customerId',

[web2py] Prince - Print Python Html to PDF

2015-04-20 Thread Ovidio Marinho
Has anyone tried to use it with web2py? http://www.princexml.com/doc/9.0/python/ [image: http://itjp.net.br] http://itjp.net.br http://itjp.net.b http://itjp.net.brr *Ovidio Marinho Falcao Neto* ovidio...@gmail.com