[web2py] Re: ReportLab in application modules?

2012-09-29 Thread pradeep cs
Hi, I am new to web2py, i did go through this Blog and it was difficult for me to follow. Finally below is the procedure and my help others in future. I am using windows version of web2py (2.0.8) I downloaded reportlab-2.1.5.zip from reportlab site. After that i unzipped into a temporary

Re: [web2py] Re: How to Enable logging at DAL level ?

2012-09-29 Thread Mandar Vaze / मंदार वझे
if you need only the statements for the auth_user table it's a little overkill (and a lot les understandable, and you don't know, e.g. who modified the records). I'd stick with table versioning. Not sure I completely understand what you mean, but my requirement is NOT restricted to who

[web2py] Error in web2py

2012-09-29 Thread sokolt
Hello Web2py cloned from github on 29.09.2012. Windows 7, Python 2.7.3 c:\Users\sokoltom\Documents\GITHUBcd web2py c:\Users\sokoltom\Documents\GITHUB\web2pyweb2py.py Traceback (most recent call last): File C:\Users\sokoltom\Documents\GITHUB\web2py\web2py.py, line 18, in module import

[web2py] running a background process on GAE within web2py

2012-09-29 Thread Pystar
My app's sign up process involves sending the USER ID to the user after sign up. The app is hosted on GAE, I would like to know how to send the welcome email to the user as a background process without using GAE taskqueues but within web2py. I want something inbuilt from web2py. Thanks --

Re: [web2py] Re: How to Enable logging at DAL level ?

2012-09-29 Thread Niphlod
and, still, you don't know who issued the delete from myimportantdata where 1=1 or update myimportantdata set dontdeletethiscolumn='' just logging the queries. Have you by any chance looked into web2py's versioning ? On Saturday, September 29, 2012 10:02:16 AM UTC+2, Mandar Vaze wrote:

[web2py] Re: How do you change memcache session expiry?

2012-09-29 Thread Niphlod
yep, open a bug on http://code.google.com/p/web2py/issues/list On Saturday, September 29, 2012 5:24:07 AM UTC+2, Robert Clark wrote: Thanks, I am not having any problems with the memcached api python interface, that part all works as advertised. The problem is that if you follow the

[web2py] Re: How do you change memcache session expiry?

2012-09-29 Thread Jose C
Ah, I understand what you're saying. I can't seem to find a way to do this either - if it is obvious it is escaping me too. Perhaps consider opening an issue as a feature request or even possibly a bug - it is a common enough thing to want to do with sessions. --

[web2py] Re: running a background process on GAE within web2py

2012-09-29 Thread Pystar
Anyone, On Saturday, September 29, 2012 1:02:08 PM UTC+1, Pystar wrote: My app's sign up process involves sending the USER ID to the user after sign up. The app is hosted on GAE, I would like to know how to send the welcome email to the user as a background process without using GAE

[web2py] Re: Inconsistent multi-select POST values?

2012-09-29 Thread Massimo Di Pierro
request.vars[key] is always a string or a list of string (for multiple and checkboxes). form.vars[key] is the the output of form validators on request.vars[key]. Validators are filters. Some of them like IS_INT_IN_RANGE do some parsing. IS_LIST_OF(...) for example always transforms the input

[web2py] Re: How do you change memcache session expiry?

2012-09-29 Thread Massimo Di Pierro
I would prefer the syntax: session.connect(request, response, db=MEMDB(cache.memcache, session_expiry=3600)) On Saturday, 29 September 2012 07:11:10 UTC-5, Niphlod wrote: yep, open a bug on http://code.google.com/p/web2py/issues/list On Saturday, September 29, 2012 5:24:07 AM UTC+2,

[web2py] Re: How do you change memcache session expiry?

