[web2py] Re: GAE 1.8.1 and logging doesn't work

2013-06-20 Thread Christian Foster Howes
i have not updated my local launcher to 1.8.1 yethopefully tomorrow. but in past versions of GAE i have changed line 74 of gaehandler.py (at the web2py top-level) to: #logging.basicConfig(level=logging.INFO) #access the GAE logging handler and set level to ignore debug logs

[web2py] Re: computed fields ... order of calculation?

2013-06-20 Thread Tim Richardson
It seems in Table._listify(...) that the row object passed to the compute function only includes non-compute fields, so attempting to refer to a computed field fails (silently). -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To

[web2py] Re: upgrade to 2.4.6 breaks existing code. function replace in psycopg2

2013-06-20 Thread Peter
I have a encountered a problem with an update from v1.97 to v2.4.6-stable+timestamp.2013.04.06.17.37.38. Only found out I had these problems after pushing to production server which uses Python 2.6, while my local test set ups all use Python 2.7. In both cases SQLite DBs are used. Queries fail

[web2py] Login form - How can I disable or easily avoid url hex encoding in login_next?

2013-06-20 Thread Georgess
Hi all, For example original url is /init/service/index?service_code=sf_vod but for login form it became as _next = /init/service/index%3Fservice_code%3Dsf_vod '?' and '=' are replaced in URL and after that the modified doesn't work - invalid request -- --- You received this message

[web2py] Re: computed fields ... order of calculation?

2013-06-20 Thread Massimo Di Pierro
Try and let us know. :-) On Thursday, 20 June 2013 01:31:22 UTC-5, Tim Richardson wrote: It seems in Table._listify(...) that the row object passed to the compute function only includes non-compute fields, so attempting to refer to a computed field fails (silently). That's because the

[web2py] Re: GAE 1.8.1 and logging doesn't work

2013-06-20 Thread José Manuel López
Thank you Christian!, Now, I have a lot of LOGs :) (more logs is far better that no logs! :)). Like you, I had no luck with logging.conf. Working now, thank you again. On Thursday, June 20, 2013 8:09:10 AM UTC+2, Christian Foster Howes wrote: i have not updated my local launcher to 1.8.1

[web2py] Re: Scheduler compatible with nginx/uwsgi?

2013-06-20 Thread Joe Barnhart
I understand importing modules, or at least I thought I did... Why would it affect scheduler.py if I Import datetime in a module of my own? I haven't made mods to scheduler.py if that is what you meant. -- --- You received this message because you are subscribed to the Google Groups

Re: [web2py] Re: Free opensource Janrain alternative - Python Social auth

2013-06-20 Thread Quint
Hi, Does anyone have an example on how to hook this up in web2py? -- --- 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

[web2py] Re: SQLFORM.factory and list:integer error

2013-06-20 Thread Martin Barnard
That code listing is from dal.py. I didn't really want to poke too much at that as I haven't had time to examine it too deeply. I should probably upgrade to latest web2py before trying anything else :) */scurries off to upgrade the server...* On Thursday, June 20, 2013 12:45:28 AM UTC+3,

[web2py] Re: Scheduler compatible with nginx/uwsgi?

2013-06-20 Thread Niphlod
I think because python doesn't know what to do on importing the same library name ... it probably just overwrites it discarding the old one the point is that the datetime is both the name of the root module and the child one. same thing should happen on web2py applications too, I think

[web2py] Unable to cache Row objects

2013-06-20 Thread Quint
Hi, I am using GAE (dev server) and i am unable to cache Row objects. For some reason they cannot be pickled. When a convert it to dicts everything works fine, but then i am unable to work with web2py Rows. This is a related post:

[web2py] Re: upgrade to 2.4.6 breaks existing code. function replace in psycopg2

2013-06-20 Thread Peter
I rolled CONTAINS() in gluon/dal.py (line 1258) back to v1.97 spec which seems to solve the problem. On Wednesday, June 19, 2013 7:24:40 PM UTC+2, Peter wrote: I have a encountered a problem with an update from v1.97 to v2.4.6-stable+timestamp.2013.04.06.17.37.38. Only found out I had these

[web2py] Re: Unable to cache Row objects

2013-06-20 Thread Anthony
See http://web2py.com/books/default/chapter/29/06#Caching-selects. Have you tried: db(query).select(..., cacheable=True) Anthony On Thursday, June 20, 2013 10:02:44 AM UTC-4, Quint wrote: Hi, I am using GAE (dev server) and i am unable to cache Row objects. For some reason they cannot be

