[web2py] simple examples are missing and broken

2020-05-24 Thread Matt Maier
I'm just getting started with web2py (on pythonanywhere). In this series of examples http://www.web2py.com/examples/default/examples I can follow along in the simple_examples controller that comes installed in the example app by default. However: Example 7 wasn't in the controller. When I copy

[web2py] scheduler_worker table is not created

2018-07-19 Thread matt
rue) Versions: OS: Debian 9.4 in Docker Python: 2.7.15 Web2Py: 2.16.1 PyDAL: 17.11 Could someone suggest some troubleshooting steps to figure out why the scheduler_worker table is not created? Regards, Matt -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://git

[web2py] Re: Scheduler workers crash on usage of urllib

2018-07-10 Thread matt
Hi, Is there an update on this issue? https://github.com/web2py/pydal/pull/505 was merged January 7, but the most recent PyDAL release on PyPI and GitHub is still 17.11, from November 13 2017. Thanks, Matt Fox -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] Re: Private Controller Functions

2017-05-07 Thread Matt Bockman
still very new at it. Is this convention documented in the web2py book? I was looking in "the core" but I didn't find what I needed there. How can this be added and where would it go? Thanks, Matt On Sunday, March 16, 2008 at 2:40:14 PM UTC-7, Massimo Di Pierro wrote: > &g

[web2py] Re: Displaying images

2017-05-07 Thread Matt Bockman
, when you download the file, it retains the original file name. Pretty neat. Read more here: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#More-on-uploads Cheers, Matt On Wednesday, April 5, 2017 at 12:44:47 AM UTC-7, Dave S wrote: > > I have a bunch of pix

[web2py] Re: lack of documentation

2017-05-07 Thread Matt Bockman
. I've been at it now for about 20 hours so I don't have too much time under my belt. I'm still able to build my web application as fast or faster than using no framework with PHP. If I find an improvement to make the documentation I will try to contribute. Cheers, Matt On Wednesday, April 26

[web2py] Re: How to get a dropdown in self referencing table, create form?

2017-05-05 Thread Matt Bockman
This worked for me too. Took me awhile to find this thread because I was searching for "reference same table". Hopefully writing this will help others searching the same way I was. On Thursday, February 2, 2012 at 10:28:43 PM UTC-8, Edward Shave wrote: > > Found this works following

[web2py] KeyError during smartgrid step of the Image Blog Tutorial

2017-05-05 Thread Matt Bockman
and I'm liking what I've learned so far. My web2py and Python version are as follows (copy and pasted from the ticket): web2py™Version 2.14.6-stable+timestamp.2016.05.10.00.21.47 Python 2.7.9: C:\Users\Matt\Dropbox\Mekilect\Web2Py Learning\web2py_win\web2py\web2py.exe (prefix: C:\Python27) M

