[web2py] Re: Error: Exporting CSV file in SQLFORM.grid

2015-01-15 Thread Tim Richardson
A quick question: if you try the standard Tab Separated Value export, does it work? (you can refer back to your stack overflow link to see why I ask). On Thursday, 15 January 2015 04:31:56 UTC+11, Prasad Muley wrote: > > Hello All, > >I've used a SQLFORM.grid for displaying table conten

Re: [web2py] Re: lazy question: does anyone have a simple backbone.js/web2py example or tutorial?

2015-01-15 Thread Tim Richardson
Backgrid.js looks promising. Getting web2py to populate a backbone collection was pretty easy. On 15/01/2015 5:18 PM, "Tim Richardson" wrote: > > > On Thursday, 15 January 2015 11:19:04 UTC+11, Derek wrote: >> >> I suppose you haven't seen 'DataTables.net' ? >> >> >>> > I looked at it a while ago

Re: [web2py] Re: Error: Exporting CSV file in SQLFORM.grid

2015-01-15 Thread Prasad Muley
Hi Tim, Export format should be CSV file. I am getting that error because of the custom search in grid. I got some clues from Exporting from a SQLFORM.grid with customized search queries I'll try TSV once I fix this issue. On T

[web2py] Re: Exporting from a SQLFORM.grid with customized search queries

2015-01-15 Thread Prasad Muley
Hello Massimo and Dexter, I've a fix for this issue. I've tested it and attached the diff file. PFA. Let me know if I missed anything. Btw Can I send pull request? On Saturday, October 25, 2014 at 5:17:24 AM UTC+5:30, Massimo Di Pierro wrote: > > Hello Dexter, I think your are right

[web2py] Re: Gig: web2py nut needed for remote scheduling/membership site

2015-01-15 Thread Leonel Câmara
You expect people to be your dev lead, do all the admin work, basically have all the responsibility for the success of this project, and you're paying 15 bucks an hour? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - h

Re: [web2py] Re: Gig: web2py nut needed for remote scheduling/membership site

2015-01-15 Thread António Ramos
Now i understand the subject Web2py is severelly underrated Em 15/01/2015 13:38, "Leonel Câmara" escreveu: > You expect people to be your dev lead, do all the admin work, basically > have all the responsibility for the success of this project, and you're > paying 15 bucks an hour? > > -- > Resour

[web2py] Re: Don't use 64 bit ODBC with Web2Py and SQL Server

2015-01-15 Thread Pbop
We of course changed source to 32 bit when we went to 32 bit ODBC drivers. Did not try pypyodbc and did not know about pytds, which is cool to know! Thanks. For now we have a solution so my message is to just try and save folks a lot of time and grief. -- Resources: - http://web2py.com - htt

[web2py] Using whoosh for in-built wiki

2015-01-15 Thread Ben Lawrence
HI I have installed Massimo's Haystack for Whoosh ( https://github.com/mdipierro/web2py-haystack) and it works and passes the tests that are included there. Now I am trying to use it for the tables in the in-built wiki. However, it doesn't find the search string in the wiki body fields. Has anyo

[web2py] Possible error in book about jquery (already corrected in online book)

