Re: [web2py] Re: GAE Cloud SQL local dev server problem

2012-08-13 Thread Alexei Vinidiktov
Trunk appears to work on Windows now. I think there's a redundant line in there (line 3867): self.folder = folder # line 3867 self.db_codec = db_codec self.folder = folder or '$HOME'+os.sep+thread.folder.split( os.sep+'applications'+os.sep,1)[1] On Tue, Aug 14, 2012 at 1:30 AM, Massimo D

Re: [web2py] Re: GAE Cloud SQL local dev server problem

2012-08-13 Thread Massimo Di Pierro
Ok. this is in trunk. Still need testing, there may be other issues. The $HOME in that line assumes this is running on GAE (or linux) and not on Windows. On Monday, 13 August 2012 13:10:03 UTC-5, Jonathan Lundell wrote: > > Change '/applications/' to os.sep + 'applications' + os.sep > > On Aug 1

Re: [web2py] Re: GAE Cloud SQL local dev server problem

2012-08-13 Thread Jonathan Lundell
Change '/applications/' to os.sep + 'applications' + os.sep On Aug 13, 2012, at 10:40 AM, Alexei Vinidiktov wrote: > The contents of thread.folder: > C:\Users\alexei\Dev\web2py\web2py.googlecode.com\applications\vocabilis\databases > > > On Mon, Aug 13, 2012 at 11:11 PM, Massimo Di Pierro

Re: [web2py] Re: GAE Cloud SQL local dev server problem

2012-08-13 Thread Alexei Vinidiktov
The contents of thread.folder: C:\Users\alexei\Dev\web2py\ web2py.googlecode.com\applications\vocabilis\databases On Mon, Aug 13, 2012 at 11:11 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > any way you can log what is in thread.folder? > > > On Monday, 13 August 2012 10:38:48 UTC-5

Re: [web2py] Re: GAE Cloud SQL local dev server problem

2012-08-13 Thread Massimo Di Pierro
any way you can log what is in thread.folder? On Monday, 13 August 2012 10:38:48 UTC-5, Alexei Vinidiktov wrote: > > It gives me the error: > > self.folder = thread.folder.split('/applications/',1)[1] > > IndexError: list index out of range > > Full traceback: > > ERROR2012-08-13 15:36:00,799

Re: [web2py] Re: GAE Cloud SQL local dev server problem

2012-08-13 Thread Alexei Vinidiktov
It gives me the error: self.folder = thread.folder.split('/applications/',1)[1] IndexError: list index out of range Full traceback: ERROR2012-08-13 15:36:00,799 dal.py:6586] DEBUG: connect attempt 0, connection error: Traceback (most recent call last): File "C:\Users\alexei\Dev\web2py\web

Re: [web2py] Re: GAE Cloud SQL local dev server problem

2012-08-12 Thread Massimo Di Pierro
Can you try replace self.folder = folder or '$HOME/'+thread.folder.split('/applications/',1)[1] with self.folder = thread.folder.split('/applications/',1)[1] On Wednesday, 8 August 2012 18:11:04 UTC-5, Alexei Vinidiktov wrote: > > Ok. I've managed to connect to MySQL from GAE local dev serv

Re: [web2py] Re: GAE Cloud SQL local dev server problem

2012-08-10 Thread Massimo Di Pierro
can you please open a ticket? On Wednesday, 8 August 2012 18:11:04 UTC-5, Alexei Vinidiktov wrote: > > Ok. I've managed to connect to MySQL from GAE local dev server on Windows > if I change line 3845 in dal.py to this: > > self.folder = "" > > instead of (self.folder = folder or > '$HOME/'+thre

Re: [web2py] Re: GAE Cloud SQL local dev server problem

2012-08-08 Thread Alexei Vinidiktov
Ok. I've managed to connect to MySQL from GAE local dev server on Windows if I change line 3845 in dal.py to this: self.folder = "" instead of (self.folder = folder or '$HOME/'+thread.folder.split('/applications/',1)[1]) I don't know if it breaks anything though. On Thu, Aug 9, 2012 at 6:03 AM,

Re: [web2py] Re: GAE Cloud SQL local dev server problem

2012-08-08 Thread Alexei Vinidiktov
The problem is still not resolved in trunk. On Mon, Aug 6, 2012 at 12:56 PM, Alexei Vinidiktov < alexei.vinidik...@gmail.com> wrote: > Here it is: db = DAL('google:sql://vocabilisproject:vocabilis/vocabilis') > > I pass the password and the user name via App Launcher parameters as > suggested in

Re: [web2py] Re: GAE Cloud SQL local dev server problem

2012-08-05 Thread Alexei Vinidiktov
Here it is: db = DAL('google:sql://vocabilisproject:vocabilis/vocabilis') I pass the password and the user name via App Launcher parameters as suggested in the GAE SDK docs: --mysql_user=root --mysql_password=xx --mysql_host=localhost --mysql_port=3306 On Mon, Aug 6, 2012 at 7:59 AM, Massimo

[web2py] Re: GAE Cloud SQL local dev server problem

2012-08-05 Thread Massimo Di Pierro
Can you show your complete connection string (masking any password of course)? On Saturday, 4 August 2012 02:11:30 UTC-5, Alexei Vinidiktov wrote: > > > > On Sat, Aug 4, 2012 at 1:56 PM, Alexei Vinidiktov < > alexei.vinidik...@gmail.com> wrote: > >> Hello, >> >> I'm need hep figuring out how to s

[web2py] Re: GAE Cloud SQL local dev server problem

2012-08-04 Thread Alexei Vinidiktov
On Sat, Aug 4, 2012 at 1:56 PM, Alexei Vinidiktov < alexei.vinidik...@gmail.com> wrote: > Hello, > > I'm need hep figuring out how to set up a local GAE development server > with MySQL. > > MySQL connection parameters are specified via App Launcher application > settings: --mysql_user=root --mysql