[web2py] Continuous Integration

2010-01-18 Thread Matthew
Has anyone gotten web2py working with continuous integration tools like Hudson, Buildbot, or TeamCity? I found a post talking about BuildBot, http://groups.google.com/group/web2py/browse_thread/thread/5fefb19ed2ef8d2d/f9cf313ae3fc9164?lnk=gstq=buildbot#f9cf313ae3fc9164, but it is largely

[web2py] Pyjamas example, InternalError: too much recursion

2010-03-10 Thread Matthew
I'm doing the Pyjamas example here http://web2py.com/book/default/section/9/2 and get this error: TodoApp InternalError: too much recursion Has anyone else encountered this? Some articles around the web recommend adjusting the C++ code of your browser to fix it, but that doesn't seem safe

[web2py] Update record if different than proposed changes

2010-03-21 Thread Matthew
not change. What's the cleanest way to not do the update if the record's fields have not changed? Thanks, Matthew -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from

[web2py] Re: crud.archive for full app auditing

2010-03-21 Thread Matthew
Is there a way to do this (and to use CRUD, in general) in a scheduled job rather than just the web frontend? On Feb 13, 1:18 am, mdipierro mdipie...@cs.depaul.edu wrote: Here is a new feature in trunk. Say you have the following table: db.define_table('person',     Field('name'),

[web2py] Re: crud.archive for full app auditing

2010-03-21 Thread Matthew
and archive the current record    current = db.mytable[id]    current.current_record = current.id # move id db.mytable_history.insert(**mytable_history._filter_fields(current)) On Mar 21, 9:44 am, Matthew matthew.g.nor...@gmail.com wrote: Is there a way to do this (and to use CRUD

[web2py] Can't use db in InteractiveConsole

2010-03-28 Thread Matthew
I'm trying to use web2py in the interactive console, but I'm getting NameErrors when accessing 'db'. The strange thing is, just a few days ago I was able to do this. Here is what I'm running: python web2py.py -S myapp from gluon.sql import * rows = db(db.mytable.id 0) Traceback (most recent

[web2py] Re: Can't use db in InteractiveConsole

2010-03-28 Thread Matthew
Thanks! I've added this to my notes. On Mar 28, 11:23 am, mdipierro mdipie...@cs.depaul.edu wrote: python web2py.py -S myapp  -M On Mar 28, 10:05 am, Matthew matthew.g.nor...@gmail.com wrote: I'm trying to use web2py in the interactive console, but I'm getting NameErrors when accessing

[web2py] Database migration does not work

2010-04-22 Thread Matthew
it's related to my issue. Thanks, Matthew

[web2py] Re: Database migration does not work

2010-04-23 Thread Matthew
/matthew/dev/projects/webapp/src/app/gluon/sql.py, line 3056, in select rows = response(query) File /home/matthew/dev/projects/webapp/src/app/gluon/sql.py, line 3051, in response db._execute(query) File /home/matthew/dev/projects/webapp/src/app/gluon/sql.py, line 958, in lambda self

[web2py] Re: Database migration does not work

2010-04-24 Thread Matthew
I'm including previously-defined tables in other tables to reduce maintenance. For example, I have __web_resource table that has Wikipedia IDs, etc that I'm using in other tables. When I tried your suggestion, I got the following error: File /home/matthew/dev/projects/webapp/src/app/applications

[web2py] Re: Database migration does not work

2010-04-24 Thread Matthew
1.76.5 On Apr 24, 10:35 am, mdipierro mdipie...@cs.depaul.edu wrote: you must have a very old web2py version. On Apr 24, 9:25 am, Matthew matthew.g.nor...@gmail.com wrote: I'm including previously-defined tables in other tables to reduce maintenance. For example, I have __web_resource

[web2py] Re: Database migration does not work

2010-04-24 Thread Matthew
, __audit_trail) On Apr 24, 10:46 am, mdipierro mdipie...@cs.depaul.edu wrote: hmmm. I guess I need to the model then. fake_migrate was supported in 1.76.5 Massimo On Apr 24, 9:37 am, Matthew matthew.g.nor...@gmail.com wrote: 1.76.5 On Apr 24, 10:35 am, mdipierro mdipie...@cs.depaul.edu wrote

[web2py] Re: Database migration does not work

2010-04-24 Thread Matthew
: db.define_table('performer', __performer, __audit,fake_migrate=True or False) db.define_table('performer_audit_trail', __performer, __audit_trail,fake_migrate=True or False) On Apr 24, 10:07 am, Matthew matthew.g.nor...@gmail.com wrote: Here are the relevant parts of the model. I didn't