2015-01-15 Thread Carlos Kitu
I was trying to implement the jquery code example to conditionally show or hide part of the page (see page 505 in https://dl.dropboxusercontent.com/u/18065445/web2py/web2py_manual_5th.pdf). It didn't work because it was using the attr function as: if(jQuery('#taxpayer_married').attr('check

[web2py] Re: [OT] HTML to PDF

2015-01-15 Thread Ariya Owam-aram
Hi Bruno, I install wkhtmltopdf and integrate with web2py by using subprocess.call, it work very well on my macbook (rocket server). But I can't success running subprocess.call on production server (Ngix). I also test subprocess.call wkthtmltopdf from web2py's shell (admin) it return non-zero

[web2py] numba jit fails in web2py environment

2015-01-15 Thread Leopold Haimberger
Hi I am using the numba just in time compiler (version 0.16) for speeding up numerical calculations under python. For testing it I have slightly modified the standard web2py welcome application such that the index controller function calls a tiny function numba_add which adds 2 numbers. fr

[web2py] Re: Error in Eclipse kepler for Web2py source: generics.xml

2015-01-15 Thread Massimo Di Pierro
To rephrase what Niphlod is saying. generic.xml contains code (web2py template language) used to generate XML but it does not contain XML. Eclipse thinks it should contain XML and complains. I guess there is some Eclipse settings to make it ignore this file validation. On Wednesday, 14 January

Re: [web2py] Re: lazy question: does anyone have a simple backbone.js/web2py example or tutorial?

2015-01-15 Thread Massimo Di Pierro
I like handsontable a lot. It allows cut and paste to and from Excel. It can customized in HTML down to the single cells. On Thursday, 15 January 2015 02:21:01 UTC-6, Tim Richardson wrote: > > Backgrid.js looks promising. Getting web2py to populate a backbone > collection was pretty easy. > On

[web2py] Re: Exporting from a SQLFORM.grid with customized search queries

2015-01-15 Thread Massimo Di Pierro
Thanks. I will merge this patch! On Thursday, 15 January 2015 04:01:24 UTC-6, Prasad Muley wrote: > > Hello Massimo and Dexter, > > I've a fix for this issue. I've tested it and attached the diff > file. PFA. > > Let me know if I missed anything. > > Btw Can I send pull request? > > On

[web2py] Re: Gig: web2py nut needed for remote scheduling/membership site

2015-01-15 Thread Massimo Di Pierro
I recently had a similar discussion on the topic with a friend. It is nearly impossible to find a good developer in a modern agile technology (web2py or other) for $15/hr anywhere. Most people I work with charge from $50/hr for a long term contract with guaranteed number of hours to $150 for an

[web2py] Re: numba jit fails in web2py environment

2015-01-15 Thread Massimo Di Pierro
Define the function in a module and import the function from the module. Do not put it in a model or controller. Those are not normal python modules and who knows what goes on. Anyway, your function would be re-compiled at every iteration. I wrote this (https://github.com/mdipierro/ocl) works l

Re: [web2py] Re: Exporting from a SQLFORM.grid with customized search queries

2015-01-15 Thread Prasad Muley
Hi Massimo, Thanks for reply. I've sent you the pull request on github. Let me know if you get any errors :) On Thu, Jan 15, 2015 at 9:26 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Thanks. I will merge this patch! > > > On Thursday, 15 January 2015 04:01:24 UTC-6, P

[web2py] Re: What is the best way to add an extra input on the client side?

2015-01-15 Thread Derek
I would suggest that you do something similar to what I've done here... http://www.web2pyslices.com/slice/show/1612/ajax-adding-child-records-to-parent On Sunday, January 11, 2015 at 11:18:56 PM UTC-7, Przemysław wrote: > > Partially solved. Manually added field of the reference type now has a

[web2py] error connecting two applications on different computers

2015-01-15 Thread Luis Díaz
greetings. excuse me I'm using google translator (my language is Spanish) location: a control system for assistance. * A central computer where managers come and go down the reports. * Some stations where the person registers its input and output (such equipment may or may not be connected to the n

[web2py][recipe] Unique constraint over 2+ fields for form validation of SQL UNIQUE (f1, f2,...);

2015-01-15 Thread Richard
Hello, I just found a way to avoid _before_insert and _before_update callbacks and implement at the form level the unique constraint apply at backend level over 2 fields like so : ALTER TABLE table_name ADD CONSTRAINT unique_f1_and_f2 UNIQUE (f1, f2); What works for me in

Re: [web2py] Exporting from a SQLFORM.grid with customized search queries

2015-01-15 Thread Dexter Hadley
Thx to both of you! There is also the google code issue here: https://code.google.com/p/web2py/issues/detail?id=2006 dex* > On Jan 15, 2015, at 8:48 AM, Prasad Muley wrote: > > Hi Massimo, > >Thanks for reply. I've sent y

[web2py] How to add a column to SQLFORM.smartgrid that contains the row count?

2015-01-15 Thread César Bustíos Benites
Hello all, I have a simple SQLFORM.smartgrid using two tables: "tramites" and "desarrollo_tramites": This is how the code looks like: @auth.requires_login() def consulta_tramite(): user_id

[web2py] Re: How to add a column to SQLFORM.smartgrid that contains the row count?

2015-01-15 Thread Dave S
On Thursday, January 15, 2015 at 11:47:07 AM UTC-8, César Bustíos Benites wrote: > > Hello all, I have a simple SQLFORM.smartgrid using two tables: "tramites" > and "tramites_procesos": > Is your view anything different from {{=form}} I would assume, without having actually gotten to smartg

[web2py] Why can I peek but not edit some existing files?

2015-01-15 Thread Tom Campbell
I created a file called default/view.html using the web interface. It looks as expected when I peek at it: {{extend 'layout.html'}} This is the default/view.html template {{=BEAUTIFY(response._vars)}} However, when I choose to edit that file using the web interface I get a blank, uneditable pa

[web2py] Re: Why can I peek but not edit some existing files?

2015-01-15 Thread Dave S
On Thursday, January 15, 2015 at 2:42:39 PM UTC-8, Tom Campbell wrote: > > I created a file called default/view.html using the web interface. It > looks as expected when I peek at it: > > {{extend 'layout.html'}} > This is the default/view.html template > {{=BEAUTIFY(response._vars)}} > > > Howe