[web2py] Re: python 3 / web2py 2.18.5 - Sequence of bytes expected error

2019-06-01 Thread Sundar
Ignore this. I am unable to reproduce it for now. = On Thursday, May 30, 2019 at 2:36:50 PM UTC+5:30, Sundar wrote: > > When I try to run the above version under Apache (2.4), welcome app screen > comes. When I click on 'Admin' button, an error m

[web2py] python 3 / web2py 2.18.5 - Sequence of bytes expected error

2019-05-30 Thread Sundar
When I try to run the above version under Apache (2.4), welcome app screen comes. When I click on 'Admin' button, an error message is displayed. Apache log shows the error as TypeError: sequence of byte string values expected, value of type str found\r, referer: http://localhost:85/welcome/defa

[web2py] Re: Define table but not add it to the database

2017-05-19 Thread Sundar
Yes, 'attaching the table' does not allow references. On second thoughts, it is somewhat inconvenient to use that feature too. Let me see if another method will work. In web2py directory, under site-packages, you can define a module (or a simple .py file) wherein you can define the required dic

[web2py] Re: Define table but not add it to the database

2017-05-18 Thread Sundar
See https://www.sqlite.org/lang_attach.html solves your problem. Cheers. === On Tuesday, May 16, 2017 at 5:46:25 PM UTC+5:30, lyn2py wrote: > > Is there is a way to define a table without adding it to the sqlite > database? I wish to define a table

[web2py] Re: Define table but not add it to the database

2017-05-17 Thread Sundar
You still need somewhere to 'store' it. Rght? May be you can create another SQLITE DB (say db1) and use it for your purpose. (Of course, 'join'ing with db1 table data will have to be done through your program). On Tuesday, May 16, 2017 at 5:46:

[web2py] Re: Using ROWID function as id field in sqlite tables

2017-02-20 Thread Sundar
Thanks Leonel. It was my mistake. It works now. On Monday, July 15, 2013 at 4:35:03 AM UTC+5:30, Woody wrote: > > This may be something that is known by people with more experience than > me, but it took me a lot of experimenting to figure it out, so I thought I > would post it here so others wi

[web2py] Re: Using ROWID function as id field in sqlite tables

2017-02-17 Thread Sundar
An old thread - but I seem to have some problems using 'rowid' as id. The statement Field('rowid', 'id') causes the error: invalid table/column name "rowid" is a "ALL" reserved SQL/NOSQL keyword What could I be possibly doing wrong? (I tried rowid in lower as well as upper case) Thanks.

[web2py] Re: How to solve vertical alignment too high of SQLForm read-only field

2016-11-29 Thread Sundar
he values for all the selected record and I needed to set them as the values of the hidden field. r has been fetched before the below code in the function. 4. Simpler codes - noted and thanks a lot for the simplificatio

[web2py] Re: How to solve vertical alignment too high of SQLForm read-only field

2016-11-29 Thread Sundar
Yes- it looks very bad. I think the below method will work. (Let me know if you need any elaboration) rofields = [db..field1, .] hidden = {} for f in rofields: fname = str(f).split('.')[1] hidden[fname] = r[fname] form1 = SQLFORM(db., record= , showid=True, hidden=hidden) for f in rofields:

[web2py] Files in models directory ignored....

2015-09-22 Thread Sundar
Not sure if it is recorded in the documentation. But it took some time for me to figure out that the files in Models Directory that include - (hyphen) in their names are ignored by Web2py - and I do not see them in Appadmin either. Not sure if some other characters (like hyphen) also cause this

[web2py] Re: Python 101

2015-04-01 Thread Sundar
://stackoverflow.com/questions/5244810/python-appending-a-dictionary-to-a-list-i-see-a-pointer-like-behavior In your first example, may be you can append a new dictionary with values from temp1: that is temp.append({'a':temp1['a'].}) Good luck. Sundar ---

Re: [web2py] Re: Web Development Introduction Based On Web2py

