[google-appengine] NDB query.filter

2012-01-10 Thread Moises Belchin
Hi all,

I'm using NDB query filter and I want to know If it possible store
filters on list and then pass them to NDB.query.filter.
See code below:

## BEGIN CODE
###

from google.appengine.ext.ndb import query
from model import MyModel

year_from = 2012
month_from = 1
day_from = 1

year_to = 2012
month_to = 1
day_to = 9

filterDate = []

for i in range(day_from, day_to):
  filterDate.append(query.AND(MyModel.day == i,
MyModel.month ==
month_from,
MyModel.year ==
year_from))

q = MyModel.query()
q = q.filter(query.OR(filterDate)) # This raise: TypeError: Cannot
filter a non-Node argument;
result = q.fetch(20)

## END CODE
###

My questions:
1. How I convert filterDate to Node argument if possible?
2. Is this code correct and possible with NDB?
3. If not, What is the best practise to implement something similar to
code above?

Thanks so much !

-- 
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] Api.Files.Finalize fails permanently

2012-03-13 Thread Moises Belchin
Hi all,

I do a very simple test. Create gs file, write info to it and
finalize.
My App Engine app have permission to Google Cloud Storage as OWNER

I test that from my AppEngine app and I test from remote api.

## CODE ##

path = /gs/bucket/MyFile
mime_type = 'application/octet-stream'
acl = 'public-read-write'
write_path = files.gs.create(path, mime_type = mime_type, acl = acl)

q = MyModel.query()
regs = q.fetch()
for r in regs:
  with files.open(write_path, 'a') as fp:
fp.write(str(r))

# When I do finalize or f.close(finalized = True) Always fails and
give me ERROR 1
files.finalize(write_path)

## END CODE ##

## ERROR 1 ##
Traceback (most recent call last):
  File "/base/python27_runtime/python27_lib/versions/1/google/
appengine/ext/admin/__init__.py", line 317, in post
exec(compiled_code, globals())
  File "", line 43, in 
  File "/base/data/home/apps/s~semtable/v51r05.357456670132838042/
utils.py", line 1080, in finalize
files.finalize(write_path)
  File "/base/python27_runtime/python27_lib/versions/1/google/
appengine/api/files/file.py", line 450, in finalize
f.close(finalize=True)
  File "/base/python27_runtime/python27_lib/versions/1/google/
appengine/api/files/file.py", line 277, in close
self._make_rpc_call_with_retry('Close', request, response)
  File "/base/python27_runtime/python27_lib/versions/1/google/
appengine/api/files/file.py", line 390, in _make_rpc_call_with_retry
_make_call(method, request, response)
  File "/base/python27_runtime/python27_lib/versions/1/google/
appengine/api/files/file.py", line 238, in _make_call
_raise_app_error(e)
  File "/base/python27_runtime/python27_lib/versions/1/google/
appengine/api/files/file.py", line 172, in _raise_app_error
raise UnknownError()
UnknownError
## END ERROR 1 ##

How can I resolve this problem?

Thanks so much.

-- 
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: Api.Files.Finalize fails permanently

2012-03-13 Thread Moises Belchin
My problem was solved !!!

When I create the file I set ACL to 'public-read' and It worked !!

However if you used ACL = 'public-read-write' It fails, because
public-read-write applies only for buckets, be careful with that !

Regards and I hope this will be useful for you.

Thanks all !

2012/3/13 Moises Belchin 

> Hi all,
>
> I do a very simple test. Create gs file, write info to it and
> finalize.
> My App Engine app have permission to Google Cloud Storage as OWNER
>
> I test that from my AppEngine app and I test from remote api.
>
> ## CODE ##
>
> path = /gs/bucket/MyFile
> mime_type = 'application/octet-stream'
> acl = 'public-read-write'
> write_path = files.gs.create(path, mime_type = mime_type, acl = acl)
>
> q = MyModel.query()
> regs = q.fetch()
> for r in regs:
>  with files.open(write_path, 'a') as fp:
>fp.write(str(r))
>
> # When I do finalize or f.close(finalized = True) Always fails and
> give me ERROR 1
> files.finalize(write_path)
>
> ## END CODE ##
>
> ## ERROR 1 ##
> Traceback (most recent call last):
>  File "/base/python27_runtime/python27_lib/versions/1/google/
> appengine/ext/admin/__init__.py", line 317, in post
>exec(compiled_code, globals())
>  File "", line 43, in 
>  File "/base/data/home/apps/s~semtable/v51r05.357456670132838042/
> utils.py", line 1080, in finalize
>files.finalize(write_path)
>  File "/base/python27_runtime/python27_lib/versions/1/google/
> appengine/api/files/file.py", line 450, in finalize
>f.close(finalize=True)
>  File "/base/python27_runtime/python27_lib/versions/1/google/
> appengine/api/files/file.py", line 277, in close
>self._make_rpc_call_with_retry('Close', request, response)
>  File "/base/python27_runtime/python27_lib/versions/1/google/
> appengine/api/files/file.py", line 390, in _make_rpc_call_with_retry
>_make_call(method, request, response)
>  File "/base/python27_runtime/python27_lib/versions/1/google/
> appengine/api/files/file.py", line 238, in _make_call
>_raise_app_error(e)
>  File "/base/python27_runtime/python27_lib/versions/1/google/
> appengine/api/files/file.py", line 172, in _raise_app_error
>raise UnknownError()
> UnknownError
> ## END ERROR 1 ##
>
> How can I resolve this problem?
>
> Thanks so much.
>



-- 
Saludos.
Moisés Belchín.

-- 
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: Api.Files.Finalize fails permanently

2012-03-13 Thread Moises Belchin
More info about that here:

https://developers.google.com/storage/docs/accesscontrol

Regards.

2012/3/13 Moises Belchin 

> My problem was solved !!!
>
> When I create the file I set ACL to 'public-read' and It worked !!
>
> However if you used ACL = 'public-read-write' It fails, because
> public-read-write applies only for buckets, be careful with that !
>
> Regards and I hope this will be useful for you.
>
> Thanks all !
>
> 2012/3/13 Moises Belchin 
>
>> Hi all,
>>
>> I do a very simple test. Create gs file, write info to it and
>> finalize.
>> My App Engine app have permission to Google Cloud Storage as OWNER
>>
>> I test that from my AppEngine app and I test from remote api.
>>
>> ## CODE ##
>>
>> path = /gs/bucket/MyFile
>> mime_type = 'application/octet-stream'
>> acl = 'public-read-write'
>> write_path = files.gs.create(path, mime_type = mime_type, acl = acl)
>>
>> q = MyModel.query()
>> regs = q.fetch()
>> for r in regs:
>>  with files.open(write_path, 'a') as fp:
>>fp.write(str(r))
>>
>> # When I do finalize or f.close(finalized = True) Always fails and
>> give me ERROR 1
>> files.finalize(write_path)
>>
>> ## END CODE ##
>>
>> ## ERROR 1 ##
>> Traceback (most recent call last):
>>  File "/base/python27_runtime/python27_lib/versions/1/google/
>> appengine/ext/admin/__init__.py", line 317, in post
>>exec(compiled_code, globals())
>>  File "", line 43, in 
>>  File "/base/data/home/apps/s~semtable/v51r05.357456670132838042/
>> utils.py", line 1080, in finalize
>>files.finalize(write_path)
>>  File "/base/python27_runtime/python27_lib/versions/1/google/
>> appengine/api/files/file.py", line 450, in finalize
>>f.close(finalize=True)
>>  File "/base/python27_runtime/python27_lib/versions/1/google/
>> appengine/api/files/file.py", line 277, in close
>>self._make_rpc_call_with_retry('Close', request, response)
>>  File "/base/python27_runtime/python27_lib/versions/1/google/
>> appengine/api/files/file.py", line 390, in _make_rpc_call_with_retry
>>_make_call(method, request, response)
>>  File "/base/python27_runtime/python27_lib/versions/1/google/
>> appengine/api/files/file.py", line 238, in _make_call
>>_raise_app_error(e)
>>  File "/base/python27_runtime/python27_lib/versions/1/google/
>> appengine/api/files/file.py", line 172, in _raise_app_error
>>raise UnknownError()
>> UnknownError
>> ## END ERROR 1 ##
>>
>> How can I resolve this problem?
>>
>> Thanks so much.
>>
>
>
>
> --
> Saludos.
> Moisés Belchín.
>
>


-- 
Saludos.
Moisés Belchín.

-- 
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] Disable appstats on app.yaml

2012-04-12 Thread Moises Belchin
Hi all,

Is there any way to disable appstats only for one handler through app.yaml ?

How can I get additional infor for appstats advanced configuration ?

I want to disable appstats for remote_api handler.

- url: /_ah/remote_api
   script: google.appengine.ext.remote_api.handler.application
   login: admin

Thanks so much.

Saludos.
Moisés Belchín.

-- 
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.



Re: [google-appengine] Re: Disable appstats on app.yaml

2012-04-13 Thread Moises Belchin
Thanks for the answer It's very useful.

Thanks so much.

Saludos.
Moisés Belchín.



2012/4/12 Jason Collins 

> You can filter in appengine_config.py like this:
>
> appstats_FILTER_LIST = [{'PATH_INFO': '!^/your/unwanted/handler/here/
> $'}]
>
> The "!" at the front tells appstats that you don't want that in your
> recording.
>
> google/appengine/ext/appstats/sample_appengine_config.py has a whole
> bunch of other goodness in it.
>
> j
>
> On Apr 12, 1:55 am, Moises Belchin  wrote:
> > Hi all,
> >
> > Is there any way to disable appstats only for one handler through
> app.yaml ?
> >
> > How can I get additional infor for appstats advanced configuration ?
> >
> > I want to disable appstats for remote_api handler.
> >
> > - url: /_ah/remote_api
> >script: google.appengine.ext.remote_api.handler.application
> >login: admin
> >
> > Thanks so much.
> >
> > Saludos.
> > Moisés Belchín.
>
> --
> 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] In last hour 11:00 UTC many 121 Errors

2012-05-08 Thread Moises Belchin
Does anyone experimented this errors ?

In last hour (11:00 UTC) We experimented a lot of 121 Errors, any
suggestion ?

Saludos.
Moisés Belchín.

-- 
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.



Re: [google-appengine] Re: In last hour 11:00 UTC many 121 Errors

2012-05-08 Thread Moises Belchin
This is sample log error:


   1. 2012-05-08 12:01:23.248

   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.

   2. W2012-05-08 12:01:23.248

   A problem was encountered with the process that handled this
request, causing it to exit. This is likely to cause a new process to
be used for the next request to your application. (Error code 121)



Saludos.
Moisés Belchín.



2012/5/8 pdknsk 

> I'm having the same problem, but only on a single backend. Submitted a
> production issue to Google, but no reply or improvement so far.
>
> --
> 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.



Re: [google-appengine] Re: In last hour 11:00 UTC many 121 Errors

2012-05-08 Thread Moises Belchin
now everything seems to be stable again

Saludos.
Moisés Belchín.



2012/5/8 Kenneth 

> Yeah, I'm hit by this too, see my earlier post.  Someone at Google needs
> to turn a dial.
>
>
> On Tuesday, May 8, 2012 1:02:49 PM UTC+1, Moises Belchin wrote:
>>
>> This is sample log error:
>>
>>
>>1.  2012-05-08 12:01:23.248
>>
>>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.
>>
>>2.  W2012-05-08 12:01:23.248
>>
>>A problem was encountered with the process that handled this request, 
>> causing it to exit. This is likely to cause a new process to be used for the 
>> next request to your application. (Error code 121)
>>
>>
>>
>> Saludos.
>> Moisés Belchín.
>>
>>
>>
>> 2012/5/8 pdknsk 
>>
>>> I'm having the same problem, but only on a single backend. Submitted a
>>> production issue to Google, but no reply or improvement so far.
>>>
>>> --
>>> 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+unsubscribe@**googlegroups.com
>>> .
>>> For more options, visit this group at http://groups.google.com/**
>>> group/google-appengine?hl=en<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/-/79fmRGKEKucJ.
>
> 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.



Re: [google-appengine] Has anyone else noticed deployment is really fast today?

2012-06-06 Thread Moises Belchin
Yeah ! incredibly fast !

Keep it up !

Regards.
Moisés Belchín.



2012/6/6 Kenneth 

> Though I'd post something positive for a change.
>
> --
> 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/-/SPNZpT4evG4J.
> 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] appcfg upload data to localhost problems

2012-06-23 Thread Moises Belchin
Hi all,

I frequently use localhost server to develop my apps and then deploy to my
server.

With latest release 1.6.5 when I download a kind from my application with
appcfg and then upload to my test localhost server all works fine, however
when I stop launcher and then run again the last kind downloaded It has
been disappeared.

Is It normal? In other releases all works well and If I stop and run again
the launcher I can see the new downloaded kinds.

Thanks for help.

Commands I run:

Download kind:
C:\Python27\python.exe "C:\Program Files\Google\google_appengine\appcfg.py"
-e myem...@gmail.com download_data --kind=MyKIND --url=
http://appid.appspot.com/_ah/remote_api --filename=MyKIND.sqlite3

