[web2py] Small trick to debug vue applications with py4web

2019-12-30 Thread José Luis Redrejo
Just a quick note to myself, and others who could face this same problem: When using Vue inside py4web, as it's done in the todo application included with the code, using the vue devtools tab in the browser does not work out of the box. This is the message the extension shows: [image: image.png]

Re: [web2py] Web3Py equivalent of SQLFORM.grid

2019-05-16 Thread José Luis Redrejo
I can't show you all the code because the property belongs to the person who asked me to do it, This is the part that takes the dataables json requests, fetch the records and format them to be understood by datatables. I am skipping the sorting/filtering part , that builds the *query_filter* and

Re: [web2py] Web3Py equivalent of SQLFORM.grid

2019-05-16 Thread José Luis Redrejo
Hey John, I have used datatables with web2py in some projects and it was faster than smartgrid when used in server mode. Whenever I had performance problems was because the code used .count() to show the total number of records. In my case the tables have several millions of records and that was

Re: [web2py] Re: Web3py

2019-04-19 Thread José Luis Redrejo
I think one of the reasons web2py is so productive and has an easy learn curve is due to the fact of using DAL instead of an ORM. I don't see any problem in using sqlalchemy with web2py if an ORM is needed. I would probably use it in some big projects for some of the models. But for the sake of

Re: [web2py] Re: web3py again....

2019-03-29 Thread José Luis Redrejo
El vie., 29 mar. 2019 a las 5:12, Massimo Di Pierro (< massimo.dipie...@gmail.com>) escribió: > My thought exactly. > > I also fully agree. Very excited with the new features. Also, I see the problems I reported yesterday have been solved in the git repository. Now we can begin to really play

Re: [web2py] web3py again....

2019-03-28 Thread José Luis Redrejo
Just tested, some considerations: 1. Tested with Python 3.6, followig strictly the provided instructions, several things don't work: a) static folder is not working properly. I get a 404 error for all the requests 127.0.0.1 - - [28/Mar/2019 10:45:10] "GET /todo/index HTTP/1.1" 200 828 127.0.0.1 -

Re: [web2py] Web2Py + VueJS SPA (Webpack)

2017-11-27 Thread José Luis Redrejo
t;>> >>>I am the template for the mypage component. >>> >>> >>> >>> >>> On Wednesday, 15 November 2017 09:33:28 UTC-6, Carlos A. Armenta Castro >>> wrote: >>> >>>> Hi José, >>>> >>&g

Re: [web2py] Web2Py + VueJS SPA (Webpack)

