[web2py] Multiprocessing queue and web2py

2015-07-30 Thread Angelo Compagnucci
Dear Developers, I really would like to use multiprocessing python queue in web2py but I'm asking for an advice. I googled the forum but cannot find an answer. I have a worker process (a can bus message processing daemon) that actually it's a web2py application that shares a database table with t

[web2py] Re: Auth_user dynamic cascading registration fields

2015-07-30 Thread Derek
You will want to take a look at my example here: http://www.web2pyslices.com/slice/show/1724/cascading-dropdowns-simplified let me know if you have questions. You should be able to easily extend it to do multi level cascading. On Tuesday, July 28, 2015 at 3:30:18 PM UTC-7, Wabbajack wrote: > >

[web2py] Re: File upload/download over https freezes site

2015-07-30 Thread Niphlod
let's not spread misinformations python has the GIL, true, and 15 threads with a single process won't use any cpu a single thread can use, nor span multiple cpus. But for anyone's sake, we're deploying a webapp in PRODUCTION, whose purpose should be - at the very least - be concurrent. If

[web2py] Re: File upload/download over https freezes site

2015-07-30 Thread Derek
I believe that's what Massimo is trying to say. Each processor has it's own GIL. On Thursday, July 30, 2015 at 6:31:57 PM UTC-7, Dave wrote: > > Thanks for tracking that down! So based on that post, and this one, it > looks like i should be setting proccesses = # of cores, and threads = 1? > >

Re: [web2py] Re: When will we have a "proper" forum ?

2015-07-30 Thread Anthony
> > I guess I'm atypical, but I don't find the GG interface to be bad (even > after the change 2 years ago). > I agree -- in general, Google Groups is fairly good, especially given that it is free (and has no ads). It's also nice that so many other communities use it, which makes it easy to fo

Re: [web2py] Re: When will we have a "proper" forum ?

2015-07-30 Thread Anthony
On Thursday, July 30, 2015 at 5:25:40 PM UTC-4, Alex Glaros wrote: > > Discourse lacks at least two important search features > > > >- "-" dash, exclude >- exact strings containing multiple words > > > critical for finding he

[web2py] Re: File upload/download over https freezes site

2015-07-30 Thread Dave
Thanks for tracking that down! So based on that post, and this one, it looks like i should be setting proccesses = # of cores, and threads = 1? https://groups.google.com/forum/#!topic/web2py/mPdn1ClxLTI Massimo DI Pierro: There are pros and cons. If you use threads in a python program, the more

[web2py] Re: favicon.ico

2015-07-30 Thread Александр Остыловский
Thank you very much. It worked. пятница, 31 июля 2015 г., 1:06:15 UTC+7 пользователь Dave S написал: > > > > On Wednesday, July 29, 2015 at 9:26:11 PM UTC-7, Александр Остыловский > wrote: >> >> Hello! >> I replaced the files favicon.ico and favicon.png on the site and >> nothing has changed.

[web2py] GAE/Google AppEngine problem with web2py: "Deployment successful" but GAE does not launch

