in controller
```
import plotly.express as px
def my_view():
# Assuming df_dataframe is your Pandas DataFrame
fig = px.line(df_dataframe, x="datetime", y="load_avg_fifteen")
# Convert the figure to HTML
plotly_chart = fig.to_html(full_html=False, include_plotlyjs='cdn')
retur
pip install urllib3_secure_extra
in my virtual env solved the problem.
Thank you Tom for pointing to the solution, I had missed that thread.
On October 27, 2023 at 16:59:18, Tom Clerckx (tcler...@gmail.com) wrote:
I think this is the same issue as was discussed a few months ago:
See this threa
Hi Jim, this is a test message
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
Hi,
I am running web2py Version 2.25.1-stable in virtualenv (python 3.9.5, it
happens also in python 3.10.10)
After activating the virtualenv, I installed requests
$ pip install request
$ pip show requests
Name: requests
Version: 2.31.0
Summary: Python HTTP for Humans.
Home-page: https://request
Hi, Running web2py in virtualenviroment (python 3.9.5, it happens also in
python 3.10.10)
ERROR:Rocket.Errors.Thread-3:Traceback (most recent call last):
File "/Users/z/dev/web2py/gluon/rocket.py", line 1294, in run
self.run_app(conn)
File "/Users/z/dev/web2
Thank you
But what if the left join is made on an arbitrary select, not an already
defined table?
Maybe I am missing something evident
On February 20, 2022 at 18:15:50, jonatha...@whatho.net (
jonathan.cl...@whatho.net) wrote:
http://www.web2py.com/books/default/chapter/29/06/the-database-abs
Hi,
How can I reproduce this LEFT OUTER JOIN in PyDAL ?
SELECT name
FROM doc
LEFT JOIN (
SELECT name
FROM X
INNER JOIN ...
WHERE ...
) T ON ( T.name = name)
WHERE
T.name IS NULL
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation
>>>
>
> You should be able to tell the version by the startup message. If you are
> actually running Python 2 and the code fails, copy and paste the actual
> error message you get and we'll puzzle it out.
>
> Warm regards,
> Joe
>
>
>
>
> On Frida
Hi folks, if you'll pardon the corny title, I am brand new to web2py (so
excited to discover it) and I'm just working may way through the book. In
Chapter two, the section on types, I tried to run the examples, but I got
error messages. Googling around it seemed to work better if I went one of
SQLFORM.widgets.autocomplete has the parameter: at_beginning that you can
set to False
https://web2py.readthedocs.io/en/latest/_modules/gluon/sqlhtml.html#AutocompleteWidget
widget = SQLFORM.widgets.autocomplete(request, ..., at_beginning=False,
)
On September 15, 2018 at 10:15:25 PM, An
It seems it did not show up in the list yet.
On June 22, 2018 at 16:46:48, Al Ex (a22...@gmail.com) wrote:
Is there a way to translate into a single DAL this sql query?
SELECT
SUM(IF(is_a = 'T',1,0)) as a,
SUM(IF(is_b = 'T',1,0)) as b
FROM table;
It counts the tim
Is there a way to translate into a single DAL this sql query?
SELECT
SUM(IF(is_a = 'T',1,0)) as a,
SUM(IF(is_b = 'T',1,0)) as b
FROM table;
It counts the times is_a and is_b are True.
Fields 'is_a' and 'is_b' are declared in DAL as boolean.
Thank you
--
Resources:
- http://web2py.com
- ht
What about removing this:
{{=T('Sign up')}}
from layout.html?
On March 11, 2018 at 4:42:52, Andrea Fae' (and...@gmail.com) wrote:
Sometimes problems arises. I need to eliminate "sign up" menu item from
LOGIN but nevertheless I inserted this line
auth.settings.actions_disabled.append('register
Probably, you also need to add "dropdown-menu-right" to this:
Final:
For explanations see:
https://v4-alpha.getbootstrap.com/components/dropdowns/#menu-alignment
On March 5, 2018 at 2:12:54, Andrea Fae' (and...@gmail.com) wrote:
I have different apps in my web2py environments. Web2py app
In layout.html, instead of
you can try:
On March 9, 2018 at 05:12:50, Andrea Fae' (and...@gmail.com) wrote:
Yes, I clear the cache
Look attached file. Thanks
Il giorno giovedì 8 marzo 2018 03:00:53 UTC+1, Anthony ha scritto:
>
>
>
> On Wednesday, March 7, 2018 at 2:40:02 PM UTC-5, Andre
On Mar 6, 2018 09:02, wrote:
> Then one web2py instance can only handle one request, that's right?
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues
Yes, I saw them.
At the end I am trying to get along with convert_book.py (which is in
web2py_book/private).
Thank you
From: Marlysson Silva
Reply: web2py@googlegroups.com
Date: April 10, 2017 at 22:57:04
To: web2py-users
Subject: [web2py] Re: pdf output of web2py-book app
Here have so
I have downloaded and used the book app
https://github.com/web2py/web2py-book to write some documentation.
The document's markmins and images are in the folder /sources/xx-doc-lang,
together with updated chapters.txt, info.txt and latex_template.tex
mimicking the original web2py documentations fol
Thank you. Formname was already assigned.
Yes I need to show the code, I will simplify it a little, at the moment it
does not look so nice to read, maybe during this process the bug will also
show up ;-)
--
Al Ex
From: Anthony
Reply: web2py@googlegroups.com
Date: June 17, 2016 at 10:28:39
In a index.html view I load a component "test.load" containing an
SQLFORM.grid with searchable=True.
When I perform a search, the results do not appear inside the index.html
any more.
A new page "test.load” opens with the results.
For sure I am doing something wrong, or I am missing something, bec
One alternative could be to
1) install princexml in your server (http://www.princexml.com), check the
licence for commercial use
2) in controller:
def print_pdf():
response.headers['Content-Type']='application/pdf'
from subprocess import Popen, PIPE
# on windows (full path of binary)
> Kiran Subbaramanhttp://subbaraman.wordpress.com/about/
>
> On Sun, 15-02-2015 4:58 AM, al ex wrote:
>
> How can I make that when the accepted language is english the same
> app/ctr/fnc returns the url as
>
> domain/text-in-english
>
> and when
How can I make that when the accepted language is english the same
app/ctr/fnc returns the url as
domain/text-in-english
and when tha language is spanish, it returns the url as
domain/text-in-spanish
With pattern routes I can correctly route the incoming request from
domain/text-in-english
dom
/routes.py, it works but randomly.
>>
>> Once every two or three times I refresh the page, I get:
>>
>> "invalid request"
>>
>>
>>
>>
>> On Mon, Feb 2, 2015 at 7:50 PM, Michele Comitini
>> wrote:
>>
>>> you still need yo
resh the page, I get:
"invalid request"
On Mon, Feb 2, 2015 at 7:50 PM, Michele Comitini wrote:
> you still need your routes.py in place:
>
> routes_out = (
> ('/app/ctr/fnc', r'/AAA'),
>
> )
>
>
> 2015-02-02 11:23 GMT+01:00 al
I have setup this route in /web2py/applications/app
routes_in = (
(r'/AAA/?', '/app/ctr/fnc'),
)
routes_out = (
('/app/ctr/fnc', r'/AAA'),
)
With rockets, on localhost, it works fine.
On production server nginx 1.7.9, uwsgi 2.0.8, python 2.7.6, if I
repeatedly refresh /AAA, sometimes
Is it possible to use current.T in routes.py, to recognize an incoming
request based on current.T.current_language and reroute it to the correct
controller / function?
Can you give me an example using pattern-based routing?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentatio
myimage.jpg>"
/>
-- Forwarded message --
From: al ex
Date: Mon, Jan 12, 2015 at 5:11 AM
Subject: https and rescr.it responsive image
To: web2py@googlegroups.com
I am trying resrc.it (http://www.resrc.it/tutorials/preview) to manage
responsive images.
I use the scheme they sugge
I am trying resrc.it (http://www.resrc.it/tutorials/preview) to manage
responsive images.
I use the scheme they suggest, on img tag:
https://trial.resrc.it/s=w300m/https://mydomain/myapp/static/images/myimage.jpg";
/>
where s=w300m is a paramter/value to get the image resized.
This works fine w
I use Sublime Text 3 and installed
Pakage Manager, SublimeLinter and Pylint as indicated in
http://www.sublimelinter.com/en/latest/installation.html
Then, in Sublime Text | Preferences | Package Settings | SublimeLinter |
Settings - User
I have set "linters" / "pylint" / "paths" as follows
{
Thank you. It worked,
On Sun, Jun 26, 2011 at 11:22 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> Try
>
> form=SQLFORM.factory( Field('address', label=T('Address')),
> formstyle='table2cols')
>
>
>
>
> On Jun 25, 11:59 pm, alex wrote:
> > Hi all,
> >
> > In a SQLFORM.factory gene
Thank you, I know about him. But I could not get it to work.
I was hoping to find some recipe like django tabularinline or other
ready-made widgets...
Hello, I'm new to web2py, and I do not know how to do multiple file
uploads in a single form. For example, the loading of multiple images.
If a simple model of the following fields:
db.define_table ('img',
Field ('title'),
Field ('img', 'upload'),
)
What exactly should I write in the controller a
Ah, belongs() + a clever select SQL.
Thanks.
Al
On Jun 29, 7:04 pm, mdipierro wrote:
> If I understand:
>
> for row in db(db.link_table.table1==r.id)
> (db.table2.id==db.linked_table.table2).select(db.table2.id,db.table2.other):
> print row.id, row.other
>
> if no doub
ought to be something cleverer that I can
do, especially given that r has a set containing the rows of
link_table that contain the entries of table2 that I want. But I can't
figure out how to leverage that set into a shorter query.
Thanks,
Al
updated - not static - so I cannot put all the
keywords into the meta descriptions beforehand.
Al
--
Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en
Hi,
I have built my web site, now how does web2py enable people be able to
find it? is there any helper function or built-in variables which I
can use? Also in my SQLite database, there is a column called keywords
which I like to be indexed, is there any simple SEO techniques I can
follow?
Al
Would this work in GAE which does not handle table join? or the DAL
automatically handle this for you?
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group,
here:
http://joomportal.com/download-2069.html
Could anyone share how they incorporate such templates or any other
compatible ones into web2py?
Al
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@
yownapp to make it work on GAE
Al
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com.
For
Is there a data model of this demo?
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com.
For more option
Sorry I forgot to post the console error for the previous message:
*** Running dev_appserver with the following flags:
--admin_console_server= --port=8012
Python command: /usr/bin/python2.5
INFO 2010-03-18 13:30:11,558 dev_appserver_main.py:399] Running
application myownapp on port 8012: h
Change the port does get me to the welcome screen on the local GAE,
click into admin interface gives "admin is disabled because insecure
channel"; if I change http to https then it gives me "Secure
Connection Failed: SSL received a record that exceed the max possible
length:
Could some one share w
thank you all
I will try me best
I hope I can fix it
Kind Regards
On Mar 17, 2:52 pm, Mengu wrote:
> to your console.
>
> On 17 Mart, 13:41, mohammed al-moustady
> wrote:
>
>
>
> > thank you hamdy but it is irrelevant to the code.
>
> > BTW
> > mdip
The appadmin can be run on GAE, but it cannot run on local GAE SDK.
(note: I have been thinking it might due to some basic settings, not
just my code, which I have overlooked, as running T3 and C.R.M
appliances have the same problem). I have customised myapp according
to the web2py manual to suit G
thank you hamdy but it is irrelevant to the code.
BTW
mdipierro
do you mean print statement in the code itself? I thought it was s
special function..
ok even If I do these print statements were would it print to?
On Mar 17, 10:16 am, "hamdy.a.farag" wrote:
> Hi Mohammed,
>
> I faced a problem l
/af65b49a747bfd38?lnk=gst&q=gae+migrate#af65b49a747bfd38
Al
On Mar 17, 12:16 pm, mattynoce wrote:
> hi, i've looked at some posts but can't seem to make this work. i can
> get appadmin to work on my local version of gae launcher (on a mac),
> but when i upload it, i can&
Mar 16, 3:39 am, mohammed al-moustady
> wrote:
>
>
>
> > here is my db.py
>
> > db.define_table('time_table',
> > Field('time_in','time'),
> > Field('time_out','time')
> > )
>
> > d
here is my db.py
db.define_table('time_table',
Field('time_in','time'),
Field('time_out','time')
)
db.define_table('years',
Field('year_number','string')
)
db.define_table('buildings',
Field('b_number','string')
)
db.define_table('levels',
Field('l_number','string')
)
db.de
share how they deploy T3 or CRM into GAE, what changes in
the app.yaml or any other setting is required.
Cheers
Al
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubsc
Hi,
Has anyone deploy apache with SSL for web2py successfully? All the
scripts available seems to be linux oriented.
Al
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegrou
Hi,
Can anyone advise how I can setup web2py to start automatically when
the machine is turned on? i.e the services should all be started
without having to login.
How can that be done with plist and startup items?
Cheers
Al
--
You received this message because you are subscribed to the Google
home page of myapp.
As for the Mac, what you mentioned was correct, I installed the
stunnel 4.27_0 package using macports, but the executables are in the /
opt/local/bin are called stunnel and stunnel3. Haven't got time to
solve this yet...
Cheers
Al
On Feb 22, 6:11 am, Brian M wrote:
> A
Brian,
Finally I found the mistake which causes all this trouble in accessing
the non-admin pages, I had the following line in the default.py in
myapp:
return dict(form=form, images=images, admin = admin)
On Feb 22, 6:11 am, Brian M wrote:
> Al,
>
> I setup a stunnel server on Win7 w
o set up stunnel, but when I
run sudo stunnel3 I got the following error:
"inetd mode must define a remote host or an executable"
Anyone familiar with mac can give some tips on how to solve this
Cheers
Al
--
You received this message because you are subscribed to the Google Groups
th to
remove.
I also have another mac which I tried to set up stunnel, but when I
run sudo stunnel3 I got the following error:
anyone familiar with mac can give some tips on how to solve this:
inetd mode must define a remote host or an executable
Cheers
Al
On Feb 12, 8:09 am, Brian M wrote:
sing apache+mod_wsgi
>
> just download and run
> this:http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh
>
> It will setup everything for you behind a single apache server.
> I think this easier than rails actually.
>
> Massimo
>
> On Feb 10, 9:27 am, Al
to me or point me
to the right documentations. Thanks.
Cheers
Al
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2p
I tried to follow the instructions on
http://www.web2py.com/AlterEgo/default/show/140,
but on the second step I get an error: "Unable to load config info
from /usr/local/ssl/openssl.cnf" when creating the certificate
Was the instruction meant for linux/Mac OS X? Any advise?
Al
On Fe
.py but never
quite successful, as I kept getting some tickets, I must have deleted
more than what is required.
Al
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To un
I did try https but also with no success. Also querying the port of
this server (using portqry) gives NOT LISTENING. If the web2py built-
in server is running on port 8000, why does it say not listening?
--
You received this message because you are subscribed to the Google Groups
"web2py-users"
I have not "integrate" it with the w2k3 server, I just click the
web2py.exe and run the built-in server. Do I need to start the server
in a special way so that I can use https to gain admin access? Any
setting I have to twist in this Cherry web server?
Al
--
You received this messa
the search function (ajax, controllers, views,
etc), I have spent the whole day and can't get it to work. I just want
to search on two fields - Title and Keywords of a table - a generic
search would also be good if the performance is not too bad
Al
--
You received this message because you ar
- e.g, commenting a few lines of codes. As the
person who will be doing some data entry into my application cannot
sit close to the windows server, so I am kind of stuck.
Al
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to
lot of magic functions which can
be used to make things a lot simpler than other framework or
languages.
Cheers
Al
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubs
66 matches
Mail list logo