[web2py] Re: simplejson -- wasn't this resolved?

2010-07-01 Thread zahariash
Sorry, my fault. I'm using outdated version of web2py... On 1 Lip, 16:19, mdipierro wrote: > That is what we did already. Did I leave something in? > > On 1 Lug, 08:43, zahariash wrote: > > > > > On 1 Lip, 14:02, mdipierro wrote: > > > > No but if the s

[web2py] Re: simplejson -- wasn't this resolved?

2010-07-01 Thread zahariash
On 1 Lip, 14:02, mdipierro wrote: > No but if the syntax is not allowed it would fail web2py at startup. > So I propose to remove whole _import_speedups function... > On 1 Lug, 02:11, zahariash wrote: > > > > > I don't think it is. But we probably don't n

[web2py] Re: simplejson -- wasn't this resolved?

2010-07-01 Thread zahariash
I don't think it is. But we probably don't need it... Because of lack of C version of contrb.simplejson there is no need to trying to load it anyway. On 1 Lip, 07:35, mdipierro wrote: > Is this supported in 2.4? > > On 30 Giu, 18:12, zahariash wrote: > > > &

[web2py] Re: simplejson -- wasn't this resolved?

2010-06-30 Thread zahariash
Error: c_encode_basestring_ascii = None -- Zahariash

[web2py:30952] Re: help with markdown

2009-09-14 Thread zahariash
OK, thanks. On 14 Wrz, 01:03, mdipierro wrote: > ps. I will list you as an author if that is ok. > > On Sep 13, 6:02 pm, mdipierro wrote: > > > > > This is great. Thank you!  I am planning to use it for this: > > >https://launchpad.net/t4 > > > M

[web2py:30914] Re: help with markdown

2009-09-13 Thread zahariash
Code was trimmed... Correct link http://p.linode.com/2985 On 13 Wrz, 23:15, zahariash wrote: > http://p.linode.com/2984 > > from markdown2 import * > > text = ''' > #ada adad sdasd# > *asdasdas* > {{stay **unchanged**, please}} > asdasda > '

[web2py:30913] Re: help with markdown

2009-09-13 Thread zahariash
http://p.linode.com/2984 from markdown2 import * text = ''' #ada adad sdasd# *asdasdas* {{stay **unchanged**, please}} asdasda ''' print markdown(text) result: ada adad sdasd asdasdas {{stay **unchanged**, please}} asdasda ? On 13 Wrz, 21:32, mdipierro wrote: > That is not what I need. I

[web2py:30896] Re: file descriptors leak

2009-09-13 Thread zahariash
It should do the job. On 13 Wrz, 18:03, mdipierro wrote: > we can encapsulate the body of the function in thread lock. > > On Sep 13, 10:53 am, zahariash wrote: > > > > > Ups, in my patch if statement isn't thread safe... > > > On 13 Wrz, 17:35, z

[web2py:30894] Re: file descriptors leak

2009-09-13 Thread zahariash
Ups, in my patch if statement isn't thread safe... On 13 Wrz, 17:35, zahariash wrote: > I think it is. > > On 13 Wrz, 17:31, mdipierro wrote: > > > > > I think is excellent as long as Memcache is thread safe and I assume > > it is. > --~--~-~--~

[web2py:30893] Re: thinking of a new welcome layout using these

2009-09-13 Thread zahariash
Nice. On 13 Wrz, 17:24, mdipierro wrote: > http://www.smashingmagazine.com/2008/07/02/55-free-high-quality-icon-... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send e

[web2py:30892] Re: file descriptors leak

2009-09-13 Thread zahariash
I think it is. On 13 Wrz, 17:31, mdipierro wrote: > I think is excellent as long as Memcache is thread safe and I assume > it is. > > On Sep 13, 10:13 am, zahariash wrote: > > > > > Hello, > > > I don't think, that thread pool is necessary. MemcacheClie

[web2py:30887] Re: file descriptors leak

2009-09-13 Thread zahariash
Hello, I don't think, that thread pool is necessary. MemcacheClient module do synchronous requests, so it needs one socket/thread to not block web2py threads by each other. This is done by using threading.local... So maybe lets try: CUT - --- __init__.py.bak 2009-05-22 06:44:

[web2py:30754] Re: file descriptors leak

2009-09-11 Thread zahariash
I've found similar leak... Using MemcacheClient like described here: http://web2py.com/AlterEgo/default/show/69 from gluon.contrib.memcache import MemcacheClient memcache_servers=['127.0.0.1:11211'] cache.mem=MemcacheClient(request,memcache_servers) is dangerous, because it opens one connecti

[web2py:30703] Re: file descriptors leak

2009-09-11 Thread zahariash
On 11 Wrz, 07:13, mdipierro wrote: > please check if it is fixed. I had to change your fix because it was > not python 2.4 compliant. Revision 1124 works ok. It's fixed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

[web2py:30644] Re: file descriptors leak

2009-09-10 Thread zahariash
> What OS do you use? Debian 5.0.3 > > Can you email me your full name, to log the patch? Zahariash is ok ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to thi

[web2py:30632] file descriptors leak

2009-09-10 Thread zahariash
Hello, I've found some weird behavior of web2py script. After few hours from script start it throw error: OSError: [Errno 24] Too many open files Indeed, there is many attached files: lsof -p 13149 python2.5 13149 www-data 24u REG 202,0 02702 /tmp/ tmpkvWcld (deleted) python2.5