[web2py] Re: web2py 2.15.0b1

2017-07-31 Thread Oliver Holmes
Yes, that did the trick! Thank you! Cheers! Oliver Holmes -- 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

[web2py] Re: web2py 2.15.0b1

2017-07-31 Thread Oliver Holmes
ute(command) rv = self.cursor.execute(command, *args[1:], **kwargs) for handler in handlers: handler.after_execute(command) return rv Variables rv undefined self args ('SELECT "gdt_config"."id", "

[web2py] Re: Numpy 1.13.0 renders web2py via apache https irresponsive

2017-07-04 Thread Oliver Holmes
Am Dienstag, 4. Juli 2017 11:02:50 UTC+2 schrieb Leonel Câmara: > > It's not a recent problem see: > https://github.com/numpy/numpy/issues/3837 > https://github.com/numpy/numpy/issues/8559 > > And see: > > http://modwsgi.readthedocs.io/en/develop/user-guides/application-issues.html#multiple-python

[web2py] Re: Numpy 1.13.0 renders web2py via apache https irresponsive

2017-07-04 Thread Oliver Holmes
Am Dienstag, 4. Juli 2017 00:49:19 UTC+2 schrieb Leonel Câmara: > > This has nothing to do with web2py, this is an issue between mod_wsgi > which uses sub-interpreters and numpy which really doesn't like that and > may become deadlocked. > > The best solution is simply not to use mod_wsgi. >

Re: [web2py] Numpy 1.13.0 renders web2py vie apache https irresponsive

2017-07-03 Thread Oliver Holmes
Am Montag, 3. Juli 2017 17:30:07 UTC+2 schrieb Richard: > > You don't mention which web2py version you have in place... > > Sorry, I did forget to mention that. Here goes: 2.14.6-stable+timestamp.2016.05.10.00.21.47 (läuft auf Apache/2.4.10 (Raspbian), Python 2.7.9) Regar

[web2py] Numpy 1.13.0 renders web2py vie apache https irresponsive

2017-07-03 Thread Oliver Holmes
is a plain timeout. When rolling back to numpy 1.12.1 this is no longer the case. Everything works just fine. Just wanted to give you guys a heads up, in case anyone ran into something similar. BTW my machine is a RaspberryPi 3 with current Raspbian. Regards, Oliver Holmes -- Resources: -

[web2py] Re: request.folder

2017-03-23 Thread Oliver Holmes
e OS, that got broken and subsequently fixed again. If this is not an issue for anyone else, then feel free to ignore the fault. Cheers, Oliver Holmes Am Dienstag, 21. März 2017 16:58:48 UTC+1 schrieb Anthony: > > How does this cause problems for you? > > Note, because starting the s

[web2py] Re: request.folder

2017-03-21 Thread Oliver Holmes
(parameter -K) or as a background task as noted here in this thread it will give only the relative path to the app starting with "application" i.e. "application/MyApp". I consider this to be a bug and would very much appreciate a fix. Sincerly, Oliver Holmes Am Mittwoch,

[web2py] Re: Is it possible for Web2Py SOAP-Services to give feedback during lenghty operations?

2016-10-24 Thread Oliver Holmes
Great! Will give the queued task a go. Not quite sure how to send the feedback over my SOAP pipeline though. But I'll come up with something. Thanks and cheers! Am Donnerstag, 20. Oktober 2016 19:44:12 UTC+2 schrieb Dave S: > > > > On Thursday, October 20, 2016 at 7:38:16

[web2py] Is it possible for Web2Py SOAP-Services to give feedback during lenghty operations?

2016-10-20 Thread Oliver Holmes
the user there is no way of knowing how far the procedure has gone, and how much longer the wait will be. Is there a possibility to give feedback to the client? Any kind of message would be great just numeric to fill a progress indicator or even text to display progress messages? Regards, Oliver

Re: [web2py] Re: web2py as a frontend for monitoring serial ports

2016-02-09 Thread Oliver Holmes
#x27;m guessing, that could be achieved after reading one or two how-to articles, so I'm not worried. I'll give this a go and let you all know about how it went. Regards, Oliver -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web

[web2py] Re: web2py as a frontend for monitoring serial ports

2016-02-08 Thread Oliver Holmes
go about this task? And thanks, Marcelo, about an hour after my post, I realized that I could just download the latest source and use that... I am a little slow ;) Regards, Oliver Am Montag, 8. Februar 2016 10:23:54 UTC+1 schrieb Oliver Holmes: > > Hi, > > I'm new to web2py and

