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
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
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
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
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
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
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
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
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
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.
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
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,
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 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
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
form = SQLFORM.grid(db.t_proposte,
searchable=True,
deletable=True,
details=False,
* selectable**=True,** <- must be a function*
csv=True,
user_signature=False) #
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
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
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
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'}}
>
>
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
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(
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
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
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 "
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
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:
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
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
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://...
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
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
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
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
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
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
36 matches
Mail list logo