Upload kind:
C:\Python27\python.exe "C:\Program Files\Google\google_appengine\appcfg.py"
-e myem...@gmail.com --url
http://localhost:8084/_ah/remote_api--file=MyKIND.sqlite3 upload_data

Regards.
Moisés Belchín.

-- 
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.



Re: [google-appengine] Re: appcfg upload data to localhost problems

2012-06-24 Thread Moises Belchin
Thanks for the link.

I leave here my steps and I hope this will help other users.

1. Uninstall google appengine and delete all appengine directories on
C:\Program files and C:\Users\
2. Delete the file
C:\Users\\AppData\Local\Temp\dev_appserver.datastore
3. Download latest release 1.6.6 and install it.
4. With appcfg I downloaded again my kinds and I uploaded to localhost.

Best regards and good luck :-)

Moisés Belchín.



2012/6/24 Mahron 

>
> https://groups.google.com/group/google-appengine/browse_thread/thread/18c24f04ae3e897b/84af2c76f0571686?lnk=gst&q=not+saving+data#84af2c76f0571686
>
> I got if fixed with 1.1.6.
> I uninstalled the previous version(thing I did not do before) and
> installed the new.
> If I close it with the launcher it's fine.
> Now the data only disappears when windows decides to restart my
> computer in the middle of the night.
>
> --
> 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] NDB Query offset - limit

2012-09-19 Thread Moises Belchin
Hi guys,

I have this query:

q = MyKind.query()
regs = q.fetch(offset = 990, limit = 10) // *Returns 10 entities.*

If I press next button on my UI:

q = MyKind.query()
regs = q.fetch(offset = 1000, limit = 10) // *Returns 0 * *entities* *.*

MyKind has 1300 entities.

Any thoughts?

Thanks and regards.
Moisés Belchín.

-- 
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.



Re: [google-appengine] Re: NDB Query offset - limit

2012-09-20 Thread Moises Belchin
Hi Guido,

Thanks for your answer.

We test to use query cursors and we decide don't use them because query
cursors don't work in reverse order if you don't do query orders.

We have queries with many filters and we can't do query orders for this
queries. In this case if we use cursors, the reverse function doesn't work
properly.

We want to know how we must work in this cases without create indexes for
this kind of queries.

Thanks and regards.
Moisés Belchín.



2012/9/20 Guido van Rossum 

> On Wednesday, September 19, 2012 8:51:48 AM UTC-7, Moises Belchin wrote:
>
>> Hi guys,
>>
>> I have this query:
>>
>> q = MyKind.query()
>> regs = q.fetch(offset = 990, limit = 10) // *Returns 10 entities.*
>>
>> If I press next button on my UI:
>>
>> q = MyKind.query()
>> regs = q.fetch(offset = 1000, limit = 10) // *Returns 0 * *entities* *.*
>>
>> MyKind has 1300 entities.
>>
>> Any thoughts?
>>
>> Thanks and regards.
>> Moisés Belchín.
>>
>
> I can confirm this. I believe it is intentional to encourage you to use
> cursors instead of offsets for such queries; internally, you are paying for
> reading all the entities that you are skipping using the offset.
>
> --Guido
>
> --
> 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/-/uNrSdb1M29wJ.
> 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] How to download Text Search to localhost dev server

2012-09-21 Thread Moises Belchin
Hi guys,

Is there any way to download Text Search to localhost dev server for tests
and debug ?

Thanks in advance.

Regards.
Moisés Belchín.

-- 
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 Text Search Name

2012-09-24 Thread Moises Belchin
Is there any way to delete Text Search's name ??

Thanks all.

Regards
Moisés Belchín.

-- 
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.



Re: [google-appengine] How to delete Text Search Name

2012-09-24 Thread Moises Belchin
Hi and thanks for answers,

I removed all my documents on some indexes and the index name still
being appearing on Dashboard.
Is there any way to remove from Dashboard?

Thanks and regards.
Moisés Belchín.



2012/9/24 Shilendra Sharma 

> This also
>
>
> http://googlecode.blogspot.in/2010/05/google-app-engine-basic-text-search.html
>
>
> http://grokbase.com/t/gg/google-appengine/1297p2697k/text-search-api-not-working-on-my-production-app
>
>
> Regards & Thanks
> Shilendra Sharma
> +919891343808
> shilendra...@googlemail.com
>
>
> On Mon, Sep 24, 2012 at 1:52 PM, Shilendra Sharma 
> wrote:
>
>> Hi, Belchín
>>
>> see this may be help full to you
>>
>>
>> http://stackoverflow.com/questions/12365184/delete-indexed-full-text-search-in-google-app-engine
>>
>> Regards & Thanks
>> Shilendra Sharma
>> +919891343808
>> shilendra...@googlemail.com
>>
>>
>>
>> On Mon, Sep 24, 2012 at 1:47 PM, Moises Belchin 
>> wrote:
>>
>>> Is there any way to delete Text Search's name ??
>>>
>>> Thanks all.
>>>
>>> Regards
>>> Moisés Belchín.
>>>
>>>  --
>>> 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.
>

-- 
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] NDB Transactions

2012-09-24 Thread Moises Belchin
Hi,

In NDB we can use @ndb.transactional(xg=True).

@ndb.transactional(xg=True) can be nested? If yes, how many
@ndb.transactional(xg=True)
can you nested?

Thanks and regards.
Moisés Belchín.

-- 
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] AppStats Filter LIST

2012-09-24 Thread Moises Belchin
Hi all,

I've put this on my appengine_config.py file

appstats_FILTER_LIST = [{ 'PATH_INFO': '!/_ah/' },
  { 'PATH_INFO': '!/mapreduce' }]

However I still get saved stats on my logs.

What's am I wrong??

Thanks for help.

Regards.
Moisés Belchín.

-- 
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.



Re: [google-appengine] Re: NDB Transactions

2012-09-25 Thread Moises Belchin
Thanks Guido.

Regards.
Moisés Belchín.

2012/9/24 Guido van Rossum 

> Sorry, the underlying Datastore does not (yet) support nested
> transactions, so you cannot nest them at all.
>
>
> On Monday, September 24, 2012 1:53:43 AM UTC-7, Moises Belchin wrote:
>>
>> Hi,
>>
>> In NDB we can use @ndb.transactional(xg=**True).
>>
>> @ndb.transactional(xg=True) can be nested? If yes, how many
>> @ndb.transactional(xg=**True) can you nested?
>>
>> Thanks and regards.
>> Moisés Belchín.
>>
>>   --
> 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/-/WD_BxSS2Bo8J.
> 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.



Re: [google-appengine] How to delete Text Search Name

2012-09-25 Thread Moises Belchin
Thanks Amy,

We're testing this new feature and we have some "test" names  we'd like to
delete.

Do you know when this feature will be available ?

Regards.
Moisés Belchín.


2012/9/24 Amy Unruh 

>
> On 24 September 2012 18:48, Moises Belchin wrote:
>
>> Hi and thanks for answers,
>>
>> I removed all my documents on some indexes and the index name still
>> being appearing on Dashboard.
>> Is there any way to remove from Dashboard?
>>
>
> It will be possible to do this in future.
>
>  -Amy
>
>>
>> Thanks and regards.
>> Moisés Belchín.
>>
>>
>>
>> 2012/9/24 Shilendra Sharma 
>>
>>> This also
>>>
>>>
>>> http://googlecode.blogspot.in/2010/05/google-app-engine-basic-text-search.html
>>>
>>>
>>> http://grokbase.com/t/gg/google-appengine/1297p2697k/text-search-api-not-working-on-my-production-app
>>>
>>>
>>> Regards & Thanks
>>> Shilendra Sharma
>>> +919891343808
>>> shilendra...@googlemail.com
>>>
>>>
>>> On Mon, Sep 24, 2012 at 1:52 PM, Shilendra Sharma <
>>> shilendra...@gmail.com> wrote:
>>>
>>>> Hi, Belchín
>>>>
>>>> see this may be help full to you
>>>>
>>>>
>>>> http://stackoverflow.com/questions/12365184/delete-indexed-full-text-search-in-google-app-engine
>>>>
>>>> Regards & Thanks
>>>> Shilendra Sharma
>>>> +919891343808
>>>> shilendra...@googlemail.com
>>>>
>>>>
>>>>
>>>> On Mon, Sep 24, 2012 at 1:47 PM, Moises Belchin <
>>>> moisesbelc...@gmail.com> wrote:
>>>>
>>>>> Is there any way to delete Text Search's name ??
>>>>>
>>>>> Thanks all.
>>>>>
>>>>> Regards
>>>>> Moisés Belchín.
>>>>>
>>>>>  --
>>>>> 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.
>>>
>>
>>  --
>> 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.
>

-- 
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: AppStats Filter LIST

2012-09-26 Thread Moises Belchin
Hi guys,

After I do some tests,  If I put only one dict on appstats_FILTER_LIST, for
example, appstats_FILTER_LIST = [{ 'PATH_INFO': '!/_ah/*' }] works perfect.
It doesn't record stats for _ah handlers.

However If I put more than once dicts it fails, I mean, It records stats,
for both of them handlers.

May be am I missing something ?

Thanks for help and Regards.
Moisés Belchín.



2012/9/24 Moises Belchin 

> Hi all,
>
> I've put this on my appengine_config.py file
>
> appstats_FILTER_LIST = [{ 'PATH_INFO': '!/_ah/' },
>   { 'PATH_INFO': '!/mapreduce' }]
>
> However I still get saved stats on my logs.
>
> What's am I wrong??
>
> Thanks for help.
>
> Regards.
> Moisés Belchín.
>
>

-- 
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.



Re: [google-appengine] auto_now_add issue

2012-10-17 Thread Moises Belchin
We got the same error.

Anybody knows something ?

Regards.
Moisés Belchín.



2012/10/17 Ajit 

> Hi All,
>
> Hope all are fine.
>
> I have a issue. Hope some of you can give me a solution.
>
> In a model, I have given auto_now_add = True for a field creationDate. I
> have a clean_data for another field with a check if(creationDate). I have
> this check because some records in my datastore don't have creationDate.
>
> My issue is that, when the records with no creationDate, django(that I am
> using) fills the creationDate with current date. So I can't validate the
> field. I thought it would return None if there is no data.
>
> How can I return the actual value(if value->then value, if no value ->
> then None) for the fields having auto_now_add = True?
>
> Thanks,
> Ajith
>
> --
> 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/-/RQurw1DpZmQJ.
> 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.



Re: [google-appengine] auto_now_add issue

2012-10-17 Thread Moises Belchin
Sorry for the inconvenient CD now works well for us.

Regards
Moisés Belchín.



2012/10/17 Moises Belchin 

> We got the same error.
>
> Anybody knows something ?
>
> Regards.
> Moisés Belchín.
>
>
>
> 2012/10/17 Ajit 
>
>> Hi All,
>>
>> Hope all are fine.
>>
>> I have a issue. Hope some of you can give me a solution.
>>
>> In a model, I have given auto_now_add = True for a field creationDate. I
>> have a clean_data for another field with a check if(creationDate). I have
>> this check because some records in my datastore don't have creationDate.
>>
>> My issue is that, when the records with no creationDate, django(that I am
>> using) fills the creationDate with current date. So I can't validate the
>> field. I thought it would return None if there is no data.
>>
>> How can I return the actual value(if value->then value, if no value ->
>> then None) for the fields having auto_now_add = True?
>>
>> Thanks,
>> Ajith
>>
>> --
>> 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/-/RQurw1DpZmQJ.
>> 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.



Re: [google-appengine] Generating Reports using GAE

2012-10-17 Thread Moises Belchin
If you need simple reports you can write your own reportes using PyFPDF to
generate PDF reports for your app.

http://code.google.com/p/pyfpdf/

PyFPDF is ported from php FPDF http://www.fpdf.org/

If you need manipulate big amount of data I recomend you  Google BigQuery.

https://developers.google.com/bigquery/

Happy coding !

Regards.
Moisés Belchín.



2012/10/17 Barry Hunter 

> By writing some code.
>
>
> On Wed, Oct 17, 2012 at 4:12 PM, Thaseena Banu 
> wrote:
>
>>
>> how do we Generate reports or print the form using GAE?
>>
>> --
>> 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/-/CXq1gltfBxsJ.
>> 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.
>

-- 
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 build this query

2012-11-27 Thread Moises Belchin
Hi guys,

I want to query by a repeated property, Is there any way to build this kind
of queries ??

ie:

class Orders(ndb.Model):
  clients = ndb.KeyProperty(indexed=True, default=None, repeated=True)

q = Orders.query(Orders.country == ndb.Key('Countries', 'US'),
  Orders.clients == [])

Regards.
Moisés Belchín.

-- 
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.



Re: [google-appengine] Re: How to build this query

2012-11-28 Thread Moises Belchin
First of all, thanks for your answer.

In NDB you can query for non-existing things, ie:
Orders.query(Orders.pending == None).fetch()

Just as you can query for None, I would ask for empty list.

I know you can create a ComputedProperty and query by this new property but
I don't want to do this when the information, that I'm querying, is in my
Repeated property.

My question is if there is any way to query by empty list.

Thanks again for comments.

Regards.


Saludos.
Moisés Belchín.



2012/11/27 Kaan Soral 

