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

2013-06-21 Thread Niphlod
it's not a major change. You're the one writing programs that are relying on the default serialization instead of defining your own. Il giorno giovedì 20 giugno 2013 23:14:16 UTC+2, Richard ha scritto: Can someone point me out change log... I didn't see this one...

[web2py] Re: Markmin, LaTeX and pdf generation

2013-06-21 Thread Massimo Di Pierro
mathjax is not an option because it is JS and cannont be embedded in PDF. You can, in principle, generate images using google and and embed those. The alignment and font sizes will be a nightmare. On Thursday, 20 June 2013 16:35:04 UTC-5, peibol wrote: Could it be feasible to use mathjax to

[web2py] sqlform.grid - Accessing id and values from link checkbox

2013-06-21 Thread PremKumar KrishnaKumar
Hi, I am trying out webapp development using web2py and need your direction in finding a solution I use links to display a check-box in sqlform.grid and in the form I have a button. links = [dict(header='Actioned',body=lambda row: INPUT(_name='action',_type='checkbox'))] Once I click the

[web2py] scheduling task on inserts in database table

2013-06-21 Thread Apoorve Mohan
Hello All In my application I have a cron that runs every 5 minutes and performs a task. Basically it checks for a entry in a database table and then performs the task. Now I want that whenever there is an entry made in a particular database table a task should be fired automatically

[web2py] Re: web2py 2.4.7 admin Recent Tweets not loaded

2013-06-21 Thread Jacinto Parga
I have got a similar error: Unable to download because: 'results' And the tweets have been no longer loaded for several days. I have tried your solutions but they didn't work If you can help... El viernes, 31 de mayo de 2013 05:39:10 UTC+2, 黄祥 escribió: hi, just want to report that web2py

[web2py] Re: web2py 2.4.7 admin Recent Tweets not loaded

2013-06-21 Thread 黄祥
did you mean you got an error : Unable to download because: local variable 'r' referenced before assignment best regards On Friday, June 21, 2013 3:39:53 PM UTC+7, Jacinto Parga wrote: I have got a similar error: Unable to download because: 'results' And the tweets have been no longer

[web2py] Re: scheduling task on inserts in database table

2013-06-21 Thread Niphlod
yep. hook up on the _after_insert and do a scheduler.queue_task() Il giorno venerdì 21 giugno 2013 09:32:11 UTC+2, Apoorve Mohan ha scritto: Hello All In my application I have a cron that runs every 5 minutes and performs a task. Basically it checks for a entry in a database table and then

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

2013-06-21 Thread Leonel Câmara
+1 on this one. Social login support is a huge pain on the ass. The social network histrionics change their APIs every month. -- --- 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

[web2py] How to change the class of table from SQLFORM ?

2013-06-21 Thread Holger Schurig
Hi list, I create a form like this: form = SQLFORM(db.table, int(request.args[0]), readonly=True, showid=True, ) return dict(form=form) and render this later with {{=form}}. Now the rendered form contains a simple

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

2013-06-21 Thread Alan Etkin
I think it is not in the change log and it is not acceptable Hi Richard. Why it is not acceptable? Did the change break a documented feature? How? Perhaps you want to post an issue in the project page (code.google.com/p/web2py/issues). If you do, please post as much information you

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

2013-06-21 Thread Massimo Di Pierro
Please open a ticket about this and we will look into it asap. On Wednesday, 19 June 2013 14:48:35 UTC-5, Georgess wrote: 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 '?'

[web2py] Re: web2py 2.4.7 is Out

2013-06-21 Thread Massimo Di Pierro
Thank you again for reporting this. there is a possible solution in trunk, proposed by Jonathan. Would you be able to check it? On Wednesday, 19 June 2013 17:55:56 UTC-5, Aurelio Tinio wrote: Hi Massimo, We've been able to track down the issue which appeared like a memory leak. It seems

[web2py] EuroPython?

2013-06-21 Thread Massimo Di Pierro
I may be able to attend EuroPython on July 5. We could organize a web2py Open Space. Is anybody here attending? -- --- 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] posting here for future reference ...

2013-06-21 Thread Massimo Di Pierro
who knows some of us may need the references in this latter one day. http://gawker.com/this-is-how-you-respond-to-an-unjust-cease-and-desist-l-514155395 -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and

[web2py] Re: How to change the class of table from SQLFORM ?

2013-06-21 Thread Holger Schurig
I think I found a solution by myself; form = SQLFORM(query, id, readonly=True, showid=False) c = form.components[0] c.attributes[_style] = width:80% c.add_class(table xtable-bordered table-condensed) return form -- --- You received this message

[web2py] Re: How to change the class of table from SQLFORM ?

2013-06-21 Thread Massimo Di Pierro
+1 You can also replace c = form.components[0] with c = form.element('table') On Friday, 21 June 2013 07:04:45 UTC-5, Holger Schurig wrote: I think I found a solution by myself; form = SQLFORM(query, id, readonly=True, showid=False) c =

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

