[web2py] Re: PyCon Canada 2015

2015-04-06 Thread Ron Chatterjee
Do you know if the tutorials are going to be available online or available to buy. Since I can't make it. On Monday, April 6, 2015 at 12:26:49 PM UTC-4, LoveWeb2py wrote: Anyone going? https://us.pycon.org/2015/ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Database

2015-04-06 Thread Philip Kilner
Hi Ron, On 06/04/15 18:38, Ron Chatterjee wrote: Also, open source product wouldn't be as secured as MYSQL since its open source. But I do agree with the rest. I don't agree that open source products are inherently less secure then proprietary ones, but in this case both Postgres and MySQL

Re: [web2py] Re: Design flaw in auth.impersonate ?

2015-04-06 Thread Anthony
Imagine you have -10 years of computer knowledge, and that you’re on the phone with a customer and have to check data on your platform by impersonating him. Most likely, you’re gonna forget that you have to use a separate session and see an error message when trying to reach your

Re: [web2py] Database

2015-04-06 Thread Philip Kilner
Hi Derek, On 06/04/15 17:52, Derek wrote: I have to take issue with your 'not for production' criticism of sqlite. OK, but... https://www.sqlite.org/whentouse.html ...just to be clear, that comment was in the context of web2py use, not generally. It has changed a lot since 2009 and

Re: [web2py] Database

2015-04-06 Thread Derek
I get what you are saying, GoDaddy is not my choice of a host. In fact, I'd recommend you stay away from them. Openshift is very fast and has competitive rates, and it has PostgreSQL support. In any case, no they apparently don't support Python so yea... On Monday, April 6, 2015 at 10:38:36 AM

[web2py] Re: button to start function which dynamicly chynges page

2015-04-06 Thread Dave S
On Monday, April 6, 2015 at 3:16:35 AM UTC-7, BlueShadow wrote: Hi, I have a function in my web2py app which takes quite a while. I like to have a button on a page which starts the funktion but does not reload the page for 10 minutes. The function should also dynamicly display its

Re: [web2py] Database

2015-04-06 Thread Ron Chatterjee
Lot of hosting doesn't support Postgres. For example, go daddy. https://support.godaddy.com/help/category/67/web-hosting-databases That said, I realize, go daddy is not a typical python hosting platform. Just playing devils advocate here. Also, open source product wouldn't be as secured as

[web2py] Re: Best way to manage a cart

2015-04-06 Thread Najtsirk
I use session storage for cart until checkout. You can find an example from Massimo here: https://github.com/mdipierro/web2py-appliances/tree/master/EStore I was studying this before implementing my own solution. Best, K. On Monday, 6 April 2015 21:08:25 UTC+2, Gael Princivalle wrote:

[web2py] Re: call a function from form.process()