[web2py] Unit Testing - exec not adding controller to globals

2010-05-02 Thread Matthew
I'm following the instructions from this post http://web2py.com/AlterEgo/default/show/260 but cannot get my methods recognized globally. ERROR MESSAGE: ERROR: test_suggest_performer (__builtin__.TestSearch) -- Traceback (most

[web2py] Different results in console vs. script

2010-05-04 Thread Matthew
(db.flavor.id0).select().\ find(lambda row:row.name.startswith(term)) WORKS (17 results): python web2py.py -S myapp -M DOES NOT WORK (0 results): python web2py.py -S myapp -M -R applications/myapp/tests/test_search.py Thanks, Matthew

[web2py] Re: Different results in console vs. script

2010-05-04 Thread Matthew
. Are the records in the db already or are they stored by the unit_test? On May 4, 8:12 pm, Matthew matthew.g.nor...@gmail.com wrote: I'm attempting to unit test a method by followinghttp://web2py.com/AlterEgo/default/show/260. If I run the query inside the console, it works fine. If I run

[web2py] Re: Different results in console vs. script

2010-05-04 Thread Matthew
4, 9:27 pm, mdipierro mdipie...@cs.depaul.edu wrote: Perhpas something is causing the test script to pick up the wrong database. What is in request.folder from console? On May 4, 8:44 pm, Matthew matthew.g.nor...@gmail.com wrote: Thanks for the quick reply! They are in the db

[web2py] Re: Different results in console vs. script

2010-05-05 Thread Matthew
Note that I've renamed my root web2py folder to 'app' as you'll see below. From console: os.getcwd() '/home/matthew/dev/projects/mywebapp/src/app' request.env.web2py_path Print statements from search_test.py: /home/matthew/dev/projects/mywebapp/src/app None On May 5, 12:01 am, mdipierro

[web2py] Re: Web2py Utilities

2010-05-05 Thread Matthew
This is excellent! I know that the documentation is in its early stages, but are there any examples you can point to where this has been used? On Apr 29, 10:15 pm, muybay yabyum...@gmail.com wrote: Fantastic contribution Thadeus, I hope to contribute back a fraction of what you have already

[web2py] Service returns invalid function message

2010-05-06 Thread Matthew
(): return 'Hello!' And here is how I call refer to it from the HTML page: {{=URL(r=request, f='call/json/hello')}} Is there a change between how services are called? The documentation http://web2py.com/book/default/section/9/2?search=services looks the same. Thanks, Matthew

[web2py] Re: Service returns invalid function message

2010-05-07 Thread Matthew
I did delete it accidentally. Thank you for the quick spot. On May 7, 12:12 am, mdipierro mdipie...@cs.depaul.edu wrote: works for me with 1.77.3 did you delete def call(): return service() On May 6, 11:08 pm, Matthew matthew.g.nor...@gmail.com wrote: I have a simple service running

[web2py] Running a script with Google App Engine

2010-05-09 Thread Matthew
You can run a script with Postgres or MySQL using this syntax: python web2py.py -S myapp -M -R applications/myapp/modules/ myscript.py Can a script be run in this way using App Engine as the datastore?

[web2py] Re: Running a script with Google App Engine

2010-05-10 Thread Matthew
/browse_thread/thread/93d3dad8474735e0/0e5bc2a69f0767d6?lnk=gstq=bulk+insert#0e5bc2a69f0767d6, does that mean they're only possible from within the application itself (not via script)? Thanks, Matthew On May 10, 7:04 pm, howesc how...@umich.edu wrote: everything on GAE must be called via a URL (it must

[web2py] LIKE is slow on RDBS; true for GAE also?

2010-06-03 Thread Matthew
anyone know that the speed on GAE is much faster with the syntax above? Reference: http://www.web2pyslices.com/main/slices/take_slice/16 Thanks, Matthew

[web2py] Re: LIKE is slow on RDBS; true for GAE also?

2010-06-05 Thread Matthew
Right, which is why this syntax is used: rows = db(buyer.id0).select().find(lambda row:row.name.startswith('C')) I was just wondering how efficient this really is since it grabs the whole table. I'm going to try it on GAE, I was just wondering if anyone else had yet. On Jun 4, 2:21 am, Álvaro

[web2py:29752] Run doctest in the modules directory

2009-08-31 Thread Matthew
I am relatively new Web2py and very new to doctests. I'm attempting to test a new Validator, but the Traceback tells me it cannot even find the gluon.validators module. I have the web2py folder on my PYTHONPATH. Here is my file validators.py in ~/dev/source/web2py/applications/myapp/modules/