2017-11-27 Thread José Luis Redrejo
t;> lso, in webpack.config.babel.js configuration file , if you add >>> >>> >>> devServer: { >>> host: '127.0.0.1', >>> port: 8001, >>> historyApiFallback: false, >>> noInfo: true, >>> proxy: { >>

Re: [web2py] Web2Py + VueJS SPA (Webpack)

2017-11-14 Thread José Luis Redrejo
I will do it this weekend, by the way crud is not simple at all. In fact it's one of the most complex things ;) 2017-11-15 3:04 GMT+01:00 黄祥 : > i'm interest too, could you give some simple example (crud) to learn how > it works? > > thanks and best regards, >

Re: [web2py] Web2Py + VueJS SPA (Webpack)

2017-11-14 Thread José Luis Redrejo
using the dist/webpack-manifest.json automatically instead of having to write them manually. Now if I use js or css versioning I have to change the routes in the view whenever I execute webpack Regards José L. 2017-11-14 20:37 GMT+01:00 José Luis Redrejo <jredr...@gmail.com>: > Hi C

Re: [web2py] Web2Py + VueJS SPA (Webpack)

2017-11-14 Thread José Luis Redrejo
Hi Carlos I would recommend you to use this webpack helper: https://github.com/Plortinus/vue-multiple-pages Doing "vue init Plortinus/vue-multiple-pages new-project" you get the structure to work, just add the div for app to the class and import the page js per each page. Also, in

Re: [web2py] unit testing newbiew ... and error...

2017-08-17 Thread José Luis Redrejo
Antonio, I would not recommend you usint unittest classes, if you read any modern Python testing book or article, they all recommend using pytest. I used it in this project https://github.com/jredrejo/bancal/tree/master/web2py/applications/bancal just in case it can help you. Regards José L.

Re: [web2py] Datatables Query String Parsing

2017-07-28 Thread José Luis Redrejo
I have used it several times, I thought of doing a reusable class for it, but did't have time to do it yet. For a query with only one table involved this is one code example. I use the same code, with a small modifications in the way field values are requested, for queries with joined tables.

Re: [web2py] Web2py Docker

2017-07-22 Thread José Luis Redrejo
I have been using this in production for more than one year https://hub.docker.com/r/jredrejo/web2py/ 2017-07-22 3:43 GMT+02:00 : > I've searched through the discussion archive before posting this question. > There were few threads here and there but nothing definitive. > >

Re: [web2py] Re: btw: great job

2017-04-26 Thread José Luis Redrejo
I recognize all what Massimo has done, of course, and to all the contributors. Web2py is always my first option whenever I need to choose a web framework. However, I also think we have to thank to people like Anthony, Niphlod or in the past Bruno Rocha or Jonathan Lundell who have been providing

[web2py] Re: web2py & react

2017-02-16 Thread José Luis Redrejo
Sorry, bad link in my previous email. The article that inspired me was https://hackernoon.com/ reconciling-djangos-mvc-templates-with-react-components-3aa986cf510a#. 5605vfe3r José L. 2017-02-16 19:04 GMT+01:00 José Luis Redrejo <jredr...@gmail.com>: > Inspired by https://medium.com/re

[web2py] web2py & react

2017-02-16 Thread José Luis Redrejo
Inspired by https://medium.com/react-redux/introducci%C3%B3n-a-redux-js-8bdf4fe0751e#.iqodqn8cc I have created a small project, using web2py instead of Django: https://github.com/jredrejo/web2pyreactpoc As usual, it's much easier ;) I've created three different pages, with different degrees of

Re: [web2py] Changing the default PDF dowload filename (fpdf)

2017-02-12 Thread José Luis Redrejo
HI, this is how I do it: response.headers['Content-Disposition'] = 'attachment; filename=as_you_wish.pdf' regards José L. 2017-02-13 1:04 GMT+01:00 Paul Ellis : > When want to save a PDF made with FPDF and web2py. The filename is always > the controller function name

Re: [web2py] Re: Scheduler and Serial Port Problems

2016-12-06 Thread José Luis Redrejo
Hi Richard, maybe I'm wrong, but I think this is not related to web2py at all. Arduino boards are build to make a reset whenever the port is open/reopen so they change to "programming" state. This is made on purpose, but it's trivial to avoid it. If using an Arduino UNO board, just connecting a

Re: [web2py] Re: web2py react-python

2016-11-21 Thread José Luis Redrejo
Yes, thanks for the use case. I had not thought of that possibility. Nowadays it's weird to think of someone using a non-javascript ready browser. José L. 2016-11-21 12:59 GMT+01:00 Mark Graves : > Way better use case Leonel, thanks =) > > On Mon, Nov 21, 2016 at 3:44 AM,

Re: [web2py] web2py react-python

2016-11-20 Thread José Luis Redrejo
I must confess my ignorance: Having read and played with react, and being a long time web2py user, I don't get the point of rendering react in the server from python, connected with a node application. I have made react applications running in the view and using json to communicate with the python

Re: [web2py] Some ideas for automatic field values

2016-07-30 Thread José Luis Redrejo
Have you tried update_naive when using the after_update trigger? It should avoid the infinite loop El 30/7/2016 8:06, "Carlos Cesar Caballero" escribió: > Hi everyone, I am almost finishing a plugin for building automatic slug > fields, but I want to build editable

Re: [web2py] Highcharts in web2py

2016-05-12 Thread José Luis Redrejo
I've played with highcharts and it's pretty simple if you use the json decorator in web2py. On the other hand, if you want a really free library I'd recommend you to use d3js. The examples in its site are really good and you only need to replace d3.tsv by d3.json(... calling the controller and

Re: [web2py] Re: how to create pdf report in web2py???

2016-05-10 Thread José Luis Redrejo
Latest fpdf code is in the contrib section of gluon libraries, and works correctly. If your report is not too complicated I'd recommend you this way. The demo from the above link is easy to follow. 2016-05-10 20:26 GMT+02:00 Dave S : > On Tuesday, May 10, 2016 at 9:59:47

Re: [web2py] please help with new widgets

2016-03-14 Thread José Luis Redrejo
Massimo, I'm missing all the time a grid (sqlgrid) widget in these examples. Aren't you considering it, or it's just it's not needed as the style will apply and look good in the three cases? Sqlgrid is one of the most powerful objects in web2py forms and I think most of us could not live without

Re: [web2py] Re: pdf utf-8 problem

2016-03-02 Thread José Luis Redrejo
If you're using fpdf, this will do the trick: reload(sys) sys.setdefaultencoding("latin-1") 2016-03-02 8:47 GMT+01:00 xmarx : > i haven't find solution yet but i found rigth source to explore. > http://pyfpdf.readthedocs.org/en/latest/Web2Py/index.html > > if i

Re: [web2py] Sublime Text? Plugins?

2016-02-27 Thread José Luis Redrejo
HI Dave, I think this is what you're looking for: https://bitbucket.org/kfog/w2p 2016-02-26 23:50 GMT+01:00 Dave : > I am not sure if any of you are using Sublime Text to write you code it, > but I absolutely love it. With the right plugins, it really makes writing > code

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

2016-02-09 Thread José Luis Redrejo
Oliver: I use to do what you need to communicate with Arduino in different projects. I think it's better if you get rid of the scheduler: you may loose data if the serial port buffer is full while the scheduler is not working. What I use is: - write a script in an infinite loop like any usual

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

2016-02-09 Thread José Luis Redrejo
2016-02-09 15:17 GMT+01:00 Oliver Holmes : > José Luis, > > now that sounds promising! So, what I'd do is put my serial port reading > procedure together with SQL inserts in an endless loop (while True) and > just let it roll. > Right, but you can use DAL, not pure sql

Re: [web2py] Re: Is there a Debian/Ubuntu PPA for web2py?

2016-01-31 Thread José Luis Redrejo
Hi, https://packages.debian.org/sid/python-web2py Debian package is on version 2.12.3 As usual, Ubuntu will pick that package for the next release they do. 2016-01-30 20:25 GMT+01:00 : > Anthony wrote: > > > > > > I run xubuntu on my home server, the current

Re: [web2py] Re: web3py

2016-01-15 Thread José Luis Redrejo
Of course, option 2. It's the most logical path for all of us. 2016-01-14 23:43 GMT+01:00 Ovidio Marinho : > 2 > > > > Sent with MailTrack > > > > > > >[image: http://itjp.net.br]

Re: [web2py] new redis_tools, new redis-backed scheduler

2016-01-04 Thread José Luis Redrejo
This is really interesting, specially the scheduler and the possibility of sharing the redis connection. Is there any ETA to have it in stable? Thanks Niphlod 2016-01-03 0:44 GMT+01:00 Niphlod : > Once PR1158 gets merged > web2py

Re: [web2py] markmin, pyfpdf, qr and utf-8-code

2015-06-05 Thread José Luis Redrejo
I don't think you can mix markmin with fpdf (using the html to pdf functions). You will have to build your pdf in the controller picking up the text from the html. 2015-06-04 23:27 GMT+02:00 Martin Weissenboeck mweis...@gmail.com: What I want to do: - I want to write some pages using

Re: [web2py] Re: IMPORTANT - WEB2PY CONSULTING

2015-03-05 Thread José Luis Redrejo
2015-03-04 22:26 GMT+01:00 Manuele Pesenti manuele.pese...@gmail.com: Il 04/03/15 17:40, Chris ha scritto: I do web2py consulting work on the side but I'm an individual. Can I include just an email address, and not a webpage? me too... in Italy. And me too, in Spain... M. --

Re: [web2py] PDF view - set printing page size

2015-02-25 Thread José Luis Redrejo
2015-02-24 14:36 GMT+01:00 Pavel pavel@gmail.com: Really thanks José, your labels app help me with understanding fpdf. My apps is working now. You're welcome Little problem is unicode characters. I tried examples from fpdf wiki pages, but without success. Fortunately all dynamic

Re: [web2py] PDF view - set printing page size

2015-02-23 Thread José Luis Redrejo
I think this could be useful for you: https://github.com/jredrejo/Labels-for-pyfpdf 2015-02-22 9:50 GMT+01:00 Pavel pavel@gmail.com: Hallo, I am making simple app for registrations and printing ID cards. I have simple pdf view. For instance: {{ import os from gluon.contrib.generics

Re: [web2py] Ubuntu: python-web2py 1.99.7-1

2015-01-20 Thread José Luis Redrejo
Ubuntu takes this package from Debian. I will update the package in Debian soon, with version 2.9.12 (or maybe .13 if some problems from this list are confirmed). Then, you can ask Ubuntu to pull it from Debian. Regards. 2015-01-19 14:23 GMT+01:00 Y yannick.hagm...@gmail.com: Hello There

Re: [web2py] Re: New python.org layout

2014-03-23 Thread José Luis Redrejo
2014-03-22 23:21 GMT+01:00 Mariano Reingart reing...@gmail.com: Great news: We are now listed in https://www.python.org/ Congrats and thanks to the maintainers added it and that closed the ticket! I wouldn't close it so quickly. It's only on the frontpage, but no mention at

Re: [web2py] Font size and FPDF Report

2013-12-22 Thread José Luis Redrejo
Hello Alfonso you can not use css with fpdf. It doesn't understand most of it, you have to use html. To change font size, I use, as an example: pdf.write_html('font size=10' + tabla.xml().decode('utf-8') + '/font') where tabla is a html table I've previously built using web2py html helpers (TR,

Re: [web2py] Re: Javascript event onchange with Calendar

2013-11-06 Thread José Luis Redrejo
Derek, thank you for the info. I could not guess it was so complicated. I don't like to modify files that are part of the framework as they will change with future updates. Don't you think this is a bug that should be fixed in web2py? 2013/11/6 Derek sp1d...@gmail.com: You can't do that, because

[web2py] Javascript event onchange with Calendar

2013-11-05 Thread José Luis Redrejo
Hi, I'm having problems with the Calendar used for date fields in an SQLFORM. In the web page, the javascript onchange does never happen (tested with Firefox and Google chrome). Other events like click or focusout works correctly, and other fields with other text input widgets work correctly too.

Re: [web2py] Javascript event onchange with Calendar

2013-11-05 Thread José Luis Redrejo
, excepting #CabeceraEntrada_Fecha Em 05/11/2013 15:52, José Luis Redrejo jredr...@gmail.com escreveu: Hi, I'm having problems with the Calendar used for date fields in an SQLFORM. In the web page, the javascript onchange does never happen (tested with Firefox and Google chrome). Other

Re: [web2py] Javascript event onchange with Calendar

2013-11-05 Thread José Luis Redrejo
2013/11/6 Diogo Munaro diogo.mvie...@gmail.com: No jose, try use .on instead of .change as the example I tried it too, without success. Em 05/11/2013 16:19, José Luis Redrejo jredr...@gmail.com escreveu: 2013/11/5 Diogo Munaro diogo.mvie...@gmail.com: Hi josé, you tried handle onchange

Re: [web2py] Re: Load with ajax doesn't work since upgrade 1.6

2013-10-11 Thread José Luis Redrejo
Movuca app from Bruno, available at Github has this behaviour. El 11/10/2013 21:05, Niphlod niph...@gmail.com escribió: can you pack a minimal app to reproduce the behaviour please ? I can't reproduce the issue you're seeing On Friday, October 11, 2013 8:55:19 AM UTC+2, Michael Helbling

Re: [web2py] Re: Load with ajax doesn't work since upgrade 1.6

2013-10-11 Thread José Luis Redrejo
El 11/10/2013 21:52, Niphlod niph...@gmail.com escribió: talking about minimal app, heh anyway, better than nothing. I know, but I am answering from my phone, without a PC available ;) taken movuca, setupped, doesn't work (as advertised in web2py's changelog). Take web2py.js from welcome

Re: [web2py] Re: Load with ajax doesn't work since upgrade 1.6

2013-10-10 Thread José Luis Redrejo
I have the same problem since 2.6.1 and, also, after copying those files without sucess I've got it working replacing the file gluon/compileapp.py with the one from version 2.5.1. You can get that web2py version from http://web2py.com/examples/static/2.5.1/web2py_src.zip. I haven't had time to

Re: [web2py] how to use google.directions 0.3

2013-06-03 Thread José Luis Redrejo
It seems the library author has included references to another lib made by him, and forgotten to add it. According to your error, google.directions needs http://d9t.de/open-source/python/d9t.json . 2013/6/3 Nam Soo In sheldon.sooin@gmail.com I am trying to use lib google.directions 0.3 I

Re: [web2py] web2py 2.4.3 is OUT

2013-03-11 Thread José Luis Redrejo
2013/3/11 Massimo Di Pierro massimo.dipie...@gmail.com: Fixes many bugs reported by users. The web page has a new look. I hope you like it. http://web2py.com I like the new look, but the link to the interactive demo under the Web-Based IDE does not work. -- --- You received this message

Re: [web2py] Re: Debugging with the scheduler

2013-02-27 Thread José Luis Redrejo
2013/2/26 Niphlod niph...@gmail.com: never done it, but debugging a multiprocessing spawned process needs additional tuning http://pydev.org/manual_adv_remote_debugger.html PS: can I ask what is not working ? if it's a focused problem maybe I can come up with an answer . I've fixed it , it

[web2py] Debugging with the scheduler

2013-02-26 Thread José Luis Redrejo
Hello, I'm working with async processes using the scheduler (with the unvaluable help of the learn by trial application from Niphlod. I wonder if there's an easy way to debug the processes that are being executed in the background (I'm having problems with them, they work ok when run from web2py

Re: [web2py] Re: Pattern to run async proccess

2013-02-02 Thread José Luis Redrejo Rodríguez
it with the scheduler 2013/2/1 Massimo Di Pierro massimo.dipie...@gmail.com: yes. If the worker is not busy it starts the task immediately. You can also have more than one worker. On Friday, 1 February 2013 11:10:11 UTC-6, José Luis Redrejo Rodríguez wrote: Thanks for your advice Massimo, but does

Re: [web2py] Re: Pattern to run async proccess

2013-02-02 Thread José Luis Redrejo Rodríguez
Niphlod Thanks very much , your learn by trial application has been gold for me. Catched!! 2013/2/2 Niphlod niph...@gmail.com: you must save somewhere in your long_time_consuming_function() the progress and let the page show that. If you manage that function outside web2py (using the

[web2py] Pattern to run async proccess

2013-02-01 Thread José Luis Redrejo Rodríguez
Hi, This is a question that has been asked several times in the list, and I have also had to implement this kind of app in the past. Now I'm also facing to another application where I need to run a resource_and_time_consuming process managed from web2py. The exact problem is: - From a web page, a

Re: [web2py] Re: Pattern to run async proccess

2013-02-01 Thread José Luis Redrejo Rodríguez
with security. On Friday, 1 February 2013 10:22:35 UTC-6, José Luis Redrejo Rodríguez wrote: Hi, This is a question that has been asked several times in the list, and I have also had to implement this kind of app in the past. Now I'm also facing to another application where I need to run

Re: [web2py] Having some strange occurence with label printing and FPDF

2013-01-16 Thread José Luis Redrejo
Some time ago, we include PDFLabel too, so you can simplify your code if you are using an avery-compatible format ( the sys stuff is only needed if you're using a non-english language): def label_bikes(): from gluon.contrib.pyfpdf.pdflabels import PDFLabel import sys reload(sys)

Re: [web2py] Having some strange occurence with label printing and FPDF

2013-01-16 Thread José Luis Redrejo
I've just checked pdflabel is not included in fpdf in web2py. I ignore the reason because I uploaded it to pyfpdf 18 months ago. I thought web2py automatically included pyfpdf updates. You can download it from http://code.google.com/p/pyfpdf/source/browse/pdflabels.py and copy it at

Re: [web2py] Fpdf error with python 2.6 and web2py 2.2.1

2012-11-29 Thread José Luis Redrejo Rodríguez
Hi Carlo I'm using fpdf without any problem, so I guess the reason is in some of the data you're passing to fpdf. The code of the controller would be needed to can lend you a hand. Regards 2012/11/29 carlo syseng...@gmail.com No error with web2py 1.9.4. With 2.2.1 I got this with Python 2.5

Re: [web2py] downloading a synthetic csv

2012-10-26 Thread José Luis Redrejo
2012/10/26 Jonathan Lundell jlund...@pobox.com I want to build a dataset (list of lists) in response to a user request and cause a csv of that dataset to be downloaded. I have a working but ugly implementation that uses @service.csv. If I access the URL

Re: [web2py] Web2py en paquetes SCORM

2012-08-26 Thread José Luis Redrejo Rodríguez
Hi, Matias, this an English language only mailing list. Anyway, if I were you I'd take a look to eXe learning. Regards El 22/08/2012 00:03, Matol matiastolosa2...@gmail.com escribió: Buenas Estoy trabajando con una aplicacion de Web2py y tengo que implementarla en un paquete SCORM, para

Re: [web2py] Formulario personalizado

2012-08-26 Thread José Luis Redrejo Rodríguez
Hola Miguel: está lista de correo sólo es en inglés. Sí no hablas este idioma hay otra lista de web2py en español. Hi Miguel, this mailing list is only in English, so if you can not use this language, there is an alternative Spanish web2py mailing list. Un saludo El 25/08/2012 17:52, Miguel

Re: [web2py] Re: [ANNOUNCE] FPDF for python v1.7: unicode ttf support, png alpha channel and more!

2012-08-15 Thread José Luis Redrejo
You don't need reportlab to use pyfpdf, so as you said, the wording is not correct in the book. Regards José L. 2012/8/15 Andrew awillima...@gmail.com: Excellent. Haven't used it yet but looking forward to it. One question The book mentions this package in the core section, but in services

Re: [web2py] web2py for embedded hardware control

2012-08-14 Thread José Luis Redrejo Rodríguez
I think you're not going to have good results with web2py for this kind of project. I'd encourage you to take a look at projects as http://mblogic.sourceforge.net/ , which using python (and a bit of javascript) allows you to control, and report or easily showing animated bars and graphics. mblogic

Re: [web2py] free ssl alternative encryption

2012-07-31 Thread José Luis Redrejo Rodríguez
mmm, you can use ssl without using a public certificate, if it's your certificate I think you can trust it. Secondly, you can use a valid and certified free ssl certificate, take a look at http://www.startssl.com/ Regards. 2012/7/31 Robin Manoli ramat...@gmail.com: Hey, I'm looking for an

[web2py] is there any trick in this PaaS hosting?

2012-07-26 Thread José Luis Redrejo Rodríguez
https://console.appfog.com/pricing Free up to 2 Gb RAM , it costs more than 50$ per month in most providers ... I'm still looking for the trick, without success ;) Regards José L. --

Re: [web2py] Re: [web2py-dev] Asyncronous Application Sync

2012-07-17 Thread José Luis Redrejo Rodríguez
I had to to do something similar a couple of years ago (between several waste water plants and the control center) and ended using a similar approach to what nick name said: - In the control center I used mysql - In the waste water plants I used a sqlite database per day (initializating the

Re: [web2py] Re: Error importing ldap_auth module

2012-06-26 Thread José Luis Redrejo
2012/6/26 ehgonzalez ehgonzale...@gmail.com: Hi everyone, I've finally found out what was wrong in my system. I use apache2 + mod_php + wsgi, if I disable mod_php the application works Ok. Is there anyway to run mod_php and wsgi without problems? I'm doing it in a lot of servers without any

Re: [web2py] Re: Error importing ldap_auth module

2012-06-26 Thread José Luis Redrejo
2012/6/26 Bill Thayer bill.tha...@live.com: Hi Jose, Not to hijack your thread but quickly Your are probably as busy as the rest of us but I'd love to see a recipe or tutorial on how you got php MyAdmin to run with web2py. There 's not a special recipe. I'm using Debian, with

Re: [web2py] Re: Error importing ldap_auth module

2012-06-26 Thread José Luis Redrejo
2012/6/26 ehgonzalez ehgonzale...@gmail.com: José this is my configuration, db.py: from gluon.contrib.login_methods.ldap_auth import ldap_auth If mod_php is on: ERROR:root:missing ldap, try easy_install python-ldap (apache log error) If mod_php is off, the application works OK. mod_php 

Re: [web2py] web2py folder structure and security

2012-06-15 Thread José Luis Redrejo Rodríguez
2012/6/15 Chris ch...@spitfireinnovation.com: We have had very good experiences with web2py.  And now we are moving into a more locked-down production environment. This raises some new questions about security.  I would like to make a suggestion.  If this suggestion seems valuable then I would

Re: [web2py] Re: Validator for sqlform combo list

2012-06-01 Thread José Luis Redrejo Rodríguez
Thanks very much Anthony, I didn't know this feature. 2012/5/31 Anthony abasta...@gmail.com: db.class_attendant.person_id.requires = IS_IN_DB(db(db.person.age = 18),     'person.id', '%(name)s %(surname)s') The first argument to IS_IN_DB and IS_NOT_IN_DB can be a Set object rather than an

Re: [web2py] Help deploying Web2py on FluxFlex

2012-04-24 Thread José Luis Redrejo Rodríguez
There might be two problems: - You uploaded the setup.py file included in web2py sources tar ball. Remove it -You pushed too many things: you only should push your app directory, not the web2py or applications directory from your local drive. I.e. git should be available only at myapp in

Re: [web2py] Re: Eclipse and autocomplete

2012-04-05 Thread José Luis Redrejo Rodríguez
2012/4/5 Anthony abasta...@gmail.com: Does it work if you do the following at the top of model and controller files (requires latest web2py version): if 0:     from gluon import * If you've got db and auth objects, you could also add:     from gluon.tools import Auth     db = DAL()    

Re: [web2py] Re: executing javascript after accepting a form

2012-03-27 Thread José Luis Redrejo Rodríguez
It works perfectly. Thanks very much Anthony. Sushant: I didn't want to change my code to an ajax form. I wanted to keep it the way it was. Thanks for your suggestion anyway. Regards. 2012/3/27 Anthony abasta...@gmail.com: Yes, response.js only works for requests for components (made via a

Re: [web2py] Re: Upgrading web2py in Linux

2012-03-13 Thread José Luis Redrejo Rodríguez
2012/3/13 Wikus van de Merwe dupakrop...@googlemail.com: I assume that you have only one application and you keep it separate from web2py: $HOME/workspace/my-project/src  -- your application folder $HOME/workspace/my-project/web2py  -- web2py folder To upgrade web2py to a desired version you

Re: [web2py] Get the IP of the System

2012-02-28 Thread José Luis Redrejo Rodríguez
You can use netifaces, http://alastairs-place.net/projects/netifaces/ El 28/02/2012 11:39, Sanjeet Kumar sanjeet@gmail.com escribió: How we can get the IP address of the system

Re: [web2py] Re: Anyone using Backbone.js?

2012-02-15 Thread José Luis Redrejo Rodríguez
2012/2/15 Anthony abasta...@gmail.com: There are a number of other interesting Javascript MVC frameworks worth checking out as well, particularly those that enable two-way data binding between models and views, such as AngularJS (developed by Google), Batman.js (developed by Shopify), and

Re: [web2py] getting started with dotcloud

2012-01-27 Thread José Luis Redrejo Rodríguez
are here: https://github.com/nus/web2py-for-fluxflex Regards. José L. Thanks, Brad -- Brad Miller On Thursday, January 26, 2012 at 12:13 PM, José Luis Redrejo Rodríguez wrote: 2012/1/26 Brad Miller bonel...@gmail.com: Hi, I'm trying to follow the web2py tutorial that was posted

Re: [web2py] getting started with dotcloud

2012-01-26 Thread José Luis Redrejo Rodríguez
2012/1/26 Brad Miller bonel...@gmail.com: Hi, I'm trying to follow the web2py tutorial that was posted here a while back.  Unfortunately that was written using the older version of the command line tools, so some things just don't exist anymore.  But I'm going back and forth between the new

Re: [web2py] setup web2py with a virtual host on apache

2012-01-10 Thread José Luis Redrejo Rodríguez
2012/1/10 Web2Py Freak halna...@gardeniatelco.com: Dear all, i have a server  and i have a apache installed how can i tell apache to  the when someone asks for www.domain.com  , apache gives it the website at my localhost:8080 ..  how can i do that If you can not run apache on port 80 you

Re: [web2py] Re: utf-8 and pyfpdf

2012-01-02 Thread José Luis Redrejo Rodríguez
Hi Martin, I'm using this in the controller, without any problem: # coding: utf8 ... from gluon.contrib.pyfpdf.pdflabels import PDFLabel import sys reload(sys) sys.setdefaultencoding( latin-1 ) ... def label_parejas(): ...             text=%s\n%s\n%s %s\n%s %

Re: [web2py] Web2Py on Kubuntu 11.10

2011-12-22 Thread José Luis Redrejo Rodríguez
2011/12/22 miroslavgojic miroslavgo...@gmail.com Today I make installation of Kubuntu 11.10 on my VM. In packages I find Web2py and on one click it was instated After some time (1 minute) my Web2py is started Thanks Miroslav Hi Miroslav, Ubuntu/Kubuntu packages are taken from Debian,

Re: [web2py] web2py, amazon ec2 and static pages outside of the application

2011-12-08 Thread José Luis Redrejo Rodríguez
2011/12/8 Marco Tulio Cicero de M. Porto mtcpo...@gmail.com: Hi there! ok, here's the deal: I installed web2py on ec2 following the instructions on the attached file. So far so good. I had it installed and working perfectly. Thing is that now, I want to use on that same server a

Re: [web2py] Re: web2py, amazon ec2 and static pages outside of the application

2011-12-08 Thread José Luis Redrejo Rodríguez
2011/12/8 Marco Tulio Cicero de M. Porto mtcpo...@gmail.com: I was wondering if there was any configuration on Apache that could help on that, so that I could set the php application on www root and the web2py applications on www-data ... That's exactly what explains the recipe

Re: [web2py] autocomplete widget

2011-11-14 Thread José Luis Redrejo Rodríguez
Hi I've worked in a plugin using part of the code of autocomplete widget but using jquery autocomplete and contains insted of like when a third parameter (search_field) is used. It works perfectly in GAE. The idea is being able to look in a field of kind list:string to retrieve the id in the

Re: [web2py] Re: Running web2py in an apache directory

2011-10-24 Thread José Luis Redrejo Rodríguez
Bumping the message as a reminder... El día 21 de octubre de 2011 19:54, José Luis Redrejo Rodríguez jredr...@debian.org escribió: El día 21 de octubre de 2011 19:51, José Luis Redrejo Rodríguez jredr...@debian.org escribió: 2011/10/21 Massimo Di Pierro massimo.dipie...@gmail.com: Can you

Re: [web2py] Re: Running web2py in an apache directory

2011-10-21 Thread José Luis Redrejo Rodríguez
2011/10/21 Massimo Di Pierro massimo.dipie...@gmail.com: Can you show us your routes? The application name is controlies, placed at /var/web2py/applications/controlies a web2py-apache file placed at /etc/apache2/conf.d contains:         WSGIScriptAlias /controlies

Re: [web2py] Re: Running web2py in an apache directory

2011-10-21 Thread José Luis Redrejo Rodríguez
El día 21 de octubre de 2011 19:51, José Luis Redrejo Rodríguez jredr...@debian.org escribió: 2011/10/21 Massimo Di Pierro massimo.dipie...@gmail.com: Can you show us your routes? The application name is controlies, placed at /var/web2py/applications/controlies a web2py-apache file

Re: [web2py] reports in Web2Py

2011-10-13 Thread José Luis Redrejo Rodríguez
2011/10/13 Naleen Yadav naleenya...@gmail.com: Creating reports in Web2Py Hello All, I'm a newbie on web2py and looking to create Reports in web2py, but unable to find something suitable for a newbie on the internet. Tried some videos on vimeo (http://vimeo.com/18601633) but didn't get the

Re: [web2py] xml-rpc service, unicode string

2011-10-04 Thread José Luis Redrejo Rodríguez
2011/10/4 synergetic jandos...@gmail.com: Hello members, I have a following problem. In service.py controller I have -- def call():  return service() @service.xmlrpc def get_modules():    modules =

Re: [web2py] Ubuntu and web2py

2011-09-21 Thread José Luis Redrejo Rodríguez
My recomendation is: install the debian package: python-gluon (install too python-web2py if you want to develop , if you just want to deploy, only python-gluon is needed). Read the /usr/share/doc/python-gluon/Readme.Debian you'll only need to modify the name of your application path in the scripts

Re: [web2py] Re: ANN: ide2py: editor, shell and debugger for web2py (experimental)

2011-08-14 Thread José Luis Redrejo Rodríguez
2011/8/12 Mariano Reingart reing...@gmail.com: Thanks Jose, I've create an issue as this is important to get it working on most platform and versions. http://code.google.com/p/rad2py/issues/detail?id=3 I've sent a mail to the wx-users mailing list, if the error persists, I'll change to

Re: [web2py] Re: web2py book multilanguage

2011-08-12 Thread José Luis Redrejo Rodríguez
2011/8/11 qasimak...@gmail.com qasimak...@gmail.com: Or you can use google translate some how :) Please, don't do that. It's harder to understand the spanish automatic translation than the original text in english. If you don't have a human translator, I prefer to automatically access to the

Re: [web2py] Re: ANN: ide2py: editor, shell and debugger for web2py (experimental)

2011-08-12 Thread José Luis Redrejo Rodríguez
This is my problem (just downloaded using mercurial): Traceback (most recent call last): File main.py, line 790, in module app = MainApp(redirect=False) File /usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py, line 7978, in __init__ self._BootstrapApp() File

Re: [web2py] Re: ANN: ide2py: editor, shell and debugger for web2py (experimental)

2011-08-12 Thread José Luis Redrejo Rodríguez
2011/8/12 Mariano Reingart reing...@gmail.com: Thanks to all who are testing this project! Sorry for the inconveniences with wxPython, it seem that 2.8.10 is too old to run the Advanced User Interface (AUI), I'll look forward this in the wx mailing list to see if there is a workaround. Hi

Re: [web2py] web2py vs. django for Manipulating LDAP Records?

2011-08-11 Thread José Luis Redrejo Rodríguez
There's not a dal interface to ldap, but a auth interface. Some of my colleagues are developing also an in house system to manage the schools ldap system (and using it to learn web2py). Up to now it can manage unix groups , users, and some kind of network hosts , all this info stored in ldap. You

Re: [web2py] ANN: ide2py: editor, shell and debugger for web2py (experimental)

2011-08-11 Thread José Luis Redrejo Rodríguez
Awesome, just tell me if you need a hand to package it for Debian. Regards 2011/8/11 Mariano Reingart reing...@gmail.com: FYI I am pleased to announce of ide2py, an Integrated Development Environment for python and web2py. Although it is still experimental, basic functionality is working:

Re: [web2py] apologies

2011-07-20 Thread José Luis Redrejo Rodríguez
There are a couple of bugs I reported a couple of weeks ago: http://code.google.com/p/web2py/issues/detail?id=324 http://code.google.com/p/web2py/issues/detail?id=319 Both contain suggested patches to fix them, and #324 is specially important for many people. 2011/7/20 Massimo Di Pierro

Re: [web2py] Insert One to many related tables in GAE

2011-07-05 Thread José Luis Redrejo Rodríguez
2011/7/5 howesc how...@umich.edu: GAE will always choose the ID for you (at least with web2py dal, custom GAE keys are not implemented).  You could maybe add an extra field to the province table to store your internal id and use the for lookup when loading the second table. That's the method

Re: [web2py] autocomplete widget does not work on GAE

2011-07-03 Thread José Luis Redrejo Rodríguez
startswith and endswith are not supported in GAE either 2011/7/3 Bruno Rocha rochacbr...@gmail.com: I dont know about autocomplete widget, but, for 'like' in GAE you can use Row.find()         term = something         pages = db(db.table.id0).select().find(lambda row :

Re: [web2py] Insert One to many related tables in GAE

2011-07-02 Thread José Luis Redrejo Rodríguez
2011/7/2 Vasile Ermicioi elff...@gmail.com: GAE is a NoSQL database http://en.wikipedia.org/wiki/NoSQL but you can use a field where you can store a list of ids (one to many relation denormalized) http://web2py.com/book/default/chapter/06#Many-to-Many,-list:type,-and-contains I know, but

  1   2   >