[web2py] pysaml for web2py2.9.5

2014-10-14 Thread Prasad Muley
Hi All, I need to implement SSO using pysaml2 for a product. We've Okta as Identity provider. Our product uses *web2py 2.9.5 _ stable* version. web2py_change_log http://www.web2py.com/init/default/changelog says that *web2py 2.9.6-2.6.10* supports pysaml2. Should I upgrade my web2py

[web2py] Re: user_id is none when session is db

2014-10-14 Thread danny
some more info: it's the auth storage that fails to be assigned (is none) when session is in db, thus login succeeds, but in reality it fails since auth is None! On Monday, October 13, 2014 11:42:31 AM UTC+3, da...@mail.hebrew.edu wrote: hi, when session is stored in file, all is ok, but

Re: [web2py] Re: bootswatch theme - how to do it

2014-10-14 Thread clara
Thanks for your answer! I looked into bootstrap.min.css file and found that panel was not actually definedso I went ahead and added panel styles to the file. And regarding buttons rendering small, I found that the tutorial I was following indicated btn-lg for large buttons while the actual

[web2py] Scheduler only runs 1 task from 2 queued

2014-10-14 Thread António Ramos
Hello i have 2 tasks one hourly and one daily The daily did not run today so i changed it to next minute to test it . Tried several times and minutes ahead but never run. The other (hourly) i forced it to next minute and it run. Then i deleted from task daily the assigned worker name and still

[web2py] Re: user_id is none when session is db

2014-10-14 Thread Anthony
What exactly is None (i.e., what do you mean that auth is None)? Is auth defined after connecting the session? -- 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

[web2py] Re: Apsis Pro

2014-10-14 Thread Kenneth
Hello, do you mean using Apsis Pro? I have now idea, just integrating it, someobody else pays for it :=) Kenneth Den fredagen den 10:e oktober 2014 kl. 01:25:52 UTC+3 skrev Carlos Zenteno: Looks good! Can you tell us more or less how much it cost? -- Resources: - http://web2py.com -

[web2py] Re: Scheduler only runs 1 task from 2 queued

2014-10-14 Thread Niphlod
if you care to paste your current scheduler_task records, we can tell you what's preventing the task from being executed. On Tuesday, October 14, 2014 1:17:59 PM UTC+2, Ramos wrote: Hello i have 2 tasks one hourly and one daily The daily did not run today so i changed it to next minute to

Re: [web2py] pg8000 driver that comes with web2py 2.8.2 is not supporting JSON field type?

2014-10-14 Thread Niphlod
until pg8000 supports it, use psycopg2 instead. On Tuesday, October 14, 2014 2:26:34 AM UTC+2, ArnvShrma wrote: Hi, I am facing the exact same issue. Any work-around for this? On Saturday, March 8, 2014 8:15:26 PM UTC+5:30, Tony Locke wrote: Thanks for your list (and patch) Mariano,

[web2py] Re: Error starting up scheduler with postgresql - type oid 114 not mapped to py

2014-10-14 Thread Niphlod
the problem comes from pg8000 not supporting the json type. Use psycopg2 instead. On Monday, October 13, 2014 9:56:38 PM UTC+2, Sebastian Echeverria wrote: Hello, I am having some trouble starting up web2py's scheduler. I am working on a Ubuntu server, using web2py 2.9.9 deployed with

Re: [web2py] Re: Scheduler only runs 1 task from 2 queued

2014-10-14 Thread António Ramos
thank you [image: Imagem inline 1] 2014-10-14 13:23 GMT+01:00 Niphlod niph...@gmail.com: if you care to paste your current scheduler_task records, we can tell you what's preventing the task from being executed. On Tuesday, October 14, 2014 1:17:59 PM UTC+2, Ramos wrote: Hello i have 2

[web2py] Re: user_id is none when session is db

2014-10-14 Thread danny
sorry, some correction: the value of auth.user is None, auth is an object. which explains why auth.is_logged_in() is False even after a successful login On Tuesday, October 14, 2014 2:25:20 PM UTC+3, Anthony wrote: What exactly is None (i.e., what do you mean that auth is None)? Is auth

