Re: [google-appengine] what is the simplest way to edit my App Engine code online?

2019-03-04 Thread saintthor
thank you. I just installed gcloud and deplyed.



在 2019年3月4日星期一 UTC+8下午6:51:03,Gerardo Lima写道:
>
> I mean the *web console* <https://console.cloud.google.com/home/dashboard>, 
> that runs inside the browser; it's got all the tools I needed to fetch 
> (git), edit (vi and a very decent web-based editor), compile (npm) and 
> deploy (gcloud). I noticed you referred the older *appcfg.py* tool, 
> though; did you try the newer *gcloud*?
>
> On Mon, Mar 4, 2019 at 4:33 AM saintthor > 
> wrote:
>
>> thanks.
>>
>> I often use the console. but where is the feature about git? Can you show 
>> me a detail uri?
>>
>>
>> 在 2019年3月4日星期一 UTC+8上午3:15:35,Gerardo Lima写道:
>>>
>>> have you tried [https://console.cloud.google.com/home/dashboard]?
>>> you can git clone your project to a $HOME based directory and then use 
>>> gcloud tools to build/deploy.
>>>
>>> On Sun, Mar 3, 2019 at 4:35 PM saintthor  wrote:
>>>
>>>> I tried the cloud shell and it shows me such a message and stops:
>>>>
>>>> Connecting: Provisioning your Google Cloud Shell machine... 
>>>>
>>>> I used to update my app via a web ide. but now, when i try to run the 
>>>> appcfg.py, it asks me to access a url with browser and copy the code, then 
>>>> it tells me verify failed.
>>>>
>>>> is there any simple way to edit my code?
>>>>
>>>> -- 
>>>> 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 google-appengi...@googlegroups.com.
>>>> To post to this group, send email to google-a...@googlegroups.com.
>>>> Visit this group at https://groups.google.com/group/google-appengine.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/google-appengine/19c6f715-6973-48cb-af24-f557427ee4c4%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/google-appengine/19c6f715-6973-48cb-af24-f557427ee4c4%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> -- 
>> 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 google-appengi...@googlegroups.com .
>> To post to this group, send email to google-a...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/5d6ce8ec-69f8-4b4a-b61f-8cf161656284%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/5d6ce8ec-69f8-4b4a-b61f-8cf161656284%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2662406d-daff-464e-adf7-1f868413607d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] what is the simplest way to edit my App Engine code online?

2019-03-03 Thread saintthor
thanks.

I often use the console. but where is the feature about git? Can you show 
me a detail uri?


在 2019年3月4日星期一 UTC+8上午3:15:35,Gerardo Lima写道:
>
> have you tried [https://console.cloud.google.com/home/dashboard]?
> you can git clone your project to a $HOME based directory and then use 
> gcloud tools to build/deploy.
>
> On Sun, Mar 3, 2019 at 4:35 PM saintthor > 
> wrote:
>
>> I tried the cloud shell and it shows me such a message and stops:
>>
>> Connecting: Provisioning your Google Cloud Shell machine... 
>>
>> I used to update my app via a web ide. but now, when i try to run the 
>> appcfg.py, it asks me to access a url with browser and copy the code, then 
>> it tells me verify failed.
>>
>> is there any simple way to edit my code?
>>
>> -- 
>> 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 google-appengi...@googlegroups.com .
>> To post to this group, send email to google-a...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/19c6f715-6973-48cb-af24-f557427ee4c4%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/19c6f715-6973-48cb-af24-f557427ee4c4%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5d6ce8ec-69f8-4b4a-b61f-8cf161656284%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] installing trouble

2019-03-03 Thread saintthor
 I am installing the linux 64bit package. when running 

gcloud init --skip-diagnostics

Your browser has been opened to visit:


https://accounts.google.com/o/oauth2/auth?redirect_uri=http%3A%2F%2Flocalhost%3A8085%2F=select_account_type=code_id=32555940559.apps.googleusercontent.com=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fappengine.admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcompute+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Faccounts.reauth_type=offline

I accessed this link, click ok to this page: 
https://cloud.google.com/sdk/auth_success. it tells me to close the page. 
but the installation is still waiting as above.

how to exit it?

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a3842128-7f2f-4946-84b7-9d2530dbf2ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] what is the simplest way to edit my App Engine code online?

2019-03-03 Thread saintthor
I tried the cloud shell and it shows me such a message and stops:

Connecting: Provisioning your Google Cloud Shell machine... 

I used to update my app via a web ide. but now, when i try to run the 
appcfg.py, it asks me to access a url with browser and copy the code, then 
it tells me verify failed.

is there any simple way to edit my code?

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/19c6f715-6973-48cb-af24-f557427ee4c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: G Suite alerts me to suspend my account. then can my domain continue working for GAE?

2017-12-21 Thread saintthor
ok. thanks.

在 2017年12月22日星期五 UTC+8上午4:50:13,George (Cloud Platform Support)写道:
>
> If the main issue is related to your email address provided for reference, 
> you may rather try to have this email address replace with a valid one, an 
> email you can access normally. 
>
> We have no means to verify your pointing to google.com. In any case, this 
> could only be a temporary solution, as you need to use your own URL at 
> googlehosted.com. 
>
> At this stage, you are on a more efficient path with the G Suite support. 
> We deal here with issues specific to the Google App Engine. 
>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b4c82740-9a77-427f-b799-fe6f6e4e221f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: G Suite alerts me to suspend my account. then can my domain continue working for GAE?

2017-12-20 Thread saintthor
"and the account is not a real email"

i sign into my apps with username t...@djdq.org, which is not a real email 
address.

i signed in well with password. but the page need verify my device by 
sending an email to t...@djdq.org. i can't get the code.

i contacted G Suite support. an agent contacted me, let me to add a CNAME 
pointing to google.com. i see it works. but the agent say it is not.

my domain is well. i bought it on godaddy.com and set dns to cloudflare.com.

the CNAME is 14454257.djdq.org . could you tell me if it is pointing to 
google.com in your web environment?
 

在 2017年12月21日星期四 UTC+8上午12:41:13,George (Cloud Platform Support)写道:
>
> More information is needed to get more clarity on the context of your 
> issue. What is it meant by: "and the account is not a real email". If you 
> cannot sign in to your G Suite account, you should contact G Suite support 
>  and read the "Users can't sign in to 
> Gmail accounts" online document 
> . 
>
> Is your domain valid? Have you purchased it through the usual channels, 
> such as GoDaddy, Enom, or Name.com? Did you domain registration expire? To 
> add your CNAME record to your domain DNS records, you may follow the 
> instructions provided on the "Add a CNAME record to your domain's DNS 
> records" page . 
>
> You are right, if your G Suite expired, you cannot use it for GAE, so your 
> priority right now should be the restoration of access to G Suite, and 
> making sure your account is in good standing. 
>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/db904f42-7a34-4405-857f-6667fb20f02c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] G Suite alerts me to suspend my account. then can my domain continue working for GAE?

2017-12-19 Thread saintthor
i can not sign in to apps. the password is ok, but it tries sending a 
verify code to the account email. and the account is not a real email.

i created the help issue and got help from someone. but the problem is not 
solved after 1 week. 

the service agent let me add a CNAME that point to google.com. i did and 
saw it work yesterday. but the agent didn't see it till now.

the CNAME is 14454257.djdq.org . i think you can access and get a google 
404 page in browser. 

can anyone tell me what is wrong? 

and if the apps account suspended, how can i continue using the domain for 
GAE?

-


$ dig 14454257.djdq.org

; <<>> DiG 9.10.3-P4-Ubuntu <<>> 14454257.djdq.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6843
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;14454257.djdq.org.INA

;; ANSWER SECTION:
14454257.djdq.org.1INA104.28.24.92
14454257.djdq.org.1INA104.28.25.92

;; Query time: 10 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Dec 20 13:17:32 CST 2017
;; MSG SIZE  rcvd: 67


-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f43f031d-7359-4f47-a4d0-6fe83d98f0b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] there is somthing wrong in console

2017-06-14 Thread saintthor
it always show me 'Failed to load' in every item of this page:  
https://console.cloud.google.com/appengine?src=ac

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f5d0be8b-71bd-49f0-9224-46e11a87d4b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: how to download, edit, upload my app simply with gcloud?

2016-08-08 Thread saintthor
it is done.

it is so hard to use only after sevral monthes.

在 2016年8月7日星期日 UTC+8上午1:34:22,saintthor写道:
>
> hi, Nick,
>
> i try to download the files with appdfg failed. is there any idea?
>
>  python appcfg.py download_app -A guideep ./guideep
> 05:25 PM Host: appengine.google.com
> 05:25 PM Fetching file list...
> Email: saintthor
> Password for saintthor: 
> Error 404: --- begin server output ---
> https://developers.google.com/accounts/docs/AuthForInstalledApps
> --- end server output ---
>
> 在 2016年8月3日星期三 UTC+8上午1:37:19,Nick (Cloud Platform Support)写道:
>>
>> Hey Saintthor,
>>
>> "gcloud <https://cloud.google.com/sdk/> app deploy" has gone out of beta 
>> into general availability as the recommended method to deploy apps. You can 
>> read the documentation here 
>> <https://cloud.google.com/sdk/gcloud/reference/app/>.
>>
>> As far as downloading the app's code, you can use the gcloud source 
>> <https://cloud.google.com/sdk/gcloud/reference/source/> command tree if 
>> you have your code in the Cloud Source Repo for the project.
>>
>> If you're the original developer, you could also have a copy of the code 
>> somewhere else. 
>>
>> Finally, you can still use the "appcfg download_app" command to download 
>> the source from a deployed app.
>>
>> I hope this has helped. Let me know if you have any questions!
>>
>> Cheers,
>>
>> Nick
>> Cloud Platform Community Support
>>
>> On Saturday, July 30, 2016 at 12:01:54 PM UTC-4, saintthor wrote:
>>>
>>> it seems appcfg.py does not work any longer. i see the cloud shell.
>>>
>>> maybe i can upload the code with command
>>>
>>> gcloud preview app deploy
>>>
>>> but, how to download my exist codes from my app engine first?
>>>
>>>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f30044c6-aeb4-4414-af01-f92a54a22873%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: how to download, edit, upload my app simply with gcloud?

2016-08-06 Thread saintthor
hi, Nick,

i try to download the files with appdfg failed. is there any idea?

 python appcfg.py download_app -A guideep ./guideep
05:25 PM Host: appengine.google.com
05:25 PM Fetching file list...
Email: saintthor
Password for saintthor: 
Error 404: --- begin server output ---
https://developers.google.com/accounts/docs/AuthForInstalledApps
--- end server output ---

在 2016年8月3日星期三 UTC+8上午1:37:19,Nick (Cloud Platform Support)写道:
>
> Hey Saintthor,
>
> "gcloud <https://cloud.google.com/sdk/> app deploy" has gone out of beta 
> into general availability as the recommended method to deploy apps. You can 
> read the documentation here 
> <https://cloud.google.com/sdk/gcloud/reference/app/>.
>
> As far as downloading the app's code, you can use the gcloud source 
> <https://cloud.google.com/sdk/gcloud/reference/source/> command tree if 
> you have your code in the Cloud Source Repo for the project.
>
> If you're the original developer, you could also have a copy of the code 
> somewhere else. 
>
> Finally, you can still use the "appcfg download_app" command to download 
> the source from a deployed app.
>
> I hope this has helped. Let me know if you have any questions!
>
> Cheers,
>
> Nick
> Cloud Platform Community Support
>
> On Saturday, July 30, 2016 at 12:01:54 PM UTC-4, saintthor wrote:
>>
>> it seems appcfg.py does not work any longer. i see the cloud shell.
>>
>> maybe i can upload the code with command
>>
>> gcloud preview app deploy
>>
>> but, how to download my exist codes from my app engine first?
>>
>>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6c77aa43-b89f-460e-9499-476d88877303%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: how to download, edit, upload my app simply with gcloud?