> you can do
>
> q = Orders.query(Orders.country == ndb.Key('Countries', 'US'),
>   Orders.clients == 'client_id_etc')
>
> but you can't query for non-existent things
>
> you may add a seperate no_clients BooleanProperty etc and set it to True
>
> so the answer to your question is, you can treat repeated properties as
> regular properties inside queries
>
> if you read the docs, they explain these pretty well
>
>
>
> On Monday, November 26, 2012 11:08:06 AM UTC+2, Moises Belchin wrote:
>>
>> Hi guys,
>>
>> I want to query by a repeated property, Is there any way to build this
>> kind of queries ??
>>
>> ie:
>>
>> class Orders(ndb.Model):
>>   clients = ndb.KeyProperty(indexed=**True, default=None, repeated=True)
>>
>> q = Orders.query(Orders.country == ndb.Key('Countries', 'US'),
>>   Orders.clients == [])
>>
>> Regards.
>> Moisés Belchín.
>>
>>   --
> 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/-/pRXDQTjOxqgJ.
> 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] Datastore Admin backup.create

2012-12-11 Thread Moises Belchin
In my app.yaml I have this:

- url: /_ah/datastore_admin.*
   script: google.appengine.ext.datastore_admin.main
   login: admin

And I try to urlFetch this url:

https://[MyAppId].
appspot.com/_ah/datastore_admin/backup.create?name=day_month_&kind=MyKind&filesystem=gs&gs_bucket_name=MyBucket&queue=backup

However on my logs I get always 302 and need login.

Anyone knows how to urlFetch datastore admin backup create to make
scheduled backups for all our kinds ?

Thanks and regards.
Moisés Belchín.

-- 
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.



Re: [google-appengine] Re: Datastore Admin backup.create

2012-12-12 Thread Moises Belchin
Thanks for the answer, I'll try taskqueue

I want to use only one cron for backup all my entities instead of create
one cron per kind.

Thanks again


Saludos.
Moisés Belchín.



2012/12/12 Arie Ozarov 

> Any reason you are not using Cron for that?
> https://developers.google.com/appengine/articles/scheduled_backups
> I think the authentication need should not be a problem if you submit your
> request using a taskqueue rather than urlfetch.
> e.g:
>  taskqueue.add(url='/_ah/datastore_admin/backup.create', params={'kind':'
> MyKind<http://appspot.com/_ah/datastore_admin/backup.create?name=day_month_&kind=MyKind&filesystem=gs&gs_bucket_name=MyBucket&queue=backup>',
> 'queue':'backup<http://appspot.com/_ah/datastore_admin/backup.create?name=day_month_&kind=MyKind&filesystem=gs&gs_bucket_name=MyBucket&queue=backup>',
> ...})
> Also, when you do that you can specify a "target" to 
> "ah-builtin-python-bundle"
> and then your app.yaml changes are not be needed.
>
>
>
>
> On Tuesday, December 11, 2012 9:35:32 AM UTC-8, Moises Belchin wrote:
>>
>> In my app.yaml I have this:
>>
>> - url: /_ah/datastore_admin.*
>>script: google.appengine.ext.**datastore_admin.main
>>login: admin
>>
>> And I try to urlFetch this url:
>>
>> https://[MyAppId].appspot.com/**_ah/datastore_admin/backup.**
>> create?name=day_month_&kind=**MyKind&filesystem=gs&gs_**
>> bucket_name=MyBucket&queue=**backup<http://appspot.com/_ah/datastore_admin/backup.create?name=day_month_&kind=MyKind&filesystem=gs&gs_bucket_name=MyBucket&queue=backup>
>>
>> However on my logs I get always 302 and need login.
>>
>> Anyone knows how to urlFetch datastore admin backup create to make
>> scheduled backups for all our kinds ?
>>
>> Thanks and regards.
>> Moisés Belchín.
>>
>>  --
> 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/-/AYKGn_tRrMUJ.
> 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.



Re: [google-appengine] Re: Datastore Admin backup.create

2012-12-12 Thread Moises Belchin
Thanks so much for the answer It works perfect !

Regards


Saludos.
Moisés Belchín.



2012/12/12 Arie Ozarov 

> Any reason you are not using Cron for that?
> https://developers.google.com/appengine/articles/scheduled_backups
> I think the authentication need should not be a problem if you submit your
> request using a taskqueue rather than urlfetch.
> e.g:
>  taskqueue.add(url='/_ah/datastore_admin/backup.create', params={'kind':'
> MyKind<http://appspot.com/_ah/datastore_admin/backup.create?name=day_month_&kind=MyKind&filesystem=gs&gs_bucket_name=MyBucket&queue=backup>',
> 'queue':'backup<http://appspot.com/_ah/datastore_admin/backup.create?name=day_month_&kind=MyKind&filesystem=gs&gs_bucket_name=MyBucket&queue=backup>',
> ...})
> Also, when you do that you can specify a "target" to 
> "ah-builtin-python-bundle"
> and then your app.yaml changes are not be needed.
>
>
>
>
> On Tuesday, December 11, 2012 9:35:32 AM UTC-8, Moises Belchin wrote:
>>
>> In my app.yaml I have this:
>>
>> - url: /_ah/datastore_admin.*
>>script: google.appengine.ext.**datastore_admin.main
>>login: admin
>>
>> And I try to urlFetch this url:
>>
>> https://[MyAppId].appspot.com/**_ah/datastore_admin/backup.**
>> create?name=day_month_&kind=**MyKind&filesystem=gs&gs_**
>> bucket_name=MyBucket&queue=**backup<http://appspot.com/_ah/datastore_admin/backup.create?name=day_month_&kind=MyKind&filesystem=gs&gs_bucket_name=MyBucket&queue=backup>
>>
>> However on my logs I get always 302 and need login.
>>
>> Anyone knows how to urlFetch datastore admin backup create to make
>> scheduled backups for all our kinds ?
>>
>> Thanks and regards.
>> Moisés Belchín.
>>
>>  --
> 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/-/AYKGn_tRrMUJ.
> 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.



Re: [google-appengine] Re: Datastore Admin backup.create

2012-12-13 Thread Moises Belchin
Yeah ! Thanks.

I saw it, however we want to automatically backup all Kinds and we want
forget to add new Kinds to cron backup.


Saludos.
Moisés Belchín.



2012/12/12 Arie Ozarov 