[web2py:29764] Re: Run doctest in the modules directory

2009-08-31 Thread Matthew
Perfect - thanks! On Aug 31, 9:46 pm, mdipierro mdipie...@cs.depaul.edu wrote: I tried adding this line to the script: import sys; sys.path.append('./') and running from web2py/ as python applications/myapp/modules/script.py It worked On Aug 31, 8:01 pm, Matthew matthew.g.nor

[web2py:29922] Extending IS_NOT_EMPTY validator

2009-09-02 Thread Matthew
()) # Allow doctests to be run if this file is called by python. For example: # python validators.py if __name__=='__main__': import doctest doctest.testmod() END SOURCECODE Thanks, Matthew --~--~-~--~~~---~--~~ You received this message because you

[web2py:29941] Re: Extending IS_NOT_EMPTY validator

2009-09-02 Thread Matthew
...@cs.depaul.edu wrote: Did you look into gluon/tests/ ? On Sep 2, 6:47 pm, Matthew matthew.g.nor...@gmail.com wrote: I am trying to extend the IS_NOT_EMPTY validator to strip out whitespace before submitting.  I have two questions (code posted after questions): 1. How can I test

[web2py:29998] Re: Extending IS_NOT_EMPTY validator

2009-09-03 Thread Matthew
do not know of? Thank you again for the help, Matthew On Sep 3, 1:33 am, Yarko Tymciurak yark...@gmail.com wrote: btw - you can browse the current source tree online - http://bazaar.launchpad.net/~mdipierro/web2py/devel/files On Thu, Sep 3, 2009 at 12:32 AM, Yarko Tymciurak yark...@gmail.com

[web2py:30034] Re: Extending IS_NOT_EMPTY validator

2009-09-04 Thread Matthew
, but the latter gives the error listed earlier in this thread. On Sep 3, 9:15 pm, mdipierro mdipie...@cs.depaul.edu wrote: Could it be one is a tuple and one is a string containing a representation of the same tuple? On Sep 3, 7:34 pm, Matthew matthew.g.nor...@gmail.com wrote: Thank you

[web2py:30159] Re: Extending IS_NOT_EMPTY validator

2009-09-05 Thread Matthew
and on end', None) On Sep 4, 10:08 am, mdipierro mdipie...@cs.depaul.edu wrote: could it be the number of spaces between the , and the None? On Sep 4, 6:17 am, Matthew matthew.g.nor...@gmail.com wrote: Perhaps I don't understand doctests fully, but isn't all output from them converted to string

[web2py:30160] Re: Extending IS_NOT_EMPTY validator

2009-09-05 Thread Matthew
in between and on end', None) On Sep 4, 10:08 am, mdipierro mdipie...@cs.depaul.edu wrote: could it be the number of spaces between the , and the None? On Sep 4, 6:17 am, Matthew matthew.g.nor...@gmail.com wrote: Perhaps I don't understand doctests fully, but isn't all output from them converted

[web2py:30194] Re: Extending IS_NOT_EMPTY validator

2009-09-05 Thread Matthew
I'll look into their documentation more (strange error). Thank you for all of your help! On Sep 5, 5:06 pm, mdipierro mdipie...@cs.depaul.edu wrote: It must be a doctest then. No idea. On Sep 5, 3:00 pm, Matthew matthew.g.nor...@gmail.com wrote: Unfortunately not - they both have exactly

[web2py:30195] Polymorphic Tagging

2009-09-05 Thread Matthew
Does Web2py have any concept of Polymorphic Associations like Ruby or Generic Relations like Django? This would be very beneficial for tagging or voting, because there is usually a need to tag or vote on different models in the same application. Thanks, Matthew

[web2py:30262] Re: Polymorphic Tagging

2009-09-06 Thread Matthew
It seems my question catalyzed quite a discussion! Thank you all for weighing in. I certainly understand more of the underlying architecture that makes these sugary things possible in web2py and other frameworks. Just to clarify, Massimo; in order to use this type of generic in web2py, I am

[web2py:31075] Multiple jQuery functions, one HTML page