2015-07-30 Thread Tom Campbell
My AppEngine ID is memberable0. I copied examples/app.example.yaml to web2py root as app.yaml Only change I made was: application: memberable0 Web2py lives in /Users/tom/Dropbox/work/m/web2py and that path shows successfully in GoogleAppEngineLauncher, which shows port 8081 for the web server (no

Re: [web2py] Re: When will we have a "proper" forum ?

2015-07-30 Thread Dave S
On Thursday, July 30, 2015 at 7:34:54 AM UTC-7, xmarx wrote: > > Google Groups: > > pros: > + email integration (quick question and quick answer mostly) > + well known, wide usage (not necessery to sign up for another forum) > + google power (search) (but when i search a problem, stackowerflow i

[web2py] Re: How to use uploaded image

2015-07-30 Thread michael sun
Hi Anthony, sorry about the late reply. Thank you very much for your detailed answers. On Sunday, July 26, 2015 at 5:46:05 AM UTC-7, Anthony wrote: > > First, three corrections: > >- The upload field does not name the stored file the same as the name >of the uploaded file. The stored fil

Re: [web2py] Re: When will we have a "proper" forum ?

2015-07-30 Thread Alex Glaros
Discourse lacks at least two important search features - "-" dash, exclude - exact strings containing multiple words critical for finding help when similar words appear in irrelevant posts Alex Glaros -- Resources: - http

Re: [web2py] Re: When will we have a "proper" forum ?

2015-07-30 Thread Richard Vézina
+1 Michele, you resumed my thought... I am thinking too that having to maintain our own mailing-list and use our own tool to do so, will make us improve web2py... At the same time if web3py is coming, I guess as Anthony mention ressources being scarce we may have to choose... I also, use mail, so

Re: [web2py] Re: Web2py admin page causing internal error (version 2.9.10)

2015-07-30 Thread Richard Vézina
If you have not customized them it is a not brainer and you are much more confident that your app is working properly with the new web2py version... The only thing is that the new welcome is BS3 based, so you may take care if you are not ready for it... Richard On Thu, Jul 30, 2015 at 4:39 PM, M

Re: [web2py] Re: Web2py admin page causing internal error (version 2.9.10)

2015-07-30 Thread Mark Li
I didn't update the extra files from web2py (like appadmin.py) into my app folder, but it still worked. I've updated the files now as well though. On Thu, Jul 30, 2015 at 11:45 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > You mean you don't do it and your app still works? Or you are

Re: [web2py] Re: When will we have a "proper" forum ?

2015-07-30 Thread Michele Comitini
The choice is about maintaining the infrastructure to run a forum or not. If we choose to maintain it, I am in favor of a self hosted web2py solution. It takes resources, but it is not a waste of resources, since it is a real world testbed for web2py and would generate contributions for stability a

[web2py] Re: File upload/download over https freezes site

2015-07-30 Thread Derek
looks like that change came from here: https://groups.google.com/forum/#!searchin/web2py/processes$3D1$20threads$3D1|sort:date/web2py/jumZFKX2614/pu-NNXSMKHgJ based on the post from Thomas... Thomas J. 10/3/13 I've recently been comparing Web2py and PHP, this is what i found, maybe it helps:

Re: [web2py] Re: Query and Manage profiles

2015-07-30 Thread Richard Vézina
Hello Daniel, Sorry to be late, I didn't see your last post But frankly about Odoo, I don't know, it surely can be customized... You seems you want a electronic bids system... I know that you can define and manage your supplier chain in Odoo... But having them to long in your system and subm

Re: [web2py] Re: Web2py admin page causing internal error (version 2.9.10)

2015-07-30 Thread Richard Vézina
You mean you don't do it and your app still works? Or you are not there yet... Hope it works for you... Richard On Thu, Jul 30, 2015 at 2:39 PM, Mark Li wrote: > I did miss this, I keep skipping over this part! > > On Thu, Jul 30, 2015 at 6:28 AM, Richard Vézina < > ml.richard.vez...@gmail.com

Re: [web2py] Please help: issue sending SMS as e-mail

2015-07-30 Thread Cypher
Hi I see you got your web2py sms function to work please help me get mine working, how did you get it to work??? On Monday, November 25, 2013 at 9:38:09 AM UTC+2, melmg wrote: > > I got it working :) ... I'm not sure what finally did it because I ended > up modifying several things. > -- Resou

Re: [web2py] Re: Web2py admin page causing internal error (version 2.9.10)

2015-07-30 Thread Mark Li
I did miss this, I keep skipping over this part! On Thu, Jul 30, 2015 at 6:28 AM, Richard Vézina wrote: > Don't forget to update the web2py file in your app... > > Backup your app before :) > > https://groups.google.com/d/msg/web2py/tVyL7z7WHkw/mce13Vh-k3UJ > > Richard > > > On Thu, Jul 30, 2015

Re: [web2py] Re: When will we have a "proper" forum ?

2015-07-30 Thread Anthony
> > + well known, wide usage (not necessery to sign up for another forum) >>> >> >> True, though Discourse has social login, allowing you to use Google, >> Yahoo, Facebook, Twitter, or Github to sign in. >> > > Actually not true. The one service requiring login is actually google > groups. You H

Re: [web2py] Re: When will we have a "proper" forum ?

2015-07-30 Thread Anthony
> > In the running is stackoverflow.com which is widely used, already has a > web2py tag, and the interface is ideal for asking questions as well as > answering them. It even has gaming to incentivize people to answer > questions. The only issues are, this forum is not promoted on the web2py >

Re: [web2py] Re: When will we have a "proper" forum ?

2015-07-30 Thread Anthony
On Thursday, July 30, 2015 at 12:26:40 PM UTC-4, Derek wrote: > > I really dislike Discourse. It's a Ruby app, and it requires a ton of > addons. It's bloated and slow > None of the Discourse based forums I've seen appear to be slow. Who cares if it's written in Ruby? > , and since it uses vi

[web2py] Re: favicon.ico

2015-07-30 Thread Dave S
On Wednesday, July 29, 2015 at 9:26:11 PM UTC-7, Александр Остыловский wrote: > > Hello! > I replaced the files favicon.ico and favicon.png on the site and nothing > has changed. Why is that? > thanks > Did you flush the browser cache? (I use Firefox a lot, and usually have a lot of tabs o

Re: [web2py] Re: When will we have a "proper" forum ?

2015-07-30 Thread Iuri Guilherme dos Santos Martins
2015-07-30 11:40 GMT-03:00 Anthony : > On Thursday, July 30, 2015 at 10:34:54 AM UTC-4, xmarx wrote: >> >> Google Groups: >> >> pros: >> + email integration (quick question and quick answer mostly) >> > > You can post/reply via email on Discourse as well. Discourse also allows > you to use Markdow

Re: [web2py] Re: When will we have a "proper" forum ?

2015-07-30 Thread Derek
I really dislike Discourse. It's a Ruby app, and it requires a ton of addons. It's bloated and slow, and since it uses virtual infinite scroll, it's very difficult to search within discussions. https://www.techfuel.net/pyforum/default/index pyForum is based on web2py, though it looks like the

[web2py] Error in scheduler.py when scheduled task uses a jsonrpc webservice

2015-07-30 Thread Lisandro
I've been several hours trying to figure out what's happening, thinking that my code had a bug. But I think the problem is in scheduler.py. I think, not sure. The simplified scenario is the following. Two web2py apps running on the same web2py installation. App "A" defines a public jsonrpc se

Re: [web2py] Joined query help

2015-07-30 Thread Richard Vézina
You may consider db.executesql(""" YOUR SQL QUERY """) You may also have a look to the generated query with ._select(...). If you add an underscore before the .select web2py return a string of the generated query instead of the results of the query... So you can see what is the issue and fix your

[web2py] Re: Will database callbacks be appended each time model is changed?

2015-07-30 Thread Thomas Sitter
Thank you, that clarifies things for me. On Thursday, 30 July 2015 11:09:07 UTC-4, Anthony wrote: > > Same answer. Each request is handled in a separate thread, so any code in > a model, controller, or view is run in a fresh environment. When you define > a table or specify callbacks in a model

Re: [web2py] Re: When will we have a "proper" forum ?

2015-07-30 Thread Anthony
On Thursday, July 30, 2015 at 11:08:09 AM UTC-4, Richard wrote: > > Discourse seems really nice... It represents a lot of work... But as a > "proof of concept" I think we should considering to use our own tool > (web2py) to create our own mailing-list... Could we "seriously" be able to > manage

[web2py] Re: Will database callbacks be appended each time model is changed?

2015-07-30 Thread Anthony
Same answer. Each request is handled in a separate thread, so any code in a model, controller, or view is run in a fresh environment. When you define a table or specify callbacks in a model file, it's like it is happening for the first time (as it only applies to the current request) -- it is no

Re: [web2py] Re: When will we have a "proper" forum ?

2015-07-30 Thread Richard Vézina
Discourse seems really nice... It represents a lot of work... But as a "proof of concept" I think we should considering to use our own tool (web2py) to create our own mailing-list... Could we "seriously" be able to manage our own list and write our own app for this? This is a big undertake and main

[web2py] Re: Will database callbacks be appended each time model is changed?

2015-07-30 Thread Thomas Sitter
Sorry I should have clarified my question. The part I'm concerned about is the use of *append* when adding the callback. If append is being used is there any check to make sure a function is not already in the list. I do not want to call the same callback multiple times when a record is updated

Re: [web2py] Re: When will we have a "proper" forum ?

2015-07-30 Thread Anthony
On Thursday, July 30, 2015 at 10:34:54 AM UTC-4, xmarx wrote: > > Google Groups: > > pros: > + email integration (quick question and quick answer mostly) > You can post/reply via email on Discourse as well. Discourse also allows you to use Markdown in both the web UI and via email. > + well k

Re: [web2py] Re: When will we have a "proper" forum ?

2015-07-30 Thread Selman Kocael
Google Groups: pros: + email integration (quick question and quick answer mostly) + well known, wide usage (not necessery to sign up for another forum) + google power (search) (but when i search a problem, stackowerflow is first and right result) cons: - very (and very) bad interface - recently

[web2py] Re: When will we have a "proper" forum ?

2015-07-30 Thread Alex
I too would be very happy if web2py got a real forum. The UI experience with google groups is very bad, I can understand that it doesn't work properly with old Opera browser, but sometimes I'm also having issues with newest Firefox. The whole UI just feels very slow because everything is loaded

Re: [web2py] Re: Web2py admin page causing internal error (version 2.9.10)

2015-07-30 Thread Richard Vézina
Don't forget to update the web2py file in your app... Backup your app before :) https://groups.google.com/d/msg/web2py/tVyL7z7WHkw/mce13Vh-k3UJ Richard On Thu, Jul 30, 2015 at 12:48 AM, Mark Li wrote: > Deleting all the .pyc files from the web2py directory seems to have done > the trick. > >

[web2py] Joined query help

2015-07-30 Thread Ian Ryder
Hi, I’m trying to construct a query in web2py which I’m struggling with - help appreciated :) Table 1 table1.batch_id Table 2 table2.table1 table2.table3 table2.amount Table 3 table3.name Query is roughly: select table3.name, sum(table2.amount), count(tabl

Re: [web2py] Is it possible to translate data in SQLFORM.grid?

2015-07-30 Thread Gael Princivalle
Thank a lot Massimiliano. I've to remind to search more for solutions with the lambda function. Il giorno giovedì 30 luglio 2015 09:38:01 UTC+2, Massimiliano ha scritto: > > Have you tried? > > db.cake.fruit.represent = lambda v, r: T(db.fruits[v].name) > grid=SQLFORM.grid(db.cake) > > > On Thu, J

Re: [web2py] Is it possible to translate data in SQLFORM.grid?

2015-07-30 Thread Massimiliano
Have you tried? db.cake.fruit.represent = lambda v, r: T(db.fruits[v].name) grid=SQLFORM.grid(db.cake) On Thu, Jul 30, 2015 at 8:55 AM, Gael Princivalle wrote: > Hello all. > > Is it possible to translate data in SQLFORM.grid? > > MODEL: > db.define_table('fruits', > Field('nam