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/
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
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
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)
-
>
> 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.
>
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:
-
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
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:
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
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
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
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
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
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
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.
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
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
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
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,
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
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
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
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
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:
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
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)
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
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',
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:
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
-
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)
-
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,
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
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)
-
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
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
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
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
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
-
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)
-
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?
--
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
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
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)
-
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.
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
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
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
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,
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
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]
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?
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
53 matches
Mail list logo