[web2py] Re: Using DB on Module (thread)

2012-05-08 Thread Samuel Mac
If I define de DAL in __init__ and make a query in the constructor (just for trying), it works. But it doesn't on the run method, I can not make any query outside the constructor. *Solved:* I have to define the DAL in the run method again. I dont know why but now it works. def run(self):

[web2py] Re: Using DB on Module (thread)

2012-05-08 Thread Samuel Mac
I've added this line in my code: db = DAL('mysql://mydatabase', folder='applications/gestion/databases',auto_import =True) But the result was the same I got at the beginig: raise errorclass, errorvalue InterfaceError: (0, '') El lunes, 7 de mayo

[web2py] Re: Using DB on Module (thread)

2012-05-07 Thread Samuel Mac
h > web2py thread pooling mechanism. Even if it did not, we do not know the db > driver it thread safe. Each thread must have it's own db=DAL() connection. > > On Monday, 7 May 2012 05:21:17 UTC-5, Samuel Mac wrote: >> >> First of all, I've been searching other g

[web2py] Using DB on Module (thread)

2012-05-07 Thread Samuel Mac
First of all, I've been searching other google group theads and they help me doing all I wanted but now I'm stuck. I was looking for getting some hardware information from a computer using 3 threads. This threads save the info in the Database. To do that i follow the instructions founded in thi

[web2py] Re: I can't update language files

2011-09-22 Thread Samuel Mac
#x27;, } But, If I make some changes on the es-es.py file now, all the changes will be overwritten when user logs off. This is how es-es.py file remains after that: # coding: utf8 { '%Y-%m-%d': '%Y-%m-%d', '%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S', 'Are you su

[web2py] Re: I can't update language files

2011-09-21 Thread Samuel Mac
wrote: > As that thread recommends, do you have this > installed:http://sourceforge.net/projects/pywin32/? > > > > > > > > On Wednesday, September 21, 2011 7:05:53 AM UTC-4, Samuel Mac wrote: > > > I don't know if it helps, but I've read this similar pos

[web2py] Re: I can't update language files

2011-09-21 Thread Samuel Mac
I don't know if it helps, but I've read this similar post this morning: http://groups.google.com/group/web2py/browse_thread/thread/ade440fe69428517/9bbb4d362d74ecad One of the first answers is another question about Windows. I'm using windows now, is this a problem? On 21 Set, 12

[web2py] Re: I can't update language files

2011-09-21 Thread Samuel Mac
Both. First of all I was editing es-es.py file using an editor. But I read in this group a recomendation using web admin app. But I still have the same problem: If I edit the es-es.py file, it gets reseted when another user logs in. On 21 Set, 12:51, Kenneth Lundström wrote: > Have you tried to u

[web2py] I can't update language files

2011-09-21 Thread Samuel Mac
Hello, I've tried to edit my language files but my changes are all the time overwritten when user logs off. For example, on my menu.py I have: (T('Adm Area'),False,URL('appadmin','index'),[])] and in my es-es.py language file: 'Adm Area': 'Área administrativa', The problem is, when the user log o

[web2py] Unicode encoding

2011-09-20 Thread Samuel Mac
Hi, I've been searching for older threads but I can't find the solution, so I decided to ask you. I have a problem with the encoding. For example, in the menu.py file, one of my fields is: (("Área Téncica"),False,URL('default','vision_casos'),[]), But when I run the aplication, it is showed as: "?