[web2py] Re: Can not import copy_reg

2014-07-29 Thread Richard
Some progress is not what I expect :( . It takes time to learn how to configure a webserver. I am now hosting the app at Pythonanyware, I expect the libraries they use are up to date. assuming they are, also at pythonanyware running python2.7 the same error occurs. Could it be a bug in Web2py

[web2py] Re: Disabling/Limiting Access To Profile

2014-07-29 Thread 黄祥
On Wednesday, July 30, 2014 6:20:17 AM UTC+7, Anthony wrote: > > On Tuesday, July 29, 2014 6:04:25 PM UTC-4, 黄祥 wrote: >> >> please try : >> *models/db.py* >> settings.actions_disabled = ['profile'] >> > > Should be auth.settings.actions_disabled. > > yes you are right, my bad, i'm just take the

[web2py] Re: Disabling/Limiting Access To Profile

2014-07-29 Thread Anthony
On Tuesday, July 29, 2014 6:04:25 PM UTC-4, 黄祥 wrote: > > please try : > *models/db.py* > settings.actions_disabled = ['profile'] > Should be auth.settings.actions_disabled. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Sou

[web2py] Re: Bootstrap is really killing web2py

2014-07-29 Thread Anthony
On Tuesday, July 29, 2014 12:16:13 PM UTC-4, Dragan Matic wrote: > > Is there some tutorial how to do it for those of us not so versed in CSS? > If you just replace bootstrap.min.css in static/css the menus and forms do > not work the way they used to in BS2. > Note, in general, you should not e

Re: [web2py] Re: how to disable "register" item from the default upper right-hand side dropdown

2014-07-29 Thread steve van christie
please try : settings.actions_disabled = ['register'] best regards, stifan -- 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 beca

[web2py] Re: Disabling/Limiting Access To Profile

2014-07-29 Thread 黄祥
please try : *models/db.py* settings.actions_disabled = ['profile'] best regards, stifan -- 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 thi

[web2py] Re: Disabling/Limiting Access To Profile

2014-07-29 Thread lyn2py
Try, def user(): if request.args(0)=="profile": redirect(to_some_url) ... On Wednesday, July 30, 2014 4:48:45 AM UTC+8, Mark Billion wrote: > > I want to prevent users from accessing their profile and changing data > after registration. Is there a way to disable > http://...

[web2py] Re: Multiple Routes - Same App

2014-07-29 Thread 'Michael Gheith' via web2py-users
Hello, I rewrote what you had Massimo as the following (and it compiled just fine): routes_in = [('/sam/(?P\w+)/$a/$c/$f', '/$a/$c/$f/\g')] routes_out = [('/$a/$c/$f/(?P)', '/sam/\g/$a/$c/$f')] I see what you are trying to do - although it's still not producing the desired result unfortunat

[web2py] Bare Login using API key

2014-07-29 Thread lyn2py
Hi guys, Creating an API (within my web2py app), and need to use a login that's not the user's login, hence the API key. How should I go about a bare login using API key? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] Disabling/Limiting Access To Profile

2014-07-29 Thread Mark Billion
I want to prevent users from accessing their profile and changing data after registration. Is there a way to disable http:///[app]/default/user/profile without disturbing the balance of the user-auth suite? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http:

[web2py] Re: how to disable "register" item from the default upper right-hand side dropdown

2014-07-29 Thread Alex Glaros
now I need to disable "register" button from one more place. When user attempts to post data to table where being logged on is required, W2P automatically throws up the login prompt, which also has the "register" button. how to suppress the register button here? Login E-mail: Password: R

[web2py] Re: Multiple Routes - Same App

2014-07-29 Thread 'Michael Gheith' via web2py-users
Hello Massimo, I got a compile error when trying your suggestion of: routes_in = [('/sam/$client/$a/$c/$f', '/$a/$c/$f/$client')] routes_out = [('/$a/$c/$f/$client','/sam/$client/$a/$c/$f')] Traceback (most recent call last): File "web2py.py", line 18, in import gluon.widget File "

[web2py] Re: Bootstrap is really killing web2py

