Re: [web2py] Re: Error ticket for "admin" when trying to create a view

2021-12-20 Thread Dave S
On Friday, December 17, 2021 at 9:12:55 AM UTC-8 mostwanted wrote: > This is happening on a live app, its live, hosted on pythonanywhere. I am > starting to suspect something though, I recently received an email from > pythonanywhere.com informing me that I should change the system image of >

Re: [web2py] Re: Error ticket for "admin" when trying to create a view

2021-12-17 Thread Jim Steil
Yes, I would suspect the image off that is the main thing that changed. Jim On Fri, Dec 17, 2021, 11:13 AM mostwanted wrote: > This is happening on a live app, its live, hosted on pythonanywhere. I am > starting to suspect something though, I recently received an email from > pythonanywhere.com

Re: [web2py] Re: Error ticket for "admin" when trying to create a view

2021-12-17 Thread mostwanted
This is happening on a live app, its live, hosted on pythonanywhere. I am starting to suspect something though, I recently received an email from pythonanywhere.com informing me that I should change the system image of my app because my app is running on an old one called "dangermouse", in a y

Re: [web2py] Re: Error ticket for "admin" when trying to create a view

2021-12-17 Thread Jim Steil
Is it possible your were no longer logged in or that you cleared your browser cache before this happened? Sense really weird. Have you tried with a fresh install of web2py? Jim On Fri, Dec 17, 2021, 5:56 AM mostwanted wrote: > But that's just the thing, I wasn't trying pass any data, i just tr

Re: [web2py] Re: ERROR on Request

2020-02-21 Thread Lovedie JC
Thanks. I switched to it. Regards On Fri, Feb 21, 2020, 06:58 Massimo Di Pierro wrote: > in py4web request is the bottlepy request. > https://bottlepy.org/docs/dev/api.html#the-request-object > There is no now. > > You can use datetime.timetime.now() > > On Tuesday, 18 February 2020 08:34:51 UTC

Re: [web2py] Re: Error with sessions on redis

2019-11-08 Thread Áureo Dias Neto
Okay, thanks for the attention on the answers, hug! Em sex., 8 de nov. de 2019 às 10:14, Jose C escreveu: > > >> What do you think about Joe Barnhart's solution? >> My point with redis is that I am using database sessions, finally my >> goal is to unburden it since I have plenty of RAM on the app

Re: [web2py] Re: Error with sessions on redis

2019-11-08 Thread Jose C
> What do you think about Joe Barnhart's solution? > My point with redis is that I am using database sessions, finally my > goal is to unburden it since I have plenty of RAM on the application > server ... > I haven't tried it but as Joe says his patch was rejected but I'm not sure why. Co

Re: [web2py] Re: Error with sessions on redis

2019-11-08 Thread Áureo Dias Neto
What do you think about Joe Barnhart's solution? My point with redis is that I am using database sessions, finally my goal is to unburden it since I have plenty of RAM on the application server ... Em sex., 8 de nov. de 2019 às 09:41, Jose C escreveu: > > Hi Aureo, > > You're hitting a bug in we

Re: [web2py] Re: Error with sessions on redis

2019-11-08 Thread Jose C
Hi Aureo, You're hitting a bug in web2py's redis session implementation that does not yet have a fix. Basically redis cannot be used for sessions at this stage with web2py 2.18.5 and either versions 2 or 3 of the redis python library. see (for your bug): https://groups.google.com/forum/#!sear

Re: [web2py] Re: Error with sessions on redis

2019-11-08 Thread Áureo Dias Neto
3.3.11 Em sex., 8 de nov. de 2019 às 09:14, Jose C escreveu: > > >> Web2py: 2.18.5-stable+timestamp.2019.04.08.04.22.03 (running on >> gunicorn/19.9.0, Python 2.7.15+) >> py-redis: 4.0.9 >> Redis server v=4.0.9 sha=:0 malloc=jemalloc-3.6.0 bits=64 >> build=9435c3c2879311f3 >> redis-cli 4.

Re: [web2py] Re: Error with sessions on redis

2019-11-08 Thread Jose C
> Web2py: 2.18.5-stable+timestamp.2019.04.08.04.22.03 (running on > gunicorn/19.9.0, Python 2.7.15+) > py-redis: 4.0.9 > Redis server v=4.0.9 sha=:0 malloc=jemalloc-3.6.0 bits=64 > build=9435c3c2879311f3 > redis-cli 4.0.9 > OS: Ubuntu 18.04.1 LTS > > HI Aureo, Which version of t

Re: [web2py] Re: Error with sessions on redis

2019-11-08 Thread Áureo Dias Neto
Hello, yes: Web2py: 2.18.5-stable+timestamp.2019.04.08.04.22.03 (running on gunicorn/19.9.0, Python 2.7.15+) py-redis: 4.0.9 Redis server v=4.0.9 sha=:0 malloc=jemalloc-3.6.0 bits=64 build=9435c3c2879311f3 redis-cli 4.0.9 OS: Ubuntu 18.04.1 LTS Em sex., 8 de nov. de 2019 às 05:09, Jose C

