Re: [web2py] Read excel sheet in web2py

2012-04-28 Thread RAHUL PRIYADARSI
Dear All, Thank you very much for your reply. I was getting this error because as Anthony pointed out "That just means you didn't install or import the module correctly. ".So I downloaded xlrd from this link: http://pypi.python.org/packages/source/x/xlrd/xlrd-0.7.7.tar.gz#md5=ba46c586b4c1df977bf7bd

Re: [web2py] Re: File generation using web2py

2012-04-29 Thread RAHUL PRIYADARSI
Dear All, Thanks for your answers.But what I was looking for was,putting into simple words,implementing a use case similar to the following "The system maintains the data related to each transaction.Each transaction includes the list of items demanded per transaction with each item belonging to a c

Re: [web2py] Re: File generation using web2py

2012-04-30 Thread RAHUL PRIYADARSI
ingIO, you can use it as a file and write to > it mixed content : simple text and csv data. > > On Mon, Apr 30, 2012 at 6:03 AM, RAHUL PRIYADARSI > wrote: > >> Dear All, >> Thanks for your answers.But what I was looking for was,putting into >> simple words,i

Re: [web2py] Re: File generation using web2py

2012-05-02 Thread RAHUL PRIYADARSI
oing to import them into some other software that needs only csv content, >> python has a module called StringIO, you can use it as a file and write >> to it mixed content : simple text and csv data. >> >> On Mon, Apr 30, 2012 at 6:03 AM, RAHUL PRIYADARSI <> wrote: >

Re: [web2py] Re: Obtaining new names of more than one uploaded files in web2py

2012-05-04 Thread RAHUL PRIYADARSI
"I hope I understood your question. ".Yes u did! N thanks! Silly question actually.But I feel that notations used in web2py official book are a bit ambiguous(at least at some places).Hope it improves! Regards, :-) On 5 May 2012 04:37, villas wrote: > Those fields would have different fieldnames

Re: [web2py] Re: Exception not thrown for duplicate values.

2012-05-05 Thread RAHUL PRIYADARSI
Mr.Massimo, Thank you for your response.And it is not only the case of unique=true constraing, but also other constraints like is_not_empty. The db is not enforcing these constraints if they are not declared at the first shot. But what shall be done if i wish to enforce theses? shall i drop the tab

Re: [web2py] Accessing extra sqlform elements from view

2012-06-08 Thread RAHUL PRIYADARSI
d to access the field itself(to allow user to input values in it).But any way thanks for it! Yours Sincerely, Rahul Priyadarsi. On 6 June 2012 18:40, Cornelius Kölbel wrote: > Hello Rahul, > > I think you should be able to access it as > > form.vars.agree > > which wo

Re: [web2py] Re: Unable to insert data into sqllite database

2012-06-09 Thread RAHUL PRIYADARSI
command if i change a few field definitions(like adding unique constraint). But they did get created again when i changed the model. I hope you can help me find a way out of this! Yours Sincerely, Rahul Priyadarsi. On 9 June 2012 20:08, Massimo Di Pierro wrote: > I just tried this and it wo

Re: [web2py] Re: Unable to insert data into sqllite database

2012-06-10 Thread RAHUL PRIYADARSI
.py. After this only problems started appearing! Thanks Again, Yours Sincerely rahulserver. On 10 June 2012 11:58, RAHUL PRIYADARSI wrote: > Dear Mr.Massimo!, > Thank you very much for your quick response. > I am presently using web2py version 1.99.7(download url: > http:

Re: [web2py] Re: Unable to insert data into sqllite database

2012-06-10 Thread RAHUL PRIYADARSI
the files in the database folder without clearing the model, the database freezes. Thanking you once more! With Regards. rahulserver On 10 June 2012 12:46, RAHUL PRIYADARSI wrote: > Dear Mr.Massimo, > I have now resolved the issue. The problem was that the line 'db = > DAL('sqli

Re: [web2py] Re: form with variable number of fields

2012-06-12 Thread RAHUL PRIYADARSI
en I tried accessing its using form.vars.('nm'+str(count)) then it gives me invalid format error. So how can we access form elements generated at runtime? With Regards, Rahul Priyadarsi. On 12 June 2012 08:11, Massimo Di Pierro wrote: > This is best done in JS clientside. something li

[web2py] Invalid SQLFORM submit generates ticket instead of redirecting back to form with errors

2017-01-10 Thread Rahul Priyadarsi
Here is my db.py: db.define_table('antenna_details', Field('antenna_name',required=True), Field('model_name',required=True), Field('project_name',required=True), Field('frequency_band',required=True), Field('polarizati

[web2py] Re: Invalid SQLFORM submit generates ticket instead of redirecting back to form with errors

2017-01-11 Thread Rahul Priyadarsi
red on SO: http://stackoverflow.com/a/41554743/440323 > > Anthony > > On Tuesday, January 10, 2017 at 6:07:17 PM UTC-5, Rahul Priyadarsi wrote: >> >> Here is my db.py: >> >> db.define_table('antenna_details', >> Field('ant

[web2py] Order of form.vars not same as they appear in form

2017-01-12 Thread Rahul Priyadarsi
Currently I see that the order in which the fields appear in form is not same when i iterate through form.vars I am using SQLFORM. So how do I get the form.vars so that they appear in same order as they do on the form? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

Re: [web2py] Re: Order of form.vars not same as they appear in form

2017-01-13 Thread Rahul Priyadarsi
ludes the list of field > names in form.fields. > > Anthony > > > On Thursday, January 12, 2017 at 1:37:03 PM UTC-5, Rahul Priyadarsi wrote: >> >> Currently I see that the order in which the fields appear in form is not >> same when i iterate through form.vars >