2016-08-02 Thread saintthor
thank you for reply.

and, where can i get the newest version of appcfg.py? i used to find it at 
http://appengine.google.com/, but the page changed now.


在 2016年8月3日星期三 UTC+8上午1:37:19,Nick (Cloud Platform Support)写道:
>
> Hey Saintthor,
>
> "gcloud <https://cloud.google.com/sdk/> app deploy" has gone out of beta 
> into general availability as the recommended method to deploy apps. You can 
> read the documentation here 
> <https://cloud.google.com/sdk/gcloud/reference/app/>.
>
> As far as downloading the app's code, you can use the gcloud source 
> <https://cloud.google.com/sdk/gcloud/reference/source/> command tree if 
> you have your code in the Cloud Source Repo for the project.
>
> If you're the original developer, you could also have a copy of the code 
> somewhere else. 
>
> Finally, you can still use the "appcfg download_app" command to download 
> the source from a deployed app.
>
> I hope this has helped. Let me know if you have any questions!
>
> Cheers,
>
> Nick
> Cloud Platform Community Support
>
> On Saturday, July 30, 2016 at 12:01:54 PM UTC-4, saintthor wrote:
>>
>> it seems appcfg.py does not work any longer. i see the cloud shell.
>>
>> maybe i can upload the code with command
>>
>> gcloud preview app deploy
>>
>> but, how to download my exist codes from my app engine first?
>>
>>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/83595e65-cdfa-4963-8ad1-2e41a1d2c1ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] how to download, edit, upload my app simply with gcloud?

2016-07-30 Thread saintthor
it seems appcfg.py does not work any longer. i see the cloud shell.

maybe i can upload the code with command

gcloud preview app deploy

but, how to download my exist codes from my app engine first?

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/967478ae-8a8c-4b54-8487-84f879d8eacd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: will my domain still work after migration?

2015-07-15 Thread saintthor
thank you for the good news.

cheers.

在 2015年7月15日星期三 UTC+8下午11:10:37,Patrice (Cloud Platform Support)写道:

 Hi again sainthor,

 I just doublechecked to be 100% sure, and turns out that if you setup an 
 alias from your old application to your new one, it will migrate the domain 
 as well. Sorry for the confusion.

 Cheers!

 On Tuesday, July 14, 2015 at 10:37:31 AM UTC-4, Patrice (Cloud Platform 
 Support) wrote:

 Hi sainthor

 Thank you for your feedback, we always appreciate such comments as they 
 help us improve our services and offerings.

 You can definitely make a full fledged Feature Request on our Issue 
 Tracker https://code.google.com/p/googleappengine/issues/list, where 
 we will update the request with our progress on it. By no means is it 
 necessarily a guarantee that your feature will be implemented, but posting 
 it there will let you track it more easily.

 Cheers!

 On Monday, July 13, 2015 at 12:07:20 PM UTC-4, saintthor wrote:

 thank you.

 i am so sad to get this. to set domain via apps is such a terrible 
 matter. why can't i set domain directly to my app just like what to do in 
 openshift?

 在 2015年7月13日星期一 UTC+8下午11:03:21,Patrice (Cloud Platform Support)写道:

 Hi,

 as far as I know, yes you will have to reset the link between your 
 domain and the new app, as the new app doesn't keep any configs from the 
 old one.

 Cheers!

 On Saturday, July 11, 2015 at 9:06:00 AM UTC-4, saintthor wrote:


 i have a domain pointing to the old app. when i migrate it to the new 
 app, must i set the domain in google apps again?



-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d17a3d70-7f02-4658-8eff-b754c6cd91a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: in migration, data copied, but can't see the finish button.

2015-07-15 Thread saintthor
thanks.

在 2015年7月14日星期二 UTC+8上午12:17:25,Ryan (Cloud Platform Support)写道:

 You should fill out this form 
 https://cloud.google.com/appengine/docs/deprecations/ms_datastore. This 
 will put you in contact with a Tech Support agent who can look further into 
 this for you.

 On Sunday, July 12, 2015 at 5:19:29 AM UTC-4, saintthor wrote:

 i am migrating the oldapp to the newapp.

 in the page https://appengine.google.com/migrating?app_id=oldapp, it 
 tells me 

 ==
 Waiting to activate read-only. See below... 
 ==

 i choose Launch Incremental Copy, syncing stars. then i get a email 
 telling me 

 ==
 This message is to inform you that the current phase of your High 
 Replication
 migration has completed.  Please visit
 http://appengine.google.com/migrating?app_id=djdqbbs to continue your
 migration.
 ==

 i return to the link address. but the page return to the last step that 
 tells me
 ==
 Waiting to activate read-only. See below... 
 ==

 why?

 there should be a Finish Migration button.

 now, my data is copied, the newapp works. but the oldapp is still there. 
 how to set the oldapp name as an alias to the newapp?
 http://appengine.google.com/migrating?app_id=djdqbbs



-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4a21b070-0259-47c3-9d04-9db35c605827%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: will my domain still work after migration?

2015-07-13 Thread saintthor
thank you.

i am so sad to get this. to set domain via apps is such a terrible matter. 
why can't i set domain directly to my app just like what to do in openshift?

在 2015年7月13日星期一 UTC+8下午11:03:21,Patrice (Cloud Platform Support)写道:

 Hi,

 as far as I know, yes you will have to reset the link between your domain 
 and the new app, as the new app doesn't keep any configs from the old one.

 Cheers!

 On Saturday, July 11, 2015 at 9:06:00 AM UTC-4, saintthor wrote:


 i have a domain pointing to the old app. when i migrate it to the new 
 app, must i set the domain in google apps again?



-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c6c92f89-a6eb-45f5-9d15-ca23bd5e7b27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] in migration, data copied, but can't see the finish button.

2015-07-12 Thread saintthor
i am migrating the oldapp to the newapp.

in the page https://appengine.google.com/migrating?app_id=oldapp, it tells 
me 

==
Waiting to activate read-only. See below... 
==

i choose Launch Incremental Copy, syncing stars. then i get a email telling 
me 

==
This message is to inform you that the current phase of your High 
Replication
migration has completed.  Please visit
http://appengine.google.com/migrating?app_id=djdqbbs to continue your
migration.
==

i return to the link address. but the page return to the last step that 
tells me
==
Waiting to activate read-only. See below... 
==

why?

there should be a Finish Migration button.

now, my data is copied, the newapp works. but the oldapp is still there. 
how to set the oldapp name as an alias to the newapp?
http://appengine.google.com/migrating?app_id=djdqbbs

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/bc91bda3-1e51-4bd0-9bbd-b9e44a10c955%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] will my domain still work after migration?

2015-07-11 Thread saintthor

i have a domain pointing to the old app. when i migrate it to the new app, 
must i set the domain in google apps again?

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f1eed158-8d6f-4a18-9e4e-ac5b4c9643ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: anyway, can i take back my old app-id after Migration?

2015-07-07 Thread saintthor
thank you.

i just finished a migretion for one of my apps. i noticed the alias and 
returned here to delete this post.

在 2015年7月7日星期二 UTC+8下午10:13:00,nuchaev写道:

 Hi saintthor,

 App IDs are unique, hence you won't be able to reuse the old one after 
 (for example) app deletion. For MS - HRD migrations app alias is created 
 automatically after the completion of step 11 of [1]. Alias means that your 
 new app id will be serving when the customer requests your app with an old 
 app id. Should there be any issue with alias creation, please let us know 
 by leaving your old and new app ids.

 Best regards,

 Nikita

 [1]: 
 https://cloud.google.com/appengine/docs/adminconsole/migration#using_the_migration_tool

 On Tuesday, 7 July 2015 14:55:15 UTC+2, saintthor wrote:


 i don't want to lose them.



-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2c012bf4-bbcf-42c4-9d19-c96886a45f8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] how to set language in https://console.developers.google.com/project?

2015-07-07 Thread saintthor
thank you, barryhunter and Michael.

在 2015年7月7日星期二 UTC+8下午11:58:18,Michael Thomsen (Google Inc.)写道:

 The language options are accessible from the settings menu: 
Gear icon in the upper-right corner - preferences - regional formats

 Regards, Michael

 On Tue, Jul 7, 2015 at 6:57 AM, Barry Hunter barryb...@gmail.com 
 javascript: wrote:

 You can set some languages with the hl param, so maybe 

 https://console.developers.google.com/project?hl=en

 will work. 

 On 7 July 2015 at 14:32, saintthor sain...@gmail.com javascript: 
 wrote:

 to migrate the m/s datastore, i come to this page.

 https://console.developers.google.com/project

 i see a traditional chinese page. while i would rather read english. i 
 don't see any link to set language. how to set it?

  -- 
 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 google-appengi...@googlegroups.com javascript:.
 To post to this group, send email to google-a...@googlegroups.com 
 javascript:.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/google-appengine/208d2f91-6ef7-4043-9b10-491d873416a3%40googlegroups.com
  
 https://groups.google.com/d/msgid/google-appengine/208d2f91-6ef7-4043-9b10-491d873416a3%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


  -- 
 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 google-appengi...@googlegroups.com javascript:.
 To post to this group, send email to google-a...@googlegroups.com 
 javascript:.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/google-appengine/CAJCAUuJ2jmxR0%2BS3%2B9Qg32bsfR60SumxGLUSbwaBqYcM4NPJJA%40mail.gmail.com
  
 https://groups.google.com/d/msgid/google-appengine/CAJCAUuJ2jmxR0%2BS3%2B9Qg32bsfR60SumxGLUSbwaBqYcM4NPJJA%40mail.gmail.com?utm_medium=emailutm_source=footer
 .

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




-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0669c294-1c8f-45b0-82c5-e48f230c1344%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] after migration successfully, get an error

2015-07-07 Thread saintthor


Key datastore_types.Key.from_path(u'UserOnLine', 0, _app=u's~djdq-bot') is not 
complete.
Traceback (most recent call last):
  File 
/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py,
 line 717, in __call__
handler.post(*groups)
  File /base/data/home/apps/s~djdq-bot/chat.385547706314778775/ChatRoomPg.py, 
line 465, in post
if not CtRoom.RefreshUser( userKey ):
  File /base/data/home/apps/s~djdq-bot/chat.385547706314778775/ChatRoomPg.py, 
line 165, in RefreshUser
Info = self.UserSet.Refresh( uKey )
  File /base/data/home/apps/s~djdq-bot/chat.385547706314778775/CRUserData.py, 
line 118, in Refresh
Info.append( self.Quit( k ))
  File /base/data/home/apps/s~djdq-bot/chat.385547706314778775/CRUserData.py, 
line 145, in Quit
db.delete( self.uD[uKey] )
  File 