2013-06-12 Thread Sundar Nadimpalli
Thank you very much. That worked. ~~ Sundar Ramanujam Nadimpalli On Wed, Jun 12, 2013 at 3:25 PM, Johann Spies wrote: > On 12 June 2013 11:33, Sundar Nadimpalli wrote: > >> >> Thanks for the reply. I did what you suggested but I get an er

Re: [web2py] Re: Web Development Introduction Based On Web2py

2013-06-12 Thread Sundar Nadimpalli
. ~~ Sundar Ramanujam Nadimpalli On Wed, Jun 12, 2013 at 2:45 PM, Johann Spies wrote: > Try changing the third line in to > > (T('Login'), False, URL('default', 'user'), []), > > and see whether it makes a difference. > > Do you still have

Re: [web2py] Re: Web Development Introduction Based On Web2py

2013-06-12 Thread Sundar Nadimpalli
t', 'help'), []), (T('Login'), False, URL('default', 'user', 'login'), []), (T('Privacy'), False, URL('default', 'privacy'), []), ] Am I doing something wrong? Please ad

Re: [web2py] Re: Web Development Introduction Based On Web2py

2013-06-06 Thread Sundar Nadimpalli
Wow. Very happy to note that. ~~ Sundar Ramanujam Nadimpalli Signum Product Solutions Ph: +91-80-23453248 Cell: +91-9880712035 Email: sun...@signumsol.com Web: www.signumsol.com Skype: sundar.nadimpalli On Thu, Jun 6, 2013 at 11:34 PM, Vinicius Assef wrote

[web2py] Re: Web Development Introduction Based On Web2py

2013-06-06 Thread Sundar Nadimpalli
Hi Marco, I have a heard lot of praise for your tutorial and can't wait to get started. But your site is down and returns a 502. I know that you may be busy with other things, but still I would like to request you to consider bringing the site back up. Thanks, Sundar On Wednesday, Dec

[web2py] Re: Postgres expers -- interesting design issue

2012-04-20 Thread Sundar
ences t1(a)) I just wanted to make sure of this point. Sundar = On Friday, April 20, 2012 6:03:47 PM UTC+5:30, Cliff wrote: > > Thank you, Sundar. > > I understand. This solution means I relinquish the foreign key constraint

[web2py] Re: Postgres expers -- interesting design issue

2012-04-19 Thread Sundar
selects (on the PO table) to exclude this specific PO. Cheers. Sundar == On Friday, April 20, 2012 3:16:24 AM UTC+5:30, Cliff wrote: > > nick, > Thanks for the response. > > Here's a longer explanation. > > Two applications, on

[web2py] MHT file upload fails

2012-04-13 Thread Sundar
When I am trying to upload an MHT file (single file holding all browser components: html, image etc.), I get an error. I observed it in old as well as new versions of web2py. Are there prohibited extensions of files which cannot be uploaded? Trace: Traceback (most recent call last): File "E:

[web2py] crud.create causes an id problem

2012-04-05 Thread Sundar
the error message '_id' on the line containing the crud.create statement. Do you think I am doing anything wrong? Thanks and regards Sundar ps: If you require the trace, here it is: File "E:/web2py1.99.7Source/applications/rsi_in1/controllers/fs.py" <http://pc77:

[web2py] Re: Web2py binary distribution and psycopg2 driver

2012-03-08 Thread Sundar
I tried the binary of 1.99.7 and the driver pg8000. I am getting the error message global name 'psycopg2_adapt' is not defined Where am I going wrong? Sundar === On Thursday, January 12, 2012 12:51:50 AM UTC+5:30, Massimo Di Pi

[web2py] Re: What does this mean?

2010-10-02 Thread Sundar
ase post your model? > > On Oct 2, 9:20 am, Sundar wrote: > > > > > I have a similar situation. > > > My table, say, Purchase Order contains two fields: client, endclient. > > The client ID from the Clients table is the foreign key for both. > > > For

[web2py] Re: What does this mean?

2010-10-02 Thread Sundar
! Any inputs are welcome. I think you can quickly recreate the situation. If you need the full code from me, let me know. Regards. Sundar On Sep 26, 11:16 pm, weheh wrote: > Massimo, as I said, there are 2 processes. The background process is a > queueing engine. The queue is doing stuf