In python you dont use curly brackets to notify compiler about capsulation,
you do it with indentation, that is really important. So the connection
line better look like this;
def get_connection():
return rdbms.connect(instance=CLOUDSQL_INSTANCE, database=
DATABASE_NAME, user=USER_NAME, password=PASSWORD, charset='utf-8')
On Thursday, September 5, 2013 10:38:33 AM UTC+3, Wonchan Lee wrote:
>
> Hi,
> I'm beginner of appengine for python.
>
> When I running example of appengine tutorial(
> https://developers.google.com/appengine/training/cloud-sql/application_with_local_mysql),
>
> than I got an following error message.
>
> TypeError: connect() got an unexpected keyword argument 'user'
>
>
> It seems to be below code.
>
> def get_connection():
>>
>> return rdbms.connect(instance=CLOUDSQL_INSTANCE,
>>> database=DATABASE_NAME,
>>
>> user=USER_NAME, password=PASSWORD, charset='utf-8')
>>
>>
> What's the wrong with above code?
>
> Thanks for reading.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.