[web2py] Auth with Janrain but still require "registration"

2013-03-27 Thread DeanK
So I want to be able to use Janrain, but I also want to have people have to register. For my app initially i need to control when registration is open and when it is not, and currently using the examples i've seen, enabling Janrain makes anyone who can authenticate with one of the third party

[web2py] Re: Auth with Janrain but still require "registration"

2013-03-28 Thread DeanK
via Janrain isn't enough to allow access), or do you > simply want to require users to add to their profile when they first log in > with Janrain? > > On Wednesday, March 27, 2013 4:08:42 PM UTC-4, DeanK wrote: >> >> >> So I want to be able to use Janrain, but I a

[web2py] Re: Auth with Janrain but still require "registration"

2013-03-29 Thread DeanK
ay, March 28, 2013 11:39:54 AM UTC-4, Anthony wrote: > > On Thursday, March 28, 2013 11:06:25 AM UTC-4, DeanK wrote: > >> I don't want to have to approve all registrations, but I want to be able >> to control when people can register (basically just because you have a >&

[web2py] Re: Auth with Janrain but still require "registration"

2013-03-29 Thread DeanK
Thanks. I could/should have figured most of that out myself so sorry for the lame question but I appreciate the quick answer. Also I talk about using Janrain because it exists and works, but all my comments are applicable to something that is completely free such as sanction if it was integra

[web2py] smartgrid - limit which fields are editable after creation of record

2013-04-01 Thread DeanK
I've been searching and haven't seemed to find someone trying to do this yet. I'm wondering if there is a way to use the smartgrid, but limit what fields can be edited after you create an entry. I want to be able to use the smartgrid interface to create a new entry in some tables, but after th

[web2py] Re: smartgrid - limit which fields are editable after creation of record

2013-04-01 Thread DeanK
can edit again). thanks for your help. On Monday, April 1, 2013 8:18:10 PM UTC-4, Massimo Di Pierro wrote: > > Yes: > > db.thetable.thefield.writable = (request.args(-1) == 'new') > > On Monday, 1 April 2013 17:31:16 UTC-5, DeanK wrote: >> >> I've been

[web2py] Re: smartgrid - limit which fields are editable after creation of record

2013-04-02 Thread DeanK
. It gets longer when working with > child objects. > > On Monday, April 1, 2013 11:24:33 PM UTC-4, DeanK wrote: >> >> So I'm not sure if I understand this one-liner to properly use it. >> Request.args(-1) doesn't quite make sense to me...i would think you&

[web2py] using scheduler: entry in scheduler_run "disappears"

2013-04-24 Thread DeanK
I've been debating using the baked in scheduler and figured I'd try it out first before fighting to get celery running with web2py. I have a task that uses Popen to run an external program, processes the result, and returns. When I run this with the scheduler, an entry in scheduler_run is cre

[web2py] Re: using scheduler: entry in scheduler_run "disappears"

2013-04-24 Thread DeanK
: > #---- do something > return 1 > > > > On Wednesday, April 24, 2013 8:15:39 PM UTC+2, DeanK wrote: >> >> I've been debating using the baked in scheduler and figured I'd try it >> out first before fighting to get celery running with web2py

[web2py] using scheduler, submitting task from a running task doesn't show up in scheduler_task