[web2py] Re: SQLFORM.factory and list:integer error

2013-06-20 Thread Martin Barnard
Upgraded, but the error is still there. It's failing at the SQLFORM validation in dal.py, I don't even get the chance to access session variables myself. Also, list:integer fields leave an empty field behind Is there a way from within the DAL to remove empty entries on list:integer (as I can't

[web2py] Re: Unable to cache Row objects

2013-06-20 Thread Quint
thnx, I added cacheable=True to the select() but still the same error. On Thursday, June 20, 2013 4:23:02 PM UTC+2, Anthony wrote: See http://web2py.com/books/default/chapter/29/06#Caching-selects. Have you tried: db(query).select(..., cacheable=True) Anthony On Thursday, June 20,

[web2py] problem with GAE ReferenceProperty

2013-06-20 Thread Quint
Hi, I have a problem when i perform a select() on a model with an ReferenceProperty Field. I'am getting this error: *('ReferenceProperty' object has no attribute 'startswith',)* * * related but nor sure it's the same: https://groups.google.com/forum/?fromgroups#!topic/web2py/M7civkMWRyo and it

[web2py] web2pyslice and PIL thumbnail quality

2013-06-20 Thread lesssugar
A bit of offtopic but maybe someone knows what's going on. I'm using this thumbnail generating slice I found: LINKhttp://www.web2pyslices.com/slice/show/1522/generate-a-thumbnail-that-fits-in-a-box All works fine but the problem I face is the thumbnails quality. I upload really high-quality

[web2py] Re: Unable to cache Row objects

2013-06-20 Thread Quint
Should these RecordDeleter and RecordUpdater be in the response when cachable = True is used? -- --- 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] Markmin, LaTeX and pdf generation