[web2py] web2py as a frontend for monitoring serial ports

2016-02-08 Thread Oliver Holmes
will not deliver anything newer for my Raspian... Regards, Oliver -- 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

[web2py] Re: Probably very naive question from new user

2016-02-06 Thread Oliver Holmes
Oh, yes. Those nice small tuts are really helpful. Am Montag, 1. Februar 2016 19:58:44 UTC+1 schrieb jimbo: > > I found this useful as are other posts on the site. > http://www.pyguy.com/web2py/web2py-one-to-many-database-tutorial/ > > On Monday, 1 February 2016 11:33:38 UTC, Chris Green wrote:

[web2py] Re: action when leaving a page

2015-03-25 Thread Oliver Holloway
Since you're storing character data for registered, logged-in players, is it possible you could store *all* characters in the database, and then, when the *non*-logged-in player closes the browser window, flush the character data from the database? You seem to want to avoid long-term storage of

[web2py] Re: another table ref table ref table

2015-03-20 Thread Oliver Holloway
Got it! Gosh, this is cool. From re-reading those related posts, I got the idea that maybe I could keep drilling into the row object, so I tried that and it worked. In the format clause in the statement below, you can see that the r.program_name object contains the field name/object from the pr

[web2py] Re: another table ref table ref table

2015-03-20 Thread Oliver Holloway
Thanks, stifan, that got me half the way there. Now, tables *sessions* and *programs_players* are both showing program in desired format, rather than IDs. The only trouble I'm having now is with the table named *sessions_players*. It is still showing the program ID rather than the program "nam

[web2py] another table ref table ref table

2015-03-19 Thread Oliver Holloway
I've seen other posts about doing

[web2py] Re: can't pack app on pythonanywhere

2015-03-18 Thread Oliver Holloway
Thanks! If you need anything from me to help resolve it, just let me know. On Wednesday, March 18, 2015 at 12:52:06 PM UTC-4, Massimo Di Pierro wrote: > > I think I know. You found a bug. > > On Wednesday, 18 March 2015 10:56:53 UTC-5, Oliver Holloway wrote: >> >> Since it

[web2py] Re: can't pack app on pythonanywhere

2015-03-18 Thread Oliver Holloway
Since it was just cache stats, I deleted everything below the cache folder and now the app packs. Would be good to know what happened, tho -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py] can't pack app on pythonanywhere

2015-03-18 Thread Oliver Holloway
Today when I tried to pack the app on pythonanywhere, I got the following error. Packing hasn't been a problem before. internal error: [Errno 21] Is a directory: 'home/evaluations/web2py/applications/evaluations/cache/0c1' In that folder is another named 084, and in there is a file named web2py

[web2py] Re: how do I add form attributes to SQLFORM.factory?

2015-03-10 Thread Oliver Holloway
ype='tel', _autocomplete='off' ) ) On Monday, March 9, 2015 at 5:53:24 PM UTC-4, Oliver Holloway wrote: > > > How do I get the form to autofocus the cursor into the text box? Here's > one of the approaches I&#x

[web2py] how do I add form attributes to SQLFORM.factory?

2015-03-09 Thread Oliver Holloway
How do I get the form to autofocus the cursor into the text box? Here's one of the approaches I've tried. attributes = {'_autofocus':'autofocus', '_type':'tel', '_autocomplete':'off', '_style':'height:80px; width:80px'} score_box = SQLFORM.factory(Field('score', 'integer'), **attributes)

[web2py] Re: represent how to send row id in args

2015-03-06 Thread Oliver Holloway
I suspect you made some other change that made it > work in the former case. > > Anthony > > On Friday, March 6, 2015 at 3:13:56 PM UTC-5, Oliver Holloway wrote: >> >> Hey! I switched to vars and it worked :) Thank you to all of you who >> helped. >> >&g

[web2py] Re: represent how to send row id in args

2015-03-06 Thread Oliver Holloway
Hey! I switched to vars and it worked :) Thank you to all of you who helped. db.sessions.session_name.represent = lambda session_name, r: A(r. session_name, _href=URL('demo', 'tests_for_this_eval', vars=dict(i=r.id))) > -- Resources: - http://web2py.com - http://web2py.com/book (Documentati

[web2py] Re: represent how to send row id in args