2014-07-29 Thread Dragan Matic
Is there some tutorial how to do it for those of us not so versed in CSS? If you just replace bootstrap.min.css in static/css the menus and forms do not work the way they used to in BS2. On Tuesday, July 29, 2014 5:36:06 PM UTC+2, Massimo Di Pierro wrote: > > web2py includes bs2 but this is cli

Re: [web2py] Re: Using web2py as a centralised auth server?

2014-07-29 Thread Michele Comitini
To make things much like the normal flow, you could also proxy the validation request (encrypted with the shared key or key pair) from the service back to the provider, then proxy the provider answer back to the service (encrypted). The proxy being here the client (browser) and encryption is done

[web2py] Re: jquery onchange help

2014-07-29 Thread ocascante
Massimo, my tables: db.define_table('cards', Field('card','string',unique=True,required=True), Field('firstname','string',required=True), Field('secondname','string',required=True), db.define_table('documents', Field(

Re: [web2py] grid problem

2014-07-29 Thread Massimo Di Pierro
good catch! On Tuesday, 29 July 2014 10:39:15 UTC-5, Javier Pepe wrote: > > form = SQLFORM.grid(db.t_proposte, >searchable=True, > deletable=True, >details=False, > * selectable**=True,** <- must be a funct

[web2py] Re: jquery onchange help

2014-07-29 Thread Massimo Di Pierro
Not sure what the card widget is in your example. Probably you want onkeyup instead of onchange. Anyway, if you share your model and your js code we can help more. On Tuesday, 29 July 2014 10:40:54 UTC-5, ocascante wrote: > > Hello, > > I have this custom form: > > {{extend 'layout.html'}} > >

[web2py] Re: grid problem

2014-07-29 Thread Massimo Di Pierro
can you post the full traceback? On Tuesday, 29 July 2014 10:05:46 UTC-5, ceriox wrote: > > hi all, > i have a table with some fields (two of the type boolean) > > if i use > form = SQLFORM.smartgrid(db.t_proposte,onupdate=auth.archive) > > > all work fine! > > but if i use: > form = SQLFORM.grid

[web2py] Re: Two parallel methods of authenticating users based on Auth class

2014-07-29 Thread Massimo Di Pierro
Even if you use GaeGoogleLogin the auth_user table contains both id and email (as provided by gmail). Now if you switch from GaeGoogleLogin to local authentication and email everybody a link to reset the password they will not need to register again and therefore they will retain the current id

[web2py] jquery onchange help

2014-07-29 Thread ocascante
Hello, I have this custom form: {{extend 'layout.html'}} Documental System New Records {{=form.custom.begin}} Card Number: {{=form.custom.widget.card}} Document: {{=form.custom.widget.document}} State: {{=form.custom.widget.state}} C

Re: [web2py] grid problem

2014-07-29 Thread Javier Pepe
form = SQLFORM.grid(db.t_proposte, searchable=True, deletable=True, details=False, * selectable**=True,** <- must be a function* csv=True, user_signature=False) #

Re: [web2py] Re: Database per subdomain

2014-07-29 Thread Massimo Di Pierro
Now somebody tries that with Django. ;-) On Tuesday, 29 July 2014 08:33:58 UTC-5, Ruud Schroen wrote: > > That was indeed easy. Thanks! > > > On Tue, Jul 29, 2014 at 3:31 PM, Massimo Di Pierro < > massimo.dipie...@gmail.com> wrote: > >> very easy: >> >> if request.env.host_name == 'domain1': db_ur

[web2py] Re: Bootstrap is really killing web2py

2014-07-29 Thread Massimo Di Pierro
web2py includes bs2 but this is client side and it is trivial to replace it with bs3. I do it all the times. The problem is that it takes some JS to style the grid. Massimo On Tuesday, 29 July 2014 06:36:27 UTC-5, Stodge wrote: > > My guess is that web2py includes BS2. > > On Saturday, 26 July

[web2py] Re: Upload field custom manipulation

2014-07-29 Thread Massimo Di Pierro
Let me understand this better f_invoice_file_path is the location where the file is supposed to be stored or is it the full path including the desired filename? Do you handle the file writing or should web2py do it automatically? On Tuesday, 29 July 2014 05:59:10 UTC-5, Kuba Kozłowicz wrote: >

[web2py] grid problem

2014-07-29 Thread ceriox
hi all, i have a table with some fields (two of the type boolean) if i use form = SQLFORM.smartgrid(db.t_proposte,onupdate=auth.archive) all work fine! but if i use: form = SQLFORM.grid(db.t_proposte, searchable=True, deletable=True,

[web2py] Can someone approve my messages on web2py-developers

2014-07-29 Thread Leonel Câmara
Can someone approve me to post web2py-developers and at least approve my last message? I have posted some long stuff there that it took me some time to write. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://cod

[web2py] Two parallel methods of authenticating users based on Auth class

2014-07-29 Thread Marcin Jaworski
Hello, I have web2py on GAE and it works fine. Unfortunately, clients from China cannot access Google ServiceLogin lately. I have declared it in db.py settings like so: auth.settings.login_form=GaeGoogleAccount() after importing this method from gluon.contrib.login_methods.gae_google_account.

[web2py] Re: Bootstrap is really killing web2py

2014-07-29 Thread Leonel Câmara
Stodge, web2py doesn't include BS2, the welcome application does. -- 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 ar

Re: [web2py] Re: Database per subdomain

2014-07-29 Thread Ruud Schroen
That was indeed easy. Thanks! On Tue, Jul 29, 2014 at 3:31 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > very easy: > > if request.env.host_name == 'domain1': db_uri='sqlite://domain1.db' > elif request.env.host_name == 'domain2': db_uri='sqlite://domain2.db' > else: raise HTTP(40

[web2py] How do you gracefully terminate a scheduled task

2014-07-29 Thread Stephen Weiss
I'm trying to find a way in a scheduled task to terminate itself gracefully and have it set the status to FAILED. Say for example, a scheduled task is executing and for some reason doesn't find a required record in a table or what not and thus shouldn't continue. How does one go about stopping

[web2py] Re: Database per subdomain

2014-07-29 Thread Massimo Di Pierro
very easy: if request.env.host_name == 'domain1': db_uri='sqlite://domain1.db' elif request.env.host_name == 'domain2': db_uri='sqlite://domain2.db' else: raise HTTP(404) db = DAL(db_uri) On Tuesday, 29 July 2014 07:23:03 UTC-5, Ruud Schroen wrote: > > Hi list, > > I'm working on a portal where

[web2py] Upload field custom manipulation

2014-07-29 Thread Kuba Kozłowicz
I have three tables: - invoices - invoice summaries - invoice bundles The website I am working on provides such a functionality, that user uploads a file, from which invoices and invoice summaries are generated and after being generated they are zipped and put into a bundle. For each upload I

[web2py] Re: Using web2py as a centralised auth server?

2014-07-29 Thread Massimo Di Pierro
What you call satellites are normally called service consumers of the auth service provider. Let's ignore for a fact that your consumers are in a DMZ. web2py is a perfect framework for this because it has support for CAS, OAuth 1&2, and OpenID. In fact the CAS provider and consumer is built-in

[web2py] Database per subdomain

2014-07-29 Thread Ruud Schroen
Hi list, I'm working on a portal where people can look for healthcare in a given municipality. Imagine if each municipality has it's own portal, for example: leudal.zorgloketlimburg.nl maas.zorgloketlimburg.nl What would be the most efficient way to fetch a different database for different su

[web2py] Re: Bootstrap is really killing web2py

2014-07-29 Thread Stodge
My guess is that web2py includes BS2. On Saturday, 26 July 2014 18:41:24 UTC-4, sasogeek wrote: > > So... I'm not really sure what this whole conversation is about, as to > whether it's an issue of web2py coming with bs2 by default or some > difficulty in implementing bs3. I use bs3 just fine in

[web2py] Using web2py as a centralised auth server?

2014-07-29 Thread Stodge
I have several Django websites and I want to create a centralized auth provider - I'm looking at various web frameworks including web2py, for a simple solution for prototyping. The auth provider site (web2py) would contain the user accounts and be the only repository for user details and passwo