/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/ext/db/__init__.py,
 line 1614, in delete
delete_async(models, **kwargs).get_result()
  File 
/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/ext/db/__init__.py,
 line 1600, in delete_async
return datastore.DeleteAsync(keys, **kwargs)
  File 
/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/api/datastore.py,
 line 700, in DeleteAsync
keys, _ = NormalizeAndTypeCheckKeys(keys)
  File 
/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/api/datastore.py,
 line 179, in NormalizeAndTypeCheckKeys
keys = [_GetCompleteKeyOrError(key) for key in keys]
  File 
/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/api/datastore.py,
 line 2803, in _GetCompleteKeyOrError
raise datastore_errors.BadKeyError('Key %r is not complete.' % key)
BadKeyError: Key datastore_types.Key.from_path(u'UserOnLine', 0, 
_app=u's~djdq-bot') is not complete.

how to solve it?

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a5417172-c91e-45b0-a482-76824919ca93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] anyway, can i take back my old app-id after Migration?

2015-07-07 Thread saintthor

i don't want to lose them.

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/53eb5eec-aa2a-4837-a80a-450ebbcf3713%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] how to set language in https://console.developers.google.com/project?

2015-07-07 Thread saintthor
to migrate the m/s datastore, i come to this page.

https://console.developers.google.com/project

i see a traditional chinese page. while i would rather read english. i 
don't see any link to set language. how to set it?

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/208d2f91-6ef7-4043-9b10-491d873416a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Machine system clock is incorrect ??

2015-02-04 Thread saintthor
it hasn't worked. it is the first time i try to download via a remote 
system.


the time seems correct. you see in the infos it is 9:48 AM UTC 0. about 10 
mins later i posted here at 12:00:47 PM UTC+2.

 - You might be in a Viewer or some other role that does not allow what 
you are trying to do.

maybe. i try this on koding.

 - Enabling the access less secure apps option in account settings which 
doesn't really sound right, instead I would try to add the --oauth2 
parameter to authenticate via browser.

i connect to the host via ssh, there is no browser to use --oauth2.

在 2015年2月4日星期三 UTC+8下午7:20:50,Mihail Russu写道:

  - Has it ever worked?

  - Have you tried the obvious - making sure the time on your systems is 
 correct?

 Quick googling shows some other possible reasons like:
  - You might be in a Viewer or some other role that does not allow what 
 you are trying to do.
  - Enabling the access less secure apps option in account settings which 
 doesn't really sound right, instead I would try to add the --oauth2 
 parameter to authenticate via browser.

 Have you checked these?


 On Wednesday, February 4, 2015 at 12:00:47 PM UTC+2, saintthor wrote:

 why cause this? the password is right.

 i run this in a remote machine which is in another timezone.
 ===


 $ python appcfg.py download_app -A djdqbbs -V d2 ./djdq
 09:48 AM Host: appengine.google.com
 09:48 AM Fetching file list...
 Email: saintthor
 Password for saintthor: 
 Invalid username or password.
 Email: saintthor
 Password for sain...@gmail.com: 
 Invalid username or password.
 Email: saintthor
 Password for saintthor: 
 Invalid username or password.

 Error: Machine system clock is incorrect.



-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ef244069-77f0-480f-a2cd-0b80f21d7da1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Machine system clock is incorrect ??

2015-02-04 Thread saintthor
why cause this? the password is right.

i run this in a remote machine which is in another timezone.
===


$ python appcfg.py download_app -A djdqbbs -V d2 ./djdq
09:48 AM Host: appengine.google.com
09:48 AM Fetching file list...
Email: saintthor
Password for saintthor: 
Invalid username or password.
Email: saintthor
Password for saintt...@gmail.com: 
Invalid username or password.
Email: saintthor
Password for saintthor: 
Invalid username or password.

Error: Machine system clock is incorrect.

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/710b5d2b-9dad-4346-8fd1-c8ffd9a30303%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Machine system clock is incorrect ??

2015-02-04 Thread saintthor
it is caused by the google security setting. even in my local system can 
not usr appcfg.py before turns the setting off.

在 2015年2月4日星期三 UTC+8下午11:01:57,saintthor写道:

 it hasn't worked. it is the first time i try to download via a remote 
 system.


 the time seems correct. you see in the infos it is 9:48 AM UTC 0. about 10 
 mins later i posted here at 12:00:47 PM UTC+2.

  - You might be in a Viewer or some other role that does not allow what 
 you are trying to do.

 maybe. i try this on koding.

  - Enabling the access less secure apps option in account settings which 
 doesn't really sound right, instead I would try to add the --oauth2 
 parameter to authenticate via browser.

 i connect to the host via ssh, there is no browser to use --oauth2.

 在 2015年2月4日星期三 UTC+8下午7:20:50,Mihail Russu写道:

  - Has it ever worked?

  - Have you tried the obvious - making sure the time on your systems is 
 correct?

 Quick googling shows some other possible reasons like:
  - You might be in a Viewer or some other role that does not allow what 
 you are trying to do.
  - Enabling the access less secure apps option in account settings 
 which doesn't really sound right, instead I would try to add the --oauth2 
 parameter to authenticate via browser.

 Have you checked these?


 On Wednesday, February 4, 2015 at 12:00:47 PM UTC+2, saintthor wrote:

 why cause this? the password is right.

 i run this in a remote machine which is in another timezone.
 ===


 $ python appcfg.py download_app -A djdqbbs -V d2 ./djdq
 09:48 AM Host: appengine.google.com
 09:48 AM Fetching file list...
 Email: saintthor
 Password for saintthor: 
 Invalid username or password.
 Email: saintthor
 Password for sain...@gmail.com: 
 Invalid username or password.
 Email: saintthor
 Password for saintthor: 
 Invalid username or password.

 Error: Machine system clock is incorrect.



-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/caf82c8f-b99c-4998-9c28-31066b85b717%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] jinja2 template file not accessible

2014-08-08 Thread saintthor
 

PathSeg = __file__.split( '/' )

PathSeg[-1] = 'templates/'

JINJA_ENVIRONMENT = jinja2.Environment(

loader = jinja2.FileSystemLoader( os.path.dirname( '/'.join( PathSeg ) )),

extensions = ['jinja2.ext.autoescape'],

autoescape = True ) 

template = JINJA_ENVIRONMENT.get_template( 't.html' )


==


IOError: [Errno 13] file not accessible: 
'/home/thor/google_appengine/guideep/templates/t.html'


running in dev-server. the template file path is right. how to fix this?

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: ndb, get_by_id can not get an entity with a parent key only by id?

2014-07-26 Thread saintthor
thanks.

在 2014年7月26日星期六UTC+8上午9时02分35秒,Jay写道:

 I just deployed a little test app. It is under quota so I don't think 
 appstats is reporting that for me.

 However, the important thing to note in this context is that whether I use 
 the db api or ndb, it is the same datastore operation ... which is a query 
 in this case.

 If you still need proof, I suggest you write your own test application. 
 As Vinny suggested, you can post that and there might be some more 
 discussion to come from it.

 On Friday, July 25, 2014 9:26:27 AM UTC-5, saintthor wrote:

 how many entities is in your db? how many ops cost for one call?

 在 2014年7月25日星期五UTC+8上午8时03分44秒,Jay写道:

 I wrote a simple test app that used both the db and ndb api and deployed 
 it to app engine. Using appstats I confirmed that both RunQuery when 
 getting the list of articles.

 On Wednesday, July 23, 2014 8:03:40 PM UTC-5, Jay wrote:

 I refer you to line 3865 of __init__ in the ext.db package in the sdk. 
 This is on a _ReverseReferenceProperty that gets setup.
 If I have time tomorrow I will write a quick test to demonstrate.

 On Wednesday, July 23, 2014 11:11:31 AM UTC-5, saintthor wrote:

 are you sure?

 i tested in two apps. the first is using query. when i do a query, the 
 read ops increases about 300. the second is using referenceproperty as 
 above, after 5 times showing, there is no obviously increase.

 the articles in the second app is much more than the first. so i don't 
 think it run a query.

 在 2014年7月22日星期二UTC+8下午11时20分14秒,Jay写道:

 When you use that api in db, it is doing a query underneath the 
 covers.

 On Monday, July 21, 2014 11:27:08 PM UTC-5, saintthor wrote:

 in db, i set such a property in model article:

 auth = db.ReferenceProperty( author, collection_name=AuthSet )


 and use author.AuthSet to get all articles written by the certain 
 author. there is no query. how can i do the same thing in ndb?


 在 2014年7月22日星期二UTC+8上午3时55分28秒,Jay写道:

 Responding to your first post ... that is right. The parent key is 
 part of the entity's key. When you use get_by_id, this is just 
 shorthand 
 for Key('Foo', 99).get().
 You cannot get an entity by key unless you know the key, the whole 
 key. 

 You say you don't want to query, but your use case ... give me all 
 articles for user A ... sounds like a query. 
 articles = Article.query(Article.author == user_key)...

 If you want to do something like most recent n articles then you 
 can store those keys in a 'secondary index' of sorts and use 
 ndb.get_multi()

 On Monday, July 21, 2014 8:11:20 AM UTC-5, saintthor wrote:

 to query may cost too many ops. i don't query.



 在 2014年7月21日星期一UTC+8下午8时53分29秒,Kaan Soral写道:

 Not associated with google, also not an expert on ndb

 As far as I know key groups are related with consistency, in my 
 opinion, you shouldn't put article's and author's in the same group, 
 there 
 is a 1/s write speed limit on entity groups, if you put them in the 
 same 
 entity group, you could hit this limit more easily

 You don't even have to use referenceproperty's - I would just put 
 the author key in an article StringProperty named author and query 
 for 
 it, if I were you



-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: ndb, get_by_id can not get an entity with a parent key only by id?

2014-07-25 Thread saintthor
how many entities is in your db? how many ops cost for one call?

在 2014年7月25日星期五UTC+8上午8时03分44秒,Jay写道:

 I wrote a simple test app that used both the db and ndb api and deployed 
 it to app engine. Using appstats I confirmed that both RunQuery when 
 getting the list of articles.

 On Wednesday, July 23, 2014 8:03:40 PM UTC-5, Jay wrote:

 I refer you to line 3865 of __init__ in the ext.db package in the sdk. 
 This is on a _ReverseReferenceProperty that gets setup.
 If I have time tomorrow I will write a quick test to demonstrate.

 On Wednesday, July 23, 2014 11:11:31 AM UTC-5, saintthor wrote:

 are you sure?

 i tested in two apps. the first is using query. when i do a query, the 
 read ops increases about 300. the second is using referenceproperty as 
 above, after 5 times showing, there is no obviously increase.

 the articles in the second app is much more than the first. so i don't 
 think it run a query.

 在 2014年7月22日星期二UTC+8下午11时20分14秒,Jay写道:

 When you use that api in db, it is doing a query underneath the covers.

 On Monday, July 21, 2014 11:27:08 PM UTC-5, saintthor wrote:

 in db, i set such a property in model article:

 auth = db.ReferenceProperty( author, collection_name=AuthSet )


 and use author.AuthSet to get all articles written by the certain 
 author. there is no query. how can i do the same thing in ndb?


 在 2014年7月22日星期二UTC+8上午3时55分28秒,Jay写道:

 Responding to your first post ... that is right. The parent key is 
 part of the entity's key. When you use get_by_id, this is just shorthand 
 for Key('Foo', 99).get().
 You cannot get an entity by key unless you know the key, the whole 
 key. 

 You say you don't want to query, but your use case ... give me all 
 articles for user A ... sounds like a query. 
 articles = Article.query(Article.author == user_key)...

 If you want to do something like most recent n articles then you 
 can store those keys in a 'secondary index' of sorts and use 
 ndb.get_multi()

 On Monday, July 21, 2014 8:11:20 AM UTC-5, saintthor wrote:

 to query may cost too many ops. i don't query.



 在 2014年7月21日星期一UTC+8下午8时53分29秒,Kaan Soral写道:

 Not associated with google, also not an expert on ndb

 As far as I know key groups are related with consistency, in my 
 opinion, you shouldn't put article's and author's in the same group, 
 there 
 is a 1/s write speed limit on entity groups, if you put them in the 
 same 
 entity group, you could hit this limit more easily

 You don't even have to use referenceproperty's - I would just put 
 the author key in an article StringProperty named author and query 
 for 
 it, if I were you



