Re: [web2py] Re: Handling (2006, 'MySQL server has gone away') from Scheduler, pythonanywhere

2015-02-03 Thread vld...@gmail.com
sometimes this error (2006, 'MySQL server has gone away') happens when 
parameter 'max_allowed_packet" is too small.


$ sudo vim /etc/mysql/my.cnf
# goto  the [mysqld] section
[mysqld]
 ...
max_allowed_packet=8M   <<-- change this with, for example, 500M

Hope this can help you

Vladyslav Kozlovskyy
Ukraine, Chernivtsi


03.02.15 06:07, Kiran Subbaraman написав(ла):
Looks similar to this open-issue: 
https://github.com/web2py/web2py/issues/733


Kiran Subbaraman
http://subbaraman.wordpress.com/about/
On Tue, 03-02-2015 2:47 AM, Niphlod wrote:
uhm. does pythonanywhere even support a running process outside the 
web one ?


BTW: all "kinky" calls to the db are fail-safed in the scheduler (see 
"wrapped_*" functions), to alleviate locking (albeit primarely for 
sqlite).
This has the added benefit of making the scheduler more resilient 
against blocking, but this "has gone away" sounds like some problems 
with the underlying connectionpool

--
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 "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, 
send an email to web2py+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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 "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to web2py+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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 "web2py-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Pluralization and styles

2014-04-30 Thread vld...@gmail.com

you can try to use markmin in T for styling. You need to write:

T.M('*%s* %%{result} %%{found}', symbols=num_offers)


29.04.14 21:28, Louis Amon написав(ла):

I'm trying to print something like that in my view :

*31* results found


(notice the bold number)

I used the pluralization engine like this:
T('%s  %%{result} %%{found}', symbols=num_offers)

And it gives the right string but obviously not styled.

Other attempts:
T(XML('%s)' + '  %%{result} %%{found}', 
symbols=num_offers)

T(STRONG('%s')+'  %%{result} %%{found}', symbols=num_offers)
STRONG(num_offers) + T(' %%{result} %%{found}', symbols=num_offers)

None of these are working for me.

What's the right way to do this ?
--
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 "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to web2py+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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 "web2py-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.