2013-04-24 Thread DeanK
So I've read through the documentation twice and could have skipped over some key point, but i'm having an issue submitting a task from a task. I've stupefied my to paste it here, but basically from a controller i'm doing this: scheduler.queue_task(my_parent_task, pvars=dict(arg1=val,ar

[web2py] Re: using scheduler, submitting task from a running task doesn't show up in scheduler_task

2013-04-24 Thread DeanK
> A "tasks fired by tasks" is a perfect example: what if you want to queue > your tasks only if the "parent" completed correctly ? This makes perfect sense. Also I forget that the "message passing" is being done through the database. I added a db.commit() at the end of the parent task and

[web2py] model not updated in scheduled task

2013-05-08 Thread DeanK
So one of my model files is somewhat unique (and possibly a bad idea) and causing me problems...I'll try to describe things the best I can. My application creates tables dynamically based on user input. To stop web2py from defining all the tables on every request (which can be a lot in the who

[web2py] Re: model not updated in scheduled task

2013-05-08 Thread DeanK
y fine. > The only thing I can reproduce is that a task defined as > > def mytest_models(): > db.define_table('whatever', > Field('afield') > ) > db.whatever.insert(afield='foo') > db.commit() > > works as in

[web2py] Problems with Scheduler/ComfortScheduler Monitor setup on a different server than website

2013-10-18 Thread DeanK
So I'm working to scale up my web2py based app a bit. Part of this was moving the Scheduler to a separate machine. Since doing this I'm getting some errors and weird behavior and could use some insight. There are multiple issues but I sort of need to explain it all so I opted for 1 post with

[web2py] Re: Problems with Scheduler/ComfortScheduler Monitor setup on a different server than website

2013-10-21 Thread DeanK
Awesome thanks. Everything is working now. I've used the scheduler monitor a decent amount and it has worked pretty well for me. This is the first bug I've noticed but if I find more I'll be sure to let you know. The only tweak I've made is the output from my tasks contains lots of debug info

[web2py] Re: Problems with Scheduler/ComfortScheduler Monitor setup on a different server than website

2013-10-28 Thread DeanK
quot;. > > On Monday, October 21, 2013 4:26:54 PM UTC+2, DeanK wrote: >> >> Awesome thanks. Everything is working now. >> >> I've used the scheduler monitor a decent amount and it has worked pretty >> well for me. This is the first bug I've noticed b

[web2py] configuring routes for web2py behind reverse proxy

2013-11-05 Thread DeanK
I have an instance of web2py running on nginx sitting behind an apache reverse proxy (soon to be nginx as well) so: www.mydomain.com/myapppoints to >>myserver1.otherdomain.com i have /myapp/default/landing set as the default application, controller, and function. When i go directly

[web2py] Re: configuring routes for web2py behind reverse proxy

2013-11-07 Thread DeanK
ay, November 5, 2013 11:51:11 AM UTC-5, DeanK wrote: > > I have an instance of web2py running on nginx sitting behind an apache > reverse proxy (soon to be nginx as well) so: > > www.mydomain.com/myapppoints to >>myserver1.otherdomain.com > > i have /myapp

[web2py] web2py ajax failing when behind reverse proxy

2013-11-14 Thread DeanK
I'm having trouble with a web2py site sitting behind an Apache2 reverse proxy that uses web2py's built in ajax capability. The main domain server configuration is setup like this to point to the server running my web2py app: ProxyHTMLInterp On LogLevel Debug ProxyHTMLLogVerbose On ProxyPass /l

[web2py] Re: configuring routes for web2py behind reverse proxy

2013-11-14 Thread DeanK
proxy-html ProxyHTMLURLMap http://my.server.com /link/ ProxyHTMLURLMap / /link/ ProxyHTMLURLMap /link/ /link/ RequestHeaderunset Accept-Encoding On Tuesday, November 5, 2013 11:51:11 AM UTC-5, DeanK wrote: > > I have an instance of web2py running on nginx sitting behind an

[web2py] Re: web2py ajax failing when behind reverse proxy

2013-11-15 Thread DeanK
http://apache.webthing.com/svn/apache/filters/proxy_html/proxy_html.conf. > > Anthony > > On Thursday, November 14, 2013 6:46:42 PM UTC-5, DeanK wrote: >> >> I'm having trouble with a web2py site sitting behind an Apache2 reverse >> proxy that uses web2py's b

[web2py] Reset password based on username instead of email

2013-11-15 Thread DeanK
So I have a somewhat unique situation where multiple different users will be creating separate accounts with unique usernames, using the SAME email address. I figured I could make this happen by using custom auth tables like this: ## Manually set up Auth tables so you can have non-unique email

[web2py] Re: Reset password based on username instead of email

2013-11-18 Thread DeanK
2013 3:58:56 AM UTC-5, Massimo Di Pierro wrote: > > Please open a ticket. This needs to be implemented. > > On Friday, 15 November 2013 11:07:31 UTC-6, DeanK wrote: >> >> So I have a somewhat unique situation where multiple different users will >> be creating separate a

[web2py] footer content aligned left when reverse proxied

2013-12-19 Thread DeanK
When I view my site directly through the host server the footer looks fine. It's snapped to the bottom and centered. When I view my site through a reverse proxy, the footer content is smashed to the left, as if its in a column or something. Looking at the html I can't really see anything diff

[web2py] Re: footer content aligned left when reverse proxied

2013-12-19 Thread DeanK
I noticed that in web2py.css: .center {width:100; text-align:center; vertical-align:middle} if i change this to: .center {width:100%; text-align:center; vertical-align:middle} things then work fine. On Thursday, December 19, 2013 11:54:37 AM UTC-5, DeanK wrote: > > When I view m

[web2py] only one session/login per user?

2014-02-03 Thread DeanK
I've been searching around trying to figure out how to do this without success. I need to enforce only a single login per user. Out of the box you can login using the same credentials from different computers, but I need logging in on a different computer to terminate the session of the first

[web2py] Re: only one session/login per user?

2014-02-08 Thread DeanK
; object from the session > (or simply delete the session entirely). This is a bit more complicated and > CPU/IO intensive, but it only happens upon login, not on every request. > Also, it won't work with cookie based sessions. > > Anthony > > On Tuesday, February 4,

[web2py] Re: only one session/login per user?

2014-02-13 Thread DeanK
So I started looking into trying to get this to work and I'm stuck, mainly because web2py storing sessions in Redis is a blackbox to me. I couldn't find anywhere in the documentation how to query the session db. I'm storing my sessions in redis following the code snippet in the deployment rec

[web2py] assign task to specific group

2014-05-20 Thread DeanK
I'm looking to use the built in scheduler to farm out work, but run gpu dependent code. Because of this I need to be able to control on which node the task is scheduled. I thought I could do this using "groups" but I don't see how since you set the group in the scheduler constructor according

[web2py] Re: assign task to specific group

2014-05-21 Thread DeanK
> > > BTW: did you at least tried to read > http://web2py.com/books/default/chapter/29/04/the-core#web2py-Schedulerbefore > asking ? > > > On Tuesday, May 20, 2014 9:46:39 PM UTC+2, DeanK wrote: >> >> I'm looking to use the built in scheduler to farm out wor

[web2py] scheduler worker assignment and disable behavior

2014-06-06 Thread DeanK
I'm have a few things that need clarification and am also experiencing some odd behavior with the scheduler. I'm using my app's db instance (mysql) for the scheduler. at the bottom of scheduler.py: from gluon.scheduler import Scheduler scheduler = Scheduler(db,heartbeat=3) I start my worke

[web2py] Re: scheduler worker assignment and disable behavior

2014-06-12 Thread DeanK
ow to be running should equal tasks listed as running. Thanks again for the help and making all this easy, awesome, and free. Dean On Saturday, June 7, 2014 12:35:56 PM UTC-4, Niphlod wrote: > > ok, my responses are inline your post > > On Friday, June 6, 2014 9:34:00 PM U

[web2py] Re: LinkedIn API Please help for the love of god.

2015-03-27 Thread DeanK
@Derek - Did you get auth0 integrated with web2py? On Monday, March 2, 2015 at 2:33:59 PM UTC-5, Derek wrote: > > It would help if you describe what you are doing, some code behind how you > are doing it, and what errors you are having. > > That said, I've had much success with Auth0. > https:

[web2py] hide profile fields based on role

2015-05-30 Thread DeanK
I'm trying to hide profile fields based on user role. For example "basic_user" should have some fields hidden. So in my db.py where I'm setting up a custom auth table: if 'profile' in request.args: # If the user is a basic_user hide power_user stuff if auth.has_membership('basic_user')

[web2py] Re: hide profile fields based on role

2015-05-30 Thread DeanK
> > On Saturday, May 30, 2015 at 5:51:45 PM UTC-4, DeanK wrote: >> >> I'm trying to hide profile fields based on user role. For example >> "basic_user" should have some fields hidden. So in my db.py where I'm >> setting up a custom auth table: >