-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: ndb, get_by_id can not get an entity with a parent key only by id?

2014-07-23 Thread saintthor
are you sure?

i tested in two apps. the first is using query. when i do a query, the read 
ops increases about 300. the second is using referenceproperty as above, 
after 5 times showing, there is no obviously increase.

the articles in the second app is much more than the first. so i don't 
think it run a query.

在 2014年7月22日星期二UTC+8下午11时20分14秒,Jay写道:

 When you use that api in db, it is doing a query underneath the covers.

 On Monday, July 21, 2014 11:27:08 PM UTC-5, saintthor wrote:

 in db, i set such a property in model article:

 auth = db.ReferenceProperty( author, collection_name=AuthSet )


 and use author.AuthSet to get all articles written by the certain author. 
 there is no query. how can i do the same thing in ndb?


 在 2014年7月22日星期二UTC+8上午3时55分28秒,Jay写道:

 Responding to your first post ... that is right. The parent key is part 
 of the entity's key. When you use get_by_id, this is just shorthand for 
 Key('Foo', 99).get().
 You cannot get an entity by key unless you know the key, the whole key. 

 You say you don't want to query, but your use case ... give me all 
 articles for user A ... sounds like a query. 
 articles = Article.query(Article.author == user_key)...

 If you want to do something like most recent n articles then you can 
 store those keys in a 'secondary index' of sorts and use ndb.get_multi()

 On Monday, July 21, 2014 8:11:20 AM UTC-5, saintthor wrote:

 to query may cost too many ops. i don't query.



 在 2014年7月21日星期一UTC+8下午8时53分29秒,Kaan Soral写道:

 Not associated with google, also not an expert on ndb

 As far as I know key groups are related with consistency, in my 
 opinion, you shouldn't put article's and author's in the same group, 
 there 
 is a 1/s write speed limit on entity groups, if you put them in the same 
 entity group, you could hit this limit more easily

 You don't even have to use referenceproperty's - I would just put the 
 author key in an article StringProperty named author and query for it, 
 if 
 I were you



-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: ndb, get_by_id can not get an entity with a parent key only by id?

2014-07-21 Thread saintthor
hi, are you a google guy?

what do you think the real usage of the key group ( or tree ) is?

for example, a forum, user entity and article entity, i set article.author 
to user entity, then how can i get all articles for a user? in db, i can 
set it with referenceproperty and get a _set ended property in user entity. 
in ndb, i have to use query to do this?



在 2014年7月21日星期一UTC+8上午3时02分27秒,Kaan Soral写道:

 I've also tested utilizing parent's recently, don't remember the exact 
 reason

 I've found out that you can't get an entity only by id, if it has a 
 parent, you have to know the parent too, that's why I utilized a different 
 method to achieve whatever I was after at that time (don't remember)

 I also like to simply get entities by their id's - so I almost never give 
 them parent's

 I would suggest not utilizing parent's unless you exactly know what you 
 are doing

 I suspect you are learning ndb, I would suggest reading 
 https://developers.google.com/appengine/docs/python/ndb*/ *fully

 AppEngine documentations are really easy to read and pretty fun, it 
 shouldn't take 3 hours to grasp all concepts related to ndb


-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: ndb, get_by_id can not get an entity with a parent key only by id?

2014-07-21 Thread saintthor
to query may cost too many ops. i don't query.



在 2014年7月21日星期一UTC+8下午8时53分29秒,Kaan Soral写道:

 Not associated with google, also not an expert on ndb

 As far as I know key groups are related with consistency, in my opinion, 
 you shouldn't put article's and author's in the same group, there is a 1/s 
 write speed limit on entity groups, if you put them in the same entity 
 group, you could hit this limit more easily

 You don't even have to use referenceproperty's - I would just put the 
 author key in an article StringProperty named author and query for it, if 
 I were you


-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] what is the best way to store entities with relations in ndb?

2014-07-21 Thread saintthor
for example,  there are two models, author and article.

author1 writes article1 and article2.
author2 writes article3 and article4.

features: find the author of a article. find all articles written by an 
author.

in db, i set a referenceproperty named auth in article model. link it to 
author. in author, use auth_set to find the articles.

in ndb, how to store this relation to make author and article find each 
other without querying? 

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: ndb, get_by_id can not get an entity with a parent key only by id?

2014-07-21 Thread saintthor
in db, i set such a property in model article:

 auth = db.ReferenceProperty( author, collection_name=AuthSet )


and use author.AuthSet to get all articles written by the certain author. 
there is no query. how can i do the same thing in ndb?


在 2014年7月22日星期二UTC+8上午3时55分28秒,Jay写道:

 Responding to your first post ... that is right. The parent key is part of 
 the entity's key. When you use get_by_id, this is just shorthand for 
 Key('Foo', 99).get().
 You cannot get an entity by key unless you know the key, the whole key. 

 You say you don't want to query, but your use case ... give me all 
 articles for user A ... sounds like a query. 
 articles = Article.query(Article.author == user_key)...

 If you want to do something like most recent n articles then you can 
 store those keys in a 'secondary index' of sorts and use ndb.get_multi()

 On Monday, July 21, 2014 8:11:20 AM UTC-5, saintthor wrote:

 to query may cost too many ops. i don't query.



 在 2014年7月21日星期一UTC+8下午8时53分29秒,Kaan Soral写道:

 Not associated with google, also not an expert on ndb

 As far as I know key groups are related with consistency, in my opinion, 
 you shouldn't put article's and author's in the same group, there is a 1/s 
 write speed limit on entity groups, if you put them in the same entity 
 group, you could hit this limit more easily

 You don't even have to use referenceproperty's - I would just put the 
 author key in an article StringProperty named author and query for it, if 
 I were you



-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: ndb, get_by_id can not get an entity with a parent key only by id?

2014-07-21 Thread saintthor
and, if you were a google guy, i'd like to ask what do you think the usage 
of key.parent is? in what instance it may be useful?

在 2014年7月22日星期二UTC+8上午3时55分28秒,Jay写道:

 Responding to your first post ... that is right. The parent key is part of 
 the entity's key. When you use get_by_id, this is just shorthand for 
 Key('Foo', 99).get().
 You cannot get an entity by key unless you know the key, the whole key. 

 You say you don't want to query, but your use case ... give me all 
 articles for user A ... sounds like a query. 
 articles = Article.query(Article.author == user_key)...

 If you want to do something like most recent n articles then you can 
 store those keys in a 'secondary index' of sorts and use ndb.get_multi()

 On Monday, July 21, 2014 8:11:20 AM UTC-5, saintthor wrote:

 to query may cost too many ops. i don't query.



 在 2014年7月21日星期一UTC+8下午8时53分29秒,Kaan Soral写道:

 Not associated with google, also not an expert on ndb

 As far as I know key groups are related with consistency, in my opinion, 
 you shouldn't put article's and author's in the same group, there is a 1/s 
 write speed limit on entity groups, if you put them in the same entity 
 group, you could hit this limit more easily

 You don't even have to use referenceproperty's - I would just put the 
 author key in an article StringProperty named author and query for it, if 
 I were you



-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] ndb, get_by_id can not get an entity with a parent key only by id?

2014-07-20 Thread saintthor
 

model( parent = ndb.Key( model2, 4993981813358592 ), 
id='google:a...@gmail.com' ).put()

model.get_by_id( 'google:a...@gmail.com' ) #get None


how to get the entity only by itself's id? it has a parent, but i do not 
know the parent key.




-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] how to update via a proxy?

2014-06-06 Thread saintthor
i set the proxy. but it still unreachable.

then i found a vpn and updated. i think it is better to edit files in 
browser.

thanks..

在 2014年6月6日星期五UTC+8下午2时19分49秒,Vinny P写道:

 On Thu, Jun 5, 2014 at 9:22 PM, saintthor sain...@gmail.com javascript:
  wrote:

 hey, there is no 
 *appcfg.sh, but appcfg.py. and it seems no argument about proxy.*



 *appcfg.sh* is for Java deployments. 

 If you;re using the Python SDK, you'll have to set the proxy environment 
 variables. See here: 
 https://developers.google.com/appengine/docs/python/tools/uploadinganapp#Python_Using_an_HTTP_proxy
  
  
 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com
  
  


-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] how to update via a proxy?

2014-06-05 Thread saintthor
hey, there is no 




*appcfg.sh, but appcfg.py. and it seems no argument about proxy.$ python 
appcfg.py | grep proxyget nothing.*
在 2014年6月6日星期五UTC+8上午1时17分39秒,Vinny P写道:

 On Thu, Jun 5, 2014 at 12:58 AM, saintthor sain...@gmail.com 
 javascript: wrote:

 in these days, always get urlopen error [Errno 101] Network is 
 unreachable in updating.

 i have a proxy at 127.0.0.1:7070, so i can access the blocked websites. 
 how to update my app via this proxy?

 show me the command line please.



 You would use the proxy argument to appcfg. A sample command line would be:

 *appcfg.sh --proxy=proxy_ip_here update application/directory/here*
  
  
 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com 
  

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] how to update via a proxy?

2014-06-05 Thread saintthor

python appcfg.py --proxy=127.0.0.1:7070 update directory
Usage: appcfg.py [options] action

appcfg.py: error: no such option: --proxy




在 2014年6月6日星期五UTC+8上午10时22分50秒,saintthor写道:

 hey, there is no 




 *appcfg.sh, but appcfg.py. and it seems no argument about proxy.$ python 
 appcfg.py | grep proxyget nothing.*
 在 2014年6月6日星期五UTC+8上午1时17分39秒,Vinny P写道:

 On Thu, Jun 5, 2014 at 12:58 AM, saintthor sain...@gmail.com wrote:

 in these days, always get urlopen error [Errno 101] Network is 
 unreachable in updating.

 i have a proxy at 127.0.0.1:7070, so i can access the blocked websites. 
 how to update my app via this proxy?

 show me the command line please.



 You would use the proxy argument to appcfg. A sample command line would 
 be:

 *appcfg.sh --proxy=proxy_ip_here update application/directory/here*
  
  
 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com 
  


-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] how to update via a proxy?

2014-06-04 Thread saintthor
in these days, always get urlopen error [Errno 101] Network is 
unreachable in updating.