[web2py] Re: Postgres: No databases/*.table files created

2015-10-13 Thread Matt Norris
? > > I've read that you can also get this error if the file is open for write > by another process or if you run out of RAM. > > Anthony > > On Thursday, October 8, 2015 at 6:29:42 PM UTC-4, Matt Norris wrote: >> >> I am using Postgres and my tables are created f

[web2py] Postgres: No databases/*.table files created

2015-10-08 Thread Matt Norris
* have been created in the `databases` folder. Migrations are on, and I realize that if I turn them off and hit the application this error goes away, but it seems like I shouldn't have to do that. Why aren't the .table files created? Thanks, Matt -- Resources: - http://web2py.com - http

[web2py] Postgres: .table files not created in databases folder

2015-10-08 Thread Matt Norris
this? Thank you, Matt -- 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 Google Groups "web2py-

[web2py] long running rpc call

2014-12-01 Thread Matt Broadstone
other incoming requests. I tried initially to just do a setattr on current (it's thread local storage as far as I understand), but that doesn't seem to work. Anyone have better ideas? Or am I just doing this completely wrong. Cheers, Matt -- Resources: - http://web2py.com - http://web2py.com

[web2py] Looking for alternative to Janrain !!!

2014-09-12 Thread Matt Godfrey
Looking for a social login solution which I can afford. I was using janrain's free version -- 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

[web2py] Possible feature request

2014-04-02 Thread Matt
. Interested to hear your thoughts. Thanks in advance, Matt -- 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

[web2py] Re: Possible feature request

2014-04-02 Thread Matt
Also adding support for errors = client.validate_and_update_record(**vars) would be useful too. On Thursday, April 3, 2014 12:30:55 PM UTC+13, Matt wrote: How do I achieve the following elegantly with Web2py? Before I update an in memory record I want to check it's validators to make

[web2py] Re: Possible feature request

2014-04-02 Thread Matt
(**vars) On Wednesday, 2 April 2014 19:03:49 UTC-5, Matt wrote: Also adding support for errors = client.validate_and_update_record(**vars) would be useful too. On Thursday, April 3, 2014 12:30:55 PM UTC+13, Matt wrote: How do I achieve the following elegantly with Web2py? Before I

[web2py] Re: 2.9.4 stable error when calling login_bare.

2014-03-10 Thread Matt
Thanks! No worries will turn it into a PR next time. Matt On Monday, March 10, 2014 2:06:14 PM UTC+13, Massimo Di Pierro wrote: fixed in trunk. thanks for the patch. On Saturday, 8 March 2014 21:40:35 UTC-6, Matt wrote: Attached code change to the issue also On Sunday, March 9, 2014 4:25

[web2py] Re: 2.9.4 stable error when calling login_bare.

2014-03-08 Thread Matt
change to make it check for None before continuing. Matt On Saturday, March 8, 2014 6:19:32 PM UTC+13, Anthony wrote: Do you know how the null value got there? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] Re: 2.9.4 stable error when calling login_bare.

2014-03-08 Thread Matt
Thanks... Have raise an issue: https://code.google.com/p/web2py/issues/detail?id=1897 On Sunday, March 9, 2014 3:47:08 PM UTC+13, Anthony wrote: Good point. Maybe submit a Google Code issue (or better yet, a patch). Anthony On Saturday, March 8, 2014 9:44:03 PM UTC-5, Matt wrote: Hey

[web2py] Re: 2.9.4 stable error when calling login_bare.

2014-03-08 Thread Matt
Attached code change to the issue also On Sunday, March 9, 2014 4:25:26 PM UTC+13, Matt wrote: Thanks... Have raise an issue: https://code.google.com/p/web2py/issues/detail?id=1897 On Sunday, March 9, 2014 3:47:08 PM UTC+13, Anthony wrote: Good point. Maybe submit a Google Code issue

[web2py] 2.9.4 stable error when calling login_bare.

2014-03-07 Thread Matt
for that particular user is null in the database. I notice that all of the other accounts have an empty string. Think that the framework should be able to detect the null and handle it if possible rather than assume it will always be there. Hope that's possible. Thanks in advance, Matt -- Resources: - http

[web2py] Re: GAE / Memcache consistency minor change request.

2014-03-04 Thread Matt
Done https://code.google.com/p/web2py/issues/detail?id=1887 Thanks Massimo! On Saturday, March 1, 2014 2:27:17 AM UTC+13, Massimo Di Pierro wrote: Can you please open a ticket so we will get this done asap? On Wednesday, 26 February 2014 15:15:39 UTC-6, Matt wrote: Hi there, I've

[web2py] GAE / Memcache consistency minor change request.

2014-02-26 Thread Matt
' % (self.request.application, key) dt = time_expire value = None obj = self.client.get(key) Hope that's possible. Thanks in advance, Matt -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p

Re: [web2py] Re: OFF TOPIC - Online plotting with https://plot.ly

2013-12-24 Thread Matt Sundquist
, Matt On Wednesday, March 20, 2013 11:08:38 AM UTC-7, Alan Etkin wrote: Were you taking about http://www.sagemath.org/ Site seems to be down... Yes. It is a heavy, well known, resource for Python math tools. Perhaps there was a server problem when you tried it. It is available now

[web2py] Re: removing .load extension from grid pagination and export csv links

2013-08-03 Thread Matt Grham
Thanks, links are always trapped now. Works great. Matt On Saturday, August 3, 2013 5:14:49 AM UTC-7, Niphlod wrote: you need to use web2y.js's component() function to have the same behaviour of the standard LOAD(). You're using jQuery.load() that is the jquery default way to replace

[web2py] groupby in sqlform.grid resulted into unsupported query

2013-08-03 Thread Matt Grham
', user_signature=False, searchable=searchable, sortable=sortable, groupby=db.mytable.Man_ID ) Can you help me here? Thanks, Matt -- --- You received this message because you are subscribed to the Google Groups web2py

[web2py] Re: groupby in sqlform.grid resulted into unsupported query

2013-08-03 Thread Matt Grham
) and all the other fields need to be an aggregate of the basic field (such as count, min, max, etc) ? On Saturday, August 3, 2013 8:09:39 PM UTC+2, Matt Grham wrote: I have a table like: 3 records found Man_IDMan_Type 8BC 8BC 8BC

[web2py] Re: groupby in sqlform.grid resulted into unsupported query

2013-08-03 Thread Matt Grham
meaningful. man_type needs to be either included in your groupby (in which case, it equals a distinct type of query) or used as an aggregate (first, last, count, etc etc etc) On Saturday, August 3, 2013 8:52:21 PM UTC+2, Matt Grham wrote: Fields to be shown: fields = ( db[str_tableName].Man_ID

[web2py] Re: groupby in sqlform.grid resulted into unsupported query

2013-08-03 Thread Matt Grham
BC Thanks, Matt On Saturday, August 3, 2013 12:40:31 PM UTC-7, Niphlod wrote: it may work on some backends (namely, SQLite), but that query doesn't rally make sense. What do you need as a result precisely ? On Saturday, August 3, 2013 9:25:44 PM UTC+2, Matt Grham wrote

[web2py] Re: groupby in sqlform.grid resulted into unsupported query

2013-08-03 Thread Matt Grham
Could be but I am trying to do it in SQLFORM.grid statement. How can I do that? On Saturday, August 3, 2013 4:04:40 PM UTC-7, villas wrote: For the example you provide, probably better with: distinct=True That is the usual SQL method of suppressing duplicate rows. -- --- You received

[web2py] Re: removing .load extension from grid pagination and export csv links

2013-08-02 Thread Matt Grham
with .load, page 2 of table opens without any layout. It does not work like a component in that regard. I need to refresh the table every 30 seconds. That is why, I use LOAD and reload the component in a script statement in every 30 seconds. Matt On Friday, August 2, 2013 12:43:40 AM UTC-7

[web2py] Re: removing .load extension from grid pagination and export csv links

2013-08-02 Thread Matt Grham
Hi Niphlod, Actually I did not change web2py.js or layout.html. Can you provide a very small example of a LOADed grid? My current structure might be wrong. Thanks, Matt On Friday, August 2, 2013 1:46:16 AM UTC-7, Niphlod wrote: something is wrong with your layout (and possibly

[web2py] Re: removing .load extension from grid pagination and export csv links

2013-08-02 Thread Matt Grham
Thanks a lot Niphlod. Actually that was the case. I started to use web2py 2.4.6 but my app was built using web2py 1.99.7. I updated web2py.js, web2py_ajax.html and layout.html. It works now. But if I want to refresh the component in every 30 seconds, I am having a problem. Sometimes pagination

[web2py] removing .load extension from grid pagination and export csv links

2013-08-01 Thread Matt Grham
Hi All, I have a grid in a LOAD component. How can I remove the .load extensions from the grid links (next page and export csv links)? Thanks, Matt -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop

[web2py] Re: controller return list instead of string or dict

2013-07-30 Thread Matt
to manually convert the result to a string just for this case where everything else works just fine by making it into the generic.json view. This used to just work for us because we did manual json.dumps conversion of the data, but this is the whole point of generic.json right? Regards, Matt

Re: [web2py] controller return list instead of string or dict

2013-07-30 Thread Matt
any sense right now for a controller to return a list? Exactly. Apologies for lack of clarity. Matt On Monday, July 29, 2013 11:07:35 PM UTC+2, Matt wrote: Hi, We're running into an issue with our restful api where a certain method is returning a json string (eg: ['one', 'two', 'three

Re: [web2py] controller return list instead of string or dict

2013-07-30 Thread Matt
, it doesn't care about anything in env. You *could* write a view that accepts a dict with a list (or dict) as a well-known name and serialize that, but it's not what generic.json does. Anthony On Tuesday, July 30, 2013 10:28:53 AM UTC-4, Matt wrote: On Tuesday, July 30, 2013 10:26:45 AM UTC-4

Re: [web2py] controller return list instead of string or dict

2013-07-30 Thread Matt Broadstone
On Tue, Jul 30, 2013 at 2:11 PM, Matt mbroa...@gmail.com wrote: On Tuesday, July 30, 2013 11:51:08 AM UTC-4, Jonathan Lundell wrote: On 30 Jul 2013, at 8:34 AM, Anthony abas...@gmail.com wrote: Can you show your code? You say you return locals(), but locals() produces a dictionary, so

Re: [web2py] controller return list instead of string or dict

2013-07-30 Thread Matt Broadstone
view (customize the generic view). So the advice is to make generic-list.json, and force that view, expecting that the input is in some format we decide upon. e.g. instead of returning sample_rpc_response, we return dict(result=sample_rpc_response)? Matt -- --- You received this message

Re: [web2py] controller return list instead of string or dict

2013-07-30 Thread Matt Broadstone
caused a problem. Matt Anthony -- --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https

Re: [web2py] controller return list instead of string or dict

2013-07-30 Thread Matt Broadstone
then it just iterates over it and returns a concatenated string. Matt -- --- 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 web2py+unsubscr...@googlegroups.com

[web2py] controller return list instead of string or dict

2013-07-29 Thread Matt
the problem: elif isinstance(page, list): response._vars = page run_view_in(response._view_environment) page = response.body.getvalue() Any suggestions for other ways to go about fixing this? Thanks, Matt -- --- You received this message because you are subscribed

[web2py] global python imports

2013-06-24 Thread Matt
removed in recent web2py versions, or is there something else getting in the way? Matt -- --- 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 web2py+unsubscr

[web2py] Re: global python imports

2013-06-24 Thread Matt
didn't have to write from ourlib import is_administrator at the top of every file in our controllers directory. Was this just a mistake that it worked before? Matt On Monday, June 24, 2013 2:36:39 PM UTC-4, Massimo Di Pierro wrote: I am not sure what you mean. If you install a module under

[web2py] response time impacted by compileapp

2013-06-12 Thread Matt
Hi, We use web2py somewhat differently than most use cases in that we aren't using a database at all, but instead back our web2py app with connections to a server over a local unix RPC socket. We still use web2py to perform validations, and UI generation, so we have a bunch of models that

[web2py] Re: response time impacted by compileapp

2013-06-12 Thread Matt
from rocket as well as nginx+uwsgi. Matt On Wednesday, June 12, 2013 11:04:48 AM UTC-4, Niphlod wrote: given that you can pre-compile your app, did you test if the compilation time drops before moving around your models to use conditional ones ? On Wednesday, June 12, 2013 3:47:47 PM UTC+2

[web2py] Re: response time impacted by compileapp

2013-06-12 Thread Matt
to use them in practice I received tons of errors about request or response not being available. Matt On Wednesday, June 12, 2013 11:16:45 AM UTC-4, Anthony wrote: response.models_to_run can't go in a controller because the controller isn't called until after models have been run. If you

[web2py] Re: response time impacted by compileapp

2013-06-12 Thread Matt
Anthony, it looks like I was mistaken, I just got one of our more simple models to work as a module. I'll repost later with what I discover wrt response times. Thanks, Matt On Wednesday, June 12, 2013 1:50:54 PM UTC-4, Anthony wrote: On Wednesday, June 12, 2013 1:35:11 PM UTC-4, Matt wrote

[web2py] Re: current.session

2013-06-07 Thread Matt
Can anyone speak to this issue? I'm not sure if I misunderstand the intent of current.session, or if this indeed a bug I could help fix. Thanks, Matt On Tuesday, June 4, 2013 8:35:06 AM UTC-4, Matt wrote: Hi, In one of my modules I'm trying to create a local socket connection

[web2py] Re: current.session

2013-06-07 Thread Matt
in order to clean up the socket. Do you know of any way to do this? Matt Anthony On Tuesday, June 4, 2013 8:35:06 AM UTC-4, Matt wrote: Hi, In one of my modules I'm trying to create a local socket connection that persists across a single session (one socket per one user logged

[web2py] Re: current.session

2013-06-07 Thread Matt
On Friday, June 7, 2013 11:28:48 AM UTC-4, Matt wrote: On Friday, June 7, 2013 9:53:42 AM UTC-4, Anthony wrote: current.session is just the session object, which is in the web2py global environment -- it contains the user's session for the current request. The session itself does

[web2py] Re: current.session

2013-06-07 Thread Matt
. This is an easy thing to do if you use an OS that supports multiple workspaces. On Friday, June 7, 2013 11:28:48 AM UTC-4, Matt wrote: On Friday, June 7, 2013 9:53:42 AM UTC-4, Anthony wrote: current.session is just the session object, which is in the web2py global environment

[web2py] Re: current.session

2013-06-07 Thread Matt
. the user logs out). At this point I think my only option is to setup a timer that just closes the socket after a set timeout period, because there is no callback to tell when the session is over. Anthony On Friday, June 7, 2013 11:56:19 AM UTC-4, Matt wrote: On Friday, June 7, 2013 11

[web2py] current.session

2013-06-04 Thread Matt
] session = cookies[session_id_appname].value Shouldn't some identifier (or even this cookie itself) be available in current.session? Perhaps I misunderstand the point of current.session. Matt -- --- You received this message because you are subscribed to the Google Groups web2py-users group

[web2py] BUG in JSON parsing in main.py

2013-05-23 Thread Matt
library except: try: import contrib.simplejson as sj #pure python library --- Pasted. except: import contrib.simplejson as sj #pure python library I get the same result. Any ideas? Thanks in advance, Matt -- --- You received this message because you are subscribed

Re: [web2py] BUG in JSON parsing in main.py

2013-05-23 Thread Matt
: On 23 May 2013, at 5:35 PM, Matt mjwa...@gmail.com javascript: wrote: Hi there, I'm using Version 2.4.6-stable+timestamp.2013.05.17.14.52.19, Running on mac, Python 2.7.2, no external JSON library installed. Sending the following data via PUT, application/json; charset=UTF-8: {id: 3

[web2py] Re: BUG in JSON parsing in main.py

2013-05-23 Thread Matt
translated JSON. Perhaps the book could be updated to reflect this. Thanks for your help, Matt On Friday, May 24, 2013 3:08:06 PM UTC+12, Massimo Di Pierro wrote: Please open a ticket about this. On Thursday, 23 May 2013 19:35:08 UTC-5, Matt wrote: Hi there, I'm using Version 2.4.6-stable

[web2py] Re: Jquery mobile module not working

2013-04-30 Thread Matt Johnson
If you got the download from http://web2py.com/plugins/plugin_jqmobile/about I found that when I did it was just not working, also resulting in a blank page. My solution was to revert back to the original files downloaded with web2py (as they were included anyway) -Matt On Tuesday, 2 April

Re: [web2py] Re: nginx + uwsgi + web2py + PAM

2013-04-03 Thread Matt Broadstone
Man, we're still using web2py 2.0.9 so that was definitely not in the script before! That would have saved me a day of work :) Matt On Tue, Apr 2, 2013 at 3:41 AM, Niphlod niph...@gmail.com wrote: nice. The script shipped with web2py installs uwsgi from pip, so we're covered! On Monday

Re: [web2py] Re: nginx + uwsgi + web2py + PAM

2013-04-01 Thread Matt Broadstone
On Fri, Mar 29, 2013 at 12:15 PM, Matt Broadstone mbroa...@gmail.com wrote: On Fri, Mar 29, 2013 at 12:05 PM, Niphlod niph...@gmail.com wrote: uhm. Before smashing heads against the wall, there are 3 different available methods here. 1) rely on nginx to authenticate users through pam

[web2py] Re: nginx + uwsgi + web2py + PAM

2013-03-29 Thread Matt Broadstone
mountpoint=/ scriptwsgihandler/script /app /uwsgi /etc/pam.d/uwsgi: @include common-auth @include common-account On Fri, Mar 29, 2013 at 11:45 AM, Matt Broadstone mbroa...@gmail.com wrote: Hi, We're trying to migrate our web2py deployment to nginx and running into a problem using

[web2py] nginx + uwsgi + web2py + PAM

2013-03-29 Thread Matt Broadstone
has been added to the shadow group. Does anyone have a clue what's going on here? I'm getting to the point that maybe web2py's pam auth module is the culprit, but I am very inexperienced with the technologies involved here. Matt -- --- You received this message because you are subscribed

Re: [web2py] Re: nginx + uwsgi + web2py + PAM

2013-03-29 Thread Matt Broadstone
the /etc/shadow file. That was my intention with playing around with /etc/pam.d/uwsgi config file, etc. Matt -- --- 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

[web2py] Re: Default SQLFORM.grid / auth restrictions?

2013-02-19 Thread Matt House
. -Jim On Saturday, February 16, 2013 4:56:49 PM UTC-6, Matt House wrote: Hello- I am new to Web2Py and I think I have a simple question, but I've banged my head on the desk for two hours and searched this forum to no avail. I have setup a basic database and want to give the user

[web2py] Default SQLFORM.grid / auth restrictions?

2013-02-16 Thread Matt House
Hello- I am new to Web2Py and I think I have a simple question, but I've banged my head on the desk for two hours and searched this forum to no avail. I have setup a basic database and want to give the user the ability to edit a series of fields using SQLFORM.grid. I also want users to be

[web2py] Re: Lazy tables bug

2012-11-04 Thread Matt
Still getting this bug in 2.2.1. Can you try running via the GAE Launcher? Thanks, Matt On Sunday, September 30, 2012 11:29:48 AM UTC+13, Massimo Di Pierro wrote: I tried from the shell and I cannot reproduce it: $ python web2py.py -S welcome -N web2py Web Framework Created by Massimo Di

[web2py] Re: Best practice for prepopulating regular form

2012-10-31 Thread Matt
', )), FIELDSET('Message: ', TEXTAREA(_name='message')), INPUT(_type='submit', _value='send', _name='sendBtn'), INPUT(_type='submit', _value='cancel', _name='cancelBtn') ) Matt On Thursday, November 1, 2012 2:35:06 PM UTC+13, MichaelF wrote: Jim, Thanks. I had already tried

[web2py] Re: Need help... testing new DAL

2012-10-11 Thread Matt
Just pulled now. Fixed! Great thanks. On Thursday, October 11, 2012 6:20:45 AM UTC+13, Massimo Di Pierro wrote: Can you try again? I think I fixed this in trunk. On Tuesday, 2 October 2012 22:08:58 UTC-5, Matt wrote: Just testing it now, Getting an error on GAE + CloudSQL: File

[web2py] Re: Need help... testing new DAL

2012-10-09 Thread Matt
Any idea about this? Currently I can't perform migrations on GAE. On Wednesday, October 3, 2012 4:08:58 PM UTC+13, Matt wrote: Just testing it now, Getting an error on GAE + CloudSQL: File /Projects/www//applications/app/models/db.py, line 45, in module auth.define_tables() File

[web2py] None existent page bug on 2.0.x (trunk) + GAE

2012-10-04 Thread Matt
) File /Projects/www/gluon/rewrite.py, line 234, in try_rewrite_on_error url_in(request, environ)[1]['PATH_INFO'] TypeError: 'NoneType' object is not subscriptable INFO 2012-10-05 00:42:34,856 dev_appserver.py:3056] GET / HTTP/1.1 500 - Matt --

[web2py] Re: None existent page bug on 2.0.x (trunk) + GAE

2012-10-04 Thread Matt
Excellent! Just tested and working as expected. Thanks Massimo. On Friday, October 5, 2012 2:38:29 PM UTC+13, Massimo Di Pierro wrote: fixed in trunk On Thursday, 4 October 2012 19:48:40 UTC-5, Matt wrote: Hi there, If I request a non existent page such as: http://localhost:8000

[web2py] Re: Need help... testing new DAL

2012-10-02 Thread Matt
/gluon/dal.py, line 4005, in file_close fileobj.close() AttributeError: DatabaseStoredFile instance has no attribute 'close' Matt On Tuesday, October 2, 2012 3:32:16 PM UTC+13, Massimo Di Pierro wrote: There is a big change in DAL. a = DAL(uri) b = DAL(uri) now a is b because DAL

[web2py] Re: Lazy tables bug

2012-09-29 Thread Matt
Any luck reproducing this? I can consistently make this bug happen by firstly launching my app via the app engine launcher with Lazy_tables = False. Then whilst it's running switch it over to Lazy_tables = True. Matt On Sunday, September 16, 2012 8:34:46 AM UTC+12, Massimo Di Pierro wrote

[web2py] Major CRYPT 2.0.x issue

2012-09-29 Thread Matt
: -- pbkdf2(1000,20,sha512)$a5408c54281fd146$e6024fe1e813c310e54e29f12113ebdc3eed289b Any feedback on this would be great. Thanks in advance, Matt --

[web2py] Re: Lazy tables bug

2012-09-29 Thread Matt
Can you try from within the Google App Engine Launcher? I'm using version 1.7.2 on a mac. python 2.7 Thanks, Matt On Sunday, September 30, 2012 11:29:48 AM UTC+13, Massimo Di Pierro wrote: I tried from the shell and I cannot reproduce it: $ python web2py.py -S welcome -N web2py Web

[web2py] Re: Major CRYPT 2.0.x issue

2012-09-29 Thread Matt
Hi Massimo, Thanks for explaining all of that. Please ignore this now as It's working as expected. tThanks again, Matt On Sunday, September 30, 2012 2:01:04 PM UTC+13, Massimo Di Pierro wrote: On Saturday, 29 September 2012 18:39:27 UTC-5, Matt wrote: Hi there, The CRYPT function

[web2py] Re: hideerror=True is being ignored in 2.0.x

2012-09-23 Thread Matt
Raised as issue. http://code.google.com/p/web2py/issues/detail?id=1027 On Friday, September 21, 2012 12:35:56 AM UTC+12, Massimo Di Pierro wrote: Please open a ticket pointing to this thread. Thanks. On Thursday, 20 September 2012 00:11:49 UTC-5, Matt wrote: Hi there, I use custom forms

[web2py] hideerror=True is being ignored in 2.0.x

2012-09-19 Thread Matt
}} {{= BUTTON('Submit', _type = 'submit') }} {{= form.custom.end }} Cheers, Matt --

[web2py] Re: executesql bug

2012-09-16 Thread Matt
It would be great if it was reintroduced then. I've currently got a live site using executesql just like this. Matt On Sunday, September 16, 2012 3:16:13 PM UTC+12, Anthony wrote: Hmm, doesn't look like the Google SQL adapter takes a placeholder argument: http://code.google.com/p/web2py

[web2py] Re: executesql bug

2012-09-16 Thread Matt
Thanks. Will do. Matt On Monday, September 17, 2012 12:40:01 PM UTC+12, Anthony wrote: Please open a ticket: http://code.google.com/p/web2py/issues/list On Sunday, September 16, 2012 8:07:21 PM UTC-4, Matt wrote: It would be great if it was reintroduced then. I've currently got a live

[web2py] Re: executesql bug

2012-09-15 Thread Matt
I'm using GAE + Cloud SQL (essentially MySQL.) I've been using executesql like this in 1.99.7 and it was working fine then. Kind regards, Matt On Sunday, September 16, 2012 2:34:02 AM UTC+12, Anthony wrote: Not all of the adapters allow placeholders. Which one are you using? On Friday

[web2py] Suggested change to gae_memcache.py

2012-09-14 Thread Matt
Hi there, Making the following minor change: def clear(self, key = None): if key: key = '%s/%s' % (self.request.application, key) self.delete(key) else: self.flush_all() would allow the entire cache to be cleared via. cache.ram.clear() Matt --

[web2py] Lazy tables bug

2012-09-14 Thread Matt
'y' If I set lazy_tables back again to False. It's fine again. Matt --

[web2py] executesql bug

2012-09-14 Thread Matt
) TypeError: execute() takes exactly 2 arguments (3 given) Matt --

[web2py] Re: Lazy tables bug

2012-09-14 Thread Matt
Weird. Did you try with GAE? Matt On Saturday, September 15, 2012 2:20:57 PM UTC+12, Massimo Di Pierro wrote: I cannot reproduce this. tested with and without lazy_tables = True on 2.0.9. On Friday, 14 September 2012 20:19:48 UTC-5, Matt wrote: Hi there, I've noticed that the new

[web2py] Re: Suggested change to gae_memcache.py

2012-09-14 Thread Matt
Great. Thanks :) Matt On Saturday, September 15, 2012 2:16:56 PM UTC+12, Massimo Di Pierro wrote: in trunk! Thanks. On Friday, 14 September 2012 19:33:11 UTC-5, Matt wrote: Hi there, Making the following minor change: def clear(self, key = None): if key: key

[web2py] bug in 2.0.8

2012-09-11 Thread Matt
information if possible. Thanks in advance, Matt BTW: Also had this problem occur prior to the above: self.db.executesql(CREATE TABLE IF NOT EXISTS web2py_filesystem (path VARCHAR(512), content LONGTEXT, PRIMARY KEY(path) ) ENGINE=InnoDB;) File /Projects/www/gluon/dal.py, line 7234

[web2py] Re: bug in 2.0.8

2012-09-11 Thread Matt
though the original columns have been dropped from the schema (along with my data) it's only currently running on my on local development machine so the loss isn't too much of a problem as I can recreate the data again. Thanks again for your fast response and fix. Kind regards, Matt On Wednesday

Re: [web2py] Re: Can't import external modules

2012-08-20 Thread Matt
the pyc files, removing all references to local_import and re-ran the program and it works just fine. At this point I really have no idea what was going on before but will be sure to revive the thread if it happens again, sorry for the confusion. Matt 3324:ef7523559742 --- a/gluon

Re: [web2py] Re: Can't import external modules

2012-08-16 Thread Matt
On Thursday, August 16, 2012 12:24:34 AM UTC-4, Matt wrote: On Wed, Aug 15, 2012 at 10:03 PM, Anthony abasta...@gmail.com wrote: Is there any way around this? This seems to have broken only with the upgrade to Mountain Lion. We develop this app primarily on (and for) linux, however

[web2py] Re: Can't import external modules

2012-08-15 Thread Matt
any idea where to look in order to solve this problem? I am very willing (and motivated!) to help fix this problem. Thanks! Matt On Monday, July 16, 2012 6:35:33 PM UTC-4, DonH wrote: Yes, I was running the web2py for OS X. I have switched to the web2py source version and it now works

Re: [web2py] Re: Can't import external modules

2012-08-15 Thread Matt Broadstone
On Wed, Aug 15, 2012 at 10:03 PM, Anthony abasta...@gmail.com wrote: Is there any way around this? This seems to have broken only with the upgrade to Mountain Lion. We develop this app primarily on (and for) linux, however I do most of my development on my laptop, so it's quite inconvenient to

[web2py] Making minor changes to auth.navbar()

2012-07-20 Thread Matt Newton
Is there a simple way to make changes to the auth.navbar() helper object? For example, the default for a logged in user is: Welcome {First Name} Logouthttp://127.0.0.1:8000/main/default/user/logout?_next=/main/default/index|

[web2py] Re: Website running extremely slow

2012-07-06 Thread Matt
Are migrations enabled? In your db.py try changing your DAL to explicitly turn it off. I.e. DAL('CONNECTION STRING', migrate_enabled = False, fake_migrate_all = False) Might do the trick, Matt On Saturday, July 7, 2012 6:51:38 AM UTC+12, wdtatenh wrote: My website is deployed on webfaction

[web2py] Re: [web2py:7053] Re: UnicodeDecodeError when using GAE datastore

2012-07-06 Thread Matt
into the FORM class somehow then that would be a fantastic solution for me and any other users who'll eventually encounter this. Kind regards, Matt On Tuesday, July 1, 2008 4:21:58 PM UTC+12, Massimo Di Pierro wrote: I do not like this solution. I would like something that that goes into gluon

[web2py] String encoding and cp1252 issues

2012-07-01 Thread Matt
anyone have any suggestions on how I might be able to achieve this? or is it best to raise this as a feature request / bug? Thanks in advance, Matt More info: http://effbot.org/zone/unicode-gremlins.htm

[web2py] String encoding and cp1252 issues

2012-07-01 Thread Matt
anyone have any suggestions on how I might be able to achieve this? or is it best to raise this as a feature request / bug? Thanks in advance, Matt More info: http://effbot.org/zone/unicode-gremlins.htm

[web2py] Encoding and cp1252

2012-07-01 Thread Matt
anyone have any suggestions on how I might be able to achieve this? or is it best to raise this as a feature request / bug? Thanks in advance, Matt More info: http://effbot.org/zone/unicode-gremlins.htm

[web2py] Encoding and cp1252

2012-07-01 Thread Matt
anyone have any suggestions on how I might be able to achieve this? or is it best to raise this as a feature request / bug? Thanks in advance, Matt More info: http://effbot.org/zone/unicode-gremlins.htm

[web2py] UploadWidget feature request.

2012-06-23 Thread Matt
.) Is there any way that this could be changed so that we can choose to have this displayed or not? Thanks in advance. Matt --

  1   2   3   >