2013-06-21 Thread Richard Vézina
As explain Simone in case of passing id to javascript it requires refactoring of app... Also it brake silently a javascript plugin integrated manually as a field widget (not a custom widget). I gues I should have a made some test to cover that, but I am still exploring how the best way to manage

[web2py] Re: sqlform.grid - Accessing id and values from link checkbox

2013-06-21 Thread Jim S
Here is how I'm handling it: grid = SQLFORM.grid(query,fields=fields,create=False,editable=False, details=False,deletable=False,csv=False, searchable=False, orderby=orderby, selectable=lambda

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

2013-06-21 Thread Anthony
Though to be fair, the documentation simply says that id fields are auto-incrementing *integers*, and for many years, they were just int's on the web2py side, so it probably wasn't reasonable to expect everyone to do int(row.id) everywhere instead of just row.id in anticipation of some

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

2013-06-21 Thread Massimo Di Pierro
It was motivated bit the need to support bigint ID fields. This is for relational databases but, most importantly for non-relational ones. For example in mongodb the ID is a long UUID so we must map that into a ID. It comes up a long integer. Yet using int instead of long was a problem also

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

2013-06-21 Thread Richard Vézina
I can manage this no problem, my only concern is how it could have pass under the radar like that. I am less active on mailing-list the last week so I don't read much email... But if you search the mailing-list, you will get almost notting about long... Richard On Fri, Jun 21, 2013 at 11:14 AM,

Re: [web2py] compute try to understand something

2013-06-21 Thread Richard Vézina
Further code review lead me to the conclusion that the issue is not because compute don't get all it needs to compute... I mean I get the row and since it is a update every field are available in the row and I still need to redefine the compute field... Should computed field computes on

[web2py] Re: Markmin, LaTeX and pdf generation

2013-06-21 Thread peibol
Yes, I've tested it with the google chart api and it works. I plan to use it with a template for pypdf to minimize alignment issues. Although it would be better if we could just render the html produced by mathajax (or similar) but server side and then use it. El viernes, 21 de junio de 2013

[web2py] Re: sqlform.grid - Accessing id and values from link checkbox

2013-06-21 Thread PremKumar KrishnaKumar
Hi Jim, The selectable works perfectly but the reason I am using links is I might require couple of more additional columns containing check-box. So links could be used to add more colums links = [dict(header='field1',body=lambda row: INPUT(_name='action',_type='checkbox')) ,

[web2py] Can view, but can't edit files

2013-06-21 Thread Woody
I am using web2py admin served by nginx and uwsgi. When I access the server from the same LAN, I can edit files with no problem. When I use an ssh tunnel to proxy into my LAN from a remote location, I can login to the admin app and I can view files, but when I try to edit them, I get nothing

[web2py] Re: Can view, but can't edit files

2013-06-21 Thread Niphlod
from web2py's standpoint (the web one) it only matters where requests are from, not the user who's doing those. If you have a working admin on the local LAN and you can access but not edit from outside your LAN, than you're doing the ssh tunnel wrong. PS: did you just tried to do a ctrl+R to

Re: [web2py] websockets

2013-06-21 Thread shartha
Hi Ricardo, Thank you very much for posting the application. Here are a few questions that I have regarding this: 1. Do I need to put the route.py in the root directory of my app? 2. I tried by putting the routes.py in the rood directory of iochat. run_io_chat.py was also created in the same

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

2013-06-21 Thread Derek
But in Python, isn't an int's size unlimited? I didn't think it was mapped to a platform int... On Friday, June 21, 2013 8:19:20 AM UTC-7, Massimo Di Pierro wrote: It was motivated bit the need to support bigint ID fields. This is for relational databases but, most importantly for

[web2py] Anyone got working python-dateutil in web2py app?

2013-06-21 Thread David Marko
I have to use 'rrule' part of python-dateutil library see here http://labix.org/python-dateutilhttp://labix.org/python-dateutil#head-470fa22b2db72000d7abe698a5783a46b0731b57 But I cant get it to work under web2py. It freezes the Rocket server. Its working fine as standalone in Python, but in

Re: [web2py] posting here for future reference ...

2013-06-21 Thread Marco Túlio Cícero de M . Porto
very good :) 2013/6/21 Massimo Di Pierro massimo.dipie...@gmail.com who knows some of us may need the references in this latter one day. http://gawker.com/this-is-how-you-respond-to-an-unjust-cease-and-desist-l-514155395 -- --- You received this message because you are subscribed to

[web2py] Re: web2py 2.4.7 is Out

2013-06-21 Thread Aurelio Tinio
Welcome and thank you for quickly posting the solution. I've gone ahead and applied the following changeset: https://github.com/web2py/web2py/commit/1509559e78e858282a7726c6f6cfc553952823e2 to our web2py copy and it looks to have solved the problem. Woot! On Friday, June 21, 2013 4:48:49 AM

