[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 (Docume

[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 >

[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',

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-12 Thread Prasad Muley
Can use colnames parameter of export_to_csv_file ? I tried to use it But got following error. '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 processing, so they get the same r

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

2015-01-22 Thread Prasad Muley
hould 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 disp

[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: *controllers/default.p

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

2015-01-15 Thread Prasad Muley
ary 2015 04:01:24 UTC-6, Prasad Muley wrote: >> >> 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

[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

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

2015-01-15 Thread Prasad Muley
issue. On Thu, Jan 15, 2015 at 1:32 PM, Tim Richardson 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

[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 It is throwing an exception because of following the line * dbset = dbset(SQLFORM.build_query(* *sfields, request.vars.get('k

[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), Field('a

[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, uniq

[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: * https://127.0.0.1:8000/asdf/default/user/change_passwo

Re: [web2py] Re: web2py and pylint

2014-12-17 Thread Prasad Muley
tions/asdf/scripts/asdf.py* > > > > > 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.c

Re: [web2py] Re: web2py and pylint

2014-12-17 Thread Prasad Muley
ires the astroid > (the later 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: >> >> H

[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 github. I've checked whether pylint-web2py plugin is successfully installed or not using following command: *$ pip freeze | grep pylint-web2py

[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', upload

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

2014-12-01 Thread Prasad Muley
RL('default', 'show_logo', > args=company_rec['logo'])) > > > 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 >> displa

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

2014-12-01 Thread Prasad Muley
isplay on login page. On Tue, Dec 2, 2014 at 12:44 PM, Mandar Vaze wrote: > > http://stackoverflow.com/questions/16279856/converting-blob-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

[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: Query difference in SQLFORM.GRID

2014-11-19 Thread Prasad Muley
t count in pdb as well as on grid*. Why is grid showing different records (count)? It is showing same record (count) on DAL or PDB. On Wed, Nov 19, 2014 at 7:47 PM, Anthony wrote: > Is this the exact code? I notice that the output of the call to > _custom_search_query gets assigned to the tuple (new_q

[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] 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

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

2014-10-27 Thread Prasad Muley
at, Oct 25, 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, Pras

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" 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:2

[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 Thursda

[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] 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. [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 changing two lines in CONFIG s

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

2014-10-16 Thread Prasad Muley
: "%s/pki/mycert.pem"% PATH, It successfully check whether I am login in idp or not (in my case 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> *pa

[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) [Errno 2] No such file or directory: u'pki/mycert.pem' Did anybody use sample saml2? -- Resources: - http://web2py.com - http://web2py.co

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

2014-10-14 Thread Prasad Muley
14, 2014 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

[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 says that *web2py 2.9.6-2.6.10* supports pysaml2. Should I upgrade my web2py ve

Re: [web2py] Re: Scheduler error

2014-08-28 Thread Prasad Muley
raise 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 4:03 PM, Prasad Muley wrote: > NP. I got another way to catch fai

Re: [web2py] Re: Scheduler error

2014-08-28 Thread Prasad Muley
if not result: raise 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 wrote: > no. > > > On T

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> >

Re: [web2py] Re: Scheduler error

2014-08-28 Thread Prasad Muley
duler_tasks, scheduler_run table from your > backend MANUALLY > - use Scheduler(db, , migrate=True) > - open appadmin > - reset Scheduler(db, , migrate=False) > > > On Tuesday, August 26, 2014 11:18:25 AM UTC+2, Prasad Muley wrote: > >> Hi, >&g

Re: [web2py] Re: Scheduler error

2014-08-26 Thread Prasad Muley
> 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 wrote: >> >> Hi, >> I've web2py 2.3 vers

Re: [web2py] Re: Scheduler error

2014-08-26 Thread Prasad Muley
Thanks. It works. On Tue, Aug 26, 2014 at 1:04 PM, Niphlod 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

[web2py] Scheduler error

2014-08-25 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

[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 (Do

Re: [web2py] Re: Appending for validation using jQuery.

2013-07-25 Thread Prasad Muley
uot;).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

Re: [web2py] Re: Appending 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 wrote: > Hello Joe, > I made a mistake while pasting. // working isn't there in > updated code. > actual code is > {{extend 'layout.html'}} > {{=form}} > &g

[web2py] Appending 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'), Field('spo

[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

[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 200