i have a proxy at 127.0.0.1:7070, so i can access the blocked websites. how 
to update my app via this proxy?

show me the command line please.

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] how to check virus for the uploaded files?

2014-05-29 Thread saintthor
thank you.

在 2014年5月26日星期一UTC+8下午4时14分28秒,Vinny P写道:

 On Sat, May 24, 2014 at 9:34 AM, saintthor sain...@gmail.comjavascript:
  wrote:

 i want to set a service for users to upload and download files. there may 
 be virus or other risks in the files.
 can i check them?




 There are online virus-scanning tools you can use via API such as: 
 https://scanii.com/ and 
 https://www.virustotal.com/en/documentation/public-api/ . Alternately you 
 can use a Compute Engine 
 machinehttps://cloud.google.com/products/compute-engine/
 /Managed VM https://developers.google.com/cloud/managed-vms, install an 
 anti-virus scanning engine, then run all your uploaded files through there.

 If you don't want to handle virus scanning yourself, you could try 
 requiring users to upload files from a trusted source. For example, Google 
 Drive virus scans files under 
 25MBhttps://support.google.com/a/answer/172541?hl=en- you could have users 
 upload to GDrive, then select files using the Drive 
 API https://developers.google.com/drive/v2/reference/.
  

 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com
  

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] how to check virus for the uploaded files?

2014-05-24 Thread saintthor
i want to set a service for users to upload and download files. there may 
be virus or other risks in the files.

can i check them?

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] about instance and memory

2014-05-09 Thread saintthor
thank you two.

it is not me who launch the second instance. the system does. i do not want 
it be lanuched, but have nothing to do. right?

在 2014年5月9日星期五UTC+8下午1时23分01秒,Vinny P写道:

 On Thu, May 8, 2014 at 9:26 AM, saintthor sain...@gmail.com javascript:
  wrote:

 there is 128MB memory. if each instance takes 70MB, what will happen when 
 the second instance should be initialed?



 An F1 instance gives your application 128 MB of memory. If you application 
 only uses 70 MB, the remaining memory remains unused but still accessible 
 by your application.

 If you launch a second instance, your application gets a separate instance 
 with a separate allocation of memory. There isn't any memory sharing 
 between instances, if that's what you're asking.
   
  
 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com
  
 

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] about instance and memory

2014-05-08 Thread saintthor
there is 128MB memory. if each instance takes 70MB, what will happen when 
the second instance should be initialed?

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] how to limit 1 instance for my app?

2014-04-28 Thread saintthor
thank you. it is quite good.

在 2014年4月28日星期一UTC+8下午4时04分19秒,Vinny P写道:

 On Sun, Apr 27, 2014 at 11:47 PM, saintthor sain...@gmail.comjavascript:
  wrote:

 is there 
 ModulesServicehttps://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/modules/ModulesService
  for 
 python?



 See https://developers.google.com/appengine/docs/python/modules/functions
   
  
 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com 
  

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] how to limit 1 instance for my app?

2014-04-28 Thread saintthor
oh,, only Manual Scaling can be set_num_instances.

i think i should guarantee every request to wait less than 15 seconds to 
avoid the second instance.

在 2014年4月28日星期一UTC+8下午4时04分19秒,Vinny P写道:

 On Sun, Apr 27, 2014 at 11:47 PM, saintthor sain...@gmail.comjavascript:
  wrote:

 is there 
 ModulesServicehttps://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/modules/ModulesService
  for 
 python?



 See https://developers.google.com/appengine/docs/python/modules/functions
   
  
 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com 
  

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] how to limit 1 instance for my app?

2014-04-27 Thread saintthor
every user has different request.

在 2014年4月27日星期日UTC+8上午1时22分53秒,Jeff Schnitzer写道:

 From your recent questions, I get the impression you have a specific 
 architecture in mind and you want to force it onto GAE. This approach is 
 unlikely to satisfy you.

 I suggest taking a step back, thinking about your business goals, and see 
 how they match up to the tools that already exist inside of GAE. Developing 
 on GAE requires a mental shift from how you have probably developed 
 server-side apps in the past. While there are certainly edge cases, most 
 applications never need to go beyond the datastore, task queue, and 
 memcache.

 Jeff


 On Fri, Apr 25, 2014 at 9:10 PM, saintthor sain...@gmail.comjavascript:
  wrote:

 i use app caching to cache data. if there are many instances, the data 
 won't be found.

 i want to limit the instance num only one. if there are more requests, 
 let it wait or fail.

 or, can i detect the instance num in code and shut down the more?

 -- 
 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 google-appengi...@googlegroups.com javascript:.
 To post to this group, send email to 
 google-a...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/d/optout.




-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] how to limit 1 instance for my app?

2014-04-27 Thread saintthor
is there 
ModulesServicehttps://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/modules/ModulesServicefor
 python?

在 2014年4月28日星期一UTC+8上午2时57分29秒,Vinny P写道:

 On Sat, Apr 26, 2014 at 12:22 PM, Jeff Schnitzer 
 je...@infohazard.orgjavascript:
  wrote:

 I suggest taking a step back, thinking about your business goals, and see 
 how they match up to the tools that already exist inside of GAE.



 +1


 On Fri, Apr 25, 2014 at 11:10 PM, saintthor sain...@gmail.comjavascript:
  wrote:

 or, can i detect the instance num in code and shut down the more?



 Look into the ModulesService functions. There's ways to collect the number 
 of instances and an unique instance ID: 
 https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/modules/ModulesService
  
  

 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com
  


-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] how to use Background_threads?

2014-04-25 Thread saintthor
thanks.

在 2014年4月22日星期二UTC+8下午8时26分18秒,Vinny P写道:

 On Thu, Apr 17, 2014 at 12:22 PM, saintthor sain...@gmail.comjavascript:
  wrote:


 https://developers.google.com/appengine/docs/python/modules/#Python_Background_threads
 i copy the code, run and get FrontendsNotSupported.



 Yes, because the code in your link was intended to be run within a backend 
 module. 


 On Thu, Apr 17, 2014 at 12:22 PM, saintthor sain...@gmail.comjavascript:
  wrote:

 i want to input some data in a request and then return. let the 
 backend(?) analyse the data after returning. so i use Background_threads. 
 right?
 is there anyway else to do my job?



 It depends how your application is architected and what your exact needs 
 are. For example, you can have the frontend instance put the data into a 
 task and return immediately. Then have a backend lease the tasks off a pull 
 queue and process them.

 If the processing isn't time-sensitive (doesn't need to be processed 
 immediately), you can record the data into the datastore and process it at 
 a later time.
  
  
 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com
  


-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Static file referenced by handler not found: static/jquery-2.0.3.min.map

2014-04-25 Thread saintthor
thank you.

it is Chrome's developer tools.

在 2014年4月25日星期五UTC+8上午1时24分05秒,Vinny P写道:

 Does your log look like this: http://imgur.com/uePke5W ?

 If so, then something in your web pages is requesting that file, and App 
 Engine can't find it within your application. Specifically, a *min.map*file 
 is a sourcemap: someone is looking at your web pages with Chrome's 
 developer tools or similar. You can find the map file and place it in your 
 application, see the details of how to do this 
 herehttp://stackoverflow.com/questions/18365315/jquerys-jquery-1-10-2-min-map-is-triggering-a-404-not-found.
  
 Note this: Normal users will not need the sourcemap data, it's only needed 
 for debugging JS code via development tools.


 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com
   
  


 On Thu, Apr 24, 2014 at 8:48 AM, saintthor sain...@gmail.comjavascript:
  wrote:

 what cause this warning?

 i use jquery in page, did't refer any jquery-2.0.3.min.map.




  


-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] how to limit 1 instance for my app?

2014-04-25 Thread saintthor
i use app caching to cache data. if there are many instances, the data 
won't be found.

i want to limit the instance num only one. if there are more requests, let 
it wait or fail.

or, can i detect the instance num in code and shut down the more?

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Static file referenced by handler not found: static/jquery-2.0.3.min.map

2014-04-24 Thread saintthor
what cause this warning?

i use jquery in page, did't refer any jquery-2.0.3.min.map.

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] can't i edit data in console datastore viewer?

2014-04-17 Thread saintthor
 

class Const( ndb.Model ):

StartCode = ndb.StringProperty( indexed = False )

EndCode = ndb.StringProperty( indexed = False )

DataURL = ndb.StringProperty( indexed = False )

NextNode = ndb.StringProperty( indexed = False )


such a model. the data in console is not editable.


while for the old data using db, StringProperties are editable.

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] can i set serving time?

2014-04-17 Thread saintthor
i don't want my app accessed during night. i want to disable it in period.

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] how to use Background_threads?

2014-04-17 Thread saintthor
https://developers.google.com/appengine/docs/python/modules/#Python_Background_threads

i copy the code, run and get FrontendsNotSupported.

i want to input some data in a request and then return. let the backend(?) 
analyse the data after returning. so i use Background_threads. right?

is there anyway else to do my job?

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] can i set serving time?

2014-04-17 Thread saintthor
thanks.

在 2014年4月17日星期四UTC+8下午11时13分38秒,PK写道:

 This might be a good feature to ask for but for now you have to enforce it 
 manually. 

 PK

 On Apr 17, 2014, at 2:50 AM, saintthor sain...@gmail.com javascript: 
 wrote:

 i don't want my app accessed during night. i want to disable it in period.

 -- 
 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 google-appengi...@googlegroups.com javascript:.
 To post to this group, send email to google-a...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/d/optout.



-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] puzzle about Ancestor Queries

2014-04-09 Thread saintthor
ok thanks.

在 2014年4月9日星期三UTC+8下午2时37分46秒,Vinny P写道:

 On Mon, Apr 7, 2014 at 10:50 PM, saintthor sain...@gmail.comjavascript:
  wrote:

 thanks

 if i put many entities in 1 second with method put or put_async, will it 
 raise exceptions?




 It won't necessarily raise an exception (it might, not guaranteed) - but 
 it does lead to inconsistent behavior. Best not to even try it, especially 
 if your data is important to you.


 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com
  
 

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] what is a in-process cache ?

2014-04-09 Thread saintthor
dose it mean a in-context cache?

here: https://developers.google.com/appengine/docs/python/ndb/cache

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] there may be something wrong with put_async

2014-04-09 Thread saintthor
model.put_async()

then return. without calling Future.get_result(). shouldn't the model be 
written to datastore?

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: there may be something wrong with put_async

2014-04-09 Thread saintthor
thanks.

在 2014年4月10日星期四UTC+8上午6时47分43秒,timh写道:

 You should read the docs a bit more.  

 In the intro to async operations it even says

 In this example, it's a little silly to call future.get_result: the 
 application never *uses* the result from NDB. That code is just in there 
 to make sure that the request handler doesn't exit before the NDB put 
 finishes; 
 if the request handler exits too early, the put might never happen. As a 
 convenience, you can decorate the request handler with@ndb.toplevel. This 
 tells the handler not to exit until its asynchronous requests have 
 finished. This in turn lets you send off the request and not worry about 
 the result.


 https://developers.google.com/appengine/docs/python/ndb/async

 On Wednesday, April 9, 2014 11:26:07 PM UTC+8, saintthor wrote:

 model.put_async()

 then return. without calling Future.get_result(). shouldn't the model be 
 written to datastore?