[web2py] Re: Anyone got working python-dateutil in web2py app?

2013-06-21 Thread Jim S
I use dateutil extensively but not rrule(). -Jim On Friday, June 21, 2013 1:52:16 PM UTC-5, David Marko wrote: I have to use 'rrule' part of python-dateutil library see here http://labix.org/python-dateutilhttp://labix.org/python-dateutil#head-470fa22b2db72000d7abe698a5783a46b0731b57 But

Re: [web2py] Re: sqlform.grid - Accessing id and values from link checkbox

2013-06-21 Thread Jim Steil
Sorry, misunderstood what the problem was. On Fri, Jun 21, 2013 at 10:50 AM, PremKumar KrishnaKumar premkumar.krishnaku...@gmail.com wrote: Hi Jim, The selectable works perfectly but the reason I am using links is I might require couple of more additional columns containing check-box. So

[web2py] Re: Anyone got working python-dateutil in web2py app?

2013-06-21 Thread David Marko
timedeltas are fine, but I need rrules, which contains great functionality ... Dne pátek, 21. června 2013 22:12:53 UTC+2 Jim S napsal(a): I use dateutil extensively but not rrule(). -Jim On Friday, June 21, 2013 1:52:16 PM UTC-5, David Marko wrote: I have to use 'rrule' part of

Re: [web2py] compute try to understand something

2013-06-21 Thread Massimo Di Pierro
It should. Can you provide a concrete example? On Friday, 21 June 2013 10:31:45 UTC-5, Richard wrote: Further code review lead me to the conclusion that the issue is not because compute don't get all it needs to compute... I mean I get the row and since it is a update every field are

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

2013-06-21 Thread anonymouse
:D Looks good! I'll have to check out trunk and try it out. Thanks for the answers (makes me feel like I'm getting pretty good with web2py) and especially for the code! -C On Thursday, 20 June 2013 22:08:27 UTC-5, Anthony wrote: FYI, see possible solution here:

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

2013-06-21 Thread Niphlod
import sys sys.maxint 9223372036854775807 int(sys.maxint +1) 9223372036854775808L int(sys.maxint) 9223372036854775807 On Friday, June 21, 2013 7:58:46 PM UTC+2, Derek wrote: But in Python, isn't an int's size unlimited? I didn't think it was mapped to a platform int... On Friday, June

[web2py] jQuery bug in view. Trying to show/hide a textbox based on a checkbox being checked.

2013-06-21 Thread Jordan Ladora
Hi, I have a jQuery script in a view. It has a bug as it's not working (textbox always shown). I think my syntax in the if statement is wrong.. here it is- script jQuery(document).ready( function() { if( jQuery('#cnd').prop('checked', true) ); { jQuery('#nnd').show(); }

Re: [web2py] Server performance (cpu/memory)

2013-06-21 Thread b00m_chef
Hi Marco, Did you ever resolve this? Did you ever improve the performance of your server? Any insights you could share? Thanks, On Thursday, 11 April 2013 08:02:14 UTC-7, Marco Tulio wrote: 2013/4/11 LightDot ligh...@gmail.com javascript: Are you using db connection pooling and do

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

2013-06-21 Thread Anthony
No problem. For this interested, in trunk, you can now do: rows = db(query).select() repr_row = rows.repr(0) The .repr() method of the Rows object takes an index and returns a copy of the indexed row, but for fields with represent attributes, the represent function is applied to the value in

[web2py] Re: Help on field default computed value

2013-06-21 Thread greenpoise
Thanks! On Thursday, June 20, 2013 4:34:23 PM UTC-7, Anthony wrote: 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

[web2py] IS_IN_SET - Wont save in DB if I choose same values.

2013-06-21 Thread greenpoise
SO, I have this: SIZES = [x*0.05 for x in range(0,int(25/0.05))] db.define_table('product', Field('series', 'reference series'), Field('material', 'reference material'), Field('finish', 'reference finish'), Field('size1'), Field('size2'))

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

2013-06-21 Thread José Eloy
I'll try this. I hope it works. Later I say you if I have success. Regards -- --- 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] Re: Anyone got working python-dateutil in web2py app?

2013-06-21 Thread Brian M
I too use relativedelta a lot but hadn't tried rrule() before. However, I just gave it a try and it appeared to work OK. (Tested with current web2py trunk running via rocket) def index(): from dateutil.rrule import * from dateutil.parser import * from datetime import * recur =

[web2py] Re: Anyone got working python-dateutil in web2py app?

2013-06-21 Thread David Marko
Thanks a lot for testing !!! I just got it. When I use : return dict(message=Testing RRule, recur = recur) ... its working fine, but when I returned (just for testing) 'return recur' only, it freezed the Rocket ... Thanks again! Dne sobota, 22. června 2013 4:17:29 UTC+2 Brian M napsal(a): I