2015-04-06 Thread 黄祥
why the result in form.process and in form.validate is different? e.g. *modules/test_event.py* def oncreate_event(form): current.db.auth_event.insert(time_stamp = current.request.now, client_ip = current.request.client, user_id = current.auth.user_id, origin = '%s/%s' %

[web2py] Project : web2py-analytics, automatic event tracking in web2py

2015-04-06 Thread Louis Amon
So far Google Analytics has been part of the scaffolding application for quite some time. I'm guessing it was put there to remind you that a good web application should be data-driven. My project is to help direct new users towards this goal, while still preserving an agnostic framework.

[web2py] Best way to manage a cart

2015-04-06 Thread Gael Princivalle
Hello all. I've to make a cart. I would like to let the user add products to the cart without login. Login will be done at checkout. I would like to save all carts, so when a user will add the first product, I'll add a record in my cart table. I'm wondering about how can I manage the fact that

[web2py] Re: how to display foreign language symbols

2015-04-06 Thread Niphlod
when you do for line in open('afile.txt'): do_something_on_line you are using a generator that is memory-friendly. readlines() creates a whole list of lines beforehand, so it uses more memory. On Saturday, April 4, 2015 at 10:09:50 PM UTC+2, Alex Glaros wrote: your new example worked,

[web2py] Re: call a function from form.process()

2015-04-06 Thread Anthony
By default, .validate doesn't do a database insert (which is why you have manually done the insert yourself after calling .validate), so obviously there will be no form.vars.id at the point that the onsuccess callback is called. If you need the id available in the callback, then either use

[web2py] Re: AppConfig and Storage

2015-04-06 Thread Niphlod
Once again: it's just an ini parser that works as a singleton when you don't pass reload: it's not black magic.. but it's not made to hold every bit of python syntax (if you want it, you don't need appconfig, just use models and modules.) You calling it not stable is just calling

[web2py] Re: auth_user table format

2015-04-06 Thread Anthony
Hmm, I'm not sure what changed, but if it used to work, we should fix it. Please submit an issue about this. Anthony On Monday, April 6, 2015 at 10:19:14 PM UTC-4, 黄祥 wrote: in the previous version, the same code can show the proper format of auth_user table, yet in the newest version

Re: [web2py] Re: Design flaw in auth.impersonate ?

2015-04-06 Thread Anthony
Assuming you don't really need admin permissions and impersonated user permissions in the same request, a better approach might be to build the functionality you need into the application (perhaps via a plugin). Before starting impersonation, set a flag in the admin session (e.g.,

[web2py] Re: auth_user table format

2015-04-06 Thread 黄祥
in the previous version, the same code can show the proper format of auth_user table, yet in the newest version can't. already test another table too, it didn't showed the proper format in grid table (just show the id instead of the proper format). or in the newest version the policy is

[web2py] Re: auth_user table format

2015-04-06 Thread 黄祥
done. https://github.com/web2py/web2py/issues/904 attached that running fine (shown a format instead of an id) in prev version thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] w2p_clone broke web2py installation

2015-04-06 Thread Manuele Pesenti
Il 05/04/15 21:23, Gary Cowell ha scritto: Hello I installed web2py from pip, I think it's at 2.1.1 Then ran w2p_clone to bring in latest version. why not just clone the latest version from github and eventually choose a stable tagged version after by doing: $ git checkout tags/anytag M.

Re: [web2py] Database

2015-04-06 Thread Philip Kilner
Hi, On 05/04/15 12:07, Wellington Faria wrote: I would like to know wich is better database to use in web2py? Mysql or postgre? I would suggest very strongly that Postgres is a better option. The reason for this is that Postgres runs its migrations (e.g. DDL) inside a transaction, so

[web2py] button to start function which dynamicly chynges page

2015-04-06 Thread BlueShadow
Hi, I have a function in my web2py app which takes quite a while. I like to have a button on a page which starts the funktion but does not reload the page for 10 minutes. The function should also dynamicly display its progress on the page. Is there a way to do that? -- Resources: -

[web2py] Re: [web2py:22132] Re: another web2py powered

2015-04-06 Thread peter
Thanks for sorting out poweredby. There seems to be a minor issue with scraping the front page of the example sites. If you look at my UK Jazz site you will see what I mean. Thanks Peter -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

Re: [web2py] Database

2015-04-06 Thread Ron Chatterjee
I said, start with sqlite before deployment. Means, to get something going pretty quick and prototype. While in deployment or production, other database is more suitable. I am not a d-base expert. So I can't say which one is better, but since Postgres is an open source, common sense tells me,

[web2py] Re: ERROR on clear cash fron admin DB

2015-04-06 Thread Leonel Câmara
Did you upgrade recently? What's in your application's cache folder? -- 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 because

Re: [web2py] Simple routing question

2015-04-06 Thread Ron Chatterjee
When you guys resolve this, can you please share? On Monday, April 6, 2015 at 11:34:53 AM UTC-4, Jim S wrote: Alex - your setup looks pretty much just like mine. I'd contact support at pythonanywhere. They were really helpful when I was going through this. -Jim On Sat, Apr 4, 2015 at

[web2py] Re: Please report here upgrading issues to web2py 2.10.2

2015-04-06 Thread Jim S
Upgraded to 2.10.3-stable+timestamp.2015.04.02.21.42.07 (Running on nginx/1.4.6, Python 2.7.6) ...still having the same problem with record versioning. -Jim On Thursday, April 2, 2015 at 4:37:03 PM UTC-5, Jim S wrote: Version 2.10.1-stable+timestamp.2015.04.01.03.27.40 I have one

[web2py] Re: Design flaw in auth.impersonate ?

2015-04-06 Thread Jim S
I agree that impersonate is just right the way it is. -Jim On Sunday, April 5, 2015 at 6:00:52 PM UTC-5, Limedrop wrote: Well the easy answer is to simply open the impersonated user in a different browser (eg, have Support Team login in chrome and impersonated user login in firefox). For

Re: [web2py] Re: Design flaw in auth.impersonate ?

2015-04-06 Thread Louis Amon
Well maybe I’m just biased then. I think of web2py as THE framework for startups, and in that regard an easy-to-use user management system seems to me like a priority. With all due respect to Support Team members across the globe, using two browsers isn’t something you should expect from them.

Re: [web2py] Re: Design flaw in auth.impersonate ?

2015-04-06 Thread Anthony
On Monday, April 6, 2015 at 11:16:51 AM UTC-4, Louis Amon wrote: Well maybe I’m just biased then. I think of web2py as THE framework for startups, and in that regard an easy-to-use user management system seems to me like a priority. With all due respect to Support Team members across the

Re: [web2py] Simple routing question

2015-04-06 Thread Jim Steil
Alex - your setup looks pretty much just like mine. I'd contact support at pythonanywhere. They were really helpful when I was going through this. -Jim On Sat, Apr 4, 2015 at 6:10 PM, Alex Glaros alexgla...@gmail.com wrote: need help with configuring pythonanywhere.com site and

[web2py] Re: IronPython support

2015-04-06 Thread Derek
It doesn't have a GIL, plus it has a good JIT and I know Web2Py works on PyPy, so it seems like a good fit. It does run pretty fast. If you have any benchmarks you want me to run I'll give them a try. I think Windows users should have a choice of what python interpreter they want to use. It

[web2py] PyCon Canada 2015

2015-04-06 Thread LoveWeb2py
Anyone going? https://us.pycon.org/2015/ -- 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 because you are subscribed to the

Re: [web2py] Database

2015-04-06 Thread Derek
I have to take issue with your 'not for production' criticism of sqlite. https://www.sqlite.org/whentouse.html It has changed a lot since 2009 and you should really get familiar with it if you are going to use it. Also, concerning the data types, SQLITE only supports 4 data types. NULL,

Re: [web2py] Re: Design flaw in auth.impersonate ?

2015-04-06 Thread Derek
Chrome allows not just incognito mode, but that little person icon in the upper right by the minimize is 'switch account' and you can use a guest account that's not incognito, which is just perfect for testing out stuff like that. On Monday, April 6, 2015 at 9:02:21 AM UTC-7, Anthony wrote:

[web2py] Re: auth_user table format

2015-04-06 Thread Anthony
Yes, as I mentioned, because you cannot set db.auth_user._format before defining the other tables, you instead have to explicitly change the represent and requires attributes of the other tables after they have been defined. We should probably add a setting for db.auth_user._format to avoid

[web2py] Re: Design flaw in auth.impersonate ?

2015-04-06 Thread Leonel Câmara
With all due respect to Support Team members across the globe, using two browsers isn’t something you should expect from them. How hard is it to open a private browsing window of the same browser (ctrl+shift+n)? Not to mention the problems that keeping the permissions of the original user

Re: [web2py] Re: Design flaw in auth.impersonate ?

2015-04-06 Thread Louis Amon
Usually I would agree with you guys : browsers can manage separate sessions perfectly well… but we are all devs here so we have a bias. Imagine you have -10 years of computer knowledge, and that you’re on the phone with a customer and have to check data on your platform by impersonating him.