Re: [web2py] Re: Error in app: the variable was lost

2019-06-22 Thread Константин Комков
Yes, but only on monday( сб, 22 июн. 2019 г., 16:41 Anthony : > Can you show the full traceback? > > On Saturday, June 22, 2019 at 3:25:23 AM UTC-4, Константин Комков wrote: >> >> In my controller I have function: >> def send_app(): >> if session.abit_email is None:redirect(' >> https://oas.t

Re: [web2py] Re: Error using auth.signature

2019-05-07 Thread Fabio Gubler
Thanks for you answer. It solved my problem. Have a good day. On Tue, 7 May 2019 at 19:30, wrote: > auth_signature creates these 4 fields: > created_on > created_by > modified_on > modified_by > > You are trying to access a field called dateofcreation which doesn't exist. > In default\index repl

Re: [web2py] Re: error connecting to postgrsql when running web2py from source on windows

2019-04-08 Thread Alex Glaros
worked, thanks Nico On Monday, April 8, 2019 at 2:46:29 AM UTC-7, Nico Zanferrari wrote: > > Hi, > > probably you have not added python to your system path during its > installation. Anyway, it's under the script subdirectory, in your case > C:\Users\alex_\AppData\Local\Programs\Python\Python37\

Re: [web2py] Re: error connecting to postgrsql when running web2py from source on windows

2019-04-08 Thread Nico Zanferrari
Hi, probably you have not added python to your system path during its installation. Anyway, it's under the script subdirectory, in your case C:\Users\alex_\AppData\Local\Programs\Python\Python37\Scripts (and if you have other python versions installed, use pip3 or even pip3.7 ) Cheers, Nico Il

Re: [web2py] Re: Error Ticket Includes Sensitive Information

2019-04-04 Thread Anthony
On Thursday, April 4, 2019 at 10:47:10 AM UTC-4, Kevin Keller wrote: > > Can errror messags and tickets in production not be restricted to server > log files and disabled to be displayed for users or at least the ticket > itself made inaccessbile to normal users? > Normal users can never see err

Re: [web2py] Re: Error Ticket Includes Sensitive Information

2019-04-04 Thread Kevin Keller
Can errror messags and tickets in production not be restricted to server log files and disabled to be displayed for users or at least the ticket itself made inaccessbile to normal users? On Thu, Apr 4, 2019 at 4:38 PM zm wrote: > For what it's worth, I did post to the developer list, however it

Re: [web2py] Re: Error accessing app edit

2019-03-19 Thread Maurice Waka
Thanks I'll follow up On Mon, 18 Mar 2019, 18:08 Leonel Câmara wrote: > This was due to changes I made to the way web2py discovers exposed > functions in a controller file. It uses the python parser so it has a > problem with syntax errors. I made a pull request that teaches the admin to > deal

Re: [web2py] Re: Error accessing app edit

2019-03-17 Thread Massimo Di Pierro
can you provide a minimal controller default.py so we can reproduce and fix it? On Sunday, 17 March 2019 20:55:59 UTC-7, Lovedie JC wrote: > > Python 3. > I moved to python 3 > Regards > > On Mon, 18 Mar 2019, 05:49 Massimo Di Pierro > wrote: > >> This says you are using python 3. Is your app

Re: [web2py] Re: Error accessing app edit

2019-03-17 Thread Lovedie JC
Python 3. I moved to python 3 Regards On Mon, 18 Mar 2019, 05:49 Massimo Di Pierro wrote: > This says you are using python 3. Is your app build for python 3 or python > 2? > > > On Sunday, 17 March 2019 08:01:07 UTC-7, Maurice Waka wrote: >> >> When clicking on the edit button for my app, I get

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

2019-03-14 Thread Massimo Di Pierro
Thanks! On Tuesday, 12 March 2019 22:52:31 UTC-7, sandeep patel wrote: > > I have solved this problem. This problem is occurring because of filter > object you have to convert into the list. > You have to need some changes in the sqlhtml file. > go to gluon/sqlhtml.py change line no : 2688 > > F

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

2019-03-12 Thread sandeep patel
I have solved this problem. This problem is occurring because of filter object you have to convert into the list. You have to need some changes in the sqlhtml file. go to gluon/sqlhtml.py change line no : 2688 >From - sfields = reduce(lambda a, b: a + b, [filter(is_searchable, t) for t in tables])

Re: [web2py] Re: Error importing csv file in python3.6

2019-03-02 Thread Maurice Waka
"xml() in python 3.6 · Issue #2096 · web2py/web2py" https://github.com/web2py/web2py/issues/2096 On Sat, 2 Mar 2019, 14:19 Kevin Keller wrote: > There an issue filed on github already? > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2

Re: [web2py] Re: Error importing csv file in python3.6

2019-03-02 Thread Kevin Keller
There an issue filed on github already? -- 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 message because you are subscribed to the Googl

Re: [web2py] Re: Error importing csv file in python3.6

2019-03-01 Thread Maurice Waka
Still not working. On Fri, 1 Mar 2019, 21:33 Leonel Câmara wrote: > xml() returns bytes, You need to do b''.join(... instead of ''.join > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.c

Re: [web2py] Re: Error with datetime.

2018-11-08 Thread Maurice Waka
Same code using storage.sqlite is ok but when I switched to MongoDB which intent to use in future, the error comes up. On Thu, 8 Nov 2018, 11:33 Dave S > > On Wednesday, November 7, 2018 at 3:27:16 PM UTC-8, 黄祥 wrote: >> >> from error traceback seems like must convert the str to datetime.date >>

Re: [web2py] Re: Error with datetime.

2018-11-07 Thread Lovedie JC
When using sqlite, I don't get the errors, but using Mongodb brings up the same error. On Thu, 8 Nov 2018 at 06:43, Maurice Waka wrote: > I'm still getting the same error when changing the dates. > > On Thu, Nov 8, 2018 at 2:27 AM 黄祥 wrote: > >> from error traceback seems like must convert the

Re: [web2py] Re: Error with datetime.

2018-11-07 Thread Maurice Waka
I'm still getting the same error when changing the dates. On Thu, Nov 8, 2018 at 2:27 AM 黄祥 wrote: > from error traceback seems like must convert the str to datetime.date > ref: > https://stackoverflow.com/questions/466345/converting-string-into-datetime > > best regards, > stifan > > -- > Resou

Re: [web2py] Re: error: cannot switch to a different thread

2018-07-22 Thread Alvin Ang
Not really, I'm using Apache as web server. Best Regards, Alvin On Mon, Jul 23, 2018 at 6:56 AM 黄祥 wrote: > seems it's related with gevent > ref: > https://github.com/miguelgrinberg/Flask-SocketIO/issues/65 > > did you use apache as a reverse proxy and gevent as a web server? > > best regards,

Re: [web2py] Re: error: invalid literal for long() with base 10: ''

2018-07-02 Thread Diego Tostes
The problem was at dB.clientes... Solved. Thanks!! Em seg, 2 de jul de 2018 16:20, Anthony escreveu: > Hard to say what's going on. Looks like it's getting an empty string from > an ID field. What does the db.clientes definition look like? > > On Monday, July 2, 2018 at 7:38:27 AM UTC-4, Diego

Re: [web2py] Re: Error loging in after authentication changes

2018-04-08 Thread Maurice Waka
I moved the iteration to the controller side and it worked. Regards On Sat, Apr 7, 2018 at 5:36 PM, Anthony wrote: > Also, there is not point to either of the for loops at the top of the view > -- each loop is simply assigning a new value to the same variable, so the > final value of the variabl

Re: [web2py] Re: Error loging in after authentication changes

2018-04-07 Thread Maurice Waka
Thanks for the information. Let me work on it. On Sat, 7 Apr 2018, 17:36 Anthony wrote: > Also, there is not point to either of the for loops at the top of the view > -- each loop is simply assigning a new value to the same variable, so the > final value of the variable is just that of the final

Re: [web2py] Re: Error loging in after authentication changes

2018-04-07 Thread Anthony
Also, there is not point to either of the for loops at the top of the view -- each loop is simply assigning a new value to the same variable, so the final value of the variable is just that of the final element in the iteration. You might as well just make that final assignment without botherin

Re: [web2py] Re: Error loging in after authentication changes

2018-04-07 Thread Anthony
> > {{for q in question:}} > {{q=XML(q.quest.replace('\n','').replace('(','{').replace(')','}'), > sanitize=True)}} > {{pass}} > ... > $(function () { >... > sendMessage('{{=q}}'); > When "question" is empty (i.e., there are no answers from the current user), th

Re: [web2py] Re: Error loging in after authentication changes

2018-04-06 Thread Maurice Waka
view.html {{extend "layout.html"}} {{for q in question:}} {{q=XML(q.quest.replace('\n','').replace('(','{').replace(')','}'), sanitize=True)}} {{pass}} {{for a in answer:}} {{a=XML(a.message.replace('\n','').replace('(','{').replace(')','}'), sanitize=True)}} {{pass}} * { box-sizi

Re: [web2py] Re: Error loging in after authentication changes

2018-04-06 Thread Maurice Waka
Sorry , I was taking a shortcut to avoid posting much code. Here it is, a different app still with the same issue.. def index(): return locals() @auth.requires_membership('managers')#->this gives an erros bout q not being defined in view_searches def my_notes(): dbwellnesshealth.health.id.

Re: [web2py] Re: Error loging in after authentication changes

2018-04-06 Thread Anthony
> > @auth.requires_login()#membership('managers')->this gives an errors bout q > not being defined in view_searches > defnotes(): > dbhealth.health.id.readable = False > g = SQLFORM.grid(dbhealth.health, searchable=True, csv=False, > user_signature=True, ) > return dict(form = g) > @

Re: [web2py] Re: Error loging in after authentication changes

2018-04-06 Thread Maurice Waka
Model: dbhealth = DAL('sqlite://wellness.db',folder='/home/maurice/web2py') dbhealth.define_table( "health", Field('name', 'string'), Field('definition', 'text', length= 100, default="We'll update soon.", notnull=True),

Re: [web2py] Re: ERROR : ImportError: No module named gluon.utils in websocket_messaging.py after upgrade to 2.15.4

2017-11-02 Thread Luciano Bovio
El 01/11/17 a las 20:57, Massimo Di Pierro escribió: make sure web2py is in PYTHON_PATH On Wednesday, 1 November 2017 08:19:02 UTC-5, Omicron VT wrote: El miércoles, 1 de noviembre de 2017, 9:17:45 (UTC-3), Omicron VT escribió: I have been using websocket_messaging.py without

Re: [web2py] Re: error on application hosted on centos

2017-02-02 Thread Áureo Dias Neto
This works, is permission error... But now, i define on the route file, a default application, if i access " http://xxx.xxx.xxx.xxx"; i get the app i defined, but if access " http://xxx.xxx.xxx.xxx/"; i get the Welcome app.. how to resolve this? 2017-02-02 14:42 GMT-02:00 Leonel Câmara : > Make

Re: [web2py] Re: error on application hosted on centos

2017-02-02 Thread Áureo Dias Neto
My welcome app work great, it's accept create users etc. but the admin cannot create/delete/import existing apps, it's get error. 2017-02-02 1:32 GMT-02:00 Áureo Dias Neto : > I use sqlite, how to test the connection string? > And i dont know the corrects permissions to set, if you can say, pleas

Re: [web2py] Re: error on application hosted on centos

2017-02-01 Thread Áureo Dias Neto
I use sqlite, how to test the connection string? And i dont know the corrects permissions to set, if you can say, please Em 2 de fev de 2017 01:30, "Dave S" escreveu: > On Wednesday, February 1, 2017 at 6:52:01 PM UTC-8, Áureo Dias Neto wrote: >> >> Hello, >> >> I deployed my w2p on Centos with

Re: [web2py] Re: Error page with ticket in iframe -- no need for extra click each time ;)?

2016-04-26 Thread Jurgis Pralgauskis
Hi, maybe this is possible to do per_app now (without touching web2py core)? :) ps.: there was also idea with ajax On Friday, June 14, 2013 at 8:00:36 PM UTC+3, Jurgis Pralgauskis wrote: > > Generally, maybe error template can be some app config, but not bound to > routing? > and if it is fo

Re: [web2py] Re: Error db._adapter

2015-12-09 Thread Hector Chacon
good afternoon, I explain how to solve the problem in question, so that the method ".executesql" the DAL object fails with the message "'NoneType' object is not iterable" the problem is that when you run a stored procedure, the method attempts to obtain the return of the execution of the senten

Re: [web2py] Re: Error: widgetId is a required parameter (2.12.2)

2015-10-05 Thread Dennis Bauszus
Widget.js is a twitter library. The library throws an exception because the twitter-timeline link tag is within the twitter timeline div as explained in the twitter ticket. But the problem needs to be fixed in admin/views/default/site.html [image: Inline images 1] The twitter-timeline class need

Re: [web2py] Re: Error in database giving 'NoneType' object has no attribute 'first_name'.

2015-07-03 Thread Anthony
It's not clear exactly what you have done. Please show some code. On Friday, July 3, 2015 at 12:00:22 PM UTC-4, Sai Harsh Tondomker wrote: > > Dear Anthony, > > Yesterdays it self I have tried these but after logout it instead of > redirecting to index page it show the error which I have mention.

Re: [web2py] Re: Error in database giving 'NoneType' object has no attribute 'first_name'.

2015-07-03 Thread 黄祥
i think you can achieve it in 2 parts *controllers* if you want to have a validator for check is user login or not in controller you can use : @auth.requires_login e.g. @auth.requires_login def abcd(): return locals() *models* you can also use if function for each of table definition e.g. aut

Re: [web2py] Re: Error in database giving 'NoneType' object has no attribute 'first_name'.

2015-07-03 Thread Sai Harsh Tondomker
Dear Anthony, Yesterdays it self I have tried these but after logout it instead of redirecting to index page it show the error which I have mention. What I need to do. If you want I can explain you on what project I am working. Please help me to solve this problem. Waiting for your response. Bes

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

2015-01-15 Thread Prasad Muley
Hi Tim, Export format should be CSV file. I am getting that error because of the custom search in grid. I got some clues from Exporting from a SQLFORM.grid with customized search queries I'll try TSV once I fix this issue. On T

Re: [web2py] Re: Error handler and request_uri

2014-12-05 Thread Jim S
Submitted ticket 2022. -Jim On Thursday, December 4, 2014 11:08:18 PM UTC-6, Jim S wrote: > > Thanks Anthony. I'll submit a ticket on it tomorrow. Will reference this > discussion. > > Jim > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web

Re: [web2py] Re: Error handler and request_uri

2014-12-04 Thread Jim Steil
Thanks Anthony. I'll submit a ticket on it tomorrow. Will reference this discussion. Jim -- 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 t

Re: [web2py] Re: Error Assigning tasks

2014-11-20 Thread Niphlod
mongo is not supported (being experimental and no relational). On Thursday, November 20, 2014 2:04:53 PM UTC+1, Ramos wrote: > > more errors with web2py 2.9.5 > > [image: Imagem inline 1] > > 2014-11-20 10:22 GMT+00:00 António Ramos > >: > >> I mean, only tasks, no front end or user accounts. >>

Re: [web2py] Re: Error Assigning tasks

2014-11-20 Thread António Ramos
more errors with web2py 2.9.5 [image: Imagem inline 1] 2014-11-20 10:22 GMT+00:00 António Ramos : > I mean, only tasks, no front end or user accounts. > > Its only to avoid using cron > > 2014-11-20 10:16 GMT+00:00 António Ramos : > >> Maybe i just use mongo for this . >> Its a simple app with

Re: [web2py] Re: Error Assigning tasks

2014-11-20 Thread António Ramos
I mean, only tasks, no front end or user accounts. Its only to avoid using cron 2014-11-20 10:16 GMT+00:00 António Ramos : > Maybe i just use mongo for this . > Its a simple app with only 8 tasks (more to come) > > What do you think ? > > 2014-11-20 9:50 GMT+00:00 Niphlod : > >> sqlite has very

Re: [web2py] Re: Error Assigning tasks

2014-11-20 Thread António Ramos
Maybe i just use mongo for this . Its a simple app with only 8 tasks (more to come) What do you think ? 2014-11-20 9:50 GMT+00:00 Niphlod : > sqlite has very well known problems dealing with concurrent access. every > write operation blocks the database. you may mitigate it enabling WAL, but > i

Re: [web2py] Re: Error Assigning tasks

2014-11-20 Thread Niphlod
sqlite has very well known problems dealing with concurrent access. every write operation blocks the database. you may mitigate it enabling WAL, but in any case, the limitation stands. On Thursday, November 20, 2014 10:32:56 AM UTC+1, Ramos wrote: > > i have this error and only using one worker,

Re: [web2py] Re: Error Assigning tasks

2014-11-20 Thread António Ramos
i have this error and only using one worker, with 2 i eventually get an error after some time . My 8 tasks connects to 8 ftp servers to read a csv file and then connects to other system via ODBC to save the data. I dont understant why its saying "database is locked" I´m not saving documents to my w

Re: [web2py] Re: Error Assigning tasks

2014-11-17 Thread António Ramos
Thank u for the tip António 2014-11-17 15:45 GMT+00:00 Niphlod : > apart from "update web2py" (2.0.9 is so old that my brain hurts), trying > lowering the number of workers. That error means that your database can't > keep up with the workers. > > > On Monday, November 17, 2014 3:16:25 PM UTC+1,

Re: [web2py] Re: Error reading email

2014-10-21 Thread Jim Steil
Thanks - looks like it was a bad name somewhere. The name came back as an empty string and was bombing out. Tried a different account and it worked fine. -Jim On Sat, Oct 18, 2014 at 10:03 AM, Leonel Câmara wrote: > It's possible that one of your mailboxes has a name that after removing > all

Re: [web2py] Re: Error reading email

2014-10-17 Thread Jim Steil
No On Fri, Oct 17, 2014 at 1:19 PM, Leonel Câmara wrote: > is this gmail? > > -- > 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 t

Re: [web2py] Re: Error while inserting in table with custom id

2014-06-26 Thread Simon Ashley
> > I tend to agree with this. We ended up dropping the id field from > bulk_insert routines and if we need integrity (for references) in the > target databases, we would/ should base it on other fields. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://gith

Re: [web2py] Re: Error while inserting in table with custom id

2014-06-26 Thread Michele Comitini
id is implicit and defined as serial, implying that there is a sequence that is used to fill proper values. id is intended to be unique and primary key: an integer generator that guarantee uniqueness or at least has a very low probability of conflict is the standard way to go. This is very importa

Re: [web2py] Re: Error while inserting in table with custom id

2014-06-26 Thread Greg Sier
Seems to be a postgresql specific issue. Fails in the DAL at when executing 'select lastval()'. SQlite and MySQL are fine. The command also fails at the pg command line level. This was changed back in December but uncertain if the issue existed prior to this https://groups.google.com/forum/?fromgro

Re: [web2py] Re: Error lling a variable from class method

2014-06-21 Thread Maurice Waka
I noted that my methods were static and all i needed was to do this: @staticmethod def quack(): code This worked Thanks anyway for the help On Thu, Jun 19, 2014 at 7:34 PM, Leonel Câmara wrote: > Try this in modules > > class Duck(): > def quack(self): > return 'Quacks like

Re: [web2py] Re: ERROR when MYSQL try to CAST() to LONGTEXT

2014-06-14 Thread Kablu®
Thanks Massimo! The fix is working fine! On Sat, Jun 14, 2014 at 12:39 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Yes. Is this sufficient? > > https://github.com/web2py/web2py/blob/master/gluon/dal.py#L2671 > > > On Friday, 13 June 2014 12:25:15 UTC-5, André Kablu wrote: >>

Re: [web2py] Re: Error message: function not callable.

2014-05-27 Thread Maurice Waka
Thanks. I got the solution...as you said. it should be : test.test() What I did, in the controller: from applications.x.x import test def display_test(); result = test.test() return locals HTML view {{extend 'layout.html'}} {{=result}} On Mon, May 26, 2014 at 4:47 PM, Anthony wrote: > "tes

Re: [web2py] Re: error ('', 'SQL_INVALID_HANDLE') when DAL is mssq

2014-01-22 Thread Gianganh Nguyen
Oh, I'm sorry because now I'm checking mail. I didn't get that error. But I use driver pyodbc-3.0.7.win32-py2.7.exe for python2.7.5. Are you using what is python's version? On Fri, Jan 17, 2014 at 5:57 AM, Josh Myers wrote: > I was also getting this same error and I thank Gianganh for his help i

Re: [web2py] Re: Error in Custom Register Page in web2py

2014-01-03 Thread Akash Agrawall
true that... this one is better.. On Fri, Jan 3, 2014 at 9:59 PM, Anthony wrote: > No, it's better to set the readable and writable attributes to False if > you want particular fields to be excluded from the form. > > for fields in ['field1', 'field2', 'field3']: > db.auth_user[fiel

Re: [web2py] Re: Error with session when user tries to login

2013-12-14 Thread Marin Pranjić
I deleted all session files and asked the customer to delete cookies. He even upgraded his browser but was still getting the error. On Sat, Dec 14, 2013 at 12:33 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > have you deleted all sessions or are you using sessions created with a >

Re: [web2py] Re: Error with session when user tries to login

2013-12-13 Thread Marin Pranjić
Ok, let's continue discussion there. Marin On Fri, Dec 13, 2013 at 9:16 PM, Leonel Câmara wrote: > Yes, Lucas and I are having the same problem. > https://groups.google.com/forum/#!topic/web2py/CSuT_CknD20 > > Restarting the webserver temporarily solves the problem for me. Saving > sessions in

Re: [web2py] Re: Error upload file on 2.6.4

2013-09-27 Thread Relsi Hur Maron
Cool! Thanks!! 2013/9/27 Niphlod > if your "now" is 2.6.4, then current trunk adds only bug fixes and no new > (potentially untested) features. > > > On Friday, September 27, 2013 4:31:15 PM UTC+2, Relsi Hur Maron wrote: >> >> >> Thanks! Now is working. >> >> It is a production app, no problem t

Re: [web2py] Re: Error trying to view Errors for my app

2013-09-27 Thread Jim S
Thanks - Went into admin and did a Clean. Solved the problem. -Jim On Thursday, September 26, 2013 4:10:31 PM UTC-5, Niphlod wrote: > > login remotely and > cd applications/appname/errors > rm * > > or just go into the main page of admin, click on the button next to the > app and press clean (

Re: [web2py] Re: Error in SQLFORM.grid after updating to Version 2.6.4-stable+timestamp.2013.06.26.11.24.52

2013-09-26 Thread Massimo Di Pierro
Thanks for checking this. It was a small but critical change. On Thursday, 26 September 2013 14:12:26 UTC-5, Jim S wrote: > > Works now. Thanks for the prompt response. > > -Jim > > > On Thu, Sep 26, 2013 at 2:10 PM, Massimo Di Pierro > > > wrote: > >> Please try once more. >> >> >> On Thursda

Re: [web2py] Re: Error trying to view Errors for my app

2013-09-26 Thread Niphlod
login remotely and cd applications/appname/errors rm * or just go into the main page of admin, click on the button next to the app and press clean (although it will clean also sessions) On Thursday, September 26, 2013 10:48:22 PM UTC+2, Jim S wrote: > > I wasn't trying to display the error, jus

Re: [web2py] Re: Error trying to view Errors for my app

2013-09-26 Thread Jim Steil
I wasn't trying to display the error, just the list of errors. Would that make a difference? I'm assuming that this will be fixed. Is there a way I can clear all my errors without using the console? On Thu, Sep 26, 2013 at 3:43 PM, Niphlod wrote: > this is due to a new web2py trying to open

Re: [web2py] Re: Error in SQLFORM.grid after updating to Version 2.6.4-stable+timestamp.2013.06.26.11.24.52

2013-09-26 Thread Jim Steil
Works now. Thanks for the prompt response. -Jim On Thu, Sep 26, 2013 at 2:10 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Please try once more. > > > On Thursday, 26 September 2013 13:55:47 UTC-5, Jim S wrote: > >> I just did a hg pull from >> https://code.google.com/p/**web2

Re: [web2py] Re: Error in SQLFORM.grid after updating to Version 2.6.4-stable+timestamp.2013.06.26.11.24.52

2013-09-26 Thread Massimo Di Pierro
Please try once more. On Thursday, 26 September 2013 13:55:47 UTC-5, Jim S wrote: > > I just did a hg pull from https://code.google.com/p/web2py and got no > changes found. > > > On Thu, Sep 26, 2013 at 1:36 PM, Massimo Di Pierro > > > wrote: > >> The problem is not the grid. We are working on

Re: [web2py] Re: Error in SQLFORM.grid after updating to Version 2.6.4-stable+timestamp.2013.06.26.11.24.52

2013-09-26 Thread Jim Steil
FWIW, here is a sample: grid = SQLFORM.grid(query, fields=fields, orderby=orderby, create=create, details=details, editable=editable, deletable=deletable, csv=False, search_widget=ticketSearch, paginate=linesPerPage, maxte

Re: [web2py] Re: Error in SQLFORM.grid after updating to Version 2.6.4-stable+timestamp.2013.06.26.11.24.52

2013-09-26 Thread Jim Steil
I just did a hg pull from https://code.google.com/p/web2py and got no changes found. On Thu, Sep 26, 2013 at 1:36 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > The problem is not the grid. We are working on a new feature and it will > break existing sessions. > I just committed a

Re: [web2py] Re: Error writing to session with latest Google App Engine 1.8.1

2013-07-06 Thread Christian Foster Howes
we did the upgrade and are running latest web2py release + GAE latest SDK. we pulled forward 2 patches - one for using custom tables with auth (so if you use standard auth tables you don't need that patch), and one for handling JSON lists as post data for restful requests. we also had to upda

Re: [web2py] Re: Error writing to session with latest Google App Engine 1.8.1

2013-07-05 Thread Aravindan Rs
hi cfh, did you complete the move to the recent web2py version? does it solve the issue and work well with GAE version 1.8.1? i want to move now and any notes from you would be helpful. thanks, aravind. On Saturday, 15 June 2013 06:18:06 UTC+5:30, Christian Foster Howes wrote: > > Yup, that ch

Re: [web2py] Re: Error writing to session with latest Google App Engine 1.8.1

2013-06-14 Thread Christian Foster Howes
Yup, that change is why i'm upgrading web2py now. Other GAE users have reported issues with the recent web2py versions, and i think i found an issue in the auth module when using custom table names. I'll let you know my results as i do my testing cfh On 6/14/13 17:33 , Aravindan Rs wrot

Re: [web2py] Re: Error page with ticket in iframe -- no need for extra click each time ;)?

2013-06-14 Thread Jurgis Pralgauskis
Generally, maybe error template can be some app config, but not bound to routing? and if it is found it is used, and if not found - default template would be used... and maybe default template could work a bit smarter - check if admin is logged, and then display this iframe with stuff directly?

Re: [web2py] Re: Error in smartgrid after updating to Version 2.5.1-stable+timestamp.2013.06.11.08.00.05

2013-06-13 Thread Jim Steil
Ticket 1527. On Thu, Jun 13, 2013 at 3:26 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Please open a ticket about this. > > > On Wednesday, 12 June 2013 14:56:45 UTC-5, Jim S wrote: >> >> My smartgrids are all failing when I have fields from multiple tables >> specified in the 'f

Re: [web2py] Re: Error on start: 'Auth' object has no attribute 'wikimenu'

2013-06-10 Thread Alok Joshi
Thanks. (Sorry for the ugly font size in my earlier related message.) On Sun, Jun 9, 2013 at 2:59 PM, Alan Etkin wrote: > > is it my web2py version which gets used? >> > > My bad, I meant the web2py instance in pythonanywhere > > -- > > --- > You received this message because you are subscribed

Re: [web2py] Re: Error on start: 'Auth' object has no attribute 'wikimenu'

2013-06-09 Thread Alan Etkin
> is it my web2py version which gets used? > My bad, I meant the web2py instance in pythonanywhere -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2p

Re: [web2py] Re: Error on start: 'Auth' object has no attribute 'wikimenu'

2013-06-09 Thread Alok Joshi
Thanks Alan, That worked. One question. When I upload my application(*.wp) file to pythonanywhere is it my web2py version which gets used? I was under the impression that the site runs its own web2py. Any way, thanks for your answer again. On Sun, Jun 9, 2013 at 9:14 AM, Alan Etkin wrote: > I b

Re: [web2py] Re: Error page with ticket in iframe -- no need for extra click each time ;)?

2013-05-22 Thread Anthony
I don't know that you'd want to re-check and possibly re-load all the routes on every request in production, but I suppose it might be nice in development (like tracking changes in modules). Anthony On Wednesday, May 22, 2013 4:01:47 AM UTC-4, Jurgis Pralgauskis wrote: > > Thanks, > > but stil

Re: [web2py] Re: Error page with ticket in iframe -- no need for extra click each time ;)?

2013-05-22 Thread Jurgis Pralgauskis
Thanks, but still would be nicer - if defining in app would be enough (kind of KISS style) and maybe even without need to restart web2py (if just app level changes)? On Tue, May 21, 2013 at 7:06 PM, Anthony wrote: > You can app-specific routes in the app folder, but then you still need to > sp

Re: [web2py] Re: Error page with ticket in iframe -- no need for extra click each time ;)?

2013-05-21 Thread Anthony
You can app-specific routes in the app folder, but then you still need to specify routes_app in the root routes.py to tell web2py which apps have app-specific routes. Anthony On Tuesday, May 21, 2013 10:01:41 AM UTC-4, Jurgis Pralgauskis wrote: > > but even app-specific routes must be specified

Re: [web2py] Re: Error page with ticket in iframe -- no need for extra click each time ;)?

2013-05-21 Thread Jurgis Pralgauskis
but even app-specific routes must be specified outside app folder (in web2py root)? On Tue, May 21, 2013 at 3:01 PM, Anthony wrote: > routes_onerror can specify app-specific routes. > > > On Tuesday, May 21, 2013 4:48:01 AM UTC-4, Jurgis Pralgauskis wrote: > >> I mean routes.py is in web2py roo

Re: [web2py] Re: Error page with ticket in iframe -- no need for extra click each time ;)?

2013-05-21 Thread Anthony
routes_onerror can specify app-specific routes. On Tuesday, May 21, 2013 4:48:01 AM UTC-4, Jurgis Pralgauskis wrote: > > I mean routes.py is in web2py root, not in app folder.. > > > On Tue, May 21, 2013 at 11:47 AM, Jurgis Pralgauskis < > jurgis.pr...@gmail.com > wrote: > >> but rootes are descri

Re: [web2py] Re: Error page with ticket in iframe -- no need for extra click each time ;)?

2013-05-21 Thread Jurgis Pralgauskis
I mean routes.py is in web2py root, not in app folder.. On Tue, May 21, 2013 at 11:47 AM, Jurgis Pralgauskis < jurgis.pralgaus...@gmail.com> wrote: > but rootes are described per web2py, not per app..? > > > On Tue, May 21, 2013 at 10:49 AM, Niphlod wrote: > >> there are routes to manage custom

Re: [web2py] Re: Error page with ticket in iframe -- no need for extra click each time ;)?

