[web2py] Decoding file name.

2015-07-28 Thread Prasad Muley
Hi All, file name gets store as *93f00342868f4085.73716c2e6c6f67.log *in db field. I've tried to decode it using base64 But didn't get the original file name. Is there any way to decode it and get the original file name? -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Display SQLFORM.Grid inside view of another SQLFORM.grid.

2015-07-07 Thread Prasad Muley
Hi, I have a SQLFORM.grid which displays information about employee table. Every employee may have multiple addresses. So I have to display multiple address in another grid (address grid) inside edit form of the employee grid. *models/db.py* db.define_table('employee',

[web2py] Re: Display SQLFORM.Grid inside view of another SQLFORM.grid.

2015-07-07 Thread Prasad Muley
Hi stifan, I've tried to give a different name for each SQLFORM.grid But it didn't work. On Tuesday, July 7, 2015 at 5:56:18 PM UTC+5:30, 黄祥 wrote: had you try to give a name for each SQLFORM.grid(formname = 'form1') and SQLFORM.grid(formname = 'form2') best regards, stifan --

Re: [web2py] Re: Export to csv which is not taking label from model file, where Grid takes.

2015-05-13 Thread Prasad Muley
Hi Anthony, I've used the custom CSV exporter. I tried to use *colnames* parameters of export_to_csv_file But got an error (mentioned earlier). Am I missing anything in following code?? class CSVExporter(object): This class is used when grid's table contains reference key id.

[web2py] Re: Export to csv which is not taking label from model file, where Grid takes.

2015-05-13 Thread Prasad Muley
Can use colnames parameter of export_to_csv_file ? I tried to use it But got following error. type 'exceptions.AttributeError' 'Row' object has no attribute '_extra' What is the format for colnames? On Wednesday, May 13, 2015 at 1:23:33 AM UTC+5:30, Niphlod wrote: the export are for raw

[web2py] Re: Virtual fields in SQLFORM.grid and Export to CSV

2015-01-22 Thread Prasad Muley
assign *selectable_columns* to *rows.colnames* Can I create a issue for this and send the fix via pull request? On Tuesday, January 20, 2015 at 7:36:00 PM UTC+5:30, Prasad Muley wrote: Hi All, I've some virtual fields defined in a table. These are displayed on grid using viewargs

[web2py] Virtual fields in SQLFORM.grid and Export to CSV

2015-01-20 Thread Prasad Muley
Hi All, I've some virtual fields defined in a table. These are displayed on grid using viewargs. I've provided Export to CSV But it fails because of virtual fields. It shows errors as '*Row'* *Object has no attribute 'virtual_field_name' * app settings as below:

Re: [web2py] Re: Exporting from a SQLFORM.grid with customized search queries

2015-01-15 Thread Prasad Muley
Hi Massimo, Thanks for reply. I've sent you the pull request on github. Let me know if you get any errors :) On Thu, Jan 15, 2015 at 9:26 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Thanks. I will merge this patch! On Thursday, 15 January 2015 04:01:24 UTC-6, Prasad

Re: [web2py] Re: Error: Exporting CSV file in SQLFORM.grid

2015-01-15 Thread Prasad Muley
. On Thu, Jan 15, 2015 at 1:32 PM, Tim Richardson t...@tim-richardson.net wrote: A quick question: if you try the standard Tab Separated Value export, does it work? (you can refer back to your stack overflow link to see why I ask). On Thursday, 15 January 2015 04:31:56 UTC+11, Prasad Muley wrote

[web2py] Re: Exporting from a SQLFORM.grid with customized search queries

2015-01-15 Thread Prasad Muley
Hello Massimo and Dexter, I've a fix for this issue. I've tested it and attached the diff file. PFA. Let me know if I missed anything. Btw Can I send pull request? On Saturday, October 25, 2014 at 5:17:24 AM UTC+5:30, Massimo Di Pierro wrote: Hello Dexter, I think your are right.

[web2py] Re: Exporting from a SQLFORM.grid with customized search queries

2015-01-14 Thread Prasad Muley
Hi Dexter, I am facing the same issue. I've posted a question here https://groups.google.com/forum/#!topic/web2py/P2avEkVVeZg It is throwing an exception because of following the line * dbset = dbset(SQLFORM.build_query(* *sfields,

[web2py] Error : Exporting CSV file in SQLGRID

2015-01-14 Thread Prasad Muley
http://www.quora.com/Anthony-BastardiHi All, I've used a SQLFORM.grid for displaying table content. I've provided export to CSV option in grid. My app settings are as below: *models/db.py* db.define_table('company', Field('name', 'string', length=128, notnull=True,

[web2py] Error: Exporting CSV file in SQLFORM.grid

2015-01-14 Thread Prasad Muley
Hello All, I've used a SQLFORM.grid for displaying table content. I've provided export to CSV option in grid. My app settings are as below: *models/db.py* db.define_table('company', Field('name', 'string', length=128, notnull=True, unique=True),

[web2py] Open Redirect Vulnerability and auth.settings

2014-12-23 Thread Prasad Muley
Hi All, We're using web2py_2.9 and There is open redirect vulnerability exist following pages: *1) **Change Profile: * https://127.0.0.1:8000/asdf/default/user/profile?_next=http%3A%2F%2Fgoogle.com *2) Change Password: *

[web2py] Re: web2py and pylint

2014-12-17 Thread Prasad Muley
Hi Flagist, I've installed pylint-web2py plugin by downloading from flagist-pylint-web2py https://github.com/flagist0/pylint-web2py github. I've checked whether pylint-web2py plugin is successfully installed or not using following command: *$ pip freeze | grep pylint-web2py

Re: [web2py] Re: web2py and pylint

2014-12-17 Thread Prasad Muley
the better; formerly known as logilab-astng) and logilab-common (version = 0.53) packages This may provide additional clues. -Mandar On Wednesday, December 17, 2014 8:32:23 PM UTC+5:30, Prasad Muley wrote: Hi Flagist, I've installed pylint-web2py plugin by downloading from flagist

Re: [web2py] Re: web2py and pylint

2014-12-17 Thread Prasad Muley
* On Wednesday, December 17, 2014 7:02:23 PM UTC+4, Prasad Muley wrote: Hi Flagist, I've installed pylint-web2py plugin by downloading from flagist-pylint-web2py https://github.com/flagist0/pylint-web2py github. I've checked whether pylint-web2py plugin is successfully installed

[web2py] Unable to upload TIFF image files.

2014-12-02 Thread Prasad Muley
Hi All, I am trying to upload images for company table as below: *models/db.py* db.define_table('company', Field('name', 'text', notnull=True), Field('abbrev', 'string', length=32), Field('logo', 'upload',

[web2py] Displaying blob image on login page

2014-12-01 Thread Prasad Muley
Hi All, I need to display logo according to url in login page. I tried to display the logo but it always shows *404 not found* error on login page. My app settings are below: *models/db.py* db.define_table('company', Field('name', 'text', notnull=True),

Re: [web2py] Re: Displaying blob image on login page

2014-12-01 Thread Prasad Muley
-stored-on-a-database-to-an-image-on-an-html-website On Tuesday, December 2, 2014 12:09:25 PM UTC+5:30, Prasad Muley wrote: Hi All, I need to display logo according to url in login page. I tried to display the logo but it always shows *404 not found* error on login page. My app settings

Re: [web2py] Re: Displaying blob image on login page

2014-12-01 Thread Prasad Muley
'])) On Tuesday, 2 December 2014 00:39:25 UTC-6, Prasad Muley wrote: Hi All, I need to display logo according to url in login page. I tried to display the logo but it always shows *404 not found* error on login page. My app settings are below: *models/db.py* db.define_table('company

[web2py] Query difference in SQLFORM.GRID

2014-11-19 Thread Prasad Muley
Hi All, I want to support multiple keywords search as well as web2py's built-in-search. I've written one module which will check if in_built_search is called or not. * If in_built_search isn't called then search keywords in custom_module* *def built_in_search(keywords):* *

Re: [web2py] Re: Query difference in SQLFORM.GRID

2014-11-19 Thread Prasad Muley
), but (a) that function does not return a tuple, and (b) you don't use new_query when calling the grid. Anthony On Wednesday, November 19, 2014 6:16:19 AM UTC-5, Prasad Muley wrote: Hi All, I want to support multiple keywords search as well as web2py's built-in-search. I've written one

Re: [web2py] SQLFORM.grid custom search where is the error?

2014-11-18 Thread Prasad Muley
This problem still exist in web2py 2.9.6. I've tried to use custom grid search But It is showing me invalid query near grid. On Thursday, February 21, 2013 10:09:33 PM UTC+5:30, Mandar Vaze wrote: I'm using Version 2.3.2 (2012-12-17 15:03:30) stable and the problem still persists. i.e.

Re: [web2py] Re: SAML2 Service Provider app in web2py?

2014-10-27 Thread Prasad Muley
, 2014 at 9:01 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I do not know what to say. It works with the provide I was using. Look into the provider log. perhaps there is an error message there. On Friday, 24 October 2014 19:30:24 UTC-5, Prasad Muley wrote: Yes. I've printed

Re: [web2py] Re: SAML2 Service Provider app in web2py?

2014-10-24 Thread Prasad Muley
Yes. I've printed it. It shows empty dict On Oct 23, 2014 7:33 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Yes it works for me. Can you help debug? Can you print d['response'] and try figure out where the response attributes are? On Friday, 17 October 2014 00:42:29 UTC-5, Prasad

[web2py] Re: SAML2 Service Provider app in web2py?

2014-10-20 Thread Prasad Muley
Hi Massimo, Could you reply on my query? On Friday, August 22, 2014 7:26:31 AM UTC+5:30, Massimo Di Pierro wrote: Incidentally, I just committed an experimental SAML2 login method for Web2py. Please contact me privately and perhaps you can help me test it. Massimo On Thursday, 21

[web2py] error in sample saml app in web2py.2.9.6

2014-10-16 Thread Prasad Muley
Hi All, I am getting an error when I try to login in sample *saml2 app* ( http://127.0.0.1:8000/saml2/default/user/login?_next=/saml2/default/index) type 'exceptions.IOError' [Errno 2] No such file or directory: u'pki/mycert.pem' Did anybody use sample saml2? -- Resources: -

Re: [web2py] error in sample saml app in web2py.2.9.6

2014-10-16 Thread Prasad Muley
onelogin is idp) If I am not login then it'll open idp login page and redirect to *http://127.0.0.1:8000/saml2/default/user/index http://127.0.0.1:8000/saml2/default/user/index *page. On Thu, Oct 16, 2014 at 12:49 PM, Prasad Muley pmmu...@gmail.com wrote: Hi All, I am getting an error

[web2py] Re: web2py 2.9.6 is out!

2014-10-16 Thread Prasad Muley
Hi Massimo, I have had followed your instructions and got following error. type 'exceptions.IOError' [Errno 2] No such file or directory: u'pki/mycert.pem' I think, there is a wrong path assigned in *applications/saml2/private/sp_config.py* for these keys I've resolved this error by

[web2py] Re: SAML2 Service Provider app in web2py?

2014-10-16 Thread Prasad Muley
Hi Wel, Did you test SAML2 app? there is an experimental saml2 app in web2py_2.9.6 I need to use saml2(web2py app) as service provider with onelogin (which is idp) I am getting an error (Screen shot is attached PFA). here is my config settings 1) *private/sp_conf.py* # Make sure the

[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

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

2014-10-14 Thread Prasad Muley
10:33:03 PM UTC+5:30, Mandar Vaze wrote: Does this help ? https://github.com/web2py/web2py/blob/447493c754da06b9e455643f6ce2d1 80add60391/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

Re: [web2py] Re: Scheduler error

2014-08-28 Thread Prasad Muley
, , migrate=False) On Tuesday, August 26, 2014 11:18:25 AM UTC+2, Prasad Muley wrote: Hi, I tried to access db.scheduler_run table but it is giving me following error in web2py shell and app admin UI. *OperationalError: (1054, Unknown column 'scheduler_run.scheduler_task' in 'field

Re: [web2py] Re: Scheduler error

2014-08-28 Thread Prasad Muley
, 2014 9:30:28 AM UTC+2, Prasad Muley wrote: Hi Niphlod, I need to get current task's id. I saw your sample scheduler example on niphlod_w2p_scheduler_tests https://github.com/niphlod/w2p_scheduler_tests/blob/master/models/scheduler.py I did it in same way but got error. *#models

Re: [web2py] Re: Scheduler error

2014-08-28 Thread Prasad Muley
Exception(Mail sent failed) This is working for me. It will change current task status to FAILED. I can easily find which mails sent failed due to mail.send errors On Thu, Aug 28, 2014 at 3:52 PM, Niphlod niph...@gmail.com wrote: no. On Thursday, August 28, 2014 10:26:42 AM UTC+2, Prasad Muley

Re: [web2py] Re: Scheduler error

2014-08-28 Thread Prasad Muley
) This is working for me. It will change current task status to FAILED. I can easily find which mails sent failed due to mail.send errors On Thu, Aug 28, 2014 at 4:03 PM, Prasad Muley pmmu...@gmail.com wrote: NP. I got another way to catch failed mail/task. *#models/scheduler.py* def

[web2py] Scheduler error

2014-08-26 Thread Prasad Muley
Hi, I've web2py 2.3 version. I tried to use scheduler for mail sending. I got this error while creating a worker for scheduler $ python web2py.py -K send_mail_app [12:07:02] web2py Web

Re: [web2py] Re: Scheduler error

2014-08-26 Thread Prasad Muley
Thanks. It works. On Tue, Aug 26, 2014 at 1:04 PM, Niphlod niph...@gmail.com wrote: there's yet a scheduler_task table in the database. Fix migrations in the usual way, or set Scheduler(db,,migrate=False) to avoid the error. On Tuesday, August 26, 2014 8:58:06 AM UTC+2, Prasad Muley

Re: [web2py] Re: Scheduler error

2014-08-26 Thread Prasad Muley
a scheduler_task table in the database. Fix migrations in the usual way, or set Scheduler(db,,migrate=False) to avoid the error. On Tuesday, August 26, 2014 8:58:06 AM UTC+2, Prasad Muley wrote: Hi, I've web2py 2.3 version. I tried to use scheduler for mail sending. I got this error while

[web2py] Use of mail.send in Scheduler

2014-08-13 Thread Prasad Muley
Hi, I want to use mail.send in Scheduler. Is there any way to use it in scheduler? AFAIK task which queued in scheduler.queue_task must be present in models/scheduler.py So how can I override mail.send() in models/scheduler.py -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Re: Appending div class=error for validation using jQuery.

2013-07-25 Thread Prasad Muley
has anybody got my question? On Thu, Jul 25, 2013 at 2:30 PM, Prasad Muley pmmu...@gmail.com wrote: Hello Joe, I made a mistake while pasting. // working isn't there in updated code. actual code is {{extend 'layout.html'}} {{=form}} script jQuery(document).ready

Re: [web2py] Re: Appending div class=error for validation using jQuery.

2013-07-25 Thread Prasad Muley
/div).insertAfter( #taxpayer_name); Your code fails because the div.error is created inside the input element Il giorno giovedì 25 luglio 2013 13:39:34 UTC+2, Prasad Muley ha scritto: has anybody got my question? On Thu, Jul 25, 2013 at 2:30 PM, Prasad Muley pmm...@gmail.com wrote: Hello

[web2py] Appending div class=error for validation using jQuery.

2013-07-24 Thread Prasad Muley
Hello All, I am newbie web2py programmer. I tried to do custom validation using jQuery but not gettng expected result. Code is as followed: *Model-db.py* db.define_table('taxpayer', Field('name'), Field('married','boolean'),

[web2py] Error when Inserting data into table.

2013-07-10 Thread Prasad Muley
Hello All, I am newbie to web2py framework. I have created one database connection string to 'Mysql' as prankester@Altocumulus: ~ master ⚡ $ bash cmdweb2py.sh [17:21:35] web2py Web Framework Created by Massimo Di Pierro, Copyright

[web2py] Failed to Insert into Mysql Database

2013-07-10 Thread Prasad Muley
Hello all, I have created one table called 'Programmer'. Table creation is done successfully but whenever I tried to insert data it shows me errors 'test.Programmer' doesn't exist. I have done in following way. prankester@Altocumulus: ~ master ⚡ $ bash cmdweb2py.sh