[web2py] scheduler isn't starting

2014-10-14 Thread Júlia Rizza
Hey guys :) I was following this video (http://vimeo.com/27478796) to run the scheduler, but whenever I try to run it in my app called *test*: python web2py.py -K test it only returns starting single-scheduler for test... and never change or start anything. Not even show an error. I am using

[web2py] Re: user_id is none when session is db

2014-10-14 Thread Anthony
I cannot reproduce this problem. Could you attach a minimal app the reproduces the behavior? Anthony On Tuesday, October 14, 2014 9:19:59 AM UTC-4, da...@mail.hebrew.edu wrote: sorry, some correction: the value of auth.user is None, auth is an object. which explains why

[web2py] Re: scheduler isn't starting

2014-10-14 Thread Niphlod
use python web2p.py -K test -D 0 to activate the debug logging if you need more details On Tuesday, October 14, 2014 3:29:12 PM UTC+2, Júlia Rizza wrote: Hey guys :) I was following this video (http://vimeo.com/27478796) to run the scheduler, but whenever I try to run it in my app called

Re: [web2py] Re: Scheduler only runs 1 task from 2 queued

2014-10-14 Thread Niphlod
your next_run_time is one month ahead . On Tuesday, October 14, 2014 2:37:35 PM UTC+2, Ramos wrote: thank you [image: Imagem inline 1] 2014-10-14 13:23 GMT+01:00 Niphlod nip...@gmail.com javascript:: if you care to paste your current scheduler_task records, we can tell you what's

Re: [web2py] how to set a default represent for all fields

2014-10-14 Thread Richard Vézina
for f in db.table.fields: if db.table[f].represent is None: db.table[f].represent = lambda value, row: value if value is not None else '---' Done! Richard On Mon, Oct 13, 2014 at 5:07 PM, drmb...@gmail.com wrote: I've gotten several complaints from my users about fields that

Re: [web2py] Re: Scheduler only runs 1 task from 2 queued

2014-10-14 Thread António Ramos
ARG THANK YOU! 2014-10-14 15:02 GMT+01:00 Niphlod niph...@gmail.com: your next_run_time is one month ahead . On Tuesday, October 14, 2014 2:37:35 PM UTC+2, Ramos wrote: thank you [image: Imagem inline 1] 2014-10-14 13:23 GMT+01:00 Niphlod nip...@gmail.com: if you care to paste

Re: [web2py] Re: Scheduler only runs 1 task from 2 queued

2014-10-14 Thread António Ramos
Please add a Run Now Button 2014-10-14 15:16 GMT+01:00 António Ramos ramstei...@gmail.com: ARG THANK YOU! 2014-10-14 15:02 GMT+01:00 Niphlod niph...@gmail.com: your next_run_time is one month ahead . On Tuesday, October 14, 2014 2:37:35 PM UTC+2, Ramos wrote: thank you

Re: [web2py] how to set a default represent for all fields

2014-10-14 Thread Richard Vézina
You can also add another for loop around for the entire tables like so : for t in db.tables: ... You have to specified table name like this : db[t][f] Richard On Tue, Oct 14, 2014 at 10:04 AM, Richard Vézina ml.richard.vez...@gmail.com wrote: for f in db.table.fields: if

[web2py] Re: scheduler isn't starting

2014-10-14 Thread Júlia Rizza
Ok, now this is the return: starting single-scheduler for test... DEBUG:web2py.scheduler.ereshkigal#15083:defining tables (migrate=True) DEBUG:web2py.scheduler.ereshkigal#15083:thread building own DAL object DEBUG:web2py.scheduler.ereshkigal#15083:looping...

[web2py] Re: pysaml for web2py2.9.5

2014-10-14 Thread Mandar Vaze
Does this help ? https://github.com/web2py/web2py/blob/447493c754da06b9e455643f6ce2d180add60391/gluon/contrib/login_methods/saml2_auth.py On Tuesday, October 14, 2014 12:53:43 PM UTC+5:30, Prasad Muley wrote: Hi All, I need to implement SSO using pysaml2 for a product. We've Okta as

[web2py] Re: pysaml for web2py2.9.5

2014-10-14 Thread Mandar Vaze
https://dl.dropboxusercontent.com/u/18065445/Tmp/saml2.pdf - Link found here : https://groups.google.com/forum/#!searchin/web2py/SAML2/web2py/8DgzUksCmSo/f-jlU5wV20UJ On Tuesday, October 14, 2014 10:33:03 PM UTC+5:30, Mandar Vaze wrote: Does this help ?

[web2py] Upload to static folder in other application

2014-10-14 Thread Annet
I web2py/applications I have 3 applications 1 application 'dbmodel' that contains the .table files in the databases folder and static files in the static folder, 1 application 'my' that serves as a backend and 1 application 'init' that serves as a frontend. As a way to reduce memory usage

Re: [web2py] Re: pysaml for web2py2.9.5

2014-10-14 Thread Prasad Muley
Thanks for Mandar. On Tue, Oct 14, 2014 at 10:59 PM, Mandar Vaze mandarv...@gmail.com wrote: https://dl.dropboxusercontent.com/u/18065445/Tmp/saml2.pdf - Link found here : https://groups.google.com/forum/#!searchin/web2py/SAML2/web2py/8DgzUksCmSo/f-jlU5wV20UJ On Tuesday, October 14, 2014

[web2py] Re: Upload to static folder in other application

2014-10-14 Thread Anthony
Have you tried: db.img_logo.image.uploadfolder = os.path.join(request.env. applications_parent, 'applications', 'my', 'uploads', folder) Anthony On Tuesday, October 14, 2014 1:29:39 PM UTC-4, Annet wrote: I web2py/applications I have 3

[web2py] Is it possible to restrict a user to single login instance ?

2014-10-14 Thread Mandar Vaze
This is related to possible security issue. I've written privately to Massimo and Anthony (in another email on this list - they suggested that security issues not be discussed publicly on this list) Lets say UserA logs in successfully from MachineA now without logging out from MachineA - UserA

[web2py] How to delete session file on logout

2014-10-14 Thread Mandar Vaze
(This is related to security issue - I've explained the security issue in detail to Massimo and anthony separately) I want the session to be invalid as soon as after user logs out (as well as after certain period of inactivity) This is supposed to be default behaviour - but somehow doesn't

Re: [web2py] Re: bootswatch theme - how to do it

2014-10-14 Thread Jim S
I think you may be looking at the documentation for bootstrap 3, but you're using bootstrap 2. Panel didn't exist until bootstrap 3 (someone please correct me if I'm wrong). There is a different documentation site based on version: Bootstrap 2: http://getbootstrap.com/2.3.2/index.html

[web2py] sqlfrom grid results none

2014-10-14 Thread max
i see everywhere, there is none returned in the , SQLFORM.grid when there is no value in the table. is there a way to globally disable this. i can do a dom manipulation using a jquery function, which is not very clean. has somebody any idea. thanks for any advice. dulip -- Resources: -

[web2py] Re: Is it possible to restrict a user to single login instance ?

2014-10-14 Thread Niphlod
you should track somewhere that userA from machineA is in there and check when userA logs in from machineB. There's a pretty outstanding issue in your design, though how do you recognize machineA from machineB ? On Tuesday, October 14, 2014 8:01:19 PM UTC+2, Mandar Vaze wrote: This is

[web2py] Re: scheduler isn't starting

2014-10-14 Thread Niphlod
what are you expecting to see ? Scheduler is running fine. It's meant to be an external process in an ever-ending loop waiting for tasks to be processed. On Tuesday, October 14, 2014 6:12:07 PM UTC+2, Júlia Rizza wrote: Ok, now this is the return: starting single-scheduler for test...

[web2py] Re: How to delete session file on logout

2014-10-14 Thread Anthony
On Tuesday, October 14, 2014 2:18:05 PM UTC-4, Mandar Vaze wrote: (This is related to security issue - I've explained the security issue in detail to Massimo and anthony separately) I want the session to be invalid as soon as after user logs out (as well as after certain period of

[web2py] Re: sqlfrom grid results none

2014-10-14 Thread Anthony
Maybe have a look at the solution proposed here: https://groups.google.com/forum/#!topic/web2py/ckZlkLVx-hc On Tuesday, October 14, 2014 2:53:13 PM UTC-4, max wrote: i see everywhere, there is none returned in the , SQLFORM.grid when there is no value in the table. is there a way to

Re: [web2py] Re: Scheduler only runs 1 task from 2 queued

2014-10-14 Thread Niphlod
I could say in the same manner please queue a task without any parameters to get it running right away, or code your own button In any case, we won't add such a button because you're missing the difference between a function and a task. If you need to run a function now, either queue it as a

[web2py] Re: Is it possible to restrict a user to single login instance ?

2014-10-14 Thread Anthony
You could check things like IP address and user agent, but these are imperfect identifiers (generating false positives and false negatives). You should also decide if you really need this level of security, as users may legitimately want to be logged in from multiple places (e.g., from laptop

Re: [web2py] Re: Semantic UI instead of bootstap

2014-10-14 Thread Ricardo Pedroso
On 10/14/14, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I really like semantic ui. On Monday, 13 October 2014 09:19:34 UTC-5, Ramos wrote: is semantic UI a good frontend ? http://semantic-ui.com/ Regards -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: scheduler isn't starting

2014-10-14 Thread Júlia Rizza
Well, since I'm following the video tutorial, I was expecting to have the same return, but nothing is really happening or working. My task does not run (and yep, I have one task and it is counting 0 taks on log). Em terça-feira, 14 de outubro de 2014 16h33min59s UTC-3, Niphlod escreveu: what

[web2py] Re: scheduler isn't starting

2014-10-14 Thread Niphlod
the tutorial is 3 years old can you please post your scheduler_task record so we see what's going on with that task ? Thanks! On Tuesday, October 14, 2014 11:20:11 PM UTC+2, Júlia Rizza wrote: Well, since I'm following the video tutorial, I was expecting to have the same return, but

[web2py] french web2py developper in paris

2014-10-14 Thread eric cuver
I want to know is there for developers in web2py on paris for projects in web2py in paris. -- 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

Re: [web2py] how to set a default represent for all fields

2014-10-14 Thread drmbded
I was expecting an elegant web2py solution but brute force works too. Thanks Richard. -- 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

[web2py] Re: Semantic UI instead of bootstap

2014-10-14 Thread eric cuver
semantic it's like web2py framework that is to say, the best in its field Le mardi 14 octobre 2014 07:17:36 UTC+2, Massimo Di Pierro a écrit : I really like semantic ui. On Monday, 13 October 2014 09:19:34 UTC-5, Ramos wrote: is semantic UI a good frontend ? http://semantic-ui.com/

Re: [web2py] pg8000 driver that comes with web2py 2.8.2 is not supporting JSON field type?

2014-10-14 Thread Arnav Sharma
Hi Niphlod, I tried using psycopg2 but there are few reasons because of which I can not use it. I am currently deploying travis CI to run Sahana Eden unit tests. psycopg2 fails a few of the tests which it really should not. You can see the build here [1]. [1]

Re: [web2py] Re: Scheduler only runs 1 task from 2 queued

2014-10-14 Thread António Ramos
My need of a Run now was only to run the code of a task for debugging purposes. when i´m building a task i need to test the code as i write so i repeatedly have to change the next run minute and wait like a sitting duck for it to happen. Is there a better way ? Thank you 2014-10-14 20:42

Re: [web2py] Re: Scheduler only runs 1 task from 2 queued

2014-10-14 Thread Niphlod
yes. web2py.py -M -S appname On Tuesday, October 14, 2014 11:51:35 PM UTC+2, Ramos wrote: My need of a Run now was only to run the code of a task for debugging purposes. when i´m building a task i need to test the code as i write so i repeatedly have to change the next run minute and

[web2py] Re: Apostrophe causes new column in PYFPDF

2014-10-14 Thread Massimo Di Pierro
I do not think web2py is escaping twice ever. The problem as to do with the input expected by pyfpdf. Can you please open a ticket with your solution and I will test it asap? On Saturday, 11 October 2014 04:42:54 UTC-5, Leonel Câmara wrote: Ok, I have tested this and I have to say sorry for

[web2py] Re: french web2py developper in paris

2014-10-14 Thread Massimo Di Pierro
Looking for projects or for developers? On Tuesday, 14 October 2014 04:24:12 UTC-5, eric cuver wrote: I want to know is there for developers in web2py on paris for projects in web2py in paris. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] pg8000 driver that comes with web2py 2.8.2 is not supporting JSON field type?

2014-10-14 Thread Niphlod
On Tuesday, October 14, 2014 11:50:45 PM UTC+2, ArnvShrma wrote: Hi Niphlod, I tried using psycopg2 but there are few reasons because of which I can not use it. I am currently deploying travis CI to run Sahana Eden unit tests. psycopg2 fails a few of the tests which it really should not.

[web2py] Re: scheduler isn't starting

2014-10-14 Thread Júlia Rizza
Ok, this is my record :) https://lh5.googleusercontent.com/-NUA0FR72Y5A/VD217VPCzjI/F-8/SsnVbHJSiac/s1600/Screenshot%2Bfrom%2B2014-10-14%2B20%3A45%3A36.png

[web2py] Re: Semantic UI instead of bootstap

2014-10-14 Thread Matheus Cardoso
I do like the idea behind Semantic-UI. But still lacks some documentation. However seems promissor and more easy to learn and develop. On Monday, October 13, 2014 11:19:34 AM UTC-3, Ramos wrote: is semantic UI a good frontend ? http://semantic-ui.com/ Regards -- Resources: -

[web2py] Re: Returning a token for Android app authentication

2014-10-14 Thread Mark Li
Hey Mark, I did finish this, although it's been some time since I've looked into the code for the mobile-related stuff. Most of it still makes sense to me On Friday, October 10, 2014 1:31:09 PM UTC-7, Mark Graves wrote: Did you ever finish this? I implemented something similar. I'd love

Re: [web2py] pg8000 driver that comes with web2py 2.8.2 is not supporting JSON field type?

2014-10-14 Thread Anthony
Is your problem that pg8000 doesn't support the JSON field type, or something else? On Monday, October 13, 2014 8:26:34 PM UTC-4, ArnvShrma wrote: Hi, I am facing the exact same issue. Any work-around for this? On Saturday, March 8, 2014 8:15:26 PM UTC+5:30, Tony Locke wrote: Thanks for

[web2py] Blog about translating for OSS (tool-side)

2014-10-14 Thread Dave S
The (original) author of SumatraPDF has also written AppTranslator, a tool for sharing translation effort for Open Source projects. http://blog.kowalczyk.info/article/wjb1/Design-and-implementation-of-translation-system-.html The toolset is partly web based (http://www.apptranslator.org/), and

[web2py] Re: Is it possible to restrict a user to single login instance ?

2014-10-14 Thread Mandar Vaze
I agree that this could be annoying, but the request came from customer :) - We are trying to negotiate this down, but in the mean time I would like to be prepared, if this becomes hard requirement. (As I explained - this is also tied to security issue - I'll write to you separately) Anyway -

[web2py] Re: Is it possible to restrict a user to single login instance ?

2014-10-14 Thread Mandar Vaze
Thanks for the pointers. If I decided to add this check - *where in the code/flow should this check go* ? -Mandar On Wednesday, October 15, 2014 1:01:42 AM UTC+5:30, Niphlod wrote: you should track somewhere that userA from machineA is in there and check when userA logs in from machineB.

[web2py] Re: user_id is none when session is db

2014-10-14 Thread danny
I created a new application, changed db.py so that session.connect(…) uses postgres, created a test user, and all seems ok :-( so the hunting is still on, what bothers me is that all works ok when session is stored in file! it could be my pam_auth, but it has been working without a

[web2py] Re: Is it possible to restrict a user to single login instance ?

2014-10-14 Thread nick name
On Tuesday, October 14, 2014 9:01:19 PM UTC+3, Mandar Vaze wrote: Is it possible to either : not allow login from MachineB (show message that You are currently logged in from MachineA - continue to access the application from MachineA, or logout from MachineA... or some such message.) OR