[web2py] Re: again on javascript chart

2016-05-12 Thread pang
In the pandas tutorial they use matplotlib, so I'd follow that path. I think there have been questions already on how to embed matplilib in web2py. But a general search for matplotlib in the browser will give you several options: http://mpld3.github.io/

[web2py] Re: Q4web2py

2016-02-08 Thread pang
You need to edit the values, no? If the values are all numeric, then handsontable will work. I posted one example here: http://www.web2pyslices.com/slice/show/2042/handsontable-plugin-for-a-spreadsheet I modified that code sample to paginate the results and a few other minor things, but you'll

[web2py] Re: why you should upgrade to web2py 2.13.4

2016-01-09 Thread pang
El sábado, 26 de diciembre de 2015, 9:22:27 (UTC+1), Massimo Di Pierro escribió: > > - to help us make sure we did not break backward compatibility. If your > existing app does not work with 2.13.4 (and it should) you give us a chance > to fix the problem. If no, any potential incompatibility

[web2py] Re: Matplotlib

2015-10-02 Thread pang
You can also use this: http://mpld3.github.io/index.html If I understand correctly, once you provide some static libraries, you can serve your plots as plain html, or even json, in your views. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Web2py - Front-end performance optimization tutorial

2015-09-17 Thread pang
> > I also noticed in the source code that puting main.css.gz in the same > directory as main.css will automatically serve the gzipped version with the > correct headers : that's pretty sweet. > I didn't know about it before though (it isn't documented), so I built my > own gzip management. >

[web2py] Re: How does 'default/user' works?

2015-09-12 Thread pang
Why don't you use a debugger and watch how it runs? I recommend pudb, por example: pip install pudb Then write from pudb import set_trace; set_trace() in the controller, for instance, before auth is called. Then run web2py from the command line python web2py.py -- Resources: -

[web2py] Upload files via ajax using jquery.form

2015-08-11 Thread pang
The web2py book says: Because Ajax post does not support multipart forms, i.e. file uploads, upload fields will not work with the LOAD component This is a pity, as we are expected to split backend and frontend these days, and ajax comes handy. I have found other people hitted the same

[web2py] Re: always https

2015-08-09 Thread pang
but i don't understand why when i point the ip of the server for the default app it always go for https. The instructions in the web2py book don't do that, they configure both http and https, client's choice. The install script has changed, however, and now redirects http to https:

[web2py] Re: plugin for handsontable

2015-08-03 Thread pang
El lunes, 3 de agosto de 2015, 12:11:13 (UTC+2), Tim Richardson escribió: Lazy question ... how easy is it to theme like web2py widgets / menus etc? The plugin just adds a big handsontable with two buttons. I used the handsontable-bootstrap compatibility, and that's about all I know about

[web2py] Re: distinct based on more than 1 field

2015-07-11 Thread pang
El domingo, 28 de junio de 2015, 10:06:53 (UTC+2), Davy Jacops escribió: Villas's solution works indeed, and I can build an SQLTABLE based on the rows now. Thank you. (orderby is not required) Consequence is that SQLFORM.grid or smart grid cannot be used in this case? (since there is no

Re: [web2py] Re: New feature in trunk: API tokens

2015-06-29 Thread pang
Hello: I'm actually interested in a way to send user notification emails with custom links, so that a click sends the user to the website and also logs the user in automatically. Is that what these tokens are for? If they are, I don't see why I would use the decorator requires_login some

[web2py] Re: Debugging Web2py applications.

2015-06-06 Thread pang
I recommend you the debugger pudb: https://pypi.python.org/pypi/pudb Just write: from pudb import set_trace; set_trace() *anywhere* in your code, and you can print whatever you want, move back and forth, and run code just at the precise spot that you want to understand better. I think it's

[web2py] Re: What is the best way to do software testing in web2py?

2015-05-04 Thread pang
Not a dumb question, but it has been asked already! For example: https://groups.google.com/forum/#!searchin/web2py/test/web2py/cPN0m-iQNqc/1r0Q6TYY_f4J https://groups.google.com/forum/#!searchin/web2py/test/web2py/wsob6MVojc4/bFkiXrBBFZYJ

[web2py] Re: upload e CASCADE delete

2015-04-17 Thread pang
El miércoles, 15 de enero de 2014, 15:39:07 (UTC+1), Anthony escribió: The cascading delete is handled by the database, so the web2py DAL is not executing the delete from the db.allegato table and therefore doesn't have the opportunity to run the _before_delete and _after_delete callbacks

Re: [web2py] Re: Crud is deprecated?

2015-04-11 Thread pang
El sábado, 11 de abril de 2015, 6:19:20 (UTC+2), Massimo Di Pierro escribió: We never officially said it but we have not touched the crud code in more than 2 years. No bugs have reported but we have no intention of adding functionality since better functionality if available in SQLFORM now.

[web2py] Re: Triggering a one-time migration when schema changes

2015-04-07 Thread pang
El martes, 7 de abril de 2015, 17:53:14 (UTC+2), Niphlod escribió: When you need it, set migrate=True, hit appadmin one time to let the migration happen, then set it to False. How about using python web2py.py -S your_app -M instead of hitting appadmin? The reason is that I disable the app

[web2py] Re: WEB2PY Certificate ?

2015-03-26 Thread pang
El miércoles, 25 de marzo de 2015, 4:19:31 (UTC+1), Massimo Di Pierro escribió: Anyway, it would be nice to have more material about teaching web2py and/or teaching with web2py. Perhaps we could crowdsource the effort. If I have a list of 10 topics that people would want me to cover in

[web2py] Re: Please help us test the 2.9.12 binaries

2015-03-01 Thread pang
In my app I also have several errors importing Table and Row from DAL in modules. They sure can be fixed, but there is no hint at the changelog, and web2py used to advertise as has never broken backwards compatibility. I kindly suggest indicating the required changes in the changelog, instead

[web2py] Sharing tables with odoo

2015-02-08 Thread pang
Hello: I have a web2py application in production, and lately I've been asked to add too many features that already exist in erp systems like odoo (known before as openerp). So I'm considering the alternatives: - Forget odoo, write everything I need from scratch in web2py - Forget my app,

Re: [web2py] Re: Question about web2py roadmap.

2015-02-08 Thread pang
On Sunday, February 8, 2015 at 5:51:15 AM UTC+1, Massimo Di Pierro wrote: Now the fact that one can use them in controllers does not mean one should do that. But the FORM helper is extensively used in the controllers in the web2py manual. And complex forms usually contain tables, or may be

[web2py] Re: why use the admin interface, at all?

2015-01-28 Thread pang
To me the ipython shell: python web2py.py -S your_app_here -M is incredibly cool and useful, while it's a pain to use the admin shell, with very poor history and copy-paste. I guess this shell would very easy to embed in your favorite GUI, if you use one. I would place that one command line

Re: [web2py] Re: Electronic voting anybody?

2014-12-17 Thread pang
El lunes, 13 de agosto de 2012 02:43:48 UTC+2, Changju escribió: (I had already read the articles on the Asterisk but I didn't get big picture of Asterisk.) maybe you're interested in the asterisk chapter of the book Architecture of Open Source Applications. I haven't read that chapter but

[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-12-14 Thread pang
https://lh6.googleusercontent.com/-vlz1xlvEvkU/VI11l_BlzKI/AAU/hDIBLXesoj8/s1600/overlay_icons_in_auth_navbar.png I also had overlay icons, in the auth navbar, as shown. To solve it I had to edit gluon/tools.py:1536 def bootstrap3(): # Default web2py scaffolding

[web2py] Re: nginx one ip two web2py applications two non web2py websites

2014-12-01 Thread pang
If by two web2py apps you mean two different web2py installations (with the web2py code duplicated, so that they can run different versions of web2py, for example), then I can say: we recently followed this tutorial:

[web2py] Re: translating the views

2014-10-03 Thread pang
ok,an interface in the backoffice for people to translate is not hard, and I can embed a javascript editor so that they can use strong, em, bullets, etc! But then: how would you plug the other traslation engine into that one? I don't want to keep two separate things. Would you just

[web2py] Re: translating the views

2014-10-03 Thread pang
Just a shortcut for {{=MARKMIN(T('**bold** this text'))}} ?? Any other advantage? El miércoles, 1 de octubre de 2014 18:52:43 UTC+2, lyn2py escribió: Translation Markmin is available. T.M('**bold** this text') -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

[web2py] Re: translating the views

2014-10-01 Thread pang
Let me check if I got your idea: You mean I should create a table (slug,lang)-text db.define_table('texts', Field('slug', 'string'), Field('language', 'string'), Field('text', 'text') ) and then use it in controllers and views like this: def my_controller(): ... return

[web2py] add static files to header from a module

2014-08-13 Thread pang
Dear all: In the process of moving functionality from models to modules, I'm trying to add some filesto the header. When the file was in models, I did: response.files.append(URL('static', 'jqplot/jquery.jqplot.min.js')) response.files.append(URL('static',

[web2py] Re: Implementing A Large Scale Engineering Equations Calculator in web2py

2014-08-12 Thread pang
You may want to look into the Sage software (python distribution of scientific libraries and python goodies + a consistent interface), specifically the interact feature: http://interact.sagemath.org/ http://wiki.sagemath.org/interact the sage cell server:

[web2py] Re: Open source examples of good practice for sizable web2py projects

2014-06-30 Thread pang
El domingo, 29 de junio de 2014 23:25:20 UTC+2, Niphlod escribió: - where to place and how to organize the tests a few slices and projects exist on testing web2py. Unfortunately there's yet no recommended way officially proposed by web2py So some examples would be nice -

[web2py] Re: Open source examples of good practice for sizable web2py projects

2014-06-30 Thread pang
El domingo, 29 de junio de 2014 23:20:06 UTC+2, Carlos Zenteno escribió: Maybe check Sahana.org Sorry, but that's a joomla site and I don't see how that's related to web2py... did you mispell -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Open source examples of good practice for sizable web2py projects

2014-06-29 Thread pang
Hello: I'm about to start my next sprint with my project karakolas, and this time the main goal is to clean, refactor, tidy... I've read the web2py book, but I need advice about good practice when a web2py project starts to become too complicated. I don't have time to use a frontend framework,

[web2py] gluon.shell does not import models

2014-03-27 Thread pang
After reinstalling ths operating system, I try import gluon.shell gluon.shell.run('karakolas',import_models=True) and gluon.shell.run('karakolas/pedir') but in both cases, the name db is not in locals. It may be the python version. I use python2, but gluon.shell may be calling python, which

Re: [web2py] Free web2py hosting for a free software web2py application

2014-03-26 Thread pang
I've managed to make karakolas work on pythonanywhere without any loss in functionality. I just had to install a latex package locally. It's an interesting service, it really has batteries included. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Free web2py hosting for a free software web2py application

2014-03-21 Thread pang
I forgot to say something important: karakolas depend on latex and numpy, althought that one could be made optional. I don't know where to look for a list of available software, but I guess there's no latex. I'm researching pythonanywhere and koding.com, that 黄祥 suggested. Thanks everyone for

[web2py] Re: Free web2py hosting for a free software web2py application

2014-03-21 Thread pang
El viernes, 21 de marzo de 2014 19:44:41 UTC+1, Massimo Di Pierro escribió: interesting project. :-) It has a lot of to do with the first paragraph of the web2py book (many groups still use google docs): I believe that the ability to easily build high quality web applications is of

[web2py] Free web2py hosting for a free software web2py application

2014-03-20 Thread pang
Hello, I write most of the code for *karakolas, a free software web2py application for managing grupos de consumo*. These are asociations of people that join their shopping baskets so that they can order their food directly from the local farmers, taking into account ecological, social and

[web2py] Re: Best practice for a development environment together with a live environment

2014-02-10 Thread pang
I just started using mercurial with bookmarks, it's supposed to be very much like git. It's something great! I work on the trunk head, but when I spot a bug, I update to stable, fix it, then update to trunk and merge it. The bug is fixed in both versions, but I only had to type once. It even

[web2py] Re: response.menu links alt attribute and target=blank

2014-01-27 Thread pang
Sorry to revive this old thread, but using Anthony's solution, a click on the menu entry both opens the link in a new page and in the current page. My bet is this only happens with the new bootstrap menus, and it didn't happen with the old superfish ones. -- Resources: - http://web2py.com -

[web2py] Re: response.menu links alt attribute and target=blank

2014-01-27 Thread pang
Found the bug: https://code.google.com/p/web2py/issues/detail?can=2start=0num=100q=menucolspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summarygroupby=sort=id=1270 and posted a solution. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: forgot password not working anymore

2014-01-25 Thread pang
El viernes, 24 de enero de 2014 10:40:20 UTC+1, Bastiaan van der Veen escribió: The problem is I get no exception, error or something else. The form posts and then reloads as if nothing happened. Does it work on the default welcome app? And anyway, what's your web2py version? --

[web2py] Re: forgot password not working anymore

2014-01-23 Thread pang
If there's no error message it may be something different. Please copy the error trace, and tell us your web2py version number. El jueves, 23 de enero de 2014 16:09:44 UTC+1, Bastiaan van der Veen escribió: Still not working for me, the forgot password form behaves exactly the same as

[web2py] Re: forgot password not working anymore

2014-01-15 Thread pang
I have the same problem, and it doesn't work remotely. Just for reference, I saw it is corrected in the latest version. It was line 2918 in tools.py: user = table_user(**{userfield:form.vars.get(userfield)}) instead of user = table_user(**{userfield:form.vars.email}) Regards El

[web2py] Re: 2 domains served by the same web2py

2013-10-26 Thread pang
A simpler approach is to rewrite the default controller in the default app, using request.url to get the url and redirect accordingly. Probably not optimal. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] upgrade your own app

2013-06-24 Thread pang
How do you guys release upgrades of your own apps? The setup is: - You write a web2py app and release the code. - Several people install it on their servers. - They change the database connection string, and little more. It works for real. - Over time, they customize css files, even some views.

Re: [web2py] Re: upgrade your own app

2013-06-24 Thread pang
I was looking at comparisons of such websites, but I though that must be a common issue fo web2py developers, so that's why I asked. I can design the app in such a way that this problem does not arise, but it would take more work and I would be wasting the great admin interface. My time is

[web2py] Re: /var/.htaccess and Internal Server Error

2013-04-15 Thread pang
El lunes, 15 de abril de 2013 01:13:14 UTC+2, LightDot escribió: The .htaccess is an Apache issue, doesn't have anything to do with web2py as such. Better said, it's not really an Apache issue either, as the .htaccess and Apache worked as expected, according to the instructions in the

[web2py] /var/.htaccess and Internal Server Error

2013-04-14 Thread pang
Hello: After a complex migration, I was getting errors, nono of my web2py sites was working: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [no address given] and inform

[web2py] Re: some features I implemented

2013-04-12 Thread pang
Login is an email, and got obfuscated.It is tester at the domain example.com: tester (a) example.com El viernes, 12 de abril de 2013 01:17:21 UTC+2, Anthony escribió: I'm getting an Invalid Login error with the login you provided. On Thursday, April 11, 2013 5:58:29 PM UTC-4,

[web2py] Re: some features I implemented

2013-04-12 Thread pang
El viernes, 12 de abril de 2013 01:51:33 UTC+2, Alan Etkin escribió: RTable builds a kind of spreadsheet from any table. The columns are html input for fields of type string or number, selects for references or when the options are limited, and so on. Unless I'm missing something, that's

[web2py] Re: some features I implemented

2013-04-12 Thread pang
db.define_table('pais', Field('nombre', unique=True), Field('continente', 'string', requires=IS_IN_SET(CONTINENTES)), Field('es_UE', 'boolean', default=False), format='%(nombre)s',) and the controller: @auth.requires_login() def sheet(): tablename = request.args[0]

[web2py] Re: OffTopic Google+

2011-07-10 Thread pang
Do you think it will eventually become federated with a server we can install like they did with google wave, or will it only run on their servers?

[web2py] Re: CODE, syntax higlighting and missing spaces

2011-05-09 Thread pang
On 9 mayo, 11:29, rixder pszurp...@gmail.com wrote: Solved... I've added: div.comment table tbody tr td pre {     white-space: pre !important; } I don't know if this is related, but I had the same problem using the code widget in plugin_wiki `` ... ``:code and solved it removing two lines