2012-09-29 Thread Massimo Di Pierro
It also looks to me memdb should not be implemented as it is. It should be implemented as a plugin_adapter for DAL. On Saturday, 29 September 2012 09:50:37 UTC-5, Massimo Di Pierro wrote: I would prefer the syntax: session.connect(request, response, db=MEMDB(cache.memcache,

[web2py] Re: running a background process on GAE within web2py

2012-09-29 Thread Massimo Di Pierro
I do not know of a way to have background processes on GAE other than taskqueues. I believe you cannot run background processes on GAE other than taskqueues. On Saturday, 29 September 2012 07:02:08 UTC-5, Pystar wrote: My app's sign up process involves sending the USER ID to the user after

[web2py] Re: running a background process on GAE within web2py

2012-09-29 Thread Pystar
can you show me a short example of how I could use taskqueues on GAE to send mails with details gotten from a database? On Saturday, September 29, 2012 3:52:09 PM UTC+1, Massimo Di Pierro wrote: I do not know of a way to have background processes on GAE other than taskqueues. I believe you

[web2py] new google trands

2012-09-29 Thread Massimo DiPierro
Looks like Google has improved google Trands: http://www.google.com/trends/explore#q=web2py At least now seems to provide significative results for web2py. Not sure how reliable but we actually see a trend. --

[web2py] Re: SOLVED 'efficiently search by tag' with postgres

2012-09-29 Thread andrej burja
hi another question: there is number of tags: n = len(tags) and there is rows = db(data.id==link.record_id)\ (link.tag_id.belongs(subquery)).select( data.ALL, orderby=data.id, groupby=data.id, having=data.id.count()==n) so, if i have data1 with tags (news, sport) and data2

[web2py] difficulty in replying on this group

2012-09-29 Thread dhmorgan
I just posted a reply on another thread (twice now), and they are being deleted almost immediately. ( https://groups.google.com/forum/?fromgroups=#!topic/web2py/1A2bbeQg2Ok) ??? Daniel H. --

[web2py] Re: difficulty in replying on this group

2012-09-29 Thread dhmorgan
3 times now; this reply is to test whether this happens with additional threads On Saturday, September 29, 2012 1:55:00 PM UTC-5, dhmorgan wrote: I just posted a reply on another thread (twice now), and they are being deleted almost immediately. (

[web2py] Re: difficulty in replying on this group

2012-09-29 Thread dhmorgan
well it works on this thread; perhaps my reply on the other thread was suspicious? Here is the content: I couldn't clone to this Windows machine, so I downloaded today's zipped development version from GitHub. I couldn't replicate your problem, however. Have you installed the Python

[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] Re: difficulty in replying on this group

2012-09-29 Thread Massimo Di Pierro
I am not sure what is happening. Normally first posts by members are moderated to avoid spam but, once approved, the user can post anything and we never censor posts. recently I have seen posts being blocked by Google and awaiting moderation even if the user had posted messages before. I do

[web2py] Re: Lazy tables bug

2012-09-29 Thread Massimo Di Pierro
I tried from the shell and I cannot reproduce it: $ python web2py.py -S welcome -N web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2012 Version 2.0.9 (2012-09-29 17:16:28) dev Database drivers available: SQLite(sqlite3), MySQL(pymysql), PostgreSQL(pg8000), MongoDB(pymongo),

[web2py] Re: How do you change memcache session expiry?

2012-09-29 Thread Robert Clark
Thanks everyone, have added an issue http://code.google.com/p/web2py/issues/detail?id=1049 On Sunday, September 30, 2012 3:51:10 AM UTC+13, Massimo Di Pierro wrote: It also looks to me memdb should not be implemented as it is. It should be implemented as a plugin_adapter for DAL. On

[web2py] Re: running a background process on GAE within web2py

2012-09-29 Thread Peter Etchells
GAE offers a taskqueue module to allow tasks to be run in background. Each item added to the taskqueue is a redirect to a web2py URL (or any GAE URL) with parameters (equivalent to web2py request.vars). The task is scheduled and executed in background by the GAE environment. This is useful

[web2py] Major CRYPT 2.0.x issue

2012-09-29 Thread Matt
Hi there, The CRYPT function seems to behaving wildly different between 1.99.7 and 2.0.x. Any new users I've added since moving to 2.0.x are recorded with longer encrypted passwords and existing users consequently can't login either. If I run the following (both of these are using the same

[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: pathoc: testing web servers with pathological requests

2012-09-29 Thread Massimo Di Pierro
We have patched Rocket and now the trunk version passes pathoc tests. In the process we found that rocket was processing incorrectly multi-line headers. this may be the cause of problems people where having with some clients. On Friday, 28 September 2012 08:31:42 UTC-5, Jose C wrote: Please

[web2py] Re: Major CRYPT 2.0.x issue

2012-09-29 Thread Massimo Di Pierro
On Saturday, 29 September 2012 18:39:27 UTC-5, Matt wrote: Hi there, The CRYPT function seems to behaving wildly different between 1.99.7 and 2.0.x. yes. But it is backward compatible. Or at least it should be. Any new users I've added since moving to 2.0.x are recorded with longer

[web2py] Re: difficulty in replying on this group

2012-09-29 Thread lyn2py
I have made posts that got deleted too. My guess is they are fiddling with the code / settings, and some posts didn't get saved in the first place as a result. On Sunday, September 30, 2012 6:27:32 AM UTC+8, Massimo Di Pierro wrote: I am not sure what is happening. Normally first posts by

[web2py] why can't we have list:double?

2012-09-29 Thread VP
I'm wondering why we can't have list:double as a field type? It seems a natural thing to have. Thanks. --

[web2py] Re: pathoc: testing web servers with pathological requests

2012-09-29 Thread VP
I'm very unimpressed with Rocket, even in development mode. On Saturday, September 29, 2012 7:51:53 PM UTC-5, Massimo Di Pierro wrote: We have patched Rocket and now the trunk version passes pathoc tests. In the process we found that rocket was processing incorrectly multi-line headers.

[web2py] SQLFORM grid: No records, No Add button?

2012-09-29 Thread lyn2py
Hi guys, I just noticed that if the grid is empty, there is no ADD button, even when I explicitly used create=True. Is this the expected behavior? I have lots of empty grids for users to input, and need a ADD button on the grid for that. Is there a way to add such a button? Thanks guys! --

[web2py] how to .represent a calculated field in SLQTABLE

2012-09-29 Thread alex
In a controller I have this: fields=[db.table.id.count()] columns = [str(db.table.id.count())] headers = {str(db.table.id.count()):'Total recs',} rows=db(qry).select(*fields) t=SQLTABLE(rows, columns=columns, headers=headers) How can I use .represent on the calculated field

[web2py] Re: SQLFORM.grid custom search where is the error?

2012-09-29 Thread alex
I found the way to bypass the problem. I have changed the call to SQLFORM.grid from: table=SQLFORM.grid(query, search_widget=search_form, fields=fields) to: table=SQLFORM.grid(qry, fields=fields, field_id=db.t.id,searchable=False) and I have added a normal form for performing searches

[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: why can't we have list:double?

2012-09-29 Thread Massimo Di Pierro
Nobody asked for it. It will still be stores as string so I am not sure what you gain by it that cannot be achieved by a list:string and a IS_LIST_OF(IS_FLOAT_IN_RANGE(...)) validator. On Saturday, 29 September 2012 20:36:36 UTC-5, VP wrote: I'm wondering why we can't have list:double as a

[web2py] Re: pathoc: testing web servers with pathological requests

2012-09-29 Thread Massimo Di Pierro
why? On Saturday, 29 September 2012 20:39:25 UTC-5, VP wrote: I'm very unimpressed with Rocket, even in development mode. On Saturday, September 29, 2012 7:51:53 PM UTC-5, Massimo Di Pierro wrote: We have patched Rocket and now the trunk version passes pathoc tests. In the process we

[web2py] Re: SQLFORM grid: No records, No Add button?

2012-09-29 Thread Massimo Di Pierro
Did you set user_signature=False? On Saturday, 29 September 2012 21:24:56 UTC-5, lyn2py wrote: Hi guys, I just noticed that if the grid is empty, there is no ADD button, even when I explicitly used create=True. Is this the expected behavior? I have lots of empty grids for users to input,

[web2py] Re: Major CRYPT 2.0.x issue

2012-09-29 Thread Massimo Di Pierro
You had me panic for a moment. ;-) But actually thanks for asking about this. The new CRYPT is a big improvement in terms of security and lots of people worked on it. Moreover it is not compatible with both the old CRYPT and existing Django databases. It was not easy to pull it off. Massimo

[web2py] Re: how to .represent a calculated field in SLQTABLE

2012-09-29 Thread Massimo Di Pierro
Not supported yet. Open a ticket with a request for improvement. On Saturday, 29 September 2012 21:33:49 UTC-5, alex wrote: In a controller I have this: fields=[db.table.id.count()] columns = [str(db.table.id.count())] headers = {str(db.table.id.count()):'Total recs',}

[web2py] Calculated field in SQLFORM.grid

2012-09-29 Thread alex
I have a relation [1:n] from table A to table B. define_table('A', Field('name', type='string')) define_table('B', Field('ref_a', type='reference A')) Then I have this grid qry = db.A.id0 grid = SQLFORM.grid(qry,links=links) How do I write links (and the lambda function in it) in order

[web2py] Re: How to get started with web2py's Debug? - very basic questions

2012-09-29 Thread nc
I've encountered this problem too. I edited my app's controller/default.py file from the admin interface, clicked on line 34, clicked toggle breakpoint, and got the message ... controllers\default.py:34 does not exist. This is web2py 2.0.9. Is that the expected usage of the toggle