> Glad to hear.
> BTW, when using the standard scheduled backup via CRON you can backup more
> than one kind by providing multiple kind=kind1&kind=kind2&...&kind=kindN
> in the URL (see the "url" description in the document).
> *
> *
> *Arie.
> *
>
> On Wednesday, December 12, 2012 2:13:24 AM UTC-8, Moises Belchin wrote:
>
>> Thanks so much for the answer It works perfect !
>>
>> Regards
>>
>>
>> Saludos.
>> Moisés Belchín.
>>
>>
>>
>> 2012/12/12 Arie Ozarov 
>>
>>> Any reason you are not using Cron for that? https://developers.**
>>> google.com/appengine/articles/**scheduled_backups<https://developers.google.com/appengine/articles/scheduled_backups>
>>> I think the authentication need should not be a problem if you submit
>>> your request using a taskqueue rather than urlfetch.
>>> e.g:
>>>  taskqueue.add(url='/_ah/**datastore_admin/backup.create'**,
>>> params={'kind':'MyKind<http://appspot.com/_ah/datastore_admin/backup.create?name=day_month_&kind=MyKind&filesystem=gs&gs_bucket_name=MyBucket&queue=backup>',
>>> 'queue':'backup<http://appspot.com/_ah/datastore_admin/backup.create?name=day_month_&kind=MyKind&filesystem=gs&gs_bucket_name=MyBucket&queue=backup>',
>>> ...})
>>> Also, when you do that you can specify a "target" to 
>>> "ah-builtin-python-bundle"
>>> and then your app.yaml changes are not be needed.
>>>
>>>
>>>
>>>
>>> On Tuesday, December 11, 2012 9:35:32 AM UTC-8, Moises Belchin wrote:
>>>>
>>>> In my app.yaml I have this:
>>>>
>>>> - url: /_ah/datastore_admin.*
>>>>script: google.appengine.ext.**datastore**_admin.main
>>>>login: admin
>>>>
>>>> And I try to urlFetch this url:
>>>>
>>>> https://[MyAppId].appspot.com/_ah/datastore_admin/backup.**cre**
>>>> ate?name=day_month_&kind=**MyKin**d&filesystem=gs&gs_**bucket_**
>>>> name=MyBucket&queue=**backup<http://appspot.com/_ah/datastore_admin/backup.create?name=day_month_&kind=MyKind&filesystem=gs&gs_bucket_name=MyBucket&queue=backup>
>>>>
>>>> However on my logs I get always 302 and need login.
>>>>
>>>> Anyone knows how to urlFetch datastore admin backup create to make
>>>> scheduled backups for all our kinds ?
>>>>
>>>> Thanks and regards.
>>>> Moisés Belchín.
>>>>
>>>>  --
>>> 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/-/AYKGn_**tRrMUJ<https://groups.google.com/d/msg/google-appengine/-/AYKGn_tRrMUJ>
>>> .
>>> To post to this group, send email to google-a...@googlegroups.**com.
>>> To unsubscribe from this group, send email to google-appengi...@**
>>> googlegroups.com.
>>>
>>> For more options, visit this group at http://groups.google.com/**
>>> group/google-appengine?hl=en<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/-/bFxm6MCh4ZsJ.
>
> 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] Error LOAD GAE Backup

2012-12-14 Thread Moises Belchin
Hi all,

In my GAE App I just do a datastore_backup for all Kinds.

When I try to load it to BigQuery almost Kinds was successfully loaded
however with one Kind I have this error:

invalid - Invalid field name "rows.pedido_automatico". Fields must contain
only letters, numbers, and underscores, start with a letter or underscore,
and be at most 128 characters long.

My GAE Kind:

class StockRow(ndb.Model):
  pedido_automatico = ndb.StringProperty(default="N",choices=set(["S","N"]))

class Stock(ndb.Model):
  rows = ndb.StructuredProperty(SemAlmacenPedidoRutaRow, repeated=True)

Is this a known bug ?

Thanks for hearing.
Regards.
Moisés Belchín.

-- 
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] CloudStorage Files API

2013-01-10 Thread Moises Belchin
Hi all,

We're using ah-builtin-python-bundle to make Datastore backups on google
cloud storage.

Is there any way to copy some files or complete dirs from one bucket to
another via App Engine Files API?

In documentation only can open, create, list, write, read, delete, ..., but
not copy.
Am I missing something?

Thanks to all and regards.
Moisés Belchín.

-- 
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] API Search OverQuotaError

2013-01-25 Thread Moises Belchin
Hi all,

We've getting this error:

OverQuotaError: The API call search.IndexDocument() required more
quota than is available.


However our Search API Quota is about 3%

SearchSearch API Calls
[image: 3%]
3%149,105 of 4,320,000OkaySearch Stored Data
[image: 0%]
0%0.04 of 100.00 GBytesOkay
What does it mean?

Thanks and regards.
Moisés Belchín.

-- 
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.
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] API call search

2013-01-25 Thread Moises Belchin
We're having many errors like this.

*The API call search.Search() took too long to respond and was cancelled.*


Does anyone have the same problem?

Thanks and regards.
Moisés Belchín.

-- 
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.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] API Search OverQuotaError

2013-01-28 Thread Moises Belchin
It seems that is the error, index multiple documents simultaneously.

Thanks for the approach.

Regards


Saludos.
Moisés Belchín.


2013/1/25 Andreas Schmid 

> did you index multiple documents simultaneously?
> i know there is a limit also on how many documents get indexed per second
> or some other time limit.
> this is not documented.
>
>
> On Jan 25, 2013, at 9:19 AM, Aza Tek  wrote:
>
> On Fri, Jan 25, 2013 at 3:29 PM, Andreas Schmid wrote:
>
>> it means you reached the daily limit and have to wait until the quota
>> resets or request a higher quota.
>>
>
>  And the 3% is a percentage of?
>
> --
> 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.
> Visit this group at http://groups.google.com/group/google-appengine?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
>  --
> 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.
> Visit this group at http://groups.google.com/group/google-appengine?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] API Search OverQuotaError

2013-01-28 Thread Moises Belchin
However the message could be more descriptive

Thanks again


Saludos.
Moisés Belchín.


2013/1/28 Moises Belchin 

> It seems that is the error, index multiple documents simultaneously.
>
> Thanks for the approach.
>
> Regards
>
>
> Saludos.
> Moisés Belchín.
>
>
> 2013/1/25 Andreas Schmid 
>
>> did you index multiple documents simultaneously?
>> i know there is a limit also on how many documents get indexed per second
>> or some other time limit.
>> this is not documented.
>>
>>
>> On Jan 25, 2013, at 9:19 AM, Aza Tek  wrote:
>>
>> On Fri, Jan 25, 2013 at 3:29 PM, Andreas Schmid wrote:
>>
>>> it means you reached the daily limit and have to wait until the quota
>>> resets or request a higher quota.
>>>
>>
>>  And the 3% is a percentage of?
>>
>> --
>> 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.
>> Visit this group at http://groups.google.com/group/google-appengine?hl=en
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>>
>>  --
>> 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.
>> Visit this group at http://groups.google.com/group/google-appengine?hl=en
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>

-- 
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.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] How many people are using google app engine?

2013-01-30 Thread Moises Belchin
Can someone from App Engine give us some information like this or where can
we get this info ??

Thanks and regards


Saludos.
Moisés Belchín.


2013/1/30 Gopal Patel 

> its reaching 1B$ very soon.
>
>
> On Sun, Jan 13, 2013 at 3:27 AM, Brandon Wirtz wrote:
>
>> Lots, and lots.
>>
>> This appears to be a loaded question.
>>
>> ** **
>>
>> Better questions are things like “how much revenue does AppEngine
>> generate” and “how many requests a day does it serve”
>>
>> I don’t have those answers but some of that is on the web.
>>
>> ** **
>>
>> ** **
>>
>> *From:* google-appengine@googlegroups.com [mailto:
>> google-appengine@googlegroups.com] *On Behalf Of *Patrick Gray
>> *Sent:* Saturday, December 22, 2012 1:49 PM
>> *To:* google-appengine@googlegroups.com
>> *Subject:* [google-appengine] How many people are using google app
>> engine?
>>
>> ** **
>>
>> I am wondering what the number of apps running on GAE is and just how
>> many developers are writing code for it? 
>>
>> --
>> 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/-/1xB-ydyMkysJ.
>> 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.
>>
>
>  --
> 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.
>
>
>

-- 
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] NDB Parallel Tasklets

2013-01-30 Thread Moises Belchin
Hi all,

Please take a look at this parallel tasklet code snippet #1.


@ndb.tasklet
def get_data_parallel(e):
usr, det = yield (e.user.get_async(),
  MyKind.query(ancestor = e.key).fetch_async())
raise ndb.Return((e, usr, det))



If e.user is None this raise an Exception.


I'm trying this snippet #2. However I still get Exception: "TypeError:
Expected Future, received : None"


@ndb.tasklet
def get_data_parallel(e):
  usr, det = yield (e.user.get_async() if e.user else None,
MyKind.query(ancestor = e.key).fetch_async())
  raise ndb.Return((e, usr, det))


How can I do something like snippet #2 ? How can I return future(None) or
future('')

Thanks and regards
Moisés Belchín.

-- 
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.




Re: [google-appengine] NDB Parallel Tasklets

2013-01-31 Thread Moises Belchin
Hi Guido,

Thanks for the answer and thanks for the trick.

I figured it out your code. In that sample the yields run concurrently they
don't in parallel. What I'm really trying to do is *paralleling *the asyncs
*yielding *a tuple, but it's possible one of them will be None and in that
case It'll throw an exception: "None object has no attribute .get_async()".

How can I avoid this exception?

Thanks in advance and regards.


Saludos.
Moisés Belchín.


2013/1/30 Guido van Rossum 

> On Wed, Jan 30, 2013 at 9:00 AM, Moises Belchin 
> wrote:
> > Please take a look at this parallel tasklet code snippet #1.
> >
> >
> > @ndb.tasklet
> > def get_data_parallel(e):
> > usr, det = yield (e.user.get_async(),
> >   MyKind.query(ancestor = e.key).fetch_async())
> > raise ndb.Return((e, usr, det))
> >
> >
> >
> > If e.user is None this raise an Exception.
> >
> >
> > I'm trying this snippet #2. However I still get Exception: "TypeError:
> > Expected Future, received : None"
> >
> >
> > @ndb.tasklet
> > def get_data_parallel(e):
> >   usr, det = yield (e.user.get_async() if e.user else None,
> > MyKind.query(ancestor = e.key).fetch_async())
> >   raise ndb.Return((e, usr, det))
> >
> >
> > How can I do something like snippet #2 ? How can I return future(None) or
> > future('')
>
> You can factor it out into two yields, one of which is optional. First
> create a future for the query that you always want to run:
>
> f = MyKind.query(ancestor = e.key).fetch_async()  # No yield!
>
> Then conditionally yield the other async request:
>
> if e.user:
>   usr = yield from e.user.get_async()
> else:
>   usr = None
>
> Finally yield the future:
>
> det = yield f
>
> The trick is that the query will run when you yield the other operation.
>
> --
> --Guido van Rossum (python.org/~guido)
>
> --
> 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.
>
>
>

-- 
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.




Re: [google-appengine] NDB Parallel Tasklets

2013-01-31 Thread Moises Belchin
Hi Jim,

thanks for the answer and for the code.

I think your code is a better aproach for paralleling yields and for check
if one of them is None.

Thanks in advance and regards.


Saludos.
Moisés Belchín.


2013/1/30 Jim Morrison 

> We added the following method:
> @staticmethod
> @ndb.tasklet
> def get_key_async(key):
> """
> returns a future that upon calling get_result() will either
> return the Future's result
>  or None if the key was None
> """
> if not key: raise ndb.Return(None)
> result = yield key.get_async()
> raise ndb.Return(result)
>
> to our code, a similar tasklet could be (which we've removed from out
> code):
> @ndb.tasklet
> def future_or_none(future):
> if future:
> result = yield future
> raise ndb.Return(result)
> raise ndb.Return(None)
>
> Then in your case you'd do
> yield (future_or_none(e.user.get_async() if e.user else None), ...)
>
>
>
>
> On Wed, Jan 30, 2013 at 10:03 AM, Guido van Rossum 
> wrote:
> > On Wed, Jan 30, 2013 at 9:00 AM, Moises Belchin 
> wrote:
> >> Please take a look at this parallel tasklet code snippet #1.
> >>
> >>
> >> @ndb.tasklet
> >> def get_data_parallel(e):
> >> usr, det = yield (e.user.get_async(),
> >>   MyKind.query(ancestor = e.key).fetch_async())
> >> raise ndb.Return((e, usr, det))
> >>
> >>
> >>
> >> If e.user is None this raise an Exception.
> >>
> >>
> >> I'm trying this snippet #2. However I still get Exception: "TypeError:
> >> Expected Future, received : None"
> >>
> >>
> >> @ndb.tasklet
> >> def get_data_parallel(e):
> >>   usr, det = yield (e.user.get_async() if e.user else None,
> >> MyKind.query(ancestor = e.key).fetch_async())
> >>   raise ndb.Return((e, usr, det))
> >>
> >>
> >> How can I do something like snippet #2 ? How can I return future(None)
> or
> >> future('')
> >
> > You can factor it out into two yields, one of which is optional. First
> > create a future for the query that you always want to run:
> >
> > f = MyKind.query(ancestor = e.key).fetch_async()  # No yield!
> >
> > Then conditionally yield the other async request:
> >
> > if e.user:
> >   usr = yield from e.user.get_async()
> > else:
> >   usr = None
> >
> > Finally yield the future:
> >
> > det = yield f
> >
> > The trick is that the query will run when you yield the other operation.
> >
> > --
> > --Guido van Rossum (python.org/~guido)
> >
> > --
> > 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.
> >
> >
>
>
>
> --
> Jim
>
> --
> 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.
>
>
>

-- 
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.




Re: [google-appengine] How many people are using google app engine?

2013-01-31 Thread Moises Belchin
Thanks so much for the video. I'll hope see it this weekend. Thanks Robert.


Saludos.
Moisés Belchín.


2013/1/30 Robert Schuppenies 

>
>
>
> On Wed, Jan 30, 2013 at 6:38 AM, Moises Belchin 
> wrote:
>
>> Can someone from App Engine give us some information like this or where
>> can we get this info ??
>>
>
> We talked a bit about numbers at last year's Google I/O:
> http://www.youtube.com/watch?feature=player_embedded&v=uy0nALQEAM4#! (around
> 1:20)
>
> cheers,
> robert
>
>
>>
>> Thanks and regards
>>
>>
>> Saludos.
>> Moisés Belchín.
>>
>>
>> 2013/1/30 Gopal Patel 
>>
>>> its reaching 1B$ very soon.
>>>
>>>
>>> On Sun, Jan 13, 2013 at 3:27 AM, Brandon Wirtz wrote:
>>>
>>>> Lots, and lots.
>>>>
>>>> This appears to be a loaded question.
>>>>
>>>> ** **
>>>>
>>>> Better questions are things like “how much revenue does AppEngine
>>>> generate” and “how many requests a day does it serve”
>>>>
>>>> I don’t have those answers but some of that is on the web.
>>>>
>>>> ** **
>>>>
>>>> ** **
>>>>
>>>> *From:* google-appengine@googlegroups.com [mailto:
>>>> google-appengine@googlegroups.com] *On Behalf Of *Patrick Gray
>>>> *Sent:* Saturday, December 22, 2012 1:49 PM
>>>> *To:* google-appengine@googlegroups.com
>>>> *Subject:* [google-appengine] How many people are using google app
>>>> engine?
>>>>
>>>> ** **
>>>>
>>>> I am wondering what the number of apps running on GAE is and just how
>>>> many developers are writing code for it? 
>>>>
>>>> --
>>>> 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/-/1xB-ydyMkysJ.
>>>> 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.
>>>>
>>>
>>>  --
>>> 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.
>>>
>>>
>>>
>>
>>  --
>> 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.
>>
>>
>>
>
>  --
> 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.
>
>
>

-- 
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.




Re: [google-appengine] NDB Parallel Tasklets

2013-01-31 Thread Moises Belchin
Hi all again,

Is there any significant benefit between code#1 and code#2 ?? In docs you
can read code#2 run in parallel.
https://developers.google.com/appengine/docs/python/ndb/async#parallel_queries_yield

@ndb.tasklet
> def get_cart_plus_offers(acct):
>   *cart, offers = yield get_cart_async(acct), get_offers_async(acct)*
>   raise ndb.Return((cart, offers))
>
> That yield x, y is important but easy to overlook. If that were two
> separate yield statements, they would happen in series. But yielding a
> tuple of tasklets is a *parallel yield*: the tasklets can run in parallel
> and the yield waits for all of them to finish and returns the results.
> (In some programming languages, this is known as a *barrier*.)
>

In appstats there is no significant difference between both options or
maybe I don't see it. It's possible I'm missing something.

Could someone bring to me more light here ?!

Thanks in advance and best regards.

Code#1:

@ndb.tasklet
def get_data(e):
  usr = yield e.user.get_async()
  det = yield MyKind.query(ancestor = e.key).fetch_async()
  raise ndb.Return((e, usr, det))

Code#2:

@ndb.tasklet
def get_data_parallel(e):
  usr, det = yield (e.user.get_async(), MyKind.query(ancestor =
e.key).fetch_async())
  raise ndb.Return((e, usr, det))




Saludos.
Moisés Belchín.


2013/1/31 Moises Belchin 

> Hi Jim,
>
> thanks for the answer and for the code.
>
> I think your code is a better aproach for paralleling yields and for check
> if one of them is None.
>
> Thanks in advance and regards.
>
>
> Saludos.
> Moisés Belchín.
>
>
> 2013/1/30 Jim Morrison 
>
>> We added the following method:
>> @staticmethod
>> @ndb.tasklet
>> def get_key_async(key):
>> """
>> returns a future that upon calling get_result() will either
>> return the Future's result
>>  or None if the key was None
>> """
>> if not key: raise ndb.Return(None)
>> result = yield key.get_async()
>> raise ndb.Return(result)
>>
>> to our code, a similar tasklet could be (which we've removed from out
>> code):
>> @ndb.tasklet
>> def future_or_none(future):
>> if future:
>> result = yield future
>> raise ndb.Return(result)
>>     raise ndb.Return(None)
>>
>> Then in your case you'd do
>> yield (future_or_none(e.user.get_async() if e.user else None), ...)
>>
>>
>>
>>
>> On Wed, Jan 30, 2013 at 10:03 AM, Guido van Rossum 
>> wrote:
>> > On Wed, Jan 30, 2013 at 9:00 AM, Moises Belchin <
>> moisesbelc...@gmail.com> wrote:
>> >> Please take a look at this parallel tasklet code snippet #1.
>> >>
>> >>
>> >> @ndb.tasklet
>> >> def get_data_parallel(e):
>> >> usr, det = yield (e.user.get_async(),
>> >>   MyKind.query(ancestor = e.key).fetch_async())
>> >> raise ndb.Return((e, usr, det))
>> >>
>> >>
>> >>
>> >> If e.user is None this raise an Exception.
>> >>
>> >>
>> >> I'm trying this snippet #2. However I still get Exception: "TypeError:
>> >> Expected Future, received : None"
>> >>
>> >>
>> >> @ndb.tasklet
>> >> def get_data_parallel(e):
>> >>   usr, det = yield (e.user.get_async() if e.user else None,
>> >> MyKind.query(ancestor = e.key).fetch_async())
>> >>   raise ndb.Return((e, usr, det))
>> >>
>> >>
>> >> How can I do something like snippet #2 ? How can I return future(None)
>> or
>> >> future('')
>> >
>> > You can factor it out into two yields, one of which is optional. First
>> > create a future for the query that you always want to run:
>> >
>> > f = MyKind.query(ancestor = e.key).fetch_async()  # No yield!
>> >
>> > Then conditionally yield the other async request:
>> >
>> > if e.user:
>> >   usr = yield from e.user.get_async()
>> > else:
>> >   usr = None
>> >
>> > Finally yield the future:
>> >
>> > det = yield f
>> >
>> > The trick is that the query will run when you yield the other operation.
>> >
>> > --
>> > --Guido van Rossum (python.org/~guido)
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "Google App Engine" group.
>> > To unsubscribe from t

Re: [google-appengine] NDB Parallel Tasklets

2013-02-01 Thread Moises Belchin
Hi Guido,

Thanks a lot for the great explanation. Sorry for my error between
concurrent and parallel, fast typing error !

Thanks again and regards.


Saludos.
Moisés Belchín.


2013/2/1 Guido van Rossum 

> On Thu, Jan 31, 2013 at 2:05 AM, Moises Belchin 
> wrote:
> > Is there any significant benefit between code#1 and code#2 ?? In docs you
> > can read code#2 run in parallel.
> >
> https://developers.google.com/appengine/docs/python/ndb/async#parallel_queries_yield
> >
> >> @ndb.tasklet
> >>
> >> def get_cart_plus_offers(acct):
> >>
> >>   cart, offers = yield get_cart_async(acct), get_offers_async(acct)
> >>
> >>   raise ndb.Return((cart, offers))
> >>
> >> That yield x, y is important but easy to overlook. If that were two
> >> separate yield statements, they would happen in series. But yielding a
> tuple
> >> of tasklets is a parallel yield: the tasklets can run in parallel and
> the
> >> yield waits for all of them to finish and returns the results. (In some
> >> programming languages, this is known as a barrier.)
> >
> >
> > In appstats there is no significant difference between both options or
> maybe
> > I don't see it. It's possible I'm missing something.
> >
> > Could someone bring to me more light here ?!
> >
> > Thanks in advance and best regards.
> >
> > Code#1:
> >
> > @ndb.tasklet
> > def get_data(e):
> >   usr = yield e.user.get_async()
> >   det = yield MyKind.query(ancestor = e.key).fetch_async()
> >   raise ndb.Return((e, usr, det))
> >
> > Code#2:
> >
> > @ndb.tasklet
> > def get_data_parallel(e):
> >   usr, det = yield (e.user.get_async(), MyKind.query(ancestor =
> > e.key).fetch_async())
> >   raise ndb.Return((e, usr, det))
>
> Are you looking at Appstats in the dev appserver? It does not give
> results (in cases like this) that match production. The dev appserver
> does not really execute RPCs in parallel (which is the same as
> concurrently, here).
>
> I promise you that in production the "yield f1, f2" form runs the
> tasks represented by futures f1 and f2 concurrently (== in parallel).
>
> I should also explain (again) that there is a huge difference between this:
>
> f1 = foo_async()
> f2 = bar_async()
> yield f1, f2
>
> vs.
>
> yield foo_async()
> yield bar_async()
>
> the latter is equivalent to
>
> f1 = foo_async()
> yield f1
> f2 = bar_async()
> yield f2
>
> Because the first future is yielded before the second is even created,
> nothing runs concurrently (== in parallel) here. However, now compare
> to this:
>
> f1 = foo_async()
> f2 = bar_async()
> yield f1
> yield f2
>
> This runs both futures in parallel (== concurrently) even though they
> are yielded separately! The reason is that when you yield *any*
> future, *all* futures that exist at that point are allowed to run. But
> futures that haven't been created yet can't run!
>
> Hope this helps. It is important to "get" this. (Also that no future
> runs until you yield something. Futures are buffered in the app's
> memory until a yield forces all buffered futures out to the servers.)
>
> --
> --Guido van Rossum (python.org/~guido)
>
> --
> 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.
>
>
>

-- 
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] Backup GAE to Cloud Storage ApplicationError: 7

2013-02-08 Thread Moises Belchin
Hi all,

I do a GAE backup to Cloud Storage all nights. Some days I get this
error: "ApplicationError:
7"

What does it exactly mean? In my datastore Admin page I can see this as
Pending Backups.

How must I proceed when I see this error?

Thanks so much to all

Regards
Moisés Belchín.

-- 
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] How to know if app version is DEFAULT version?

2013-03-13 Thread Moises Belchin
Hi guys,

Is there any way to know if a version of my app is the DEFAULT version?

I saw os.environ['DEFAULT_VERSION_HOSTNAME'] and
os.environ['CURRENT_VERSION_ID'] but I didn't find any way to compare two
of them and determine if this current version y the default version.

Thanks for help.

Regards.
Moisés Belchín.

-- 
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.




Re: [google-appengine] How to know if app version is DEFAULT version?

2013-03-14 Thread Moises Belchin
I only use app-id.appspot.com.

As you say if I compare os.environ['HTTP_HOST'] with
os.environ['DEFAULT_VERSION_HOSTNAME'] I'll know if it's by default or not,
won't it?

Thanks for the approach.


Saludos.
Moisés Belchín.


2013/3/13 Takashi Matsuo 

>
> Hi Moises,
>
> You can use os.environ['HTTP_HOST'] for comparison as long as the hostname
> doesn't contain the 'version' subdomain part. Are you using hostname with
> the 'version.app-id.appspot.com' style, or you're just using '
> app-id.appspot.com'?
>
>
>
> On Wed, Mar 13, 2013 at 3:13 AM, Moises Belchin 
> wrote:
>
>> Hi guys,
>>
>> Is there any way to know if a version of my app is the DEFAULT version?
>>
>> I saw os.environ['DEFAULT_VERSION_HOSTNAME'] and
>> os.environ['CURRENT_VERSION_ID'] but I didn't find any way to compare two
>> of them and determine if this current version y the default version.
>>
>> Thanks for help.
>>
>> Regards.
>> Moisés Belchín.
>>
>> --
>> 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.
>>
>>
>>
>
>
>
> --
> Takashi Matsuo | Developers Advocate | tmat...@google.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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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.




Re: [google-appengine] Google App Engine SDK 1.7.6 is now available!

2013-03-20 Thread Moises Belchin
Hi all,

In the Python release notes you can read this:

The experimental Search API's ability to explicitly sort search results by
> SortExpression.RANK_FIELD_NAME (i.e. *order_id) field in ascending order
> has been removed.*


Can someone explain what does it mean, and how it affects our apps?

In the app engine doc there isn't any references to this .RANK_FIELD_NAME

Thanks in advance.
Regards.


Saludos.
Moisés Belchín.


2013/3/19 Janani Thanigachalam 

> Hi everyone,
>
> We're happy to announce that we released the 1.7.6 SDK.
>
> This release includes new features such as Full Text Search API stats,
> experimental asynchronous methods to Task Queue API and improvements to the
> Python dev_appserver,
>
> For more details, please read our blog post and release notes.
>
> Announcement:
> http://googleappengine.blogspot.com/2013/03/app-engine-176-released.html
>
> Releae notes for Python:
> http://code.google.com/p/**googleappengine/wiki/**SdkReleaseNotes
>
> Release notes for Java:
> http://code.google.com/p/**googleappengine/wiki/**SdkForJavaReleaseNotes
>
> Release notes for Go:
> https://code.google.com/p/**googleappengine/wiki/**SdkForGoReleaseNotes
>
> Enjoy!
>
> Janani Thanigachalam
> Technical Program Manager
> 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 http://groups.google.com/group/google-appengine?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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] How to discard warning messages on appcfg deploy

2013-03-21 Thread Moises Belchin
Hi all,

Is there any way to discard "warning messages" when you deploy your app?
What I mean by "warning messages":

- Could not guess mimetype for *myfile*. Using application/octet-stream.
- 2013-03-21 12:41:02,884 WARNING appcfg.py:2027 Ignoring file
'appengine_config.pyc': Cannot upload both .py and .pyc

I usually deployed with GAE Launcher rather than appcfg command line
directly.

Thanks and Regards.
Moisés Belchín.

-- 
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.




Re: [google-appengine] Breakpoints broken in new dev_appserver (1.7.6)?

2013-03-22 Thread Moises Belchin
I don't know you can debug with breakpoints an appengine app. Could you
show how can we use step by step debugging? Thanks in advance and kind
regards
El 21/03/2013 18:07, "Dylan Sale"  escribió:

> Hi,
>
> I have updated to 1.7.6 and noticed the new dev_appserver. Nice! I did
> notice that PyDev (Eclipse plugin) breakpoints no longer work when using
> it. Does anyone know how to get breakpoints working again (with or without
> pydev). I guess this could be a question for the PyDev people, but I
> thought I would ask it here in case someone had encountered a similar
> problem. I assume it is due to the new server spawning new processes or
> something.
>
> For now I am using old_dev_appserver.py but I assume this will be
> deprecated at some point.
>
> Thanks
>
>  --
> 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.
>
>
>

-- 
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.




Re: [google-appengine] Delayed execution of tasks in 1.7.6.

2013-03-27 Thread Moises Belchin
Me too.


Saludos.
Moisés Belchín.


2013/3/27 notreadbyhumans 

> I've noticed that since updating a live app to 1.7.6 new tasks are sitting
> in named task queues for up to a couple of minutes before executing. The
> queues are empty (no executing tasks) and have ample execution rates (20/s)
> and bucket sizes (30), and tasks can be manually run.
>
> Has anyone else experienced similar issues?
>
> --
> 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.
>
>
>

-- 
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.




Re: [google-appengine] Full text search fails on develompment enviroment

2013-04-03 Thread Moises Belchin
Me too.

#1: https://code.google.com/p/googleappengine/issues/detail?id=9005 -
Resolved in new 1.7.7 pre-release.
#2: https://code.google.com/p/googleappengine/issues/detail?id=9019

Hope it helps.



Saludos.
Moisés Belchín.


2013/4/3 Matija 

> Am I only one that have serious problems with full text search on
> development environment?
>
> https://code.google.com/p/googleappengine/issues/detail?id=9088
>
> Matija.
>
> --
> 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.
>
>
>

-- 
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.




Re: [google-appengine] Text

2013-04-11 Thread Moises Belchin
You can use Python string interpolation

new_text = '%s %s' % (text1, text2)

Regards.


Saludos.
Moisés Belchín.


2013/4/11 Julie Smith 

> Please be more specific in your questions!
>
> It depends on the language. For example, in Python
> *new_string = string1 + string2*
>
>
> On 11 April 2013 15:13, Newbee  wrote:
>
>> How to concatenate Text in GAE
>>
>> --
>> 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.
>>
>>
>>
>
>  --
> 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.
>
>
>

-- 
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] NDB Distinct and group by

2013-04-15 Thread Moises Belchin
Hi all,

I've read this announcement and patch:

https://groups.google.com/forum/?fromgroups=#!topic/appengine-ndb-discuss/GMBlHAaOOek

https://codereview.appspot.com/7865043/

However I can't use DISTINCT or GROUP BY in the latest version of SDK 1.7.7

Can someone bring some light about this?

Thanks so much.

Regards.
Moisés Belchín.

-- 
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.




Re: [google-appengine] Re: NDB Distinct and group by

2013-04-16 Thread Moises Belchin
I hope so too :)

thanks Greg.


Saludos.
Moisés Belchín.


2013/4/15 Greg Jones 

> That wasn't really an announcement, just a request for code-review, which
> seems to be ongoing. Hopefully this means it will be in the next release.
>
>
> On Monday, 15 April 2013 12:08:53 UTC+1, Moises Belchin wrote:
>>
>> Hi all,
>>
>> I've read this announcement and patch:
>>
>> https://groups.google.com/**forum/?fromgroups=#!topic/**
>> appengine-ndb-discuss/**GMBlHAaOOek<https://groups.google.com/forum/?fromgroups=#!topic/appengine-ndb-discuss/GMBlHAaOOek>
>>
>> https://codereview.appspot.**com/7865043/<https://codereview.appspot.com/7865043/>
>>
>> However I can't use DISTINCT or GROUP BY in the latest version of SDK
>> 1.7.7
>>
>> Can someone bring some light about this?
>>
>> Thanks so much.
>>
>> Regards.
>> Moisés Belchín.
>>
>  --
> 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.
>
>
>

-- 
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.




Re: [google-appengine] Inequality operators on two properties at once

2013-04-23 Thread Moises Belchin
You can create an index for your query or use TextSearch.

Hope that helps.

Regards.



Saludos.
Moisés Belchín.


2013/4/23 Mohsin Hijazee 

> I have a very simple problem to which I cannot find an appropriate
> solution. I have a simple model that records multiple timespans for an
> equipment which indicates what time ranges are in which that equipment can
> be used.
>
> For instance:
>
>
>- Monday 12:00 AM to 3:00 AM
>- Monday 7:00 AM to 11:00 AM
>- Tuesday 4:30 PM to 5:00 PM
>
> Now for a single equipment, I would want to retain this information. My
> use case is that I would be selecting a day and a start and end range (say
> 4:00 PM to 9:00 PM) to check what equipment is available. But
> unfortunately, inequality operators on two different properties within
> single property aren't allowed so that's not possible:
>
> SELECT * FROM Equipment WHERE from_time >= 1600 AND to_time <= 2100
>
> How you would suggest to model such a thing on 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 http://groups.google.com/group/google-appengine?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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] Suddenly we're suffering a lot of TransientError Errors.

2013-04-30 Thread Moises Belchin
Can anyone help us with these errors ?

Has anyone else experimented these errors?

Thanks and regards.
Moisés Belchín.

-- 
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.




Re: [google-appengine] Re: Suddenly we're suffering a lot of TransientError Errors.

2013-04-30 Thread Moises Belchin
Thanks Vinny,

I feel too that fastest deploys occurs with each new GAE update. It's only
a theory :-D

Regards.


Saludos.
Moisés Belchín.


2013/4/30 Vinny P 

> On Tuesday, April 30, 2013 6:22:05 AM UTC-5, Moises Belchin wrote:
>
>> Has anyone else experienced these errors?
>>
>>
> I'm also seeing a bunch of TransientErrors in my logs. Not so many that
> I'm concerned about the issue with regards to my apps, but its' definitely
> increased in the last month or so. Seems that others are experiencing the
> same:
> https://groups.google.com/d/msg/google-appengine/ZC-bJOMmujM/N_5jBk0p_oUJ.
>
> I feel that TransientErrors crop up more when GAE gets a software update,
> but I have no hard evidence to support my theory, just anecdotal experience.
>
>
> -
> -Vinny P
> Technology & Media Advisor
> Chicago, IL
>
> My Go side project: http://invalidmail.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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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.




Re: [google-appengine] Re: How to get the date when an entity was persisted

2013-05-06 Thread Moises Belchin
You can use auto_now_add=True on your property to automatically store the
datetime when the entity was created.

Regards.


Saludos.
Moisés Belchín.


2013/5/3 Vinny P 

> Hello Fabrizio,
>
> Entities don't automatically store the date they were created on. If you
> want that information, you'll have to create that property and set the date
> it was created.
>
> -
> -Vinny P
> Technology & Media Advisor
> Chicago, IL
>
> My Go side project: http://invalidmail.com/
>
>
> On Tuesday, April 30, 2013 1:42:08 PM UTC-5, Fabrizio Guespe wrote:
>>
>> Hello! I want to sort a celltable by the last ones added on top, now , to
>> do this, i need to sort them by the date they were added to the
>> application. Is there a way to get this date? or i have to create a new
>> attribute for each class?. Thanks!
>
>  --
> 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.
>
>
>

-- 
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.




Re: [google-appengine] Noticed "Cloud Integration" in Application Settings

2013-05-08 Thread Moises Belchin
Can anyone explain us this new feature and how it works ?

Thanks to all.


Saludos.
Moisés Belchín.


2013/5/8 Jason Collins 

> Really hoping that "Cloud Integration" is a way to get App Engine, Compute
> Engine, BigQuery, Cloud SQL, and Cloud Storage to all interoperate more
> seamlessly on the permissions front. The current technique(s) are all quite
> mysterious and error-prone.
>
> j
>
> --
> 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.
>
>
>

-- 
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.




Re: [google-appengine] Noticed "Cloud Integration" in Application Settings

2013-05-09 Thread Moises Belchin
It'd be very usefull if the GAE team publish it into mailing list too. Some
people won't be at Google I/O.

Regards.


Saludos.
Moisés Belchín.


2013/5/8 Chad Vincent 

> My guess is that they will be explaining next week at I/O.
>
>
> On Wednesday, May 8, 2013 2:59:29 AM UTC-5, Moises Belchin wrote:
>
>> Can anyone explain us this new feature and how it works ?
>>
>> Thanks to all.
>>
>>
>> Saludos.
>> Moisés Belchín.
>>
>>
>> 2013/5/8 Jason Collins 
>>
>>> Really hoping that "Cloud Integration" is a way to get App Engine,
>>> Compute Engine, BigQuery, Cloud SQL, and Cloud Storage to all interoperate
>>> more seamlessly on the permissions front. The current technique(s) are all
>>> quite mysterious and error-prone.
>>>
>>> j
>>>
>>> --
>>> 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 http://groups.google.com/**
>>> group/google-appengine?hl=en<http://groups.google.com/group/google-appengine?hl=en>
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>  --
> 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.
>
>
>

-- 
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.




Re: [google-appengine] Noticed "Cloud Integration" in Application Settings

2013-05-10 Thread Moises Belchin
I don't mean they announce it here first. They can announce with fireworks
at Google I/O but then they can publish this kind of announcements at the
mailing list.


Saludos.
Moisés Belchín.


2013/5/9 Chad Vincent 

> If they're announcing at at I/O, they're not going to spoil the surprise
> by putting it here first.
>
> On Thursday, May 9, 2013 3:02:20 AM UTC-5, Moises Belchin wrote:
>
>> It'd be very usefull if the GAE team publish it into mailing list too.
>> Some people won't be at Google I/O.
>>
>> Regards.
>>
>>
>> Saludos.
>> Moisés Belchín.
>>
>>
>> 2013/5/8 Chad Vincent 
>>
>> My guess is that they will be explaining next week at I/O.
>>>
>>>
>>> On Wednesday, May 8, 2013 2:59:29 AM UTC-5, Moises Belchin wrote:
>>>
>>>> Can anyone explain us this new feature and how it works ?
>>>>
>>>> Thanks to all.
>>>>
>>>>
>>>> Saludos.
>>>> Moisés Belchín.
>>>>
>>>>
>>>> 2013/5/8 Jason Collins 
>>>>
>>>>>  Really hoping that "Cloud Integration" is a way to get App Engine,
>>>>> Compute Engine, BigQuery, Cloud SQL, and Cloud Storage to all interoperate
>>>>> more seamlessly on the permissions front. The current technique(s) are all
>>>>> quite mysterious and error-prone.
>>>>>
>>>>> j
>>>>>
>>>>> --
>>>>> 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 http://groups.google.com/**group**
>>>>> /google-appengine?hl=en<http://groups.google.com/group/google-appengine?hl=en>
>>>>> .
>>>>> For more options, visit 
>>>>> https://groups.google.com/**grou**ps/opt_out<https://groups.google.com/groups/opt_out>
>>>>> .
>>>>>
>>>>>
>>>>>
>>>>
>>>>  --
>>> 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 http://groups.google.com/**
>>> group/google-appengine?hl=en<http://groups.google.com/group/google-appengine?hl=en>
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>  --
> 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.
>
>
>

-- 
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.




Re: [google-appengine] Unhappy with Windows SDK / Devappserver / 1.8.0

2013-05-16 Thread Moises Belchin
The same problem for me, every time I started dev_appserver all my Full
Text Search documents are gone.
I read something about --datastore_path and --clear_datastore parameters
for dev_appserver but I don't test them yet.
http://stackoverflow.com/questions/7991558/app-engine-development-datastore-cleared-each-time-i-turn-off-my-computer-how
http://stackoverflow.com/questions/10998936/app-engine-datastore-auto-clears-every-time-project-runs

Regards.


Saludos.
Moisés Belchín.


2013/5/16 Kaan Soral 

> I've just updated to 1.8.0 hoping that my search api issues would be fixed
> ( http://code.google.com/p/googleappengine/issues/detail?id=9088 )
> however they are not fixed, whenever I reset the devappserver, all search
> documents are gone, I'm not sure where they are supposed to be, don't see a
> documents database file anywhere. (I've played around with all
> dev_appserver arguments, --search_indexes is just a 1kb file always, I
> think there should be a seperate --search_documents argument / file)
>
> I also tested the SDK/GUI to check whether it does anything special,
> rather than running dev_appserver command like I do, however I was unable
> to shutdown/reset the app from the GUI, the "stop" button was unable to
> stop the app, so I killed them all and continued using the command line
> argument.
>
> Also I didn't test whether I have a newly introduced network issue or not,
> but after upgrading to 1.8.0 I'm unable to reach the app externally
> although I use 0.0.0.0 as the --host
> I will run the old version of devappserver from my backups to check
> whether it's indeed an issue with the 1.8.0.
>
> Generally speaking, it would be great if we can learn everything in the
> changelog, 1.8.0 changelog was disappointingly short.
>
> Is it just me with these problems?
>
> --
> 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.
>
>
>

-- 
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.




Re: [google-appengine] Unhappy with Windows SDK / Devappserver / 1.8.0

2013-05-17 Thread Moises Belchin
Oh, I'm so sorry, but thanks so much for the report.




Saludos.
Moisés Belchín.


2013/5/16 Kaan Soral 

> Let me save you the time, those solutions wouldn't solve your problem, as
> far as I know, search documents aren't in the datastore
>
>
> On Thursday, May 16, 2013 12:03:06 PM UTC+3, Moises Belchin wrote:
>
>> The same problem for me, every time I started dev_appserver all my Full
>> Text Search documents are gone.
>> I read something about --datastore_path and --clear_datastore parameters
>> for dev_appserver but I don't test them yet.
>> http://stackoverflow.com/**questions/7991558/app-engine-**
>> development-datastore-cleared-**each-time-i-turn-off-my-**computer-how<http://stackoverflow.com/questions/7991558/app-engine-development-datastore-cleared-each-time-i-turn-off-my-computer-how>
>> http://stackoverflow.com/**questions/10998936/app-engine-**
>> datastore-auto-clears-every-**time-project-runs<http://stackoverflow.com/questions/10998936/app-engine-datastore-auto-clears-every-time-project-runs>
>>
>> Regards.
>>
>>
>> Saludos.
>> Moisés Belchín.
>>
>>
>> 2013/5/16 Kaan Soral 
>>
>>> I've just updated to 1.8.0 hoping that my search api issues would be
>>> fixed ( http://code.google.com/p/**googleappengine/issues/detail?**
>>> id=9088 <http://code.google.com/p/googleappengine/issues/detail?id=9088>)
>>> however they are not fixed, whenever I reset the devappserver, all
>>> search documents are gone, I'm not sure where they are supposed to be,
>>> don't see a documents database file anywhere. (I've played around with all
>>> dev_appserver arguments, --search_indexes is just a 1kb file always, I
>>> think there should be a seperate --search_documents argument / file)
>>>
>>> I also tested the SDK/GUI to check whether it does anything special,
>>> rather than running dev_appserver command like I do, however I was unable
>>> to shutdown/reset the app from the GUI, the "stop" button was unable to
>>> stop the app, so I killed them all and continued using the command line
>>> argument.
>>>
>>> Also I didn't test whether I have a newly introduced network issue or
>>> not, but after upgrading to 1.8.0 I'm unable to reach the app externally
>>> although I use 0.0.0.0 as the --host
>>> I will run the old version of devappserver from my backups to check
>>> whether it's indeed an issue with the 1.8.0.
>>>
>>> Generally speaking, it would be great if we can learn everything in the
>>> changelog, 1.8.0 changelog was disappointingly short.
>>>
>>> Is it just me with these problems?
>>>
>>>  --
>>> 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 http://groups.google.com/**
>>> group/google-appengine?hl=en<http://groups.google.com/group/google-appengine?hl=en>
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>  --
> 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.
>
>
>

-- 
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.




Re: [google-appengine] Re: Huge increase in datastore reads - hit $1,000 a day

2013-05-29 Thread Moises Belchin
I guess open an issue for these suggestions and star them would be a very
good way for GAE Team to hear us.


Saludos.
Moisés Belchín.


2013/5/28 Bryce Cutt 

> +1 for adding an optional daily limit for premier accounts. Obviously I
> work to remove this sort of issue but bugs happen and I don't see an easy
> way for me to see my monthly bill amount before I am actually billed. I
> kind of miss daily usage reports with dollar values
>
>
> On Tuesday, May 28, 2013 1:51:59 AM UTC-7, Marcel Manz wrote:
>>
>>
>> For starting would it be too much to ask for a notification (e-mail, text
>>> message etc) at certain thresholds of the daily budget, e.g. when 75% is
>>> exceeded?
>>>
>>
>> Once you're a premier client you no longer have the daily budget option
>> and can basically spend whatever money per day (unless there's some
>> internal limit set by Google).
>>
>> I like your notification warning idea, but that should work for both
>> non-premier (credit cards) as well as premier apps (which are getting
>> invoiced). That said it would be good if Google would also introduce a
>> daily limit for premier apps for protective reasons. If our code would do
>> wrong and create such loops we could end up paying $100'000 per day or
>> more. So as a premier client you have to be really careful not to create
>> such loop holes.
>>
>> Marcel
>>
>  --
> 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.
>
>
>

-- 
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.




Re: [google-appengine] Re: 1.8.1 Pre-release SDKs Available.

2013-06-07 Thread Moises Belchin
Alexis +1
Kaan +1

deferred.defer in asynchronous would be awesome !!!


Saludos.
Moisés Belchín.


2013/6/7 Kaan Soral 

> strong +1 :)
> an update to defer would be great, also it would be great if the function
> would be automatically wrapped around a ndb.toplevel while you're at it
>
>
> On Friday, June 7, 2013 12:48:52 PM UTC+3, Alexis wrote:
>>
>> Regarding:
>> - The Task Queue async API is now a GA feature. The asynchronous methods
>>   improve utilization by allowing your app to add, lease and delete
>> multiple
>>   tasks in parallel.
>>
>> Could you also update "deferred.defer" to expose an asynchronous method
>> as well?
>>
>  --
> 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.
>
>
>

-- 
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.




Re: [google-appengine] backup not complete sometimes. Tasks are stuck.

2013-06-13 Thread Moises Belchin
Some days I've the same problem and I can't see any errors in logs.

Is this a real error and the backup doesn't complete or are single tasks
errors because tasks can't complete properly but the backup is done?

-- 
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.




Re: [google-appengine] Re: Google App Engine community support is moving to Stack Overflow

2013-06-25 Thread Moises Belchin
I'm not a big fan of SO.


Saludos.
Moisés Belchín.


2013/6/25 Hooman Korasani 

> -1
> Stackoverflow has a very strict FAQ rules, and questions are easily
> closed.  I don't think it is a good idea to move support to that platform.
>
>
> On Tuesday, 7 February 2012 02:14:54 UTC, Ikai Lan wrote:
>>
>> *Hi App Engine Developers,
>>
>> In the last few years, the Q&A website Stack 
>> Overflowhas become an invaluable tool for 
>> developer communities. We’re pleased to
>> announce that we are migrating to Stack Overflow as the official channel
>> for answering development questions about Google App Engine.The
>> google-appengine  group
>> will remain open for general discussions and announcements that are better
>> suited for the groups format.
>>
>> We believe that Stack Overflow is better platform for sharing knowledge
>> and answering support questions given its larger community, de-duping of
>> similar questions and contributor reputation system. We also expect that
>> App Engine developers will be able to contribute and benefit from the wider
>> range of language-related information not specific to App Engine. In
>> addition, due to Stack Overflow’s use of OpenID for account management,
>> developers will not need to create a new account to participate in the
>> discussion - developers will be able to log in with any of the identity
>> providers supported by Stack Overflow, including Google Accounts.
>>
>> We plan on deprecating the App Engine language-specific groups, namely
>> google-appengine-pythonand
>> google-appengine-java.
>> The 
>> google-appengine-godiscussion
>>  group will continue to remain open for at least as long as the
>> Go runtime is in experimental status.
>>
>> The Python and Java groups will be placed into read-only on March 5th,
>> 2012. While answering technical questions, we will begin nudging developers
>> to ask their questions on Stack Overflow using the google-app-engine 
>> tag
>> .
>>
>> Please let us know if there are any questions or concerns about this
>> announcement.
>>
>> Happy coding!
>>
>> - Ikai Lan, on behalf of the App Engine team*
>>
>  --
> 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.
>
>
>

-- 
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] We're having problems with Text Search

2013-06-25 Thread Moises Belchin
Hi folks,

We're having a lot of Exceptions with Text Search.

Does anyone have this same problem?

Thanks and regards.


File 
"/python27_runtime/python27_lib/versions/1/google/appengine/api/search/search.py",
line 2730, in search
raise _ToSearchError(e)
TransientError




Saludos.
Moisés Belchín.

-- 
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] Re: We're having problems with Text Search

2013-06-26 Thread Moises Belchin
More Text Searchs exceptions:

DeadlineExceededError: The API call search.IndexDocument() took too
long to respond and was cancelled.



Saludos.
Moisés Belchín.


2013/6/26 Moises Belchin 

> Hi folks,
>
> We're having a lot of Exceptions with Text Search.
>
> Does anyone have this same problem?
>
> Thanks and regards.
>
>
> File 
> "/python27_runtime/python27_lib/versions/1/google/appengine/api/search/search.py",
>  line 2730, in search
> raise _ToSearchError(e)
> TransientError
>
>
>
>
> Saludos.
> Moisés Belchín.
>

-- 
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] Re: We're having problems with Text Search

2013-06-26 Thread Moises Belchin
For those interested If you're getting these type of Text Search exceptions
they're related to Datastore problems that we've experimented yesterday.



Saludos.
Moisés Belchín.


2013/6/26 Moises Belchin 

> More Text Searchs exceptions:
>
> DeadlineExceededError: The API call search.IndexDocument() took too long to 
> respond and was cancelled.
>
>
>
> Saludos.
> Moisés Belchín.
>
>
> 2013/6/26 Moises Belchin 
>
>> Hi folks,
>>
>> We're having a lot of Exceptions with Text Search.
>>
>> Does anyone have this same problem?
>>
>> Thanks and regards.
>>
>>
>> File 
>> "/python27_runtime/python27_lib/versions/1/google/appengine/api/search/search.py",
>>  line 2730, in search
>> raise _ToSearchError(e)
>> TransientError
>>
>>
>>
>>
>> Saludos.
>> Moisés Belchín.
>>
>
>

-- 
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.




Re: [google-appengine] Can not uploading wordpress to google app engine, please help me ?

2013-06-28 Thread Moises Belchin
It might be an encoding error on this file:  __static__\wordpress/wp-
includes/js/tinymce/theme
s/advanced/skins/default/ui.css

Check out the encoding file settings and the characters in the file.

Good luck,.



Saludos.
Moisés Belchín.


2013/6/27 

> I can not uploading wordpress to google app engine.
>
> Command export:
>
>  C:\Users\langame>appengine-php-sdk-1.8.1\appcfg.py update -R
> --runtime=php E:\CODE\All_Project\wordpress
> 10:14 PM Host: appengine.google.com
> 10:14 PM Application: x; version: wordpress
> 10:15 PM
> Starting update of app: x, version: wordpress
> 10:15 PM Getting current resource limits.
> 10:15 PM Scanning files on local disk.
> 10:15 PM Scanned 500 files.
> 10:15 PM Scanned 1000 files.
> 10:15 PM Cloning 581 static files.
> 10:15 PM Rolling back the update.
> Error 400: --- begin server output ---
> Invalid character in filename:
> __static__\wordpress/wp-includes/js/tinymce/theme
> s/advanced/skins/default/ui.css
> --- end server output ---
>
>
> Please help me fix Error 400: --- begin server output --- Invalid
> character in filename. Thank 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/groups/opt_out.
>
>
>

-- 
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] Suddenly 500 Errors

2013-07-03 Thread Moises Belchin
Suddenly we're experimenting 500 errors.

ImportError: cannot import name expression_parser


Obviusly we don't have any package expression_parser.

Anyone with the same problem?

This error is occurring
intermittently
.

Thanks and regards.

Saludos.
Moisés Belchín.

-- 
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] Re: Suddenly 500 Errors

2013-07-03 Thread Moises Belchin
This import was failing: from google.appengine.api.search import
expression_parser
When you use from google.appengine.api import search

Why it was happening? Any comment from google guys will be appreciated

Thanks and regards


Saludos.
Moisés Belchín.


2013/7/3 Moises Belchin 

> Suddenly we're experimenting 500 errors.
>
> ImportError: cannot import name expression_parser
>
>
> Obviusly we don't have any package expression_parser.
>
> Anyone with the same problem?
>
> This error is occurring
> intermittently
> .
>
> Thanks and regards.
>
> Saludos.
> Moisés Belchín.
>

-- 
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.




Re: [google-appengine] Running App Engine Instance 1.8.2

2013-07-09 Thread Moises Belchin
+1


Saludos.
Moisés Belchín.


2013/7/9 Nikhil Jain 

> Hi GAE fellow,
>
> Few of my appengine application instance running on 1.8.1 and others are
> on 1.8.2.
> Is 1.8.2 been released or its pre-released 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.
>
>
>

-- 
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.




Re: [google-appengine] Running App Engine Instance 1.8.2

2013-07-09 Thread Moises Belchin
@Mike We noticed something similar last week. ImportError: cannot import
name expression_parser
when you use from google.appengine.api import search


Saludos.
Moisés Belchín.


2013/7/10 Vinny P 

> On Tue, Jul 9, 2013 at 1:57 AM, Nikhil Jain wrote:
>
>> Hi GAE fellow,
>> Few of my appengine application instance running on 1.8.1 and others are
>> on 1.8.2.
>> Is 1.8.2 been released or its pre-released version?
>>
>
> +1. Also noticing this beginning today morning.
>
> -
> -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/groups/opt_out.
>
>
>

-- 
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.




Re: [google-appengine] Re: Error if I set "required=False" for a StringListProperty

2013-07-10 Thread Moises Belchin
Consider using required=False and default=None or default=[] to avoid these
problems.
Other way is to use GenericProperty, use MapReduce to convert data from one
type to another then change the property type, required, defaults, etc.

Good luck !


Saludos.
Moisés Belchín.


2013/7/10 timh 

> Alternately make the property not required  (required=False), load the
> entities set the value of the list to a [] and then rewrite, once you have
> migrated all the entities you can then
> set the property to be required.
>
> You do need to think about model migration when changing classes
> adding/removing or changing the types of properties.
>
> T
>
>
> On Wednesday, July 10, 2013 3:07:25 PM UTC+8, timh wrote:
>>
>> Have you tried setting the default value to [] as per that error ?
>>
>> If your model is blowing up you can always fetch the underlying data
>> without a model, fix the data up and write it back.
>>
>> T
>>
>> On Wednesday, July 10, 2013 9:56:50 AM UTC+8, Luca de Alfaro wrote:
>>>
>>> This is pretty bad!
>>>
>>> As pointed out in https://code.google.com/p/**
>>> googleappengine/issues/detail?**id=8962,
>>>  if you add a StringListProperty to a model with existing entities in the
>>> datastore, then you cannot read those entities any more!
>>> Furthermore, in Java it is apparently possible to write entities with
>>> null StringListProperty fields.  Those entities cannot then be read from
>>> Python!
>>> These are pretty big problems -- is there any solution?
>>>
>>> Luca
>>>
>>> On Tuesday, March 23, 2010 5:57:17 AM UTC-7, Geoffrey Spear wrote:

 On Mar 22, 11:09 pm, dhruvbird  wrote:
 > Hello,
 >   I have a model with a single attribute that is a StringListProperty.
 > I get an error if I define it as such:
 >
 > class Test(db.Expando):
 > people = db.StringListProperty(**required=False, indexed=True)
 >
 > However, on changing it to:
 > class Test(db.Expando):
 > people = db.StringListProperty(**required=True, indexed=True,
 > default=[])
 >
 > It starts working. Any ideas why this is happening??

 ListPropertys are always required; you can't set their value to None.
 If a particular entity has no values for the ListProperty, you need to
 set it to the empty list.  (Note that you can still set a default
 value of 'None', which magically uses an empty list, not None, as the
 default value.)

  --
> 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.
>
>
>

-- 
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] Datastore Admin Backups

2013-07-10 Thread Moises Belchin
In Dashboard > Data > Datastore Admin you can see backups and completed
operations you've done.

We do a daily backup and in this list of backups only appear some of them.
You can't see all the backups you've done and you can't see all the
Completed Operations.

Would be awesome if you can see all the backups or you can search or you
can navigate page by page or something like that.

Another awesome feature would be view latest backups or latest completed
operations at first.

For those interested you can star this feature request.
https://code.google.com/p/googleappengine/issues/detail?id=9639

Regards and thanks for hearing.
Moisés Belchín.

-- 
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.




Re: [google-appengine] Re: como hacer formularios en app engine y python, ademas usar una base de datos para almacenarlos

2013-07-28 Thread Moises Belchin
Hi Vinny,

The translation is fine ! :D

Saludos.


Saludos.
Moisés Belchín.


2013/7/26 Vinny P 

> On Friday, July 26, 2013 11:39:10 AM UTC-5, jose martinez wrote:
>
>> como hacer formularios en app engine y python, ademas usar una base de
>> datos para almacenarlos
>
>
>
> I don't speak Spanish, but Google Translate comes up with the translation:
> *how to make forms app engine and python, also using a database to store*.
> If this translation is wrong, let me know.
>
> The Python App Engine demo application includes a lesson on how to use
> forms and to store the submitted forms into the datastore. Here are the
> relevant links:
> 1. Handling Forms:
> https://developers.google.com/appengine/docs/python/gettingstartedpython27/handlingforms
> 2. Storing In The Datastore:
> https://developers.google.com/appengine/docs/python/gettingstartedpython27/usingdatastore
>
> If you'd rather use Cloud SQL, here's a demonstration application on
> Github:
> https://github.com/GoogleCloudPlatform/appengine-guestbook-python-cloudsql
>
>
>
>
> -
> -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/groups/opt_out.
>
>
>

-- 
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.




Re: [google-appengine] M/S vs HRD Datastore pricing

2013-10-08 Thread Moises Belchin
If I'm ok M/S was marked as deprecated.

Enviado desde mi Xperia
El 08/10/2013 11:28, "Rafael"  escribió:

> John,
>
> I don't know about the pricing, but M/S was highly unstable. It's worth
> moving.
>
> regards,
> rafa
>
>
> On Tue, Oct 8, 2013 at 12:54 AM, John Wheeler 
> wrote:
>
>> Hi -
>>
>> When HRD was announced, there was a tentative pricing increase of 3x that
>> of the M/S. I took a look at the pricing and it appears that the HRD costs
>> are the same as that of my current M/S datastore costs. The cost issue was
>> what was holding me back from moving over. Can anyone confirm that this is
>> the case?
>>
>> Thanks,
>> John
>>
>> --
>> 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.
>>
>
>  --
> 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.
>

-- 
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.


Re: [google-appengine] Google App Engine Search Service consider Simple Search as Complex Search

2013-10-09 Thread Moises Belchin
Hi,

If you take a look at the documentation:
https://developers.google.com/appengine/docs/python/search/

""
There are separate quotas for simple and complex queries. A query is
complex if its query string includes the name of a geopoint field or at
least one OR or NOT boolean operator. A query is also complex if it uses
query options to specify non-default sorting or scoring, field expressions,
or snippets. Otherwise the query is simple.
""

I think your query is simple and It'd be trated as simple. Maybe this can
be a bug.

good luck.


Saludos.
Moisés Belchín.


2013/10/9 force 

> Hi,
>
> I execute the following simple search using Google App Engine Java Search
> Service:
> IndexSpec indexSpec = IndexSpec.newBuilder().setName(namespace).build();
> Index = SearchServiceFactory.getSearchService().getIndex(indexSpec);
> index.search("אב");
>
> where the search text is simple text but not in English.
>
> Google App engine Quota consider this simple search as complex search,
> Does someone can tell why it is not simple search?
>
> Thanks
>
>
>  --
> 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.
>

-- 
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] how reduce memory usage on mapreduce controller callback

2013-10-10 Thread Moises Belchin
Hi all,

I'm getting a lot of memory limit critical errors in my app when I use
mapreduce library.
I'm working with Python 2.7, app engine 1.8.5 and F2 instances with 256MB.
See attached image.

[image: Imágenes integradas 1]

Has anyone got these critical errors?
Are there any best practices to avoid this critical errors?

Thanks all in advance.

Saludos.
Moisés Belchín.

-- 
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.
<>

Re: [google-appengine] how reduce memory usage on mapreduce controller callback

2013-10-11 Thread Moises Belchin
Hi Vinny,

Thanks for the tips, but actually I'm not loading a file. I'm only using
mapreduce lib for read all the entities for one of my kinds, work with them
(I only read some properties to compose the csv line format) and then I
write to CSV file on cloud storage using mapreduce FileOutputWriter.

Any idea why I'm getting this Criticals memory errors?

Thanks all again.


Saludos.
Moisés Belchín.


2013/10/10 Vinny P 

> On Thu, Oct 10, 2013 at 5:47 AM, Moises Belchin 
>  wrote:
>
>> I'm getting a lot of memory limit critical errors in my app when I use
>> mapreduce library.
>> I'm working with Python 2.7, app engine 1.8.5 and F2 instances with 256MB.
>>
>> Has anyone got these critical errors?
>>
>>
>
> Hello Moises,
>
> How large is your input file? Are you loading the entire file into memory
> at once? If so, try moving to a BlobstoreLineInputReader which reads in one
> line at a time - it reduces the memory being used during file processing.
>
>
> -
> -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/groups/opt_out.
>

-- 
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.


Re: [google-appengine] how reduce memory usage on mapreduce controller callback

2013-10-14 Thread Moises Belchin
Hi Jason,

Thanks for the detailed answer. I'm very surprised that no one else is
talking about these issues.

I'm using ndb and my appstats are off. I could see a incredible great
improvement in my app when I turned off the stats. So, I recommend people
only use stats for testing or debug.

As you mentioned I'll try projection queries.

Could you explain something more about NDB in-memory cache?

Thanks again.




Saludos.
Moisés Belchín.


2013/10/12 Jason Galea 

> Hi Moises,
>
> we're currently trying to deal with this issue too. Not in mapreduce, just
> regular handlers.
>
> same here - "Python 2.7 and F2 instances with 256MB"
>
> Early on I found that fetching 1000 entities and looping through them to
> update a property would blow the instance. Reducing this to say 100 fixed
> the issue. (than when create another task do do the next 100)
>
> "After handling this request" - as far as I understand this isn't so bad
> unless you're blowing it on every request and starting a new instance is
> detrimental.
>
> "While handling this request" - this concerns us most as the request does
> not complete and breaks stuff.. and we see far too many of them.
>
> I've spent more than a little time trying to work out what is causing the
> blowouts but as far as I've been able to work out, memory usage and what
> causes it is near impossible (or just very, very hard).
>
> Are you using NDB? if so..
> - you could try disabling the in-memory cache. As I see it, even though
> you only access one entity at a time, NDB's in memory cache will store them
> all until the request is completed.
> - you could try projection queries if you don't need the complete object
> (or possibly even if you do). Projection queries get their data from an
> index and the entities returned cannot be put() so I assume they are not
> cached at all. We're trialling some fixes with these atm.
>
> ** If anyone knows any of this is incorrect, please let me know..
>
> I'm actually surprised there is not more discussion of these issues from
> what we have experienced so maybe we're doing something fundamentally
> wrong, but I don't believe so.
>
> oh, is appstats turned on? I believe the most noticeable improvement we've
> seen was when we turned it off..
>
> regards,
>
> Jason
>
>
>
>
>
>
> On Fri, Oct 11, 2013 at 5:51 PM, Moises Belchin 
> wrote:
>
>> Hi Vinny,
>>
>> Thanks for the tips, but actually I'm not loading a file. I'm only using
>> mapreduce lib for read all the entities for one of my kinds, work with them
>> (I only read some properties to compose the csv line format) and then I
>> write to CSV file on cloud storage using mapreduce FileOutputWriter.
>>
>> Any idea why I'm getting this Criticals memory errors?
>>
>> Thanks all again.
>>
>>
>> Saludos.
>> Moisés Belchín.
>>
>>
>> 2013/10/10 Vinny P 
>>
>>> On Thu, Oct 10, 2013 at 5:47 AM, Moises Belchin >> > wrote:
>>>
>>>> I'm getting a lot of memory limit critical errors in my app when I use
>>>> mapreduce library.
>>>>  I'm working with Python 2.7, app engine 1.8.5 and F2 instances with
>>>> 256MB.
>>>>
>>>> Has anyone got these critical errors?
>>>>
>>>>
>>>
>>> Hello Moises,
>>>
>>> How large is your input file? Are you loading the entire file into
>>> memory at once? If so, try moving to a BlobstoreLineInputReader which reads
>>> in one line at a time - it reduces the memory being used during file
>>> processing.
>>>
>>>
>>> -
>>> -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/groups/opt_out.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To unsubscribe from this group and stop rece

Re: [google-appengine] how reduce memory usage on mapreduce controller callback

2013-10-15 Thread Moises Belchin
Thanks Jason,

Me too, I starred this one long time ago.


Saludos.
Moisés Belchín.


2013/10/15 Jason Galea 

> thanks Jason, yeh I starred that one a while back.
>
>
>
> On Mon, Oct 14, 2013 at 11:58 PM, Jason Collins  > wrote:
>
>> You guys should star
>> https://code.google.com/p/googleappengine/issues/detail?id=9610
>>
>> In the past, I've found surprising amount of memory use when working with
>> NDB, especially when using repeated properties. In my experiments, it was
>> very easy to blow up instances with a seemingly small number of entities. I
>> think it's wrapped up in protobuf deserialization which is low enough down
>> the stack that no one seems to have much appetite to touch.
>>
>> j
>>
>>
>> On Monday, 14 October 2013 04:14:05 UTC-6, Jason Galea wrote:
>>
>>> Hi Moises,
>>>
>>> you can find all the details here.. https://developers.**
>>> google.com/appengine/docs/**python/ndb/cache<https://developers.google.com/appengine/docs/python/ndb/cache>
>>>
>>> "The In-Context Cache
>>>
>>> The in-context cache persists only for the duration of a single incoming
>>> HTTP request and is "visible" only to the code that handles that request.
>>> It's fast; this cache lives in memory. When an NDB function writes to the
>>> Datastore, it also writes to the in-context cache. When an NDB function
>>> reads an entity, it checks the in-context cache first. If the entity is
>>> found there, no Datastore interaction takes place."
>>>
>>> My take-away is that the in-context cache is handy when different parts
>>> of your code are calling get() on the same entities and would certainly
>>> make things faster, but comes with the trade-off that all entities you
>>> touch are staying in memory until the request completes, even if you don't
>>> need them any more.
>>>
>>> With queries you're going to be loading all entities regardless so
>>> disabling the in-context cache alone likely won't help much. If you do a
>>> keys_only query, though, and get() each entity in turn, then disabling the
>>> in-context cache should reduce memory usage (assuming that some/all of the
>>> memory used by previous entities is able to be re-used..). Once again,
>>> though, you'll likely be sacrificing speed for less memory usage.
>>>
>>> This is mostly based on how I believe the different parts would/should
>>> work, I have no hard evidence..
>>>
>>> Jason
>>>
>>>
>>>
>>>
>>>
>>> On Mon, Oct 14, 2013 at 5:36 PM, Moises Belchin wrote:
>>>
>>>> Hi Jason,
>>>>
>>>> Thanks for the detailed answer. I'm very surprised that no one else is
>>>> talking about these issues.
>>>>
>>>> I'm using ndb and my appstats are off. I could see a incredible great
>>>> improvement in my app when I turned off the stats. So, I recommend people
>>>> only use stats for testing or debug.
>>>>
>>>> As you mentioned I'll try projection queries.
>>>>
>>>> Could you explain something more about NDB in-memory cache?
>>>>
>>>> Thanks again.
>>>>
>>>>
>>>>
>>>>
>>>> Saludos.
>>>> Moisés Belchín.
>>>>
>>>>
>>>> 2013/10/12 Jason Galea 
>>>>
>>>>> Hi Moises,
>>>>>
>>>>> we're currently trying to deal with this issue too. Not in mapreduce,
>>>>> just regular handlers.
>>>>>
>>>>> same here - "Python 2.7 and F2 instances with 256MB"
>>>>>
>>>>> Early on I found that fetching 1000 entities and looping through them
>>>>> to update a property would blow the instance. Reducing this to say 100
>>>>> fixed the issue. (than when create another task do do the next 100)
>>>>>
>>>>> "After handling this request" - as far as I understand this isn't so
>>>>> bad unless you're blowing it on every request and starting a new instance
>>>>> is detrimental.
>>>>>
>>>>> "While handling this request" - this concerns us most as the request
>>>>> does not complete and breaks stuff.. and we see far too many of them.
>>>>>
>>>>> I've spent more than a 

Re: [google-appengine] Re: App engine is down on some apps

2013-10-16 Thread Moises Belchin
Dashboard in some cases is very slow


Saludos.
Moisés Belchín.


2013/10/16 Daniel Florey 

> Upload is stuck here as well (Java).
>
>
> On Wednesday, October 16, 2013 12:34:18 PM UTC+2, Dennis wrote:
>>
>> I'm trying to upload a new version of my code, but the upload process has
>> been stuck for a 10 minutes now.
>> Interestingly, however, the old version of my code (python) is still
>> running and is even quite responsive.
>>
>>
>>
>> On Wednesday, October 16, 2013 3:54:16 PM UTC+8, timh wrote:
>>>
>>> Though the dashboard is very slow at the moment.
>>>
>>> T
>>>
>>> On Wednesday, October 16, 2013 3:52:37 PM UTC+8, timh wrote:

 No..  I am on python and am finding it's running particularly well at
 the moment. This morning memecache was being purged rapidly now it's
 settled down and response times are good.

 T

 On Wednesday, October 16, 2013 3:24:50 PM UTC+8, ZeroCool wrote:
>
> Anyone else seeing the same problem?
> My app pe-server7 (java) is down, and others are experiencing lag
> issues.
>
> Can any Googler look into the problem?
>
  --
> 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.
>

-- 
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.


Re: [google-appengine] Re: App engine is down on some apps

2013-10-17 Thread Moises Belchin
Datastore Admin link is stuck and doesn't show any information. Anyone else?
Regards


Saludos.
Moisés Belchín.


2013/10/17 Gopal Patel 

> nice idea, will remember it, thanks of sharing
>
>
> On Thu, Oct 17, 2013 at 1:07 PM, ZeroCool  wrote:
>
>> OK, after desperately trying to contact google for a few hours.
>> I disabled my app and re-enabled it.
>> Guess what, it brought it back to life.
>>
>> If anyone has a similar problem in the future, try this trick. ;)
>>
>> On Wednesday, October 16, 2013 3:24:50 PM UTC+8, ZeroCool wrote:
>>>
>>> Anyone else seeing the same problem?
>>> My app pe-server7 (java) is down, and others are experiencing lag issues.
>>>
>>> Can any Googler look into the problem?
>>>
>>  --
>> 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.
>>
>
>  --
> 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.
>

-- 
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] Re: How to discard warning messages on appcfg deploy

2013-10-17 Thread Moises Belchin
Sorry for long delay.

For those interested, add this line to your app.yaml skip_files directive
and appcfg will ignore pyc files and appcfg won't show you warning messages.

skip_files:
- ^(.*/)?.*\.py[co]

Regards.


Saludos.
Moisés Belchín.


2013/3/21 Moises Belchin 

> Hi all,
>
> Is there any way to discard "warning messages" when you deploy your app?
> What I mean by "warning messages":
>
> - Could not guess mimetype for *myfile*. Using application/octet-stream.
> - 2013-03-21 12:41:02,884 WARNING appcfg.py:2027 Ignoring file
> 'appengine_config.pyc': Cannot upload both .py and .pyc
>
> I usually deployed with GAE Launcher rather than appcfg command line
> directly.
>
> Thanks and Regards.
> Moisés Belchín.
>

-- 
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.