2013-06-20 Thread peibol
Hi all I'm getting in love with web2py, but I'm just a newcomer, and need some advice. Take into account that I finally want to deploy my app on GAE (so I can't install pdflatex for example). 1- I have configured my views to use mathjax (in the head section). Is it the right way to proceed

Re: [web2py] Re: How should we work to sync localhost development with GAE?

2013-06-20 Thread peibol
No, I don't think there are two columns labelled 'title'. I attach the csv... Thanks for your interest El miércoles, 19 de junio de 2013 17:55:27 UTC+2, Christian Foster Howes escribió: check your CSV file - that error looks to me like there are 2 columns with the name title and therefore

Re: [web2py] Re: How should we work to sync localhost development with GAE?

2013-06-20 Thread Vinicius Assef
The error says you have 2 records with same value in the column title. On Thu, Jun 20, 2013 at 12:56 PM, peibol pabe...@gmail.com wrote: No, I don't think there are two columns labelled 'title'. I attach the csv... Thanks for your interest El miércoles, 19 de junio de 2013 17:55:27 UTC+2,

[web2py] Re: problem with GAE ReferenceProperty

2013-06-20 Thread Massimo Di Pierro
Please open a ticket about this. On Thursday, 20 June 2013 17:00:09 UTC+2, Quint wrote: Hi, I have a problem when i perform a select() on a model with an ReferenceProperty Field. I'am getting this error: *('ReferenceProperty' object has no attribute 'startswith',)* * * related but

[web2py] Re: Unable to cache Row objects

2013-06-20 Thread Massimo Di Pierro
No On Thursday, 20 June 2013 17:47:06 UTC+2, Quint wrote: Should these RecordDeleter and RecordUpdater be in the response when cachable = True is used? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and

[web2py] Re: Markmin, LaTeX and pdf generation

2013-06-20 Thread peibol
Does it requires pdflatex, doesn't it? I think it's not supported in GAE. El jueves, 20 de junio de 2013 18:59:44 UTC+2, Massimo Di Pierro escribió: Why not use markmin2latex or markmin2pdf (itsuses latex inside) On Thursday, 20 June 2013 17:53:58 UTC+2, peibol wrote: Hi all I'm getting

Re: [web2py] Re: How should we work to sync localhost development with GAE?

2013-06-20 Thread peibol
Thanks El jueves, 20 de junio de 2013 18:22:47 UTC+2, viniciusban escribió: The error says you have 2 records with same value in the column title. On Thu, Jun 20, 2013 at 12:56 PM, peibol pab...@gmail.com javascript: wrote: No, I don't think there are two columns labelled 'title'. I

[web2py] Re: Markmin, LaTeX and pdf generation

2013-06-20 Thread Massimo Di Pierro
Why not use markmin2latex or markmin2pdf (itsuses latex inside) On Thursday, 20 June 2013 17:53:58 UTC+2, peibol wrote: Hi all I'm getting in love with web2py, but I'm just a newcomer, and need some advice. Take into account that I finally want to deploy my app on GAE (so I can't install

[web2py] Re: Unable to cache Row objects

2013-06-20 Thread Quint
I did some digging around: After i changed this piece of code in GoogleDatastoreAdapter, the cacheable attribute was passed to the *parse() *method in BaseAdapter. Before the change it wasn't and thus cacheable was always the default value False. def select(self,query,fields,attributes):

[web2py] compute try to understand something

2013-06-20 Thread Richard
Hello, I don't understand why I have to redefine my compute field function... I have a compute field like this one : # model db.define_table('mytable', Field('f1', 'string'), Field('review', 'boolean'), Field('record_review_status', compute=lambda record: return_computed(record,

[web2py] Re: problem with a date in a form

2013-06-20 Thread palomar
yes, I'm italian :D I've already check it in my it.py is %d/%m/%Y for the input I use the calendar I have, for exeple 20/06/2013 and the error say me enter date as 28/08/1963 and the date is in that format! -- --- You received this message because you are subscribed to the Google Groups

[web2py] Automatic Field representation without rows object?

2013-06-20 Thread anonymouse
Hi all, I was playing with record/field representation and was wondering if there is a simple solution for my problem. Here's what I'm trying to do -- print out a record using the represent function from the DB table. Here's my model: models/document.py db.define_table('document',

[web2py] Re: problem with a date in a form

2013-06-20 Thread Niphlod
uhm. Italian here too, but I don't have that problem. Something must be missing / must be incorrect in your app. Can you pack a minimal app to reproduce the issue ? On Thursday, June 20, 2013 7:17:49 PM UTC+2, palomar wrote: yes, I'm italian :D I've already check it in my it.py is %d/%m/%Y

[web2py] Re: Automatic Field representation without rows object?

2013-06-20 Thread Anthony
1) Am I missing something with the abilities of 'represent' to easily represent records' field values? I think the represent attribute is currently only used in SQLTABLE, SQLFORM.grid (and smartgrid), and in forms (i.e., read-only fields), so no, I don't think you're missing anything.

[web2py] Re: SQLFORM.factory and list:integer error

2013-06-20 Thread Niphlod
you upgraded, but the patch isn't there. as you may notice, the exception raises at the exact same line as before. I just sent an email to Massimo to let him know that ATM the fix isn't in trunk http://code.google.com/p/web2py/issues/detail?id=1547 On Thursday, June 20, 2013 4:29:51 PM UTC+2,

[web2py] Resume a session

2013-06-20 Thread Martin Weissenboeck
A function of my web2py app calls an external website. This website creates a pdf-file and calls another function of my website, which should load this pdf-file. Therefore this call should resume the first session. Is it possible? Regards Martin -- --- You received this message because you

[web2py] Re: Sending smartgrid search results to another controller

2013-06-20 Thread David
Solved my own problem, I don't know how I read past selectable in the grid documentation. Thanks, David On Thursday, June 20, 2013 12:12:10 AM UTC-4, David wrote: Hello, I am hoping that this is a simple question. I am looking for a way to send the results of a SQLFORM.smartgrid search

[web2py] Re: computed fields ... order of calculation?

2013-06-20 Thread Tim Richardson
There's a pull request for this. If it's ok I'll add a test. -- --- 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

[web2py] Re: Help on field default computed value

2013-06-20 Thread greenpoise
db.define_table('series', Field('seriesnumber',compute=lambda r: '%s%s' (r['id'],r['seriesname'][0: 3])) Field('seriesname'), Field('seriesdescription'), Field('layertype','reference layertype'), Field('created_by',db.auth_user,default=me,writable=False,readable=False ),

[web2py] Re: Markmin, LaTeX and pdf generation

2013-06-20 Thread Massimo Di Pierro
You are right. No latex on GAE. I cannot think of any other way to render formulas in PDF without latex. On Thursday, 20 June 2013 12:04:18 UTC-5, peibol wrote: Does it requires pdflatex, doesn't it? I think it's not supported in GAE. El jueves, 20 de junio de 2013 18:59:44 UTC+2, Massimo Di

Re: [web2py] compute try to understand something

2013-06-20 Thread Massimo Di Pierro
I think the problem is that your form does not contain enough info for the computed field. You correctly pull them from DB (in row) and pass to the compute function. On Thursday, 20 June 2013 12:13:16 UTC-5, Richard wrote: Hello, I don't understand why I have to redefine my compute field

[web2py] Re: Resume a session

2013-06-20 Thread Massimo Di Pierro
Are you askin for another site (the one that creates the PDF) to be able to use your session? This would me a security issue. I am sure there is a better solution. Perhaps I do not understand. Can you tell us more about the workflow? On Thursday, 20 June 2013 15:02:29 UTC-5, mweissen wrote:

Re: [web2py] compute try to understand something

2013-06-20 Thread Richard Vézina
Ok, yes, it may not have some field that are to None... I had issue with that that I have patch my compute function for. I should be the same... Thank you Massimo to point me this out. Richard On Thu, Jun 20, 2013 at 5:02 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I think the

Re: [web2py] Re: row.id with L after upgrading to

2013-06-20 Thread Richard Vézina
Can someone point me out change log... I didn't see this one... http://web2py.com/init/default/changelog I think it is not in the change log and it is not acceptable Thanks Richard On Wed, Jun 19, 2013 at 9:23 AM, palomar stefanob...@gmail.com wrote: thanks for your reply! -- ---

[web2py] Re: web2pyslice and PIL thumbnail quality

2013-06-20 Thread Paolo valleri
I am not sure but the quality option could be for jpeg only. Paolo On Thursday, June 20, 2013 5:06:06 PM UTC+2, lesssugar wrote: A bit of offtopic but maybe someone knows what's going on. I'm using this thumbnail generating slice I found:

[web2py] Re: Markmin, LaTeX and pdf generation

2013-06-20 Thread peibol
Could it be feasible to use mathjax to render the latex to be put inside the pdf? Or the google api to generates the image and then add it to the pdf? Thanks Massimo El jueves, 20 de junio de 2013 23:00:25 UTC+2, Massimo Di Pierro escribió: You are right. No latex on GAE. I cannot think of

[web2py] Re: web2pyslice and PIL thumbnail quality

2013-06-20 Thread lesssugar
I think you're right. In addition, the *quality *attribute is not such an easy-peasy as I thought. Some clarification from Stack Overflow: LINKhttp://stackoverflow.com/questions/4354543/determining-jpg-quality-in-python-pil Need to dig deeper. Thanks, anyway. On Thursday, June 20, 2013

[web2py] Re: Help on field default computed value

2013-06-20 Thread Anthony
The record ID isn't known until after the insert, so I don't think it can be used in a computed field. Perhaps you could use .after_insert and .after_update callbacks to do this. Anthony On Thursday, June 20, 2013 4:55:24 PM UTC-4, greenpoise wrote: db.define_table('series',

[web2py] php and web2py together in shared hosting

2013-06-20 Thread José Eloy
Hello! This question was made by me several months ago. The matter is simple: How to serve php apps and web2py apps from the same shared hosting? In my case I'm using Hostgator. The web2py app is in the root of the domain (\www folder), the php is in a sub URL (from \www\phpAppFolder), but

[web2py] Re: Automatic Field representation without rows object?

2013-06-20 Thread Anthony
Not a bad idea. Maybe have a look at how SQLTABLE and SQLFORM.grid (both in gluon.sqlhtml.py) handle field representation. Very simply, we might add a method to the Row class allowing something like: row.represent('myfield') Actually, Row objects don't know about their db/table, so

[web2py] Re: php and web2py together in shared hosting

2013-06-20 Thread André Kablu
Hi, The best way to do this is to create subdomains. So you will have: /home/user/www /home/user/phpapp and you can create a subdomain this way: php.mydomain.com (that refers to /home/user/phpapp) to call it directly using your main www.mydomain.com you can create a redirect app. in web2py

[web2py] Re: Automatic Field representation without rows object?

2013-06-20 Thread Anthony
FYI, see possible solution here: https://groups.google.com/d/msg/web2py-developers/kMMG1wH6Xxg/pCYZfJGHVckJ Anthony On Thursday, June 20, 2013 8:22:54 PM UTC-4, Anthony wrote: Not a bad idea. Maybe have a look at how SQLTABLE and SQLFORM.grid (both in gluon.sqlhtml.py) handle field