is there any error traceback occured?
just an idea why not print the value first? if it correct perhaps you
should change the data type int() or float() and doing calculation
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2
Hi, I dont work with Web2py on a daily basis but when I need a small
project, I tend to come back to it to do it. I always struggle with
computing/calculating values. This time I have two values, one from a db
and one from a form. I want to calculate both. This is what I have for now:
db.defin
Thank you for the replies,
Just to be sure I understand you, are you suggesting doing something like
the following instead?
>>default.py
def entry_point()
db = get_db()
# use database
>>db.py
from gluon.packages.dal.pydal import DAL, Field
def get_db()
db = DAL("sqlite://storage.sql
You could try with css.
1. assign to the component trigger a specific class for example
"link_with_loader"
A(IMG(_src=image), _href=URL('default', 'getit'), _class="link_with_loader",
user_signature=True, cid=request.cid)
2. since web2py adds the "disabled" class to the component trigger whe
This may be doable at the framework level using the response.postprocessing
list or some kind of custom streamer different than the one in
gluon/streamer.py that would sometimes sleep instead of yielding each chunk
immediately.
However, why don't you simply use the configuration of your web
On Wednesday, February 8, 2017 at 12:57:00 PM UTC-5, Tim Korb wrote:
>
> That's good, but it apparently only accepts text as the replacement. I
> really want to have an IMG being displayed.
Yeah, you'll have to implement that yourself.
--
Resources:
- http://web2py.com
- http://web2py.com/b
On Wednesday, February 8, 2017 at 2:32:10 AM UTC-8, Sharjeel Ali Shaukat
wrote:
>
> Currently i want to know , how to allocate bandwidth to users by
> restricting them certain download and upload speed , also it will also
> calculate the bytes on each request they send through browser , Please l
That's good, but it apparently only accepts text as the replacement. I really
want to have an IMG being displayed.
--
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 Is
Load the page containing the plugin integration repeatedly while looking at
memory consumption with system monitor... It is normal that memory growth a
bit, but at some point it should stop growing if it not you can suspect a
memory leak. If I recall, using the Appliance app integration VM was
cras
Looks like an issue with paste.deploy here. If it were me I'd try
reinstalling uwsgi. Did you use a web2py script to install everything on
centos? I'm more of an ubuntu guy and am not familiar with the specifics
of a centos install or how to get web2py on it.
-Jim
On Wed, Feb 8, 2017 at 9:03 A
I restart the nginx, and it is the new log file
2017-02-08 12:28 GMT-02:00 Áureo Dias Neto :
> and the log is only this
>
> 2017-02-08 12:24 GMT-02:00 Áureo Dias Neto :
>
>> on a python shell the import work..
>>
>> from the command 'pip list' : pip: command not found
>>
>> 2017-02-08 12:11 GMT-
On Tuesday, February 7, 2017 at 10:54:45 PM UTC-5, Tim Korb wrote:
>
> Thanks, I'll look at that. Maybe a content= parameter to A(...) would be
> useful, analogous to the one for LOAD(...).
>
Actually, you can do:
A(IMG(_src=image), _href=URL('default', 'getit'), user_signature=True, cid=
requ
and the log is only this
2017-02-08 12:24 GMT-02:00 Áureo Dias Neto :
> on a python shell the import work..
>
> from the command 'pip list' : pip: command not found
>
> 2017-02-08 12:11 GMT-02:00 Jim Steil :
>
>> Or, from a linux shell type:
>>
>> pip list
>>
>> To see what packages are installe
on a python shell the import work..
from the command 'pip list' : pip: command not found
2017-02-08 12:11 GMT-02:00 Jim Steil :
> Or, from a linux shell type:
>
> pip list
>
> To see what packages are installed.
>
> Anyone else know how to disable MySQLdb in web2py?
>
> -Jim
>
> On Wed, Feb 8,
Or, from a linux shell type:
pip list
To see what packages are installed.
Anyone else know how to disable MySQLdb in web2py?
-Jim
On Wed, Feb 8, 2017 at 8:10 AM, Jim Steil wrote:
> Open a python shell
>
> import MySQLdb
>
> Does it work or give you an error?
>
> -Jim
>
>
> On Wed, Feb 8, 201
Open a python shell
import MySQLdb
Does it work or give you an error?
-Jim
On Wed, Feb 8, 2017 at 7:54 AM, Áureo Dias Neto
wrote:
> How to check if mysqldb is installed ? i dont need this for sqlite, right?
>
> i will check now the log and reupload it, thanks
>
> 2017-02-08 11:49 GMT-02:00 J
How to check if mysqldb is installed ? i dont need this for sqlite, right?
i will check now the log and reupload it, thanks
2017-02-08 11:49 GMT-02:00 Jim Steil :
> Is MySQLdb installed on the server?
>
> http://www.web2py.com/books/default/chapter/29/06/the-
> database-abstraction-layer#The-dat
Is MySQLdb installed on the server?
http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#The-database-abstraction-layer
Also, was that they entire uwsgi log? If not, can you upload it?
-Jim
On Wed, Feb 8, 2017 at 7:40 AM, Áureo Dias Neto
wrote:
> i dont want mysql
i dont want mysql, i use sqlite.. how to desactive mysqldb?
and if is permission, how to set, and what's the paths?
2017-02-08 11:35 GMT-02:00 Jim Steil :
> Seems to me there was a problem importing MySQLdb. Is there more to this
> log? Seems like there should be more to that traceback.
>
> I
Seems to me there was a problem importing MySQLdb. Is there more to this
log? Seems like there should be more to that traceback.
If I had to guess I'd say it's an issue with permissions.
Can you go to the python shell and import MySQLdb? Can you do it as the
user running uwsgi?
-Jim
On Wed,
Anyone can help
2017-02-08 0:34 GMT-02:00 Áureo Dias Neto :
> Is here, sorry
>
> 2017-02-08 0:27 GMT-02:00 Jim S :
>
>> What about the uwsgi log?
>>
>> -Jim
>>
>> On Tuesday, February 7, 2017 at 3:42:10 PM UTC-6, Áureo Dias Neto wrote:
>>>
>>> And, the nginx conf file
>>>
>>> 2017-02-07 19:17 GMT
hello, is it possible to have grid export data with left join and groupby
output same like on the screen?
e.g.
def report_do():
table_header = db.do_header
table_detail_0 = db.do_product_detail
table_detail_1 = db.do_stock_detail
groupby = table_detail_1.stock
left = [table_detail_0.on(table_head
Currently i want to know , how to allocate bandwidth to users by
restricting them certain download and upload speed , also it will also
calculate the bytes on each request they send through browser , Please let
me know if its possible
--
Resources:
- http://web2py.com
- http://web2py.com/book
@Richard
I do not know about memory leaks. How to detect a memory leak.
Thanks for the notice.
On Monday, February 6, 2017 at 1:32:00 AM UTC+5:30, Andrea Fae' wrote:
>
> Someone can help me? Thank you
>
> Any people can tell me how to load from database table resources to show
> using
24 matches
Mail list logo