2013-05-21 Thread Jurgis Pralgauskis
but rootes are described per web2py, not per app..? On Tue, May 21, 2013 at 10:49 AM, Niphlod wrote: > there are routes to manage custom error pages. > http://web2py.com/books/default/chapter/29/04#Routes-on-error > > Il giorno martedì 21 maggio 2013 09:40:09 UTC+2, Jurgis Pralgauskis ha >

Re: [web2py] Re: Error Pages via AutoRoutes

2013-04-30 Thread Nikolay
Massimo, As I say before, my English is not very good)) But it is ok, Anthony, Many thanks for this! I did not know of this system, it works with onerror routing. Thanks for your help in this matter. -- --- You received this message because you are subscribed to the Google Groups "web2py

Re: [web2py] Re: Error Pages via AutoRoutes

2013-04-30 Thread Anthony
I think autoroutes.py was developed before the newer parameter-based rewrite system-- you might find it easier to switch to that. On Monday, April 29, 2013 9:25:33 PM UTC-4, Nikolay wrote: > > Hi Massimo, > > I use this. Corr

Re: [web2py] Re: Error Pages via AutoRoutes

2013-04-29 Thread Massimo Di Pierro
What do you mean you "cannot define custom error page". if you put it at the end of your routes.py file what happens? Are they ignored? Do you get an error? I do not see you using routes_onerror in the example. Or is the problem that routes on error cannot be declared in the routes.conf file? O

Re: [web2py] Re: Error Pages via AutoRoutes

2013-04-29 Thread Nikolay
Hi Massimo, I use this. Correct, once using autoroutes I cannot define custom error page no more. # -*- coding: utf-8 -*- ''' autoroutes writes routes for you based on a simpler routing configuration file called routes.conf. Example: - BEGIN routes.conf--- 127.0.0.1 /examples/default

Re: [web2py] Re: Error Pages via AutoRoutes

2013-04-28 Thread Massimo Di Pierro
Nailed! It is slowly coming back now @Nickolay, you say "we've lost the ability". Are you saying something changed in web2py that broke it? Which version did you upgrade from/to? Or are you saying that you switched to using autoroutes and routes_errors do not work? In this case can you post

  1   2   3   >