-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: puzzle about Ancestor Queries

2014-04-07 Thread saintthor

test reply. i replied some posts but is not seen.

在 2014年4月7日星期一UTC+8下午1时55分16秒,saintthor写道:

 https://developers.google.com/appengine/docs/python/ndb/queries

 in sector  Ancestor Queries, the last line:

 Remember, this is limited to one purchase per second. 

 what is 'one purchase per second' mean? i can create only 1 purchase 
 instance per second, or can do 1 query per second?



-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] puzzle about Ancestor Queries

2014-04-07 Thread saintthor
thanks

if i put many entities in 1 second with method put or put_async, will it 
raise exceptions?

在 2014年4月7日星期一UTC+8下午3时42分18秒,Vinny P写道:

 On Mon, Apr 7, 2014 at 12:55 AM, saintthor sain...@gmail.comjavascript:
  wrote:

 https://developers.google.com/appengine/docs/python/ndb/queries

 in sector  Ancestor Queries, the last line:

 Remember, this is limited to one purchase per second. 

 what is 'one purchase per second' mean? i can create only 1 purchase 
 instance per second, or can do 1 query per second?



 It's a reference to the first line of the 
 sectionhttps://developers.google.com/appengine/docs/python/ndb/queries#ancestor,
  
 where it says *Ancestor queries allow you to make strongly consistent 
 queries to the datastore, however entities with the same ancestor are 
 limited to 1 write per second*.

   
 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com
   


-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] what may cause this and how to avoid? This request caused a new process to be started for your application...

2014-04-06 Thread saintthor


This request caused a new process to be started for your application, and thus 
caused your application code to be loaded for the first time. This request may 
thus take longer and use more CPU than a typical request for your application.

i see some of requests log these words. i wonder how to avoid it. i am using 
python2.7 and webapp2.

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] puzzle about Ancestor Queries

2014-04-06 Thread saintthor
https://developers.google.com/appengine/docs/python/ndb/queries

in sector  Ancestor Queries, the last line:

Remember, this is limited to one purchase per second. 

what is 'one purchase per second' mean? i can create only 1 purchase 
instance per second, or can do 1 query per second?

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] how to prevent tasks to retry?

2014-04-05 Thread saintthor
sevral years before, i used the taskqueue like:

 taskqueue.add( url='/zzz', method = GET, countdown = 6 )


now, i want to make the task do not retry for exception. i want to add some 
keywords in the 'add' function. but i can not find it in the document.


in document, there is only: add(task, transactional=False)


where is the style i used before?

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: how to prevent tasks to retry?

2014-04-05 Thread saintthor
thank. i have found the discription for the add func.

在 2014年4月5日星期六UTC+8下午8时26分53秒,timh写道:

 For starters trap any exception, and make sure you return a 200 exit code. 
  This includes trapping things like DeadlineExceededError.

 T

 On Saturday, April 5, 2014 5:41:36 PM UTC+8, saintthor wrote:

 sevral years before, i used the taskqueue like:

 taskqueue.add( url='/zzz', method = GET, countdown = 6 )


 now, i want to make the task do not retry for exception. i want to add 
 some keywords in the 'add' function. but i can not find it in the document.


 in document, there is only: add(task, transactional=False)


 where is the style i used before?



-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] is there any way to access data of another app better than rpc?

2014-03-24 Thread saintthor

use python.

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] how to set GAE_SDK_ROOT environment variable?

2013-11-23 Thread saintthor
i didn't update my app for weeks. today, when i try to update, the 
appcfg.py dosn't work. info as:

urllib2.URLError: urlopen error [Errno 111] Connection refused

i downloaded a new version package. then update. it shows me:

ValueError: Could not determine SDK root; please set GAE_SDK_ROOT 
environment variable.

what dose it mean? i think there may be some new settings in new version.

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] can i access appspot via freenet?

2013-03-06 Thread saintthor
or, do you have this plan in future?

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] is there any datastore-like open source db could be used outside of gae?

2012-07-21 Thread saintthor
if not, i have to consider mongodb.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Ups4jIQRCD0J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: in admin console, how to select a db or ndb entity with gql by id or name?

2012-07-04 Thread saintthor
i mean, how to select a ndb entity with id in admin console. maybe i 
shouldn't use the word 'function'.

since we can select a db entity with WHERE __key__ = KEY(), i 
think there should be a way for ndb too.

在 2012年7月3日星期二UTC+8上午3时55分37秒,Guido van Rossum写道:

 I'm sorry, I don't understand. What function do you believe is missing in 
 NDB?

 On Monday, July 2, 2012 11:51:37 AM UTC+2, saintthor wrote:

 thank you. 

 and, don't you think ndb need this function too?

 在 2012年7月2日星期一UTC+8上午3时14分36秒,Guido van Rossum写道:

 That has nothing to do with ndb; none of those would work with db 
 either. The correct query has WHERE __key__ = KEY().

 On Sunday, July 1, 2012 5:38:00 PM UTC+2, saintthor wrote:

 ndbModel( id = 'KeyName' ).put()

 SELECT * FROM ndbModel where key_name=KEY( 'dbModel', 'KeyName' )
 SELECT * FROM ndbModel where name=KEY( 'dbModel', 'KeyName' )
 SELECT * FROM ndbModel where key=KEY( 'dbModel', 'KeyName' )
 SELECT * FROM ndbModel where id=KEY( 'dbModel', 'KeyName' )

 none of the above can get the entity.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/8NHZAcCkJHAJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: in admin console, how to select a db or ndb entity with gql by id or name?

2012-07-04 Thread saintthor
i am sorry. it seems i misunderstanded the word That has nothing to do 
with ndb;.

在 2012年7月5日星期四UTC+8上午1时46分20秒,Stephen Lewis写道:

 The datastore itself draws no distinction between 'ndb entities' and 'db 
 entities' - the syntax Guido suggested will should work for entities 
 created via either the ndb or the db API.

 Are you unable to query your entities created using the ndb API in the 
 admin console? It works for me...

 Stephen

 On Wednesday, 4 July 2012 15:58:59 UTC+1, saintthor wrote:

 i mean, how to select a ndb entity with id in admin console. maybe i 
 shouldn't use the word 'function'.

 since we can select a db entity with WHERE __key__ = KEY(), i 
 think there should be a way for ndb too.

 在 2012年7月3日星期二UTC+8上午3时55分37秒,Guido van Rossum写道:

 I'm sorry, I don't understand. What function do you believe is missing 
 in NDB?

 On Monday, July 2, 2012 11:51:37 AM UTC+2, saintthor wrote:

 thank you. 

 and, don't you think ndb need this function too?

 在 2012年7月2日星期一UTC+8上午3时14分36秒,Guido van Rossum写道:

 That has nothing to do with ndb; none of those would work with db 
 either. The correct query has WHERE __key__ = KEY().

 On Sunday, July 1, 2012 5:38:00 PM UTC+2, saintthor wrote:

 ndbModel( id = 'KeyName' ).put()

 SELECT * FROM ndbModel where key_name=KEY( 'dbModel', 'KeyName' )
 SELECT * FROM ndbModel where name=KEY( 'dbModel', 'KeyName' )
 SELECT * FROM ndbModel where key=KEY( 'dbModel', 'KeyName' )
 SELECT * FROM ndbModel where id=KEY( 'dbModel', 'KeyName' )

 none of the above can get the entity.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/1-X5LaLouV8J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: in admin console, how to select a db or ndb entity with gql by id or name?

2012-07-02 Thread saintthor
thank you. 

and, don't you think ndb need this function too?

在 2012年7月2日星期一UTC+8上午3时14分36秒,Guido van Rossum写道:

 That has nothing to do with ndb; none of those would work with db either. 
 The correct query has WHERE __key__ = KEY().

 On Sunday, July 1, 2012 5:38:00 PM UTC+2, saintthor wrote:

 ndbModel( id = 'KeyName' ).put()

 SELECT * FROM ndbModel where key_name=KEY( 'dbModel', 'KeyName' )
 SELECT * FROM ndbModel where name=KEY( 'dbModel', 'KeyName' )
 SELECT * FROM ndbModel where key=KEY( 'dbModel', 'KeyName' )
 SELECT * FROM ndbModel where id=KEY( 'dbModel', 'KeyName' )

 none of the above can get the entity.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/eq_nf5nb99YJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] what is Projection queries for ndb?

2012-07-01 Thread saintthor
thanks

在 2012年7月1日星期日UTC+8上午10时23分28秒,Jason Galea写道:

 scratch that..

 https://developers.google.com/appengine/docs/python/ndb/queries#projection


 On Sun, Jul 1, 2012 at 3:47 AM, Jason Galea ja...@lecstor.com wrote:

 I think it's still in development..

 http://code.google.com/p/appengine-ndb-experiment/issues/detail?id=181
  

 On Sun, Jul 1, 2012 at 12:47 AM, saintthor saintt...@gmail.com wrote:

 i didn't find the document.

 -- 
 You received this message because you are subscribed to the Google 
 Groups Google App Engine group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/google-appengine/-/yowYNJEHLSkJ.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.




 -- 
 Jason Galea
 ja...@lecstor.com

 http://lecstor.com
 https://github.com/lecstor
 https://metacpan.org/author/LECSTOR
 http://au.linkedin.com/in/jasongalea
 https://plus.google.com/110776762575649383381
 https://twitter.com/Lecstor

  


 -- 
 Jason Galea
 ja...@lecstor.com

 http://lecstor.com
 https://github.com/lecstor
 https://metacpan.org/author/LECSTOR
 http://au.linkedin.com/in/jasongalea
 https://plus.google.com/110776762575649383381
 https://twitter.com/Lecstor

 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/N-3FcyJB5OIJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] in admin console, how to select a db or ndb entity with gql by id or name?

2012-07-01 Thread saintthor
ndbModel( id = 'KeyName' ).put()

SELECT * FROM ndbModel where key_name=KEY( 'dbModel', 'KeyName' )
SELECT * FROM ndbModel where name=KEY( 'dbModel', 'KeyName' )
SELECT * FROM ndbModel where key=KEY( 'dbModel', 'KeyName' )
SELECT * FROM ndbModel where id=KEY( 'dbModel', 'KeyName' )

none of the above can get the entity.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/C4RteFpkHxkJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] what is Projection queries for ndb?

2012-06-30 Thread saintthor
i didn't find the document.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/yowYNJEHLSkJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: how many db ops does it cost when accessing a ndb entity with a StructuredProperty?

2012-06-25 Thread saintthor
thank you. it is good.

在 2012年6月25日星期一UTC+8上午3时54分56秒,Guido van Rossum写道:

 On Sunday, June 24, 2012 5:40:15 AM UTC-7, saintthor wrote:

 are there a more ops for the StructuredProperty?


 StructuredProperty is essentially just a bunch of properties with funny 
 names. The cost depends on how many indexed properties you have in total in 
 an entity (including in structured properties). So e.g. these two (Flat and 
 Nested) below have the same cost:

 class Flat(ndb.Model):
   name = ndb.StringProperty()
   address_line1 = ndb.StringProperty()
   address_line2 = ndb.StringProperty()

 and

 class Addres(ndb.Model):
   line1 = ndb.StringProperty()
   line2 = ndb.StringProperty()

 class Nested(ndb.Model):
   name = ndb.StringProperty()
   address = ndb.StructuredProperty(Address)



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/EwihDoz7yNIJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] how many db ops does it cost when accessing a ndb entity with a StructuredProperty?