2009-09-15 Thread Matthew
Are you able to use multiple jQuery functions per page in web2py? My code below only works when one of the functions is commented out: script $(function() { $(#ent_input).autocomplete('get_suggestions', {autoFill: true, scroll: false}); });

[web2py:31149] Re: Multiple jQuery functions, one HTML page

2009-09-16 Thread Matthew
() {              alert('one');         });         // Freebase Suggest         $(function() {              alert('two');         }); /script On Sep 15, 8:16 pm, Matthew matthew.g.nor...@gmail.com wrote: Are you able to usemultiplejQueryfunctions per page in web2py?  My code below only works when one

[web2py] Not getting proper Janrain choices

2011-07-31 Thread Matthew
settings.login_method = 'janrain' and settings.login_config = 'domain:api_key'. Am I missing anything? I am using the layout plugin and a layout - is there another spot to alter in layouts? Thanks, Matthew

[web2py] Re: Not getting proper Janrain choices

2011-07-31 Thread Matthew
. Anthony On Sunday, July 31, 2011 3:00:50 PM UTC-4, Matthew wrote: I just tried to link a new web2py application with my Janrain account, but I am still seeing the default Janrain options on the /default/user/ login. My models/db.py has my key, domain (not full domain, just Janrain app

[web2py] Re: Not getting proper Janrain choices

2011-07-31 Thread Matthew
= RPXAccount(request, api_key='xx',domain='x', url = http://localhost:/%s/default/user/login; % request.application) ... Thanks again for taking a look. Matthew On Jul 31, 4:06 pm, Anthony abasta...@gmail.com wrote: Can you show more of your 0.py and db.py

[web2py] Re: Not getting proper Janrain choices

2011-08-02 Thread Matthew
to the documentation? I'd like to point out that domain is not actually the full domain as defined by Janrain's documentation, but your domain's application name. Thanks again, Matthew On Jul 31, 10:57 pm, Anthony abasta...@gmail.com wrote: On Sunday, July 31, 2011 7:20:27 PM UTC-4, Matthew wrote

[web2py] Re: Not getting proper Janrain choices

2011-08-02 Thread Matthew
1. Yes, I completed those steps and the code was not inserted. 2. Version 1.98.1 3. I will submit the recommended example/language to this group. On Aug 2, 8:51 am, Anthony abasta...@gmail.com wrote: On Tuesday, August 2, 2011 8:12:01 AM UTC-4, Matthew wrote: Thank you! That bit of code

[web2py] Re: Not getting proper Janrain choices

2011-08-02 Thread Matthew
I see it now, thank you. I didn't realize it was at the bottom of the file. Thanks! On Aug 2, 2:20 pm, Anthony abasta...@gmail.com wrote: On Tuesday, August 2, 2011 1:45:52 PM UTC-4, Matthew wrote: 1. Yes, I completed those steps and the code was not inserted. Hmm, I just tried it (from

[web2py] No module named pickle when started in App Engine

2011-08-02 Thread Matthew
I tried to start web2py 1.98.1 using dev_appserver.py, but it cannot find the pickle module. Traceback (most recent call last): File /home/matthew/dev/sdks/google_appengine_1.5.2/google/appengine/ tools/dev_appserver.py, line 4144, in _HandleRequest self._Dispatch(dispatcher, self.rfile

[web2py] Database drivers lost

2011-08-04 Thread Matthew
/home/matthew/dev/projects/poprop_cameron/project/src/gluon/ restricted.py, line 192, in restricted exec ccode in environment File /home/matthew/.local/share/Trash/files/src.3/applications/ welcome/models/db.py, line 17, in module db = DAL('sqlite://storage.sqlite') # if not, use

[web2py] Cannot see Plugins listed in Wizard

2011-10-19 Thread Matthew
I am trying to use the plugins dropdown, but I can't see any choices at all. I've tried this on both Chrome and Firefox, and am using Ubuntu 10.04. Thanks for your help, Matthew

[web2py] Re: Cannot see Plugins listed in Wizard

2011-10-19 Thread Matthew
Here is a screenshot to illustrate, http://bit.ly/qL7VjA and a previous thread about testing the wizard, http://groups.google.com/group/web2py/browse_thread/thread/6c368ee2723bb3b9/deb78bbc76b4d299?lnk=gstq=plugins+wizard#deb78bbc76b4d299

[web2py] Re: Cannot see Plugins listed in Wizard

2011-10-20 Thread Matthew
Per Massimo's advice, I created an issue for this here: http://code.google.com/p/web2py/issues/detail?id=478 Please star it if you are experiencing the same issue. On Oct 19, 4:00 pm, Matthew matthew.g.nor...@gmail.com wrote: Here is a screenshot to illustrate,http://bit.ly/qL7VjAand

[web2py] Plugin files disappearing during editing

2011-10-20 Thread Matthew
I am trying to create a plugin. Is there any reason that files prefixed with plugin_ do not show up when you restart web2py to edit them again? http://img7.imagebanana.com/img/wcibbzg2/Selection_010.png Thanks, Matthew

[web2py] Re: Plugin files disappearing during editing

2011-10-20 Thread Matthew
Thank you! On Oct 20, 7:47 pm, Anthony abasta...@gmail.com wrote: Plugin files are shown separately -- scroll to the bottom of the page, and you should see the plugins listed in the Plugins section. Click on one, and you'll get a separate page for the plugin files.

[web2py] Navigation links with Plugin CRUD

2011-10-20 Thread Matthew
.imagebanana.com/img/aw2vsbdl/pTZ6ZW0mVK.png Thanks, Matthew

[web2py] Re: Navigation links with Plugin CRUD

2011-12-01 Thread Matthew
? thanks Dan On Oct 20, 7:35 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Do not use crud.select. use SQLFORM.grid instead. So much better. On Oct 20, 8:34 pm, Matthew matthew.g.nor...@gmail.com wrote: Is there any way to change the default behavior of the CRUD select

[web2py] Default field value with lambda

2011-12-01 Thread Matthew
, Matthew

[web2py] Re: Default field value with lambda

2011-12-02 Thread Matthew
arguments, but *compute* did not work for me either. Can you include an example so I am sure to try the exact syntax you're suggesting? Thanks, Matthew

[web2py] How do I aggregate accounts using OAuth web2py?

2011-12-18 Thread Matthew
or best practices documented. Does anyone know of any? Thanks, Matthew

[web2py] Re: haml and sass

2011-12-19 Thread Matthew
I've used HamlPy before: https://github.com/jessemiller/HamlPy. It works really well for those familiar with Python syntax. All you have to do is listen on a directory, or set up an Eclipse job that executes a script every time you save a file. If anyone is interested, I could dig back and find

Re: [web2py] How do I aggregate accounts using OAuth web2py?

2011-12-23 Thread Matthew
Thank you, Mic!

[web2py] IMG Helper

2010-03-13 Thread Matthew McNaughton
Greetings team, I'm fairly new to HTML and WEB2PY and I am having some problems with code below. I am trying to write a view that pulls information from a database, called applications, and displays it on the page. Specifically, I can't seem to find the syntax for the IMG HTML helper? Also if I

Re: [web2py] Re: IMG Helper

2010-03-13 Thread Matthew McNaughton
Thanks for the quick response. The database holds the actual image not the URL? On Mar 13, 2010 1:06 PM, DenesL denes1...@yahoo.ca wrote: On Mar 13, 12:57 pm, Matthew McNaughton mamcnaugh...@gmail.com wrote: Greetings team, Hi Matthew and welcome I'm fairly new to HTML and WEB2PY and I am

Re: [web2py] Re: IMG Helper

2010-03-13 Thread Matthew McNaughton
-13 at 10:59 -0800, DenesL wrote: On Mar 13, 1:15 pm, Matthew McNaughton mamcnaugh...@gmail.com wrote: Thanks for the quick response. The database holds the actual image not the URL? Are you asking or telling?. Without your model definition I can't tell, it all depends on how you defined

Re: [web2py] Re: Ctrl-S is not saving file in admin file editor

2010-03-16 Thread Matthew McNaughton
Not sure if this still helps, but I can confirm to having the same problem in u Ubuntu with Google chrome as well On Mar 16, 2010 4:27 PM, Wes James compte...@gmail.com wrote: I took edit_area_full.js and took out the single line of js and put in: editAreaLoader.iframe_script = 'script

[web2py] Layout Plugin

2010-03-19 Thread Matthew McNaughton
Greetings team, I recently tried to use the layout plugin, but my experience has been less than stellar. After installing the plug in, and choosing a design to use, I get a web2py site with only text and no color. While I would love to get the layout plugin to work, any design would be good at

[web2py] User Authorization + Download management

2010-03-20 Thread Matthew McNaughton
Greetings all, I've read the access control section in book a couple times over, and I still can't completely figure out authorization. I want to do the following: I want to add all newly registered users to a specific group called users, which I have already created in auth_groups I have another

Re: [web2py] Re: User Authorization + Download management

2010-03-20 Thread Matthew McNaughton
is in request.args(0) and user in auth.user_id return response.download(request,db) On Mar 20, 2:11 am, Matthew McNaughton mamcnaugh...@gmail.com wrote: Greetings all, I've read the access control section in book a couple times over, and I still can't completely figure out authorization. I

Re: [web2py] Re: User Authorization + Download management

2010-03-21 Thread Matthew McNaughton
=..., or in a registration controller or simply in the user() action. As long as they are executed before the registration form runs. Massimo On Mar 20, 12:30 pm, Matthew McNaughton mamcnaugh...@gmail.com wrote: DO the commands in 1) go into the db.py after auth=Auth(globals(),db

Re: [web2py] Re: User Authorization + Download management

2010-03-21 Thread Matthew McNaughton
, Matthew McNaughton mamcnaugh...@gmail.com wrote: Ok, so I'm trying to create a Download function that keeps track of the files that the user downloads and updates a database table. The database model is: db.define_table('userSoftware

Re: [web2py] Re: User Authorization + Download management

2010-03-21 Thread Matthew McNaughton
))) : db.userSoftware.insert(user_id =auth.user_id,Filename=request.args(0),Release_Date=appVer.id) On Mar 21, 1:12 pm, Matthew McNaughton mamcnaugh...@gmail.com wrote: Thanks for all the help so far! Now that I got the userID and filename in the table, I'm having problems populating the other fields. I

[web2py] Error when @auth.requires_login() decorator is used on a method in controllers/default.py

2011-10-18 Thread Matthew Young
Hi everyone I am using the following python/web2y versions: web2py™ (1, 99, 3, datetime.datetime(2011, 10, 18, 17, 10, 12), 'dev') Python Python 2.7: /usr/bin/python I am running web2py from source under linux. I have the following method in my default controller file:

[web2py] Question about crud forms and foreign keys

2011-10-19 Thread Matthew Young
Currently, I have a table that has a field that represents a different table in my database (ex: Field('thing', db.thing)). If I make a crud form of the table that has a field referring to a foreign table, I am able to select items from the second table in a drop down menu. Is there a way I can

[web2py] SyntaxError: Set: no tables selected on select statement.

2011-11-07 Thread Matthew Young
Hello I am using the Version 1.99.3 (2011-11-07 17:41:19) dev version of web2py. I am having an issue with this view function: def check_room_availability(): room = db.room(request.args(0)) or redirect(URL('view_rooms')) reservations = db().select(db.reservation.room.name==room.name)

[web2py] Re: SyntaxError: Set: no tables selected on select statement.

2011-11-07 Thread Matthew Young
().  Second, the reference to room is via room.id rather than room.name.  So you could try: reservations = db(db.reservation.room==room.id).select() On Nov 8, 8:49 am, Matthew Young mab...@gmail.com wrote: Hello I am using the Version 1.99.3 (2011-11-07 17:41:19) dev version of web2py. I

[web2py] Question about Human-readable forms + REST CRUD APIs.

2012-07-28 Thread Matthew Wood
A quick question about basic CRUD for both humans (basic HTML) and computers (REST) I'm trying to pick a solid python framework for a project at work. We have a lot of situations where we need to expose datbase tables for data CRUD. I'm trying to pick between Flask and Web2py at this time, but

[web2py] Can web2py serve REST data of many-to-may tables via parse_as_rest?

2012-08-16 Thread Matthew Wood
I'm posting this question here as well as on stackoverflowhttp://stackoverflow.com/questions/11991678/can-web2py-serve-rest-data-of-many-to-may-tables-via-parse-as-rest. So hopefully the extra exposure will help me out! I need to serve REST data about a many-to-many relationship. I've been

[web2py] Re: Question about Human-readable forms + REST CRUD APIs.

2012-08-16 Thread Matthew Wood
advice on how to built a better system, I would like to hear your ideas. It could help make web2py better. massimo On Saturday, 28 July 2012 21:41:34 UTC-5, Matthew Wood wrote: A quick question about basic CRUD for both humans (basic HTML) and computers (REST) I'm trying to pick

[web2py] Re: Question about Human-readable forms + REST CRUD APIs.

2012-08-16 Thread Matthew Wood
I'v been fiddling with these ideas. They are very similar to the flask/sqlalchemy solutions I've seen in my other queries. Thanks a ton for the suggestions. This is a pretty nice community. On Sunday, July 29, 2012 11:16:53 PM UTC-6, Anthony wrote: - if you define your models carefully

[web2py] Re: alternates to pyjamas/pyjs?

2012-10-04 Thread matthew lange
Please do shae--i have issues myself. On Wednesday, May 30, 2012 11:37:05 AM UTC-7, stefaan wrote: solved some of the issues...time to get crackin'! Glad to hear it :) I have found the inspect element tool in chromium to be very valuable in diagnosing trouble with my application.

[web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread Matthew Spence
Hi all- I'm very excited about the upgrade. I'm deployed on PythonAnywhere, and when I clicked on the button to upgrade now to Version 2.6.1, it looks like it downloads, but then suddenly I get Internal error. Ticket issued admin/ and now my admin interface does not work. (The site still

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-14 Thread Matthew Spence
Hi Massimo- I took a look through the error file and I suspect the relevant line is: from gluon.tools import Config\nImportError: cannot import name Config\n' Let me know if you want the whole error file. Thanks! -Matt On Sep 14, 2013, at 9:14 AM, Massimo Di Pierro

[web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-14 Thread Matthew Spence
Hi guys- I just tried a fresh install of web2py on PythonAnywhere. (So, only the stock applications of welcome, admin, and examples.) It auto-installs with 2.5.1, so I hit the button to upgrade to 2.6.2. It looks like it starts to install, but then I get Internal Error again. I pasted the

[web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-14 Thread Matthew Spence
must do it for every domain. Massimo On Saturday, 14 September 2013 18:55:08 UTC-5, Matthew Spence wrote: Hi guys- I just tried a fresh install of web2py on PythonAnywhere. (So, only the stock applications of welcome, admin, and examples.) It auto-installs with 2.5.1, so I hit

[web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-17 Thread Matthew Spence
check if gluon/tools.py contains class Config. I know it is there in 2.6.1 and 2.6.2. The issue is if PythonAnywhere reloading failing? Or is there a path issue and it is looking at the wrong gluon/tools.py somewhere else? On Saturday, 14 September 2013 18:55:08 UTC-5, Matthew Spence wrote

[web2py] Re: Resetting the database

2017-04-16 Thread 'Matthew J Watts' via web2py-users
I had to log out of my webapp before deleting the database data, otherwise i would get an error message cheers On Monday, November 14, 2011 at 1:38:15 AM UTC+1, Archibald Linx wrote: > > Dear Web2py users, > > How can I reset the database of my Web2py project ? > > Thanks, > Archibald --

Re: [web2py] Re: SQLFORM.grid with selectable checkboxes that export CSV files on submit

2017-07-07 Thread 'Matthew J Watts' via web2py-users
thanks Peter, as for the grid i'm currently trying to work out how to customize it, but yes i think the "buttons_placement = 'right' " puts the buttons on the right On Wednesday, July 5, 2017 at 4:39:17 AM UTC+2, Peter wrote: > > > Glad you got something out of it Matt! > > I decided to try

[web2py] Re: Limit the field to search in sqlgrid?

2017-07-07 Thread 'Matthew J Watts' via web2py-users
I'm trying to do the same, can anyone help? On Friday, June 28, 2013 at 3:03:12 AM UTC+2, fun man wrote: > > Hi all, > > I have a couple tables joined in the sqlform.grid. They both have around > 20 fields. I am only displaying around 10~15 fields for a particular > purpose. > > When I click

[web2py] Grid - limit searches to specified fields not whole tables

2017-07-07 Thread 'Matthew J Watts' via web2py-users
Hi all I’m having problems trying to tailor the grid to my needs I've set up a grid to query my db and it retrieves the data successfully, great! Example: def gridquery(): grid = SQLFORM.grid((db.MAIN.TaxonID == db.TAXON.TaxonID), field_id = db.MAIN.MainID,

[web2py] Re: Grid - limit searches to specified fields not whole tables

2017-07-07 Thread 'Matthew J Watts' via web2py-users
Ok thanks Antony i'll look into it, this looks like it could take some time!! On Friday, July 7, 2017 at 2:42:37 PM UTC+2, Matthew J Watts wrote: > > Hi all > > > > I’m having problems trying to tailor the grid to my needs > > I've set up a grid to query my db a

Re: [web2py] Re: Help - Grid with left joins and sending arguments/variables to other functions

2017-07-21 Thread 'Matthew J Watts' via web2py-users
> fields. Is that correct. > > I've never done that, but I don't see how it would change anything other > than the 'left' setup. > > -Jim > > On Fri, Jul 21, 2017 at 5:54 AM, 'Matthew J Watts' via web2py-users < > web2py@googlegroups.com> wrote: > >>

Re: [web2py] Re: Help - Grid with left joins and sending arguments/variables to other functions

2017-07-21 Thread 'Matthew J Watts' via web2py-users
he beauty of > web2py is the community and the friendly help you can get on this group. > > -Jim > > On Wednesday, July 19, 2017 at 9:26:08 AM UTC-5, Matthew J Watts wrote: >> >> Great thanks Jim, that did it for me - it's hard being a beginner!! >> >> On Wed, J

[web2py] Help - Grid with left joins and sending arguments/variables to other functions

2017-07-19 Thread 'Matthew J Watts' via web2py-users
Hi all I'm having some problems trying to achieve the following I have a grid with left joins which selects a subset of entries in my database -(query between 3 tables) Once i get the desired result, i want to be able to set up links within the table that then send the id from each row

Re: [web2py] Re: Help - Grid with left joins and sending arguments/variables to other functions

2017-07-19 Thread 'Matthew J Watts' via web2py-users
t; load_dataset.csv",args=[ids.id]))] > > to this: > > links = [lambda ids: A('Download data set',_href=URL("default","down > load_dataset.csv",args=[ids.MAIN.id <http://ids.id/>]))] > > When you add the LEFT join you then need to specify which table to get the &g

[web2py] SQLFORM.grid with selectable checkboxes that export CSV files on submit

2017-06-29 Thread 'Matthew J Watts' via web2py-users
Hi all I'm trying to modify an SQLFORM.grid so it has selectable check boxes, which allow the user to download selected queries as CSV files once the submit button has been clicked. Can anyone help me with this? Thanks in advance Matt -- Resources: - http://web2py.com -

Re: [web2py] Re: SQLFORM.grid with selectable checkboxes that export CSV files on submit

2017-07-04 Thread 'Matthew J Watts' via web2py-users
thanks for your help Peter! Actually, i've been playing around with it but need some into on the functions/views too! 'The report_functions should point to valid report functions/views that you have created (I can provide some info on this if needed)' On Tue, Jul 4, 2017 at 4:37 AM, Peter

Re: [web2py] Re: SQLFORM.grid with selectable checkboxes that export CSV files on submit

2017-07-04 Thread 'Matthew J Watts' via web2py-users
Thanks Peter - that was very helpful indeed. I didn't manage to get a 'download to CSV from checkboxes' function working, don't quite get why as i managed to set up a 'download links from rows ' function in the SQLFORM.grid. Here is the code for you just in case it is any help for you in the

[web2py] Help with building query functions in a web app - links to tutorials etc

2017-04-29 Thread 'Matthew J Watts' via web2py-users
Hi there everyone! I'm new to Web2py, i'm really enjoying using the framework so far. I am trying to rebuild a legacy database. I want to produce a web app that can query data from multiple tables using drop down boxes e.g. locations, species etc.. I want to be able to select info using

[web2py] Editing an SQLFORM.grid - use check boxes to select downloads.

2017-05-22 Thread 'Matthew J Watts' via web2py-users
Hi all I'm new to web2py and i'm stuck on the following issue. I am trying to Edit an SQLFORM.grid so that I can use the check boxes (selectable) to select which rows to download. Can anyone give me a few pointers on this. Thanks Matt -- Resources: - http://web2py.com -

[web2py] Re: exporting selected rows from a grid

2017-05-22 Thread 'Matthew J Watts' via web2py-users
hello, did you ever find a better solution for this? I want to do the same thing On Monday, September 30, 2013 at 11:33:57 AM UTC+2, step wrote: > > I want to use SQLFORM.grid with selectable checkboxes to serve a custom > export function. Unlike web2py's default exportformats manager, which >

Re: [web2py] Re: Editing an SQLFORM.grid - use check boxes to select downloads.

2017-05-23 Thread 'Matthew J Watts' via web2py-users
Ok great thanks , i will check it out On Tue, May 23, 2017 at 1:53 AM, 黄祥 wrote: > i think you can use widget to show checkbox : SQLFORM.widgets.checkboxes. > widget > ref: > http://web2py.com/books/default/chapter/29/07/forms-and-validators#Widgets > and use

Re: [web2py] Re: Help with building query functions in a web app - links to tutorials etc

2017-05-04 Thread 'Matthew J Watts' via web2py-users
t; > Basically you using the define_table and queries dal.. > > What you already done? > > Em sábado, 29 de abril de 2017 14:09:13 UTC-3, Matthew J Watts escreveu: >> >> Hi there everyone! >> >> I'm new to Web2py, i'm really enjoying using the framework so far. >> >&

[web2py] select_or_add_widget - can't get recipes, tutorials and example app to work

2017-10-12 Thread 'Matthew J Watts' via web2py-users
Hi there, does anyone know how to get this working with the latest version of web2py - i can't get it working, not even in the sample app below https://github.com/mdipierro/web2py-recipes-source/blob/master/apps/05_adding_ajax_effects/web2py.app.select_or_add_widget.w2p thanks Matt --

  1   2   >