2015-03-06 Thread Oliver Holloway
I've caused some confusion with my typos. Here's the code. model db.define_table('sessions', Field('program_name', 'string', requires=IS_IN_DB(db, db.programs.program_name)), Field('session_type', 'string', requires=IS_IN_SET(['practice', 'evaluation'], zero=None)

[web2py] Re: represent how to send row id in args

2015-03-06 Thread Oliver Holloway
row.id, and > your second select is still missing the "id" field? > > Anthony > > On Friday, March 6, 2015 at 2:23:48 PM UTC-5, Oliver Holloway wrote: >> >> Added sessions.id to the select, same thing. Here's the table definition >> and the control

[web2py] Re: represent how to send row id in args

2015-03-06 Thread Oliver Holloway
Sorry, I've been trying various combinations. Here's what I've tried, none of them work. #db.sessions.session_name.represent = lambda session_name, row: A(row.session_name, _href=URL('demo', 'tests_for_this_eval',* args=sessions.id*)) # global name 'sessions' is not defined #db.sessions.sess

[web2py] Re: represent how to send row id in args

2015-03-06 Thread Oliver Holloway
Added sessions.id to the select, same thing. Here's the table definition and the controller. The id does show up on the view page, but isn't passing as an arg. db.define_table('sessions', Field('program_name', 'string', requires=IS_IN_DB(db, db.programs.program_name)),

[web2py] Re: represent how to send row id in args

2015-03-06 Thread Oliver Holloway
Hi, Leonel. When I do that, I get this error: 'Row' object has no attribute 'sessions' On Friday, March 6, 2015 at 2:02:57 PM UTC-5, Leonel Câmara wrote: > > you need to write row.sessions.id > > You always need to be explicit in represents. > -- Resources: - http://web2py.com - http://web2py.c

[web2py] Re: represent how to send row id in args

2015-03-06 Thread Oliver Holloway
This is the controller, in case that matters. @auth.requires_membership('coach') def show_list_of_sessions(): # get list of evaluations evaluations = SQLTABLE(db(db.sessions.session_type=='evaluation').select(db.sessions.session_name), headers=None, truncate=128

[web2py] Re: represent how to send row id in args

2015-03-06 Thread Oliver Holloway
the actual id Field > object). > > Anthony > > On Friday, March 6, 2015 at 1:37:22 PM UTC-5, Oliver Holloway wrote: >> >> In the following table, the session_name is represented as a link. I want >> to pass session.id in args (rather than args=1 as you see bel

[web2py] represent how to send row id in args

2015-03-06 Thread Oliver Holloway
In the following table, the session_name is represented as a link. I want to pass session.id in args (rather than args=1 as you see below). How do I do that? I've tried various ways to say args=db.sessions.id, and it's as if the sessions.id value is not being picked up. db.define_table('session

[web2py] Re: how to define field so that it only pulls from auth_user those who have a certain auth_membership?

2015-03-05 Thread Oliver Holloway
This works perfectly, stifan, thank you very much. On Thursday, March 5, 2015 at 12:09:10 AM UTC-5, 黄祥 wrote: > > perhaps you can achieve it with query on IS_IN_DB validator: > e.g. > query_sessions = ( > (db.auth_user.id == db.auth_membership.user_id) & > (db.auth_membership.group_id == db.auth_

[web2py] how to define field so that it only pulls from auth_user those who have a certain auth_membership?

2015-03-04 Thread Oliver Holloway
All players' and coaches' names are stored in auth_user, with roles (Player, Coach) listed in auth_group and assigned in auth_membership. How do I define the field "coach" below so that it will allow only those who have the Coach role? Here's the table definition. db.define_table('sessions',

[web2py] Re: Header for selectable

2015-02-23 Thread Oliver Holloway
Did you find how to do this? I too would like to have a header for the selectable column. Shown below is how I'm defining it. I know how to use headers to control table field headers, but I have failed to find how to control the checkbox column header. If there's no way to do that, no worries,

[web2py] Re: how to change grid name?

2015-02-22 Thread Oliver Holloway
Thanks! Now that I've build my own view, the "grid" variable is no longer displaying. The pluralized table name is still showing, so I did some reading, and found that this is a special property of the smartgrid gadget

[web2py] how to change grid name?

2015-02-19 Thread Oliver Holloway
The smartgrid seems to be taking the name of the table, capitalizing it, and adding "es" to it, which is funny because the table name is already plural ('programs'). Anyway, how do I set the grid name?

[web2py] Re: Select rows

2014-12-23 Thread Oliver
> > > On Wednesday, December 17, 2014 12:17:53 PM UTC-8, Oliver wrote: >> >> I'm getting "None" printed in the webpage. I'm trying to print all >> first_name in the users table database. I'm trying to follow the select >> section in >>

[web2py] Auth Users Session

2014-12-22 Thread Oliver
Hi All, I really enjoy discovering the beauty of web2py. Just got a newbie question :) If I create multiple apps and use one db or sharing one db to all apps, can the login session be shared between apps? Thanks. For example from the default, we have the admin(which is lock), welcome and ex

[web2py] Select rows

2014-12-22 Thread Oliver
I'm getting "None" printed in the webpage. I'm trying to print all first_name in the users table database. I'm trying to follow the select section in http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Query--Set--Rows I'm using MySQL for database and have few test re

[web2py] Re: db.define_table password

2014-12-10 Thread Oliver
thank you so much On Wednesday, December 10, 2014 11:55:42 AM UTC-5, Massimo Di Pierro wrote: > > Field('password',type='password',requires=CRYPT()) > > On Wednesday, 10 December 2014 09:57:30 UTC-6, Oliver wrote: >> >> where can I read or lear

[web2py] db.define_table password

2014-12-10 Thread Oliver
where can I read or learn more about defining tables? I'm trying to convert my password to more encrypted method in web2py. what is the best way to encrypt password in web2py? I appreciate you help. my test user table db.define_table('users', Field('first_name', 'text'),

[web2py] Re: MongoDB and Web2py in Windows

2014-12-10 Thread Oliver
binary version of web2py? The > binary version comes his own python version. > > On Wednesday, 26 November 2014 09:42:56 UTC-6, Oliver wrote: >> >> Hi All, >> >> anyone have success using MongoDb in DAL? When I ran web2py, I don't see >> MongoDB listed.

[web2py] Web2py MongoDB in Windows

2014-11-28 Thread Oliver
Hi All, I'm having issue with Web2Py and MonogoDB in Windows 7. When I ran the cmd web2py, I don't see MongoDB driver database as available. Howerver, I installed the Pymongo driver and installed MongoDB successfully in my pc. Here is what I see when I do web2py command: Created by Massimo

[web2py] MongoDB and Web2py in Windows

2014-11-28 Thread Oliver
Hi All, anyone have success using MongoDb in DAL? When I ran web2py, I don't see MongoDB listed. here is what I got when I ran web2py command web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2014 Version 2.9.11-stable+timestamp.2014.09.15.23.35.11 Database drivers available: S

[web2py] apps

2013-07-28 Thread Oliver
can i connect the same mysql db to my apps? for example, I have two apps and want to use the same username and login to the apps. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails fr

[web2py] python 3.3.2

2013-07-28 Thread Oliver
I'm new to python web framework and stumble upon web2py. Will web2py works with python 3.3.2. also, can I create multiple apps inside a project like in django? do I need some additional plugins to hook it up to my existing mysql db? -- --- You received this message because you are subscri

[web2py] Re: Using a recursive select but encountered a broken reference

2013-05-16 Thread Oliver
r(Auth2, self).__init__(environment, db, controller) def update_groups(self): return And in db.py #auth = Auth(db) exec('from applications.%s.modules.auth2 import Auth2' % request.application ) auth=Auth2(globals(),db) Regards, Oliver On Saturday, March 2, 2013 8:55:17 PM UTC+1

[web2py] Testing application with Pychecker

2012-02-20 Thread Oliver
Hi. I'm trying to run some tests on our application with Pychecker, but I'm getting this error: TypeError: __import__() takes at most 4 arguments (5 given) Anyone else got this error? Is it possible to test a whole web2py application with Pychecker? Regards, Oliver

[web2py] Re: RESTful API error: "no matching pattern"

2011-12-04 Thread Oliver Lade
rn" error. Not sure where to go from there. On Nov 29, 1:37 am, Massimo Di Pierro wrote: > Have you tried > > http://127.0.0.1/myapp/default/api/person.json > > without the "s" > > On Nov 28, 5:19 am, Oliver Lade wrote: > > > > > > > > &g

[web2py] RESTful API error: "no matching pattern"

2011-11-28 Thread Oliver Lade
I've been following the documentation regarding RESTful web services (very cool), and it mostly works except for one annoying thing. Every time I try a URL that's supposed to match the whole table and return all results (e.g. http://127.0.0.1/myapp/default/api/persons.json in the example) I get an

[web2py:18671] Re: Auth via xml-rpc

2009-03-27 Thread Oliver Heyme
If that's the case I will probably create my own auto mechanism! It would have been pretty cool to just use the "Standard". Too sad! On Fri, Mar 27, 2009 at 3:41 PM, Tito Garrido wrote: > I'm interested on this answer too... :) > > I don't know if it's a good approach... but you could auth usin