2012-06-24 Thread saintthor
are there a more ops for the StructuredProperty?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/bo2EvK3VzvEJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] how to get all entities of one Model for ndb?

2012-06-21 Thread saintthor
as db.Model.all() does.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/aPHU2eqM_3AJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: can i select a name for a key when using ndb?

2012-06-17 Thread saintthor
thank you.

and, how to select all of the keys in one Model?

在 2012年6月17日星期日UTC+8上午4时26分50秒,Guido van Rossum写道:

 On Saturday, June 16, 2012 9:55:36 AM UTC-7, saintthor wrote:

 for db.expando E:

 E( key_name = 'zzz' ).put()

 will create an entity with a key named 'zzz'. but when using ndb.expando, 
 it set an attribute named 'key_name ' with the value 'zzz'.

 how to make the ndb work as db?


 Use E(id='zzz').put()

 --Guido van Rossum 


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/pSJstYGvsFAJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] what is the best way to share data between apps?

2012-06-16 Thread saintthor
do you think to backup data to another app is against the terms?

在 2012年6月13日星期三UTC+8下午11时07分20秒,barryhunter写道:

 You do know its against the Terms of service, to use multiple 
 applications to avoid paying fees? 

 (see 4.3) 



 On Wed, Jun 13, 2012 at 3:52 PM, saintthor saintt...@gmail.com wrote: 
  mmm, i don't think it is a good idea. the quota will be shared too. 
  
  在 2012年6月13日星期三UTC+8下午10时38分34秒,Rick Mangi写道: 
  
  He means that you can run multiple code bases on the same google app 
  engine application, they show up as different versions but they all 
 share 
  the same backend services. 
  
  So if you app is foo.appspot.com, you can have: 
  
  app1.foo.appspot.com 
  app2.foo.appspot.com 
  app3.foo.appspot.com 
  
  but only the default app is: 
  
  foo.appspot.com 
  
  
  
  On Wednesday, June 13, 2012 5:59:18 AM UTC-4, saintthor wrote: 
  
  what is combine apps? 
  
  i just stopped using cloud sql for pricing. 
  
  thanks. 
  
  在 2012年6月12日星期二UTC+8下午10时57分49秒,barryhunter写道: 
  
  On Tue, Jun 12, 2012 at 3:48 PM, saintthor saintt...@gmail.com 
 wrote: 
   urlfetch? xmpp? any better ways? 
  
  Depends a lot on what you want to share. How real time and what 
  payload size is. 
  
  Another option is CloudSQL. A single sql instance can be accessed 
 from 
  multiple app engine apps. 
  
  Can also use the Remote API interface, but it just waps urlfetch. 
  
  
  Yet another option would be to combine apps, into one. Then you can 
  use task queues etc to communcate between the logicial 
  sub-applications. 
  
  
  在 2012年6月12日星期二UTC+8下午10时57分49秒,barryhunter写道: 
  
  On Tue, Jun 12, 2012 at 3:48 PM, saintthor saintt...@gmail.com 
 wrote: 
   urlfetch? xmpp? any better ways? 
  
  Depends a lot on what you want to share. How real time and what 
  payload size is. 
  
  Another option is CloudSQL. A single sql instance can be accessed 
 from 
  multiple app engine apps. 
  
  Can also use the Remote API interface, but it just waps urlfetch. 
  
  
  Yet another option would be to combine apps, into one. Then you can 
  use task queues etc to communcate between the logicial 
  sub-applications. 
  
  
  在 2012年6月12日星期二UTC+8下午10时57分49秒,barryhunter写道: 
  
  On Tue, Jun 12, 2012 at 3:48 PM, saintthor saintt...@gmail.com 
 wrote: 
   urlfetch? xmpp? any better ways? 
  
  Depends a lot on what you want to share. How real time and what 
  payload size is. 
  
  Another option is CloudSQL. A single sql instance can be accessed 
 from 
  multiple app engine apps. 
  
  Can also use the Remote API interface, but it just waps urlfetch. 
  
  
  Yet another option would be to combine apps, into one. Then you can 
  use task queues etc to communcate between the logicial 
  sub-applications. 
  
  
  在 2012年6月12日星期二UTC+8下午10时57分49秒,barryhunter写道: 
  
  On Tue, Jun 12, 2012 at 3:48 PM, saintthor saintt...@gmail.com 
 wrote: 
   urlfetch? xmpp? any better ways? 
  
  Depends a lot on what you want to share. How real time and what 
  payload size is. 
  
  Another option is CloudSQL. A single sql instance can be accessed 
 from 
  multiple app engine apps. 
  
  Can also use the Remote API interface, but it just waps urlfetch. 
  
  
  Yet another option would be to combine apps, into one. Then you can 
  use task queues etc to communcate between the logicial 
  sub-applications. 
  
  -- 
  You received this message because you are subscribed to the Google 
 Groups 
  Google App Engine group. 
  To view this discussion on the web visit 
  https://groups.google.com/d/msg/google-appengine/-/8NAXJLTvb7oJ. 
  
  To post to this group, send email to google-appengine@googlegroups.com. 
  To unsubscribe from this group, send email to 
  google-appengine+unsubscr...@googlegroups.com. 
  For more options, visit this group at 
  http://groups.google.com/group/google-appengine?hl=en. 


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/N2Euffl6rdQJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] can i select a name for a key when using ndb?

2012-06-16 Thread saintthor
for db.expando E:

E( key_name = 'zzz' ).put()

will create an entity with a key named 'zzz'. but when using ndb.expando, 
it set an attribute named 'key_name ' with the value 'zzz'.

how to make the ndb work as db?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/sFzheQaK7yQJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] what is the best way to share data between apps?

2012-06-13 Thread saintthor
what is combine apps?

i just stopped using cloud sql for pricing.

thanks.

在 2012年6月12日星期二UTC+8下午10时57分49秒,barryhunter写道:

 On Tue, Jun 12, 2012 at 3:48 PM, saintthor saintt...@gmail.com wrote: 
  urlfetch? xmpp? any better ways? 

 Depends a lot on what you want to share. How real time and what 
 payload size is. 

 Another option is CloudSQL. A single sql instance can be accessed from 
 multiple app engine apps. 

 Can also use the Remote API interface, but it just waps urlfetch. 


 Yet another option would be to combine apps, into one. Then you can 
 use task queues etc to communcate between the logicial 
 sub-applications. 


在 2012年6月12日星期二UTC+8下午10时57分49秒,barryhunter写道:

 On Tue, Jun 12, 2012 at 3:48 PM, saintthor saintt...@gmail.com wrote: 
  urlfetch? xmpp? any better ways? 

 Depends a lot on what you want to share. How real time and what 
 payload size is. 

 Another option is CloudSQL. A single sql instance can be accessed from 
 multiple app engine apps. 

 Can also use the Remote API interface, but it just waps urlfetch. 


 Yet another option would be to combine apps, into one. Then you can 
 use task queues etc to communcate between the logicial 
 sub-applications. 


在 2012年6月12日星期二UTC+8下午10时57分49秒,barryhunter写道:

 On Tue, Jun 12, 2012 at 3:48 PM, saintthor saintt...@gmail.com wrote: 
  urlfetch? xmpp? any better ways? 

 Depends a lot on what you want to share. How real time and what 
 payload size is. 

 Another option is CloudSQL. A single sql instance can be accessed from 
 multiple app engine apps. 

 Can also use the Remote API interface, but it just waps urlfetch. 


 Yet another option would be to combine apps, into one. Then you can 
 use task queues etc to communcate between the logicial 
 sub-applications. 


在 2012年6月12日星期二UTC+8下午10时57分49秒,barryhunter写道:

 On Tue, Jun 12, 2012 at 3:48 PM, saintthor saintt...@gmail.com wrote: 
  urlfetch? xmpp? any better ways? 

 Depends a lot on what you want to share. How real time and what 
 payload size is. 

 Another option is CloudSQL. A single sql instance can be accessed from 
 multiple app engine apps. 

 Can also use the Remote API interface, but it just waps urlfetch. 


 Yet another option would be to combine apps, into one. Then you can 
 use task queues etc to communcate between the logicial 
 sub-applications. 


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Sg7Dm2vpg4kJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] what is the best way to share data between apps?

2012-06-13 Thread saintthor
mmm, i don't think it is a good idea. the quota will be shared too.

在 2012年6月13日星期三UTC+8下午10时38分34秒,Rick Mangi写道:

 He means that you can run multiple code bases on the same google app 
 engine application, they show up as different versions but they all share 
 the same backend services.

 So if you app is foo.appspot.com, you can have:

 app1.foo.appspot.com
 app2.foo.appspot.com
 app3.foo.appspot.com

 but only the default app is:

 foo.appspot.com



 On Wednesday, June 13, 2012 5:59:18 AM UTC-4, saintthor wrote:

 what is combine apps?

 i just stopped using cloud sql for pricing.

 thanks.

 在 2012年6月12日星期二UTC+8下午10时57分49秒,barryhunter写道:

 On Tue, Jun 12, 2012 at 3:48 PM, saintthor saintt...@gmail.com wrote: 
  urlfetch? xmpp? any better ways? 

 Depends a lot on what you want to share. How real time and what 
 payload size is. 

 Another option is CloudSQL. A single sql instance can be accessed from 
 multiple app engine apps. 

 Can also use the Remote API interface, but it just waps urlfetch. 


 Yet another option would be to combine apps, into one. Then you can 
 use task queues etc to communcate between the logicial 
 sub-applications. 


 在 2012年6月12日星期二UTC+8下午10时57分49秒,barryhunter写道:

 On Tue, Jun 12, 2012 at 3:48 PM, saintthor saintt...@gmail.com wrote: 
  urlfetch? xmpp? any better ways? 

 Depends a lot on what you want to share. How real time and what 
 payload size is. 

 Another option is CloudSQL. A single sql instance can be accessed from 
 multiple app engine apps. 

 Can also use the Remote API interface, but it just waps urlfetch. 


 Yet another option would be to combine apps, into one. Then you can 
 use task queues etc to communcate between the logicial 
 sub-applications. 


 在 2012年6月12日星期二UTC+8下午10时57分49秒,barryhunter写道:

 On Tue, Jun 12, 2012 at 3:48 PM, saintthor saintt...@gmail.com wrote: 
  urlfetch? xmpp? any better ways? 

 Depends a lot on what you want to share. How real time and what 
 payload size is. 

 Another option is CloudSQL. A single sql instance can be accessed from 
 multiple app engine apps. 

 Can also use the Remote API interface, but it just waps urlfetch. 


 Yet another option would be to combine apps, into one. Then you can 
 use task queues etc to communcate between the logicial 
 sub-applications. 


 在 2012年6月12日星期二UTC+8下午10时57分49秒,barryhunter写道:

 On Tue, Jun 12, 2012 at 3:48 PM, saintthor saintt...@gmail.com wrote: 
  urlfetch? xmpp? any better ways? 

 Depends a lot on what you want to share. How real time and what 
 payload size is. 

 Another option is CloudSQL. A single sql instance can be accessed from 
 multiple app engine apps. 

 Can also use the Remote API interface, but it just waps urlfetch. 


 Yet another option would be to combine apps, into one. Then you can 
 use task queues etc to communcate between the logicial 
 sub-applications. 



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/8NAXJLTvb7oJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] what is the best way to share data between apps?

2012-06-12 Thread saintthor
urlfetch? xmpp? any better ways?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/LxyNAEJ78vgJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] will the browser open my gae site via spdy if it supports?

2012-06-07 Thread saintthor
it seems so.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/nSJQDDZ0Yv4J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] is multiprocessing or pprocess supported by gae?

2012-02-10 Thread saintthor
i need them.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: is multiprocessing or pprocess supported by gae?

2012-02-10 Thread saintthor
my app takes a lot of cpu time. threading takes more.

On 2月11日, 上午1时57分, Ricardo Bánffy rban...@gmail.com wrote:
 If you explain why you need them, maybe someone will be able to help you. I
 suspect App Engine doesn't support them, but there are other ways to
 accomplish what they do.

 On Fri, Feb 10, 2012 at 2:22 PM, saintthor saintt...@gmail.com wrote:
  i need them.

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  To post to this group, send email to google-appengine@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

 --
 Ricardo Bánffyhttp://www.dieblinkenlights.comhttp://twitter.com/rbanffy

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: how to calculate the instance hours if using mapreduce?

2012-01-08 Thread saintthor
can anyone answer this?

On Dec 27 2011, 5:42 pm, saintthor saintt...@gmail.com wrote:
 will it be very large?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] how to calculate the instance hours when using mapreduce?

2012-01-08 Thread saintthor
will it be very large?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] how to calculate the instance hours if using mapreduce?

2011-12-27 Thread saintthor
will it be very large?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: about error django 1.2 was requested, but 0.96.4.None is already in use

2011-09-21 Thread saintthor
i put the code in handler file. and the same error occurs in
use_library().

On 9月21日, 上午10时24分, roberto.cr roberto...@gmail.com wrote:
 as Jose has said, put the code you pasted here in the beginning of the
 script
 some stuff load django code without you knowing, like some stuff from
 google.appengine.ext.webapp if I remember correctly

 On Sep 20, 8:31 pm, Jose Montes de Oca jfmontesde...@google.com
 wrote:







  Are you adding that code in the beginning of your script handler your
  application use?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] about error django 1.2 was requested, but 0.96.4.None is already in use

2011-09-18 Thread saintthor
i have added such code:
==
from google.appengine.dist import use_library

use_library('django', '1.2')
webapp_django_version = '1.2'
==

but the error raised in use_library()

==

2011-09-19 00:20:02.722

class 'google.appengine.dist._library.UnacceptableVersionError':
django 1.2 was requested, but 0.96.4.None is already in use
Traceback (most recent call last):
  File /base/data/home/apps/djdqbbs/d1.353358444069227713/2.py, line
8, in module
from List import ListPg, PostPg, UserPg, InputPg, TreePg,
WithChatPg, TestPg, MinePg, VerifyPage, OldPg, CssPg
  File /base/data/home/apps/djdqbbs/d1.353358444069227713/List.py,
line 10, in module
from google.appengine.ext.webapp.template import render
  File /base/python_runtime/python_lib/versions/1/google/appengine/
ext/webapp/template.py, line 66, in module
webapp._config_handle.django_setup()
  File /base/python_runtime/python_lib/versions/1/google/appengine/
api/lib_config.py, line 352, in __getattr__
self._update_configs()
  File /base/python_runtime/python_lib/versions/1/google/appengine/
api/lib_config.py, line 289, in _update_configs
self._registry.initialize()
  File /base/python_runtime/python_lib/versions/1/google/appengine/
api/lib_config.py, line 164, in initialize
import_func(self._modname)
  File /base/data/home/apps/djdqbbs/d1.353358444069227713/
appengine_config.py, line 41, in module
use_library('django', '1.2')
  File /base/python_runtime/python_lib/versions/1/google/appengine/
dist/_library.py, line 414, in use_library
InstallLibrary(name, version, explicit=True)
  File /base/python_runtime/python_lib/versions/1/google/appengine/
dist/_library.py, line 367, in InstallLibrary
CheckInstalledVersion(name, version, explicit=True)
  File /base/python_runtime/python_lib/versions/1/google/appengine/
dist/_library.py, line 300, in CheckInstalledVersion
(name, desired_version, installed_version))

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] why Datastore Key Fetch Ops is so many?

2011-09-13 Thread saintthor
now, my quota:

Datastore Entity Fetch Ops
0%
0%  17,400 of Unlimited Okay
Datastore Entity Put Ops
0%
0%  136 of UnlimitedOkay
Datastore Entity Delete Ops
0%
0%  0 of Unlimited  Okay
Datastore Index Write Ops
0%
0%  240 of UnlimitedOkay
Datastore Query Ops
0%
0%  343 of UnlimitedOkay
Datastore Key Fetch Ops
0%
0%  208,358 of UnlimitedOkay


Datastore Key Fetch Ops is much more than others. what may cause this?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: why Datastore Key Fetch Ops is so many?

2011-09-13 Thread saintthor
yes i use count.

what can instead it?

On 9月14日, 上午2时28分, JH ja...@mhztech.com wrote:
 Yes I found counts absolutely kill your small datastore ops.  Of
 course it has never been recommended to .count()... but if you are you
 will not be able to stay in free quota...

 On Sep 13, 12:51 pm, Gregory D'alesandre gr...@google.com wrote:







  Doing a 
  counthttp://code.google.com/appengine/docs/python/datastore/queryclass.htm...
  uses
  key fetch ops, is it possible you have a few counts in your code?

  Greg

  On Tue, Sep 13, 2011 at 10:14 AM, saintthor saintt...@gmail.com wrote:
   now, my quota:

   Datastore Entity Fetch Ops
   0%
  0%  17,400 of Unlimited Okay
   Datastore Entity Put Ops
   0%
  0%  136 of UnlimitedOkay
   Datastore Entity Delete Ops
   0%
  0%  0 of Unlimited  Okay
   Datastore Index Write Ops
   0%
  0%  240 of UnlimitedOkay
   Datastore Query Ops
   0%
  0%  343 of UnlimitedOkay
   Datastore Key Fetch Ops
   0%
  0%  208,358 of UnlimitedOkay

   Datastore Key Fetch Ops is much more than others. what may cause this?

   --
   You received this message because you are subscribed to the Google Groups
   Google App Engine group.
   To post to this group, send email to google-appengine@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] the min instace time is 24 hours?

2011-09-05 Thread saintthor
if no request to the app for a whole day,  the instace time will be 24
hours?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: how to reindex a property that once set to indexed = false?

2011-09-05 Thread saintthor
the password was hashed.

i think to query name and password together may take less db ops if
password is wrong. isn't it?

On 9月5日, 下午1时43分, Nick Johnson nickjohn...@google.com wrote:
 Also, you don't need to index the password field - just fetch the user, then
 check the password. I sincerely hope you're not storing the password in the
 clear, though!

 -Nick









 On Mon, Sep 5, 2011 at 3:02 PM, Simon Knott knott.si...@gmail.com wrote:
  Hi,

  You need to retrieve all objects that were written in this period out of
  the datastore and re-put them - single-property indexes are only written on
  putting the entity.  If you can't work out which entities were written in
  this period, then you will need to retrieve all entities and re-put them.

  It should be noted that query indexes, which use these single-property
  indexes in the background, are re-generated on deployment.

  Cheers,
  Simon

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/VYJDjjca21MJ.

  To post to this group, send email to google-appengine@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

 --
 Nick Johnson, Developer Programs Engineer, App Engine

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: how to reindex a property that once set to indexed = false?

2011-09-05 Thread saintthor
hash is enough for me. my site is not an e-bank.

On 9月5日, 下午3时58分, Nick Johnson nickjohn...@google.com wrote:
 On Mon, Sep 5, 2011 at 4:42 PM, saintthor saintt...@gmail.com wrote:
  the password was hashed.

  i think to query name and password together may take less db ops if
  password is wrong. isn't it?

 The number of operations is the same; fewer entities would be returned. In
 return, though, you're incurring an extra index entry for every record. You
 _should_ be salting your passwords (and preferably using RCrypt, SCrypt or
 PBKDF2), though, in which case you can't do an index lookup for the password
 anyway.

 -Nick Johnson











  On 9月5日, 下午1时43分, Nick Johnson nickjohn...@google.com wrote:
   Also, you don't need to index the password field - just fetch the user,
  then
   check the password. I sincerely hope you're not storing the password in
  the
   clear, though!

   -Nick

   On Mon, Sep 5, 2011 at 3:02 PM, Simon Knott knott.si...@gmail.com
  wrote:
Hi,

You need to retrieve all objects that were written in this period out
  of
the datastore and re-put them - single-property indexes are only
  written on
putting the entity.  If you can't work out which entities were written
  in
this period, then you will need to retrieve all entities and re-put
  them.

It should be noted that query indexes, which use these single-property
indexes in the background, are re-generated on deployment.

Cheers,
Simon

--
You received this message because you are subscribed to the Google
  Groups
Google App Engine group.
To view this discussion on the web visit
   https://groups.google.com/d/msg/google-appengine/-/VYJDjjca21MJ.

To post to this group, send email to google-appengine@googlegroups.com
  .
To unsubscribe from this group, send email to
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at
   http://groups.google.com/group/google-appengine?hl=en.

   --
   Nick Johnson, Developer Programs Engineer, App Engine

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  To post to this group, send email to google-appengine@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

 --
 Nick Johnson, Developer Programs Engineer, App Engine

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: I need ask it again, for I didn't get a direct answer from googlers. Why gae computing price is so high.

2011-09-04 Thread saintthor
money will never bite your hand.

On 9月4日, 上午6时23分, Tapir tapir@gmail.com wrote:
 Please don't talk about others such storage, just for the computing.

 Please the first post in this 
 thread:http://groups.google.com/group/google-appengine/browse_thread/thread/...

 Specially, here I compare your B! backend and amazon Small Instance.

 B1  128MB   600MHz  $0.08 per hour
 Amazon Small Instance: 1.7 GB, 1.0-1.2GHz, 160 GB of local instance
 storage, $0.085 per hour.
 Assume the startup memory usage is 30M vs. 1000M, so the free memory
 for app to use is: 98M vs 700M.
 (here assume 1000M EC2 startup memory includes the memcache memory)

 The $/(per M memory for apps)/(per GHz GPU)/(1000 hours) is $1.36 vs
 $0.12.
 You charge more than 10 times than EC2.
 Why?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] how to delete indexes? just in index.yaml?

2011-09-04 Thread saintthor
i deleted some indexes in index.yaml. uploaded. then in console
Datastore Indexes, i see the deleted index are still serving.

are they really deleted?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: how to delete indexes? just in index.yaml?

2011-09-04 Thread saintthor
thanks

i deleted 11 indexes in 17. i hope this can reduce my datastore ops.

On 9月4日, 下午4时13分, Philip philip.mates...@driggle.com wrote:
 You have to perform a vacuum_indexes operation.

 On Sep 4, 10:08 am, saintthor saintt...@gmail.com wrote:







  i deleted some indexes in index.yaml. uploaded. then in console
  Datastore Indexes, i see the deleted index are still serving.

  are they really deleted?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



  1   2   3   >