[google-appengine] Re: Error: Server Error after updating the application

2009-05-13 Thread Racz Bogdan
thanks
sorry i forgot about the log in appengine from the dashboard.
i got it ... i included a django module from
appengine.lib.django.django.utils.encoding which throwed me the error.
i don't know exactly why ... but the its important that know it works.

thanks again,
racz

On Wed, May 13, 2009 at 12:50 AM, Jason (Google) wrote:

> The application loads on my end -- were you able to find and address the
> cause of the error or do I need to hit a particular handler? If you see this
> type of error in the future, you should first check the application's logs
> (linked from your application's Dashboard) to see if there are any more
> details that can help you pinpoint the cause.
>
> - Jason
>
>
> On Tue, May 12, 2009 at 1:46 AM, Racz  wrote:
>
>>
>> hello there,
>>
>> i have the following problem the application runs perfectly on
>> localhost, but i have successfully update it and try accessing it i
>> receive this useless error log:
>>
>> Error: Server Error
>> The server encountered an error and could not complete your request.
>>
>> If the problem persists, please report your problem and mention this
>> error message and the query that caused it.
>>
>> i didnt found any answer yet even though i've searched through the
>> issues and other group postings.
>>
>> my app.yaml looks like this:
>>
>> application: portalsmartmetering
>> version: 1
>> runtime: python
>> api_version: 1
>>
>> handlers:
>> - url: /static
>>  static_dir: static
>> - url: /.*
>>  script: index.py
>>
>> my directory structure includes
>> a static directory for css, javascript
>> and other application directories like template, gdata and
>> gchartwrapper
>>
>> portalsmartmetering.appspot.com
>>
>> any solution?
>>
>> thanks a lot
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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: Application Identifiers

2009-05-13 Thread David Wilson

Hey Sri,

For whatever strange reason, App IDs that conflict with Gmail
usernames are reserved by default. That means if
legendofthefiveri...@gmail.com is somebody's e-mail address, you can't
use it for your appspot domain.


David

2009/5/12 Sri :
>
> Does GAE place any restrictions on app engine titles via some
> automatic algorithms?  I mean it may just be squatters doing what they
> do best, but does Google place any restrictions?  Like dictionary
> words or plurals of existing games etc?
>
> I am not looking for any rude or obscene words but when writing a game
> a lot of "legend" related titles seem to be taken.  Surely there cant
> be that many games out there on app engine right?
>
> cheers
> Sri
> >
>



-- 
It is better to be wrong than to be vague.
  — Freeman Dyson

--~--~-~--~~~---~--~~
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: db.Query(BS_EMPLOYEE_BASEINFO).filter('DEPT_ID >=', deptId).filter('DEPT_ID <', deptIdBig)

2009-05-13 Thread Paul Roy

maybe im not getting the whole story here, but arent you evaluating  
your property against a string ?

im not a 100% on this but id think youd get different results from  
using < on a string than an integer value. that is if you can even  
make it pass the property's validation..??..


Sent from my iPhone

On 09-05-13, at 02:42, DiveIntoGAE  wrote:

>
> The code is below,  it is always timeout, why? how can i improve it?:
>
> deptId = self.request.get('deptId','0100')
> deptIdBig = deptId.replace('00','99')
>
> personsInfoQuery = db.Query(BS_EMPLOYEE_BASEINFO).filter('DEPT_ID
>> =', deptId).filter('DEPT_ID <', deptIdBig)
> >

--~--~-~--~~~---~--~~
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] Getting Data Using Key vs. Key_Name

2009-05-13 Thread ecognium

Hello Everyone,
It looks like Model.get(keys) raises an exception (BadKeyError)
when the key does not exist even though it is not mentioned here
http://code.google.com/appengine/docs/python/datastore/modelclass.html#Model_get.

On the other hand, Model.get_key_by_name(names) just returns None for
the keys that do not exist. If I understand it correctly keys and
key_names are not the same - i.e., i cannot use a key value inside the
get_by_key_name() call.. so how can i get data using key without
having to worry about determining which specific key was not valid?

I can create my own key names but I would like to use the default
uniqueness guarantee of the keys. If there is no easy way to deal with
this exception, is there an easy way to make the key_name same as the
key value provided by default?

In case you are wondering why the keys will be invalid: I am allowing
the users to bookmark certain objects.. so i store the key names in
the user prefs data... If the object referenced gets deleted then the
key information stored inside the userprefs will be outdated and when
they query for their bookmarks, it causes an issue.. I wanted to avoid
the whole process of going through every single user who may be using
the deleted key and remove  it real-time. so i thought i will just
handle it as a batch job...

Thanks!
--~--~-~--~~~---~--~~
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: Facing problem in downloading a file

2009-05-13 Thread s s
Thanks Jason.Its working now...

On Wed, May 13, 2009 at 6:28 AM, Jason (Google)  wrote:

> You'll need to serve this Word document as a static file. Read the
> following document and let me know if you have any more questions.
>
>
> http://code.google.com/appengine/docs/python/config/appconfig.html#Static_File_Handlers
>
> - Jason
>
>
> On Tue, May 12, 2009 at 2:01 AM, s s  wrote:
>
>>
>> Hi,
>>  I am very new to python.
>>
>> I am trying to get a word page download when I click on a the link.But I
>> am unable to do so.
>>
>> Kindly help.What I need to do in YAML file and .py file.
>>
>> Thanks in Advance.
>>
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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: Should I use app-engine-patch or App Engine Helper for Django

2009-05-13 Thread Waldemar Kornewald

Hi Khai,

On 13 Mai, 07:53, Khai  wrote:
> I've tried to read the articles on using django with appengine, but I
> am confused.  Should I go with "App Engine Helper for Django" or
> should I go with "app-engine-patch"?

Use app-engine-patch. It is much more complete and feature-rich and in
more active development. I might be biased, though... :)

Bye,
Waldemar Kornewald
--~--~-~--~~~---~--~~
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: Application Identifiers

2009-05-13 Thread Sri

Hi Dave,

   Thanks for that mate.  But yeah that still is a bit inconvinient
given that most gmail users may not even be app developers.

Also is it possible to show which of the cases the violation is off?
I mean whether if it is an existing gmail ID or an already registered
app.  Or perhaps a way to atleast talk to the gmail user to get some
kind of "Transfer" of the app name...

Also by tying app names to gmail user names, doesnt it incentivize
spammers to create fake accounts just to prevent a name from being
used for an app?

cheers
Sri

On May 13, 6:19 pm, David Wilson  wrote:
> Hey Sri,
>
> For whatever strange reason, App IDs that conflict with Gmail
> usernames are reserved by default. That means if
> legendofthefiveri...@gmail.com is somebody's e-mail address, you can't
> use it for your appspot domain.
>
> David
>
> 2009/5/12 Sri :
>
>
>
> > Does GAE place any restrictions on app engine titles via some
> > automatic algorithms?  I mean it may just be squatters doing what they
> > do best, but does Google place any restrictions?  Like dictionary
> > words or plurals of existing games etc?
>
> > I am not looking for any rude or obscene words but when writing a game
> > a lot of "legend" related titles seem to be taken.  Surely there cant
> > be that many games out there on app engine right?
>
> > cheers
> > Sri
>
> --
> It is better to be wrong than to be vague.
>   — Freeman Dyson
--~--~-~--~~~---~--~~
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] Authentication using spread sheet and python.

2009-05-13 Thread S K
Hi All,
  can any one tell how to authenticate user name and password
using spreadsheet and python code... provide me some sample program

Thanks in Advance

--~--~-~--~~~---~--~~
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: 411 length required on POST error - Content-length header specified

2009-05-13 Thread Shedokan

Here's my main.py file:

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

class startUp(webapp.RequestHandler):
def get(self):
# execute something that executes the ajax post request

class handleAjax(webapp.RequestHandler):
def get(self):
# This works
self.response.out.write('hello')
def post(self):
# I also tryed this without success
#self.response.headers['Content-Length'] = len(res)

self.response.out.write('hello')

def main():
system = webapp.WSGIApplication([
('/', startUp),
('/ajax', handleAjax),
])
run_wsgi_app(system)


if __name__ == "__main__":
  main()

On 5 מאי, 01:28, "Jason (Google)"  wrote:
> It sounds like you're using the URL Fetch service. Can you share your code
> which executes the POST request?
>
> - Jason
>
> On Thu, Apr 30, 2009 at 6:00 PM, Shedokan  wrote:
>
> > I have my app here:
> >http://shedokan-os.appspot.com/
>
> > at the start of the app it sends a post request to the server.
> > and instead of giving the content it supposed to it gives out the
> > error "POST requests require a Content-length header."
> > and I did specify that kind of header.
>
> > what's wrong?
--~--~-~--~~~---~--~~
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] Billing Invoices

2009-05-13 Thread George Moschovitis

Does Google provide invoices for billed resources?

Are these invoices compatible with EU regulations? The following
fields are required in the invoice:

- Businessname, Adress and VAT Number of the billing party (google)
- Businessname, Adress and VAT Number of the paying party (our
company)
- Invoice-Currency
- Invoice-VAT-Percentage

kind regards,
George.
--~--~-~--~~~---~--~~
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: Authentication using spread sheet and python.

2009-05-13 Thread Nick Johnson (Google)

Hi S K,

You need to clarify what you're trying to do. Are you trying to access
a Google Docs spreadsheet from an App Engine app, trying to access a
password protected excel file, or something else entirely?

-Nick Johnson

On Wed, May 13, 2009 at 10:43 AM, S K  wrote:
> Hi All,
>   can any one tell how to authenticate user name and password
> using spreadsheet and python code... provide me some sample program
>
> Thanks in Advance
>
> 

--~--~-~--~~~---~--~~
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: Application Identifiers

2009-05-13 Thread Nick Johnson (Google)

Hi Sri,

There's no way to see why an App ID is taken, unfortunately. As far as
'transferring' a username goes, any user can register an app with the
same name as their gmail account, so if you can convince the owner of
the account to register the app with the same name as their address,
and then add you as an administrator, you can remove their
administrator privileges and take control of the app (with their
permission, of course!)

People could create gmail accounts just to prevent a name being used
in App Engine, but it's not clear to me why they'd want to do that.

-Nick Johnson

On Wed, May 13, 2009 at 10:32 AM, Sri  wrote:
>
> Hi Dave,
>
>   Thanks for that mate.  But yeah that still is a bit inconvinient
> given that most gmail users may not even be app developers.
>
> Also is it possible to show which of the cases the violation is off?
> I mean whether if it is an existing gmail ID or an already registered
> app.  Or perhaps a way to atleast talk to the gmail user to get some
> kind of "Transfer" of the app name...
>
> Also by tying app names to gmail user names, doesnt it incentivize
> spammers to create fake accounts just to prevent a name from being
> used for an app?
>
> cheers
> Sri
>
> On May 13, 6:19 pm, David Wilson  wrote:
>> Hey Sri,
>>
>> For whatever strange reason, App IDs that conflict with Gmail
>> usernames are reserved by default. That means if
>> legendofthefiveri...@gmail.com is somebody's e-mail address, you can't
>> use it for your appspot domain.
>>
>> David
>>
>> 2009/5/12 Sri :
>>
>>
>>
>> > Does GAE place any restrictions on app engine titles via some
>> > automatic algorithms?  I mean it may just be squatters doing what they
>> > do best, but does Google place any restrictions?  Like dictionary
>> > words or plurals of existing games etc?
>>
>> > I am not looking for any rude or obscene words but when writing a game
>> > a lot of "legend" related titles seem to be taken.  Surely there cant
>> > be that many games out there on app engine right?
>>
>> > cheers
>> > Sri
>>
>> --
>> It is better to be wrong than to be vague.
>>   — Freeman Dyson
> 

--~--~-~--~~~---~--~~
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: Getting Data Using Key vs. Key_Name

2009-05-13 Thread Nick Johnson (Google)

Hi ecognium,

Model.get does not return BadKeyError when attempting to fetch an
entity that does not exist - it returns None, as documented.
BadKeyError is raised when the key itself is invalid, because it lacks
a name or id, or has an invalid name. You probably want to check that
you're not generating invalid keys - such as one with a name that
starts with a digit.

-Nick Johnson

On Wed, May 13, 2009 at 9:55 AM, ecognium  wrote:
>
> Hello Everyone,
>It looks like Model.get(keys) raises an exception (BadKeyError)
> when the key does not exist even though it is not mentioned here
> http://code.google.com/appengine/docs/python/datastore/modelclass.html#Model_get.
>
> On the other hand, Model.get_key_by_name(names) just returns None for
> the keys that do not exist. If I understand it correctly keys and
> key_names are not the same - i.e., i cannot use a key value inside the
> get_by_key_name() call.. so how can i get data using key without
> having to worry about determining which specific key was not valid?
>
> I can create my own key names but I would like to use the default
> uniqueness guarantee of the keys. If there is no easy way to deal with
> this exception, is there an easy way to make the key_name same as the
> key value provided by default?
>
> In case you are wondering why the keys will be invalid: I am allowing
> the users to bookmark certain objects.. so i store the key names in
> the user prefs data... If the object referenced gets deleted then the
> key information stored inside the userprefs will be outdated and when
> they query for their bookmarks, it causes an issue.. I wanted to avoid
> the whole process of going through every single user who may be using
> the deleted key and remove  it real-time. so i thought i will just
> handle it as a batch job...
>
> Thanks!
> 

--~--~-~--~~~---~--~~
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: db.Query(BS_EMPLOYEE_BASEINFO).filter('DEPT_ID >=', deptId).filter('DEPT_ID <', deptIdBig)

2009-05-13 Thread Nick Johnson (Google)

How many results are you fetching, how big are the entities, and does
it _always_ time out, or just frequently? Does fetching a smaller
number of results cause it to time out less?

-Nick Johnson

On Wed, May 13, 2009 at 7:42 AM, DiveIntoGAE  wrote:
>
> The code is below,  it is always timeout, why? how can i improve it?:
>
> deptId = self.request.get('deptId','0100')
> deptIdBig = deptId.replace('00','99')
>
>  personsInfoQuery = db.Query(BS_EMPLOYEE_BASEINFO).filter('DEPT_ID
>>=', deptId).filter('DEPT_ID <', deptIdBig)
> 

--~--~-~--~~~---~--~~
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: Are all ListProperties implicitly indexed?

2009-05-13 Thread Nick Johnson (Google)

On Wed, May 13, 2009 at 3:21 AM, cocoaghost  wrote:
>
> Sorry, I cut & paste the wrong paragraph. Ben did the favor for me.
> I am asking the maximal number of elements in one un-indexed list.

In an un-indexed list, the maximum number of elements is limited only
by the maximum entity size (1MB) and the time it takes to decode the
entity. The latter can be substantial in the case of very large lists.

-Nick Johnson

> On May 11, 6:48 pm, "Nick Johnson (Google)" 
> wrote:
>> On Sat, May 9, 2009 at 2:24 AM, cocoaghost  wrote:
>>
>> > With Python SDK 1.2.2, now it is possible:
>> > '''
>> > Datastore now supports Key-only queries, using either SELECT __key__
>> > or db.Query(Model, keys_only=True
>> > '''
>> > But what's the limit of list size?
>>
>> Can you clarify what you're asking, exactly? What list size?
>>
>> -Nick Johnson
>>
>> > On Mar 23, 4:08 pm, an0  wrote:
>> >> If so, can I explicitly mark a ListProperty not to be indexed?
>>
>> >> I want the list's flexibility for some attributes, but don't want them
>> >> to be indexed, (how) can I achieve this goal?
>>
>> >> Thanks in advance.
> 

--~--~-~--~~~---~--~~
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: Second level app names

2009-05-13 Thread Nick Johnson (Google)

Hi Sri,

That's not currently possible with appspot.com domains, but you can
add any domain name you want as a Google Apps domain to achieve this.

-Nick Johnson

On Tue, May 12, 2009 at 10:57 PM, Sri  wrote:
>
> Is it possible to create secondary (or ternary really) levels in your
> app?
>
> Eg if you app is world.appspot.com, is it possible to have
> hello.world.appspot.com and goodbye.world.appspot.com and have custom
> configs for the two?
>
> cheers
> Sri
> 

--~--~-~--~~~---~--~~
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: Authentication using spread sheet and python.

2009-05-13 Thread S K
Hi Nick,

actually my requirement is like this..
i am creating school intranet.. in that different links are there like
*Students,
Staff, Admin*   on click of any link  need to ask user name and password
if its valid then it should enter in side
For this i am want to use Google
Docs spreadsheet (with out using any database) from App Engine and Python
code, is there any way to do this and how to use Login api ..

Thanks in advance..



On Wed, May 13, 2009 at 4:10 PM, Nick Johnson (Google) <
nick.john...@google.com> wrote:

>
> Hi S K,
>
> You need to clarify what you're trying to do. Are you trying to access
> a Google Docs spreadsheet from an App Engine app, trying to access a
> password protected excel file, or something else entirely?
>
> -Nick Johnson
>
> On Wed, May 13, 2009 at 10:43 AM, S K  wrote:
> > Hi All,
> >   can any one tell how to authenticate user name and password
> > using spreadsheet and python code... provide me some sample program
> >
> > Thanks in Advance
> >
> >
>
> >
>

--~--~-~--~~~---~--~~
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: Authentication using spread sheet and python.

2009-05-13 Thread Nick Johnson (Google)

Hi S K,

You can access the contents of a Google Docs spreadsheet using the
Google Spreadsheets API. Documentation is available here:
http://code.google.com/apis/spreadsheets/overview.html

In addition, you'll need to incorporate a session management system
like Beaker, or issue your own cookies, to keep track of a user once
they're authenticated.

-Nick Johnson

On Wed, May 13, 2009 at 12:18 PM, S K  wrote:
> Hi Nick,
>
> actually my requirement is like this..
> i am creating school intranet.. in that different links are there like
> Students, Staff, Admin   on click of any link  need to ask user name and
> password if its valid then it should enter in side
> For this i am want to use Google
> Docs spreadsheet (with out using any database) from App Engine and Python
> code, is there any way to do this and how to use Login api ..
>
> Thanks in advance..
>
>
>
> On Wed, May 13, 2009 at 4:10 PM, Nick Johnson (Google)
>  wrote:
>>
>> Hi S K,
>>
>> You need to clarify what you're trying to do. Are you trying to access
>> a Google Docs spreadsheet from an App Engine app, trying to access a
>> password protected excel file, or something else entirely?
>>
>> -Nick Johnson
>>
>> On Wed, May 13, 2009 at 10:43 AM, S K  wrote:
>> > Hi All,
>> >   can any one tell how to authenticate user name and
>> > password
>> > using spreadsheet and python code... provide me some sample program
>> >
>> > Thanks in Advance
>> >
>> >
>>
>> 

--~--~-~--~~~---~--~~
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: Upgrade to 1.2.2, can no longer read files with csv.reader

2009-05-13 Thread Nick Johnson (Google)

Hi obvious,

The dev_appserver will deny you access to files that are 'skipped'
(that is, they will not be uploaded to App Engine), or static files.
Is that the case for the CSV file you are trying to open?

If the file is skipped, you can override the check by passing
--allow_skipped_files to the dev_appserver.

-Nick Johnson

On Mon, May 11, 2009 at 3:44 PM, obvious  wrote:
>
> I upgraded from 1.2.1 to 1.2.2 last night and now I can't read files
> with csv.reader.
> I do this:
> reader = csv.reader(open("applications.csv",'rU'))
> and I get the following error:
> IOError: [Errno 13] file not accessible: 'applications.csv'
>
> I've tried reinstalling the python environment, the SDK to no avail.
>
> 

--~--~-~--~~~---~--~~
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: Second level app names

2009-05-13 Thread 风笑雪
You can set a version in your app.yaml
And you can get a url like:
http://.latest..appspot.com

2009/5/13 Nick Johnson (Google) 

>
> Hi Sri,
>
> That's not currently possible with appspot.com domains, but you can
> add any domain name you want as a Google Apps domain to achieve this.
>
> -Nick Johnson
>
> On Tue, May 12, 2009 at 10:57 PM, Sri  wrote:
> >
> > Is it possible to create secondary (or ternary really) levels in your
> > app?
> >
> > Eg if you app is world.appspot.com, is it possible to have
> > hello.world.appspot.com and goodbye.world.appspot.com and have custom
> > configs for the two?
> >
> > cheers
> > Sri
> >
>
> >
>

--~--~-~--~~~---~--~~
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: What's the difference among key, id, and key name?

2009-05-13 Thread Big Stu

> When you create entities, you have the option of specifying a unique key
> name that you can use to reference these entities directly (e.g. retrieving
> entities without queries, thereby improving the performance of your
> application).

I'm not sure what you mean by this.  Are you saying if I know enough
to reconstruct the full key name of an instance I want to retrieve I
can instantiate the model with that key name and then start using it
directly?  In other words, I know that when I create these instances I
use "some_string" + "owner model name" + "something else" as the key
name, so if I'm in some other situation where I know all those values
I can easily rebuild the key name and start using the model without
having to run a query on the datastore?
--~--~-~--~~~---~--~~
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: Creating a filter using google api

2009-05-13 Thread Big Stu

What is a "filter" in this context?  Is this a Java thing?  I've been
listening in on the group conversation as a python developer.  I'm not
following you guys.

Thanks

Stu


On May 12, 4:08 pm, niklasr  wrote:
> On May 11, 6:13 am, Nikhar  wrote:> Hi 
>
> > I wanna create a filter and add it to my application using an google
> > api can some help me with it 
> > i have reached up to some extent bt can't make it display ..
>
> easiest way is fork an existing project, then either filter according
> to inequality or equality by your choice, implementation preferred is
> either python or java though the most trivial app should be possible,
> if it'd be up2me, with nothing but yaml, for minimalism. i learnt many
> things from srv.appspot.com whose sources are public gae-services-
> examples.googlecode.com
> best wishes
> NiklasR
--~--~-~--~~~---~--~~
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: What's the difference among key, id, and key name?

2009-05-13 Thread Nick Johnson (Google)

On Wed, May 13, 2009 at 12:47 PM, Big Stu  wrote:
>
>> When you create entities, you have the option of specifying a unique key
>> name that you can use to reference these entities directly (e.g. retrieving
>> entities without queries, thereby improving the performance of your
>> application).
>
> I'm not sure what you mean by this.  Are you saying if I know enough
> to reconstruct the full key name of an instance I want to retrieve I
> can instantiate the model with that key name and then start using it
> directly?  In other words, I know that when I create these instances I
> use "some_string" + "owner model name" + "something else" as the key
> name, so if I'm in some other situation where I know all those values
> I can easily rebuild the key name and start using the model without
> having to run a query on the datastore?

That's correct, as long as you also know the entity type and any
ancestors' keys.

-Nick Johnson

--~--~-~--~~~---~--~~
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: Data disappears.

2009-05-13 Thread Dennis123

Jason

It was user error - me.   I had deployed the feeling lucky app.
http://code.google.com/p/feeling-lucky-pictures/  I saw that it was
storing using the PersistenceManager in the code.   I did not notice
that it only used mem cache to retrieve the data.   I checked using
admin and the data is indeed there.

Thanks taking the time to help me.
Dennis





On May 12, 9:15 pm, "Jason (Google)"  wrote:
> Hi Dennis. No, if you exceed your storage quota, attempts to write new data
> will fail but other data won't get overridden. Is it possible that you're
> deleting these entities somehow? If your entities are persisted, they should
> be persisted forever until you choose to remove it, either via the
> PersistenceManager or your application's Admin Console.
>
> Just so we're clear, are you referring to data stored in the local
> development server or an application being served in production?
>
> Also, how are you determining that the data is disappearing?
>
> - Jason
>
> On Tue, May 12, 2009 at 8:12 AM, Dennis123  wrote:
>
> > Hi all,
>
> > I'm doing a new app (Java) and I've noticed that after a while (12
> > hours or so) data that I have stored disappears.  I'm using the
> > PersistenceManagerFactory and the PersistenceManager and I've got all
> > of my classes set up with the right annotations.
>
> > I'm on a free account.   Could that be the problem?
>
> > Thanks,
> > Dennis
--~--~-~--~~~---~--~~
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] JDOObjectNotFound exception when using getObjectById

2009-05-13 Thread vijay
Hi All,
I am stuck with a very weird case here while using getObjectById() function,

I have a persistent class called Category and i am saving it to appengine
datastore using JDO.
I have tried to fetch a particular entry using query and getObjectById()
method, the query is passing and returning me the correct results but
getObjectById is throwing exception JDOObjectNotFound.

The Category class have a primary key field called id, a parent key and a
child key. the child and parent are actually primary key of other Category
instances.( I am trying to buuld a heirarchy of similar objects here. I am
using unowned one to many relationship here.)


// In following code we get the Id of parent and remove the child's
information from it.
Long id = e.getParent(); // returns parent Id.

Query query = pm.newQuery(Category.class);
query.setFilter("id == cat_id"); // get the Category with primary key id =
cat_id.
query.declareParameters("Long cat_id");
List results = (List) query.execute(id); // get parent
category. results contain the expected information.
if (results.iterator().hasNext()) {
   for (Category e3 : results) {
  Set child = e3.getChildrens(); // get the childrens.
   }
  }

Category e2 = (Category) pm.getObjectById(id); // throws JDOObjectNotFound
exception. It is expected to contain the same information as in results 1st
element.
e2.removeChildren(e.getId());
pm.deletePersistent(e);


As you must have seen in the code i am fetching same id using the query and
it returning me the expected objects while
the getObjectById is throwing the exception JDOObjectNotFound. Any clues why
it is throwing that exception.

I tried to google it but could not find any obvious reason,
Can somebody help me figuring out where I am doing it wrong.

Regards,
Vijay

--~--~-~--~~~---~--~~
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] JDOObjectNotFound exception when using getObjectById

2009-05-13 Thread vijay
Hi All,
I am stuck with a very weird case here while using getObjectById() function,

I have a persistent class called Category and i am saving it to appengine
datastore using JDO.
I have tried to fetch a particular entry using query and getObjectById()
method, the query is passing and returning me the correct results but
getObjectById is throwing exception JDOObjectNotFound.

The Category class have a primary key field called id, a parent key and a
child key. the child and parent are actually primary key of other Category
instances.( I am trying to buuld a heirarchy of similar objects here. I am
using unowned one to many relationship here.)


// In following code we get the Id of parent and remove the child's
information from it.
Long id = e.getParent(); // returns parent Id.

Query query = pm.newQuery(Category.class);
query.setFilter("id == cat_id"); // get the Category with primary key id =
cat_id.
query.declareParameters("Long cat_id");
List results = (List) query.execute(id); // get parent
category. results contain the expected information.
if (results.iterator().hasNext()) {
   for (Category e3 : results) {
  Set child = e3.getChildrens(); // get the childrens.
   }
  }

Category e2 = (Category) pm.getObjectById(id); // throws JDOObjectNotFound
exception. It is expected to contain the same information as in results 1st
element.
e2.removeChildren(e.getId());
pm.deletePersistent(e);


As you must have seen in the code i am fetching same id using the query and
it returning me the expected objects while
the getObjectById is throwing the exception JDOObjectNotFound. Any clues why
it is throwing that exception.

I tried to google it but could not find any obvious reason,
Can somebody help me figuring out where I am doing it wrong.

Regards,
Vijay

--~--~-~--~~~---~--~~
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: 'ModelOptions' object has no attribute 'fields' error with GAE Helper

2009-05-13 Thread Waldemar Kornewald

Hi,
for those who have the same problem, Simon cross-posted to the
appengine-python group and I replied here:
http://groups.google.com/group/google-appengine-python/browse_thread/thread/a13117221ab00251

Bye,
Waldemar Kornewald
--~--~-~--~~~---~--~~
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: my app suddenly shows an error! yesterday, everything OK

2009-05-13 Thread Kwame

I had a similar problem after upgrading to v 1.2.2
first I tried to roll back the update but I was unable to, but somehow
the issue resolved after I restarted my computer.

hope that helps

On May 8, 1:34 pm, Rodrigo Amaral  wrote:
> Hello, Ryan
>
> My application is also broken, but shows a slightly different error.
> I'm not using any fork of the Query class. Here's the log:
>
> Traceback (most recent call last):
>   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> __init__.py", line 501, in __call__
>     handler.get(*groups)
>   File "/base/data/home/apps/f1gp/3.44007892917312/f1gp.py", line
> 50, in get
>     'noticias' : Noticia.get_recentes(),}))
>   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> template.py", line 81, in render
>     return t.render(Context(template_dict))
>   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> template.py", line 121, in wrap_render
>     return orig_render(context)
>   File "/base/python_lib/versions/1/django/template/__init__.py", line
> 168, in render
>     return self.nodelist.render(context)
>   File "/base/python_lib/versions/1/django/template/__init__.py", line
> 705, in render
>     bits.append(self.render_node(node, context))
>   File "/base/python_lib/versions/1/django/template/__init__.py", line
> 718, in render_node
>     return(node.render(context))
>   File "/base/python_lib/versions/1/django/template/loader_tags.py",
> line 82, in render
>     return compiled_parent.render(context)
>   File "/base/python_lib/versions/1/django/template/__init__.py", line
> 168, in render
>     return self.nodelist.render(context)
>   File "/base/python_lib/versions/1/django/template/__init__.py", line
> 705, in render
>     bits.append(self.render_node(node, context))
>   File "/base/python_lib/versions/1/django/template/__init__.py", line
> 718, in render_node
>     return(node.render(context))
>   File "/base/python_lib/versions/1/django/template/loader_tags.py",
> line 23, in render
>     result = self.nodelist.render(context)
>   File "/base/python_lib/versions/1/django/template/__init__.py", line
> 705, in render
>     bits.append(self.render_node(node, context))
>   File "/base/python_lib/versions/1/django/template/__init__.py", line
> 718, in render_node
>     return(node.render(context))
>   File "/base/python_lib/versions/1/django/template/loader_tags.py",
> line 23, in render
>     result = self.nodelist.render(context)
>   File "/base/python_lib/versions/1/django/template/__init__.py", line
> 705, in render
>     bits.append(self.render_node(node, context))
>   File "/base/python_lib/versions/1/django/template/__init__.py", line
> 718, in render_node
>     return(node.render(context))
>   File "/base/python_lib/versions/1/django/template/defaulttags.py",
> line 209, in render
>     return self.nodelist_true.render(context)
>   File "/base/python_lib/versions/1/django/template/__init__.py", line
> 705, in render
>     bits.append(self.render_node(node, context))
>   File "/base/python_lib/versions/1/django/template/__init__.py", line
> 718, in render_node
>     return(node.render(context))
>   File "/base/python_lib/versions/1/django/template/defaulttags.py",
> line 99, in render
>     values = list(values)
>   File "/base/python_lib/versions/1/google/appengine/ext/db/
> __init__.py", line 1372, in __iter__
>     return self.run()
>   File "/base/python_lib/versions/1/google/appengine/ext/db/
> __init__.py", line 1360, in run
>     iterator = self._get_query().Run()
>   File "/base/python_lib/versions/1/google/appengine/ext/db/
> __init__.py", line 1591, in _get_query
>     keys_only=self._keys_only)
> AttributeError: 'Query' object has no attribute '_keys_only'
>
> Do you guys know a way to workaround this one?
>
> Thanks in advance!
>
> Rodrigo Amaral
>
> On 8 maio, 02:05, ryan  wrote:
>
> > hi manuel! we pushed a new version of our API code to production
> > recently in preparation for an upcoming release, which has caused
> > problems for people who use forked versions of some of our API code,
> > like the problem described 
> > inhttp://groups.google.com/group/google-appengine/browse_thread/thread/...
> > , or code that reaches below our API layer, which it sounds like
> > BookmarkQuery does.
>
> > i don't have the BookmarkQuery source, so i don't know the exact fix
> > you need, but the problem stems from a new optional keyword argument
> > that we added to the Query classes' constructors. try adding a
> > keys_only=None parameter to BookmarkQuery's constructor and see if
> > that helps.
>
>
--~--~-~--~~~---~--~~
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: What's the difference among key, id, and key name?

2009-05-13 Thread djidjadji

If you ask this type of question you obviously are not the writer of
the application.
Or have not read the code.
Do a search for "key_" on the code and all will be clear.

2009/5/12 Oliver Zheng :
>
> I have been looking at the stored data of some apps, and noticed those
> 3 columns. Key appears to be a hash/string of some sort. ID is usually
> empty. Key name looks like an actual readable identifier, but it's
> usually just "key_" + username or something that already exists.
>
> What is the use for any of this, from the perspective of a (python)
> app? Why are they created and what can or should I do with them?

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



[google-appengine] website for testing

2009-05-13 Thread Prashanth Mylvarabatla
I would like to run some jmeter tests. Does anybody have a site that needs
to tested.

I need the index.html path
IP address of the server .

--~--~-~--~~~---~--~~
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: my app suddenly shows an error! yesterday, everything OK

2009-05-13 Thread Rodrigo Amaral

The application works fine on localhost. This problem only shows up
after deploy. It looks like the API version of the production
environment had not been upgraded yet. It's a really weird situation
and I can't figure out how to fix it.

Suggestions are welcome. Thanks!

On Wed, May 13, 2009 at 11:29 AM, Kwame  wrote:
>
> I had a similar problem after upgrading to v 1.2.2
> first I tried to roll back the update but I was unable to, but somehow
> the issue resolved after I restarted my computer.
>
> hope that helps
>
> On May 8, 1:34 pm, Rodrigo Amaral  wrote:
> > Hello, Ryan
> >
> > My application is also broken, but shows a slightly different error.
> > I'm not using any fork of the Query class. Here's the log:
> >
> > Traceback (most recent call last):
> >   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> > __init__.py", line 501, in __call__
> >     handler.get(*groups)
> >   File "/base/data/home/apps/f1gp/3.44007892917312/f1gp.py", line
> > 50, in get
> >     'noticias' : Noticia.get_recentes(),}))
> >   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> > template.py", line 81, in render
> >     return t.render(Context(template_dict))
> >   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> > template.py", line 121, in wrap_render
> >     return orig_render(context)
> >   File "/base/python_lib/versions/1/django/template/__init__.py", line
> > 168, in render
> >     return self.nodelist.render(context)
> >   File "/base/python_lib/versions/1/django/template/__init__.py", line
> > 705, in render
> >     bits.append(self.render_node(node, context))
> >   File "/base/python_lib/versions/1/django/template/__init__.py", line
> > 718, in render_node
> >     return(node.render(context))
> >   File "/base/python_lib/versions/1/django/template/loader_tags.py",
> > line 82, in render
> >     return compiled_parent.render(context)
> >   File "/base/python_lib/versions/1/django/template/__init__.py", line
> > 168, in render
> >     return self.nodelist.render(context)
> >   File "/base/python_lib/versions/1/django/template/__init__.py", line
> > 705, in render
> >     bits.append(self.render_node(node, context))
> >   File "/base/python_lib/versions/1/django/template/__init__.py", line
> > 718, in render_node
> >     return(node.render(context))
> >   File "/base/python_lib/versions/1/django/template/loader_tags.py",
> > line 23, in render
> >     result = self.nodelist.render(context)
> >   File "/base/python_lib/versions/1/django/template/__init__.py", line
> > 705, in render
> >     bits.append(self.render_node(node, context))
> >   File "/base/python_lib/versions/1/django/template/__init__.py", line
> > 718, in render_node
> >     return(node.render(context))
> >   File "/base/python_lib/versions/1/django/template/loader_tags.py",
> > line 23, in render
> >     result = self.nodelist.render(context)
> >   File "/base/python_lib/versions/1/django/template/__init__.py", line
> > 705, in render
> >     bits.append(self.render_node(node, context))
> >   File "/base/python_lib/versions/1/django/template/__init__.py", line
> > 718, in render_node
> >     return(node.render(context))
> >   File "/base/python_lib/versions/1/django/template/defaulttags.py",
> > line 209, in render
> >     return self.nodelist_true.render(context)
> >   File "/base/python_lib/versions/1/django/template/__init__.py", line
> > 705, in render
> >     bits.append(self.render_node(node, context))
> >   File "/base/python_lib/versions/1/django/template/__init__.py", line
> > 718, in render_node
> >     return(node.render(context))
> >   File "/base/python_lib/versions/1/django/template/defaulttags.py",
> > line 99, in render
> >     values = list(values)
> >   File "/base/python_lib/versions/1/google/appengine/ext/db/
> > __init__.py", line 1372, in __iter__
> >     return self.run()
> >   File "/base/python_lib/versions/1/google/appengine/ext/db/
> > __init__.py", line 1360, in run
> >     iterator = self._get_query().Run()
> >   File "/base/python_lib/versions/1/google/appengine/ext/db/
> > __init__.py", line 1591, in _get_query
> >     keys_only=self._keys_only)
> > AttributeError: 'Query' object has no attribute '_keys_only'
> >
> > Do you guys know a way to workaround this one?
> >
> > Thanks in advance!
> >
> > Rodrigo Amaral
> >
> > On 8 maio, 02:05, ryan  wrote:
> >
> > > hi manuel! we pushed a new version of our API code to production
> > > recently in preparation for an upcoming release, which has caused
> > > problems for people who use forked versions of some of our API code,
> > > like the problem described 
> > > inhttp://groups.google.com/group/google-appengine/browse_thread/thread/...
> > > , or code that reaches below our API layer, which it sounds like
> > > BookmarkQuery does.
> >
> > > i don't have the BookmarkQuery source, so i don't know the exact fix
> > > you need, but the problem stems from a new optional keyword argument
> > > that we added to the Query classes' con

[google-appengine] ASSIGN ID/Name while doing appcfg.py upload_data

2009-05-13 Thread newbie

i m using the following code to upload data.

from google.appengine.tools import bulkloader
from google.appengine.ext import db
import datetime

class DbaV2(db.Model):
Symbol=db.StringProperty()
Series=db.StringProperty()
Date=db.StringProperty()
Pre_close=db.StringProperty()
Op_pr=db.StringProperty()
Hi_pr=db.StringProperty()
lo_pr=db.StringProperty()
las_pr=db.StringProperty()
Clo_pr=db.StringProperty()
To_tr_quan=db.StringProperty()
turn_ovr_lac=db.StringProperty()
blank=db.StringProperty()


class DbaV2Loader(bulkloader.Loader):
def __init__(self):
bulkloader.Loader.__init__(self, 'DbaV2',
[('Symbol', str),
 ('Series', str),
 ('Op_pr', str),
 ('Hi_pr', str),
 ('lo_pr', str),
 ('Clo_pr', str),
 ('las_pr', str),
 ('Pre_close', str),
 ('To_tr_quan', str),
 ('turn_ovr_lac', str),
 ('Date', str),
 ('blank',str)
 ])

loaders=[DbaV2Loader]

this works fine...but now i need a id to prevent data replication i
want the id to comprise of 'Symbol'+Series+'date'  what changes do i
need to make to my code?

in the bulkupload i was using

 def GenerateKey(self, i, values):
a="P"
b=str(values[0])
c=str(values[10])
d=str(values[1])
c=a+b+d+c
return c
and it was working fine... need urgent help

--~--~-~--~~~---~--~~
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] Details on Google's Partner Program?

2009-05-13 Thread Beepboop

Hi guys,

Does anyone have details on becoming a preferred partner to Google?
Most companies have a published partner program (along with the
criteria they use to evaluate partners) but, I haven't found one for
Google.  I'm specifically looking for the following:
- What are the tiers of partners and their respective benefits (e.g.
joint sales planning)
- Are there any costs or investments I need to make to achieve a
certain tier
- Aside from the Application Gallery, what are other ways Google will
monetize partner applications?

I just saw the Appirio webinar and was inspired to work closer with
Google.  Thanks!

--~--~-~--~~~---~--~~
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] Server error when signing up to appengine

2009-05-13 Thread GNS

When I try to sign up to appengine with my google account I get this
message:

Server Error

A server error has occurred.

Return to Applications screen »

It's like this since yesterday.

What should I do?

--~--~-~--~~~---~--~~
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] google apps how to make a test url...

2009-05-13 Thread shappy

Hi, I am going to start making a website for a company.

currently I want to know how I can make urls for google apps engine.

when I upload my app to google how would I know the urls that will be
part of the application? do I have to specifiy it with google app
engine sdk  or is it online managment panel?

the reason i as is because I need to make a  url like  www.domain.com
and one like   dev.www.domain.com

one url is for testing purposes and the other is the live url of the
website.

Also is their any way I can search the app id  of a url ?

cause I worked on  a website that I just made modifications. A
previous programmer made the base of the site and he setup the
website. He told me about an app that would upload it to something
it:  dev.domain.com

the problem is that he forgot the applications name. so I am finishing
up that site and soon I will need to know that app name.

Is their any way I can search for the app name if I have the url that
app name points to?

--~--~-~--~~~---~--~~
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: The next Google Earth?

2009-05-13 Thread shappy


How are you communicating with them?  you got to e-mail the admin.

on top of it I doubt google needs others to give ideas. I mean they
have staff that does it for them.


Also what else could you really do with google earth?  I mean they do
have live weather on it .

are you thinking to have them map cars? or something like that where
you can see airplanes flying in the sky lively.

they already do have airplane tracker where you see a 3d model of the
aircraft and it gives you  a yellow line showing your flight path.


I would think they should at least  factor in day to day traffic on
the roads. This could be helpful to take the quickest route during
rush hour.

I mean that would be kinda neat. I remeber I got directions with
google maps and also google earth and it gave me a route that had
heavy traffic which took longer to get to the destination  then if I
took the longer router which had less traffic.

You should find the ad...@google.com  email address and the  e-mail
them.  Usually they may not even respond to you if they think your not
a company or a buisness in any way. You have to be someone that is
known somewhat.

this is just  my input. Good Luck !!!  let google take your Idea :)

--~--~-~--~~~---~--~~
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] Cost of large inserts

2009-05-13 Thread GNS

I need to make a very large insert (1 billion rows).

I'm currently using amazon SDB, and they use some odd formula for
price calculation, which will result in a cost of several thousand
dollars for this insert. Keep in mind that I have just one column
which will be around 50 bytes. So overall it's just 50GB of data. I
can to this in a few hours with a local computer, but amazon claims it
takes something like 15.000 machine hours and would cost a fortune.

Has anyone experience with the google app database? How do they
charge? How much does it cost to perform a very large sequential
insert?

Thanks

--~--~-~--~~~---~--~~
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: SMS Verification Help Form Broken

2009-05-13 Thread David

Hi,

I cannot succeed in using the sms issue form, even if I remove all the
newline characters from my comment... I always have "There were
errors: Comments"

I have my phone number associated with personnalitenumeri...@gmail.com
(my company account) but I want it now associated with
david.fauth...@gmail.com (my personal account).
With Google App Engine, I cannot create applications with my personnal
account because it needs SMS verification, already done with my
company account with my personal number.

Is it possible to re-associate my phone number (+3362096...) with my
personal account (david.fauth...@gmail.com) ? Or should I destroy my
company account (personnalitenumeri...@gmail.com) ?

Thanks a lot

On Apr 21, 7:04 pm, Glenn Rempe  wrote:
> Thank you Jeff.  Both your reply, and you fixing my account are much
> appreciated.
>
> Suggestion : A bit of text on the commentformindicating its
> limitation would be really helpful I suspect to those trying to use it
> today...
>
> Thanks.
>
> Glenn
>
> On Apr 21, 9:21 am, "Jeff S (Google)"  wrote:
>
> > Hi Glenn,
>
> > My first guess as to theissuewith the comments is that theformcurrently
> > allows only a single line comment (no newline characters). This is a known
> >issuewhich should be fixed in future versions. Your account should now be
> > usable, apologies for the inconvenience.
>
> > Happy coding :-)
>
> > Jeff
>
> > On Mon, Apr 20, 2009 at 5:43 PM, Glenn Rempe  wrote:
>
> > > The following page, referenced in the FAQ (http://code.google.com/
> > > appengine/kb/sms.html )
> > > as the way to request assistance withSMS
> > > issues is non-functional. (I guess thats one way to reduce the support
> > > burden).
>
> > >http://appengine.google.com/waitlist/sms_issues
>
> > > Unfortunately, despite several attempts, I am unable to make this
> > > commentformwork at all.
>
> > > This time all I get is a warning message stating:
>
> > > "There were errors:
> > > Comments"
>
> > > The link on the word 'Comments' goes nowhere.  (http://
> > > appengine.google.com/waitlist/sms_issues.do#comments)
>
> > > Previously I have received similarly cryptic messages regarding the
> > > carrier or country (when I had entered US and ATT and several
> > > permutations of each).
>
> > > Can you please fix this so that at least I can feel like I am making
> > > SOME progress in resolving mySMSissue?  You can contact me directly
> > > at glenn at rempe.us if possible as well and I can provide you with
> > > theissueI am trying to resolve.
>
> > > Thanks.

--~--~-~--~~~---~--~~
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: Customizing "sender" name when sending out emails

2009-05-13 Thread oliverox

I am currently building a picture sharing system on appengine. I would
like any user (not signed in with google) to be able to share pictures
with their friends by sending a customized email to them. I want the
sender name to display something more user-friendly such as the
senders name even if the "from" email address is ad...@mydomain.com.
Can I expect google to allow this feature? if not, may i know the
reasons behind not allowing this?

Thank you.

- Oliver

On May 7, 10:18 pm, "Nick Johnson (Google)" 
wrote:
> Unfortunately, no, it's not possible to change the contents of the
> From field of emails you send using the mail API.
>
> -Nick Johnson
>
> On Wed, May 6, 2009 at 5:24 PM, philippe.chret...@gmail.com
>
>  wrote:
>
> > Same for me here ... my email is i...@domain.com and only "info"
> > appears in the From field ...
> > P.
>
> > On Apr 9, 8:59 am,Vm wrote:
> >> I read in the Message Fields API that:
> >> The sender address must be the email address only.
>
> >> Now, when emails are being sent out, the only the email address will
> >> appear in the "From" field in the email. Shouldn't the registered name
> >> associated with the email address (admin/logged in user) be in the
> >> "From" field as well? Or is there any way of customizing the name
> >> portion for the "sender" when sending out an email?

--~--~-~--~~~---~--~~
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] Google Partner Program tiers and benefits?

2009-05-13 Thread Beepboop

Hi, does anyone know if Google has a published (or unpublished)
Partner Tier Program?  For example, Salesforce has a 3 tiered program
if you're an ISV...Basic, Select, and Premium. Each tier comes with
specific benefits and I'd like to understand if Google has a similar
program and what criteria they use to evaluate partners.  Thanks!

--~--~-~--~~~---~--~~
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: Invalid runtime specified

2009-05-13 Thread sAmUrAi

It'd be nice to know that before downloading the actual SDK

On May 1, 5:36 pm, "Nick Johnson (Google)" 
wrote:
> Hi Luca,
>
> This is the error you get if you have not yet been added to the Java
> runtime preview. You won't be able to deploy a Java runtime app until
> you are.
>
> -Nick Johnson

--~--~-~--~~~---~--~~
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] Unable to upload

2009-05-13 Thread webclimber

I am getting this message when I try to upload my app from eclipse,
I've tried a couple of things and I rather not have to create another
appid (given that there are only 10 spots...)

Unable to upload:
java.io.IOException: Error posting to URL:
http://appengine.google.com/api/appversion/create?app_id=&version=1&
400 Bad Request
Invalid runtime specified.

at com.google.appengine.tools.admin.ServerConnection.send
(ServerConnection.java:114)

--~--~-~--~~~---~--~~
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] Adding a child to detached parent

2009-05-13 Thread GravidNode

Using the JDO persistence, I'd prefer to work with detached objects so
that I don't have to spew and chew DTOs all over the codebase.  I did
some searching for "detached," but found no topics.   I've set the PMF
property for detachAllOnCommit(true).  A simple JUnit test blows up
with the following sequence:

1.  Parent p = new Parent();
2.  pm.makePersistent(p) ;   // Inside a transaction
3.  Child c = new Child();
4.  p.add(c);
5.  pm.makePersistent(p);   // Inside separate transaction

(It works if you omit step 2, but children will be added a after the
parent has been persisted, steps 3-5 could happen days later)

javax.jdo.JDOFatalUserException: Illegal argument
NestedThrowables:
java.lang.IllegalArgumentException: can't operate on multiple entity
groups in a single transaction. found both Element {
  type: "Parent"
  id: 91
}
 and Element {
  type: "Child"
  id: 92
}


I understand the multiple entity group limit within a single
transaction, but why are they in separate groups?
It's as if c is persisted without knowledge that it is p's child,
despite being found by traversing the persistent
one-to-many field in the parent.  It's handled correctly if both
parent and child transition from transient to persistent
together.

Reading the docs, I assume I could force the seeding the Entity Group
Parent ID component in c.id with either
1. Child c = new Child(p); or inside
2. p.add(c);

but then my objects are no longer POJOs, they're tightly coupled to
datastore, and I'd have to call out to persistence/transaction layer
in my child constructor (not a good idiom) or in my parent collection
mutator (needlessly chatty to the back end).  Am I missing something
basic here?  It seems like I should be able to do this.

Any help would be appreciated.
Also, kudos to whoever wrote the code that tossed the IAE, it's a very
clear error message.

--~--~-~--~~~---~--~~
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] Neat URLs for developing multiple applications on same development machine

2009-05-13 Thread kRON

Dear all,

I was wondering if someone could point me in the right direction for
creating neat aliases for each application to avoid the URL clashes
and clutter in my browser.

Ideally, I'd like something like http://myapp1/.$ to bind to localhost:
8080 and http://myapp2/.$ to localhost:8081. I have Windows 7 RC1 and
Apache 2.2. I've created entries in my hosts file for myapp1 and
myapp2 to point to 127.0.0.1 and created VirtualHost entries, but the
problem is that I'm either left with redirecting or rewriting the URL
which, in the end, doesn't mask me from seeing http://localhost:8081.

Sorry if this isn't the right place to ask, but I'd appreciate any
pinpoints!


--~--~-~--~~~---~--~~
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] Cron Trouble

2009-05-13 Thread d43m0n

The short story:
  It doesn't work!

The long story:

>From dashboard : /cron/report - daily mail report - every day 16:30
(UTC) - Hasn't run yet

app.yaml
...
handlers:
- url: /cron/report
  script: cron_report.py
  login: admin
...

cron.yaml
cron:
- description: daily mail report
  url: /cron/report
  schedule: every day 16:30

The webapp's authentication is configured to work with users from a
certain google apps domain. The cron_report.py script was tested on
live version and works perfectly when called by the url, but as the
dashboard says it hasn't run yet. It was first created 4 days ago, and
last updated 2 days ago (the webapp, not the cron job itself, but the
job shows up in admin logs).

Can anyone help ?
Thanks, Alex

--~--~-~--~~~---~--~~
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] screwed up setting up app runtime....

2009-05-13 Thread webclimber

So I just got the account activated and created a couple of entries
for applications but it seems that I (unknowingly) selected python as
the runtime but I just want the java version ...

Is there anyway to fix this ? Or did I just loose those two names
forever ? Is it possible to change the runtime ? (I know delete is not
allowed).

--~--~-~--~~~---~--~~
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: Application update errored

2009-05-13 Thread 大海

I have this same problem when I make a web proxy server.


C:\Program Files\Google\google_appengine>appcfg.py update highlinkhu
Scanning files on local disk.
Initiating update.
Could not guess mimetype for static/favicon.ico. Using application/
octet-stream.
Cloning 8 static files.
Cloning 5 application files.
Deploying new version.
Checking if new version is ready to serve.
Will check again in 1 seconds.
Checking if new version is ready to serve.
Will check again in 2 seconds.
Checking if new version is ready to serve.
Closing update: new version is ready to start serving.
Uploading index definitions.Error 400: --- begin server output ---
Creating a composite index failed:
This index:
entity_type: "EntryPoint"
ancestor: false
Property {
name: "last_updated"
direction: 2}
is not necessary, since single-property indices are built in. Please
remove it from your index file and upgrade to the latest version of
the SDK, if you haven't already.

--- end server output ---

Your app was updated, but there was an error updating your indexes.
Please retry later with appcfg.py update_indexes.

notes:
1、SDK version  1.2.2,Python version 2.5.4
2、this is the app.yaml:

application: highlinkhuversion: secureableruntime: pythonapi_version:
1
handlers:
- url: /robots\.txt static_files: static/robots.txt upload: static/
robots\.txt
- url: /favicon\.ico static_files: static/favicon.ico upload: static/
favicon\.ico secure: optional
- url: /static/base(\.[0-9])\.css static_files: static/base.css
upload: static/base\.css secure: optional
- url: /static static_dir: static secure: optional
- url: /admin login: admin script: mirror.py secure: optional
- url: /cleanup login: admin script: mirror.py secure: optional
- url: /kaboom login: admin script: mirror.py secure: optional
- url: /.* script: mirror.py secure: optional

3、this is the index.yanl:

indexes:
# AUTOGENERATED
# This index.yaml is automatically updated whenever the dev_appserver
# detects that a new type of query is run. If you want to manage the
# index.yaml file manually, remove the above marker line (the line#
saying "# AUTOGENERATED"). If you want to manage some indexes#
manually, move them above the marker line. The index.yaml file is
# automatically uploaded to the admin console when you next deploy
# your application using appcfg.py.
# Used 19 times in query history.
- kind: EntryPoint
properties:
- name: last_updated
direction: desc

What  will i do next ?

--~--~-~--~~~---~--~~
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] Cron Trouble

2009-05-13 Thread d43m0n

The short story:
  It doesn't work!

The long story:

>From dashboard :
/cron/report - daily mail report - every day 16:30 (UTC) - Hasn't run
yet

The cron job was created and uploaded 3 days ago. Last update (though
I didn't really change anything about the cron job, just shows up on
admin logs) was 1 day ago.

app.yaml
...
- url: /cron/report
  script: cron_report.py
  login: admin
...

cron.yaml
cron:
- description: daily mail report
  url: /cron/report
  schedule: every day 16:30

The webapp's authentication is configured to only work with users from
a certain Google Apps domain. The cron script (cron_report.py) works
perfectly, and has been tested on live version by simply accessing the
url, but as the dashboard says, it hasn't run yet.

Can anyone help ?

Thanks
Alex

--~--~-~--~~~---~--~~
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: Cron Trouble

2009-05-13 Thread d43m0n

Sorry for double post, I didn't realize google's "momentarily" would
take about 20 hours :)

On May 13, 1:52 pm, d43m0n  wrote:
> The short story:
>   It doesn't work!
>
> The long story:
>
> From dashboard : /cron/report - daily mail report - every day 16:30
> (UTC) - Hasn't run yet
>
> app.yaml
> ...
> handlers:
> - url: /cron/report
>   script: cron_report.py
>   login: admin
> ...
>
> cron.yaml
> cron:
> - description: daily mail report
>   url: /cron/report
>   schedule: every day 16:30
>
> The webapp's authentication is configured to work with users from a
> certain google apps domain. The cron_report.py script was tested on
> live version and works perfectly when called by the url, but as the
> dashboard says it hasn't run yet. It was first created 4 days ago, and
> last updated 2 days ago (the webapp, not the cron job itself, but the
> job shows up in admin logs).
>
> Can anyone help ?
> Thanks, Alex
--~--~-~--~~~---~--~~
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: Invalid runtime specified

2009-05-13 Thread Nick Johnson (Google)

Hi samurai,

You can continue to develop your app on the local development server
while you wait for your invitation to the Java preview.

In any case, you should get your invite shortly.

-Nick Johnson

On Tue, May 12, 2009 at 5:35 PM, sAmUrAi  wrote:
>
> It'd be nice to know that before downloading the actual SDK
>
> On May 1, 5:36 pm, "Nick Johnson (Google)" 
> wrote:
>> Hi Luca,
>>
>> This is the error you get if you have not yet been added to the Java
>> runtime preview. You won't be able to deploy a Java runtime app until
>> you are.
>>
>> -Nick Johnson
>
> 

--~--~-~--~~~---~--~~
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: Getting Data Using Key vs. Key_Name

2009-05-13 Thread ecognium

Thanks, Nick. You are right. I ran into some issues, which i tracked
it down to the key call but then I ended up  testing the keys using
values  '123' etc... So the BadKeyError is from my bad key request and
not unavailable key.


On May 13, 3:46 am, "Nick Johnson (Google)" 
wrote:
> Hi ecognium,
>
> Model.get does not return BadKeyError when attempting to fetch an
> entity that does not exist - it returns None, as documented.
> BadKeyError is raised when the key itself is invalid, because it lacks
> a name or id, or has an invalid name. You probably want to check that
> you're not generating invalid keys - such as one with a name that
> starts with a digit.
>
> -Nick Johnson
>
> On Wed, May 13, 2009 at 9:55 AM, ecognium  wrote:
>
> > Hello Everyone,
> >    It looks like Model.get(keys) raises an exception (BadKeyError)
> > when the key does not exist even though it is not mentioned here
> >http://code.google.com/appengine/docs/python/datastore/modelclass.htm
>
> > On the other hand, Model.get_key_by_name(names) just returns None for
> > the keys that do not exist. If I understand it correctly keys and
> > key_names are not the same - i.e., i cannot use a key value inside the
> > get_by_key_name() call.. so how can i get data using key without
> > having to worry about determining which specific key was not valid?
>
> > I can create my own key names but I would like to use the default
> > uniqueness guarantee of the keys. If there is no easy way to deal with
> > this exception, is there an easy way to make the key_name same as the
> > key value provided by default?
>
> > In case you are wondering why the keys will be invalid: I am allowing
> > the users to bookmark certain objects.. so i store the key names in
> > the user prefs data... If the object referenced gets deleted then the
> > key information stored inside the userprefs will be outdated and when
> > they query for their bookmarks, it causes an issue.. I wanted to avoid
> > the whole process of going through every single user who may be using
> > the deleted key and remove  it real-time. so i thought i will just
> > handle it as a batch job...
>
> > Thanks!
--~--~-~--~~~---~--~~
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] use of Django's "forms.Form" on GAE

2009-05-13 Thread nwalt...@sprynet.com

I'm trying to create a form that is not based on a model.

I'm getting sample code from this page:
http://docs.djangoproject.com/en/dev/topics/forms/

# This code causes nasty error:
# Tried index in module views. Error was: 'module' object has no
attribute 'Form'
class Provision(forms.Form):
   somefield = forms.EmailField(required=False)

Here are my imports:

import os
import datetime

from google.appengine.api import users

from google.appengine.ext import db
from google.appengine.ext.db import djangoforms

import django
from django import http
from django import shortcuts
from django import forms

I'm getting the idea that with GoogleAppEngine, I have to substitute
some other class for forms.Form?   If so, what is the correct class or
technique?

Thanks,
Neal Walters


--~--~-~--~~~---~--~~
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: use of Django's "forms.Form" on GAE

2009-05-13 Thread Neal

I seemed to solved that problem by changing one import:

from django import newforms as forms

Now I'm trying to get a field from the form:

TaskLog1.taskCode = form.cleaned_data['taskCode'];

which is giving this error: #ProvisionForm' object has no attribute
'cleaned_data'
(the form was defined as follows:
 form = ProvisionForm(data=request.POST or None)

and like this:

class ProvisionForm(forms.Form):
   buttonFlag = forms.CharField(required=False)
   taskCode   = forms.CharField(required=False)

So again, it looks like the Django samples that I'm trying to follow
need more modifications to work with GAE?
What is the substitute for the "cleaned_data" method?  Or where can I
look it up?
How can I get the value from a field on my form into a database
variable?

Thanks,
Neal Walters



--~--~-~--~~~---~--~~
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: Datastore usage ~ 80 times more than expected (Add your vote to a datastore usage accounting feature)

2009-05-13 Thread Jason (Google)
Hi Andy. In this case, the list of Key objects will be smaller than the list
of key strings. Even though the picked db.Key object is larger, it is a
binary-encoded protocol buffer form that gets stored, which is smaller than
the pickled string. That said, I doubt it would make a tremendous difference
unless you have a lot of these entities or these lists have a lot of values.

- Jason

On Mon, May 11, 2009 at 10:38 PM, Andy Freeman  wrote:

>
> Since index space can be significant, can we get some additional
> information?
>
> For example, does an indexed db.ListProperty(db.Key) with three
> elements take significantly more or less space than an indexed
> db.StringListProperty with three elements whose value is str() of the
> same keys?  (The pickle of keys seems to be significantly larger than
> the pickle of the equivalent strings.)
>
> On May 11, 5:04 pm, "Jason (Google)"  wrote:
> > Hi Anthony. I'm very sorry for the late reply, and thank you for bearing
> > with me. I've discussed this with the datastore team and it's evident
> that
> > the CSV file's size is not a great indicator of how much storage your
> > entities will consume. On top of the size of the raw data, each entity
> has
> > associated metadata, as you've already mentioned, but I'd bet that the
> > indexes are consuming the greatest space. If you don't ever query on one
> or
> > more of these 15 string properties, you may consider changing their
> property
> > types to Text or declaring indexed=false in your model. If you can do
> this
> > with one of your properties and re-build your indexes, I'd be interested
> in
> > seeing how much your storage usage decreases since you'll need one less
> > index.
> >
> > (Note that single-property indexes are present but not listed in the
> Admin
> > Console.)
> >
> > - Jason
> >
> >
> >
> > On Sat, May 9, 2009 at 4:34 PM, Kugutsumen  wrote:
> >
> > > Two weeks ago, I've sent my applications ID to both you and Nick and I
> > > haven't heard from you since then.
> >
> > > Thanks- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~-~--~~~---~--~~
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: Datastore usage ~ 80 times more than expected (Add your vote to a datastore usage accounting feature)

2009-05-13 Thread Jason (Google)
Hi Philip. Calling to_xml() is not a great indicator of the size of your
entity as stored in BigTable. Unfortunately, there is currently no
straightforward way to estimate how large your entities are, although we're
working on possible solutions to this problem.

Without knowing your data model or index definitions, it's certainly not
impossible to rule out the size of your indexes, particularly if your
application is querying across mutliple multi-valued properties, although
this isn't the only scenario that could lead to huge indexes. If you have a
property that you're never querying against, I recommend you try removing
this single property index and see if that makes a noticeable impact or see
if you can eliminate any of your custom indexes which you don't use too
often.

- Jason

On Tue, May 12, 2009 at 8:32 PM, WeatherPhilip <
philip-goo...@gladstonefamily.net> wrote:

>
> I just did a test on one of my apps. Nearly all my data is in a single
> model.
>
> I have 163189 instances, and the total size (calculated by reading
> each instance and running to_xml() on it, and then adding up the
> results) is 281,145,536 bytes. Most of my properties have
> indexed=False. The dashboard reports using 890MB of data. I don't know
> whether the dashboard calculation is wrong, whether I should be using
> a different calculation to estimate my record size, or something else.
> If my indexes really are consuming 600MB, then I would work on redoing
> a chunk of the app to fix that problem.
>
> However, the only course at the moment appears to be to delete old
> data, and hope that the data consumption goes down. Not really very
> satisfactory.
>
> Philip
>
> On May 12, 1:38 am, Andy Freeman  wrote:
> > Since index space can be significant, can we get some additional
> > information?
> >
> > For example, does an indexed db.ListProperty(db.Key) with three
> > elements take significantly more or less space than an indexed
> > db.StringListProperty with three elements whose value is str() of the
> > same keys?  (The pickle of keys seems to be significantly larger than
> > the pickle of the equivalent strings.)
> >
> > On May 11, 5:04 pm, "Jason (Google)"  wrote:
> >
> > > Hi Anthony. I'm very sorry for the late reply, and thank you for
> bearing
> > > with me. I've discussed this with thedatastoreteam and it's evident
> that
> > > the CSV file's size is not a great indicator of how much storage your
> > > entities will consume. On top of the size of the raw data, each entity
> has
> > > associated metadata, as you've already mentioned, but I'd bet that the
> > > indexes are consuming the greatest space. If you don't ever query on
> one or
> > > more of these 15 string properties, you may consider changing their
> property
> > > types to Text or declaring indexed=false in your model. If you can do
> this
> > > with one of your properties and re-build your indexes, I'd be
> interested in
> > > seeing how much your storageusagedecreases since you'll need one less
> > > index.
> >
> > > (Note that single-property indexes are present but not listed in the
> Admin
> > > Console.)
> >
> > > - Jason
> >
> > > On Sat, May 9, 2009 at 4:34 PM, Kugutsumen 
> wrote:
> >
> > > > Two weeks ago, I've sent my applications ID to both you and Nick and
> I
> > > > haven't heard from you since then.
> >
> > > > Thanks- Hide quoted text -
> >
> > > - Show quoted text -
> >
> >
> >
>

--~--~-~--~~~---~--~~
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: 503 errors

2009-05-13 Thread Ben

Try accessing the application at http://localhost:8080/ or
127.0.0.1:8080

On May 10, 2:36 pm, Abhinav Asthana  wrote:
> I am trying to get AppEngine working with Django using the google
> appengine helper. I followed the steps in the tutorial and everything
> seems to be working. However, when I try to access the application
> locally I all am getting is "Error 503 Service Unavailable from
> 127.0.0.1". I have checked the configuration files and nothing seems
> to be wrong there. Please help!
--~--~-~--~~~---~--~~
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: screwed up setting up app runtime....

2009-05-13 Thread Wooble



On May 13, 12:07 am, webclimber  wrote:
> So I just got the account activated and created a couple of entries
> for applications but it seems that I (unknowingly) selected python as
> the runtime but I just want the java version ...
>
> Is there anyway to fix this ? Or did I just loose those two names
> forever ? Is it possible to change the runtime ? (I know delete is not
> allowed).

You can't set the runtime at the application level; each version will
have whatever runtime was set the last time you uploaded.

If you're seeing an Invalid Runtime message, it's because you're not
approved for the Java version yet (it's still in limited preview).
--~--~-~--~~~---~--~~
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: 411 length required on POST error - Content-length header specified

2009-05-13 Thread Shedokan

I used jquery's post function instead of ajax and it worked, but it's
not a solution because I can't set if he post fails.

On 13 מאי, 13:18, Shedokan  wrote:
> Here's my main.py file:
>
> from google.appengine.ext import webapp
> from google.appengine.ext.webapp.util import run_wsgi_app
>
> class startUp(webapp.RequestHandler):
>         def get(self):
>                 # execute something that executes the ajax post request
>
> class handleAjax(webapp.RequestHandler):
>         def get(self):
>                 # This works
>                 self.response.out.write('hello')
>         def post(self):
>                 # I also tryed this without success
>                 #self.response.headers['Content-Length'] = len(res)
>
>                 self.response.out.write('hello')
>
> def main():
>         system = webapp.WSGIApplication([
>                         ('/', startUp),
>                         ('/ajax', handleAjax),
>                 ])
>         run_wsgi_app(system)
>
> if __name__ == "__main__":
>   main()
>
> On 5 מאי, 01:28, "Jason (Google)"  wrote:
>
> > It sounds like you're using the URL Fetch service. Can you share your code
> > which executes the POST request?
>
> > - Jason
>
> > On Thu, Apr 30, 2009 at 6:00 PM, Shedokan  wrote:
>
> > > I have my app here:
> > >http://shedokan-os.appspot.com/
>
> > > at the start of the app it sends a post request to the server.
> > > and instead of giving the content it supposed to it gives out the
> > > error "POST requests require a Content-length header."
> > > and I did specify that kind of header.
>
> > > what's wrong?
--~--~-~--~~~---~--~~
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: use of Django's "forms.Form" on GAE

2009-05-13 Thread Neal

I think my issue is that taskCode is being returned as a "None".

This is my objective. I want a form with two buttons on it.  When a
user clicks one button, I want to store a row in BigTable that shows
that "Task01" started at at the current date/time.  When he clicks the
second button, I want to update the completed time in that same row
with the current date/time.

Right now, I'm just working on the first button.  My idea was to set
the value of the which button they clicked in a hidden field.

Text1={{ form.text1 }}






I've alternatively tried defining my form like this:



{{ form.taskCode }}



but with this second method, the field is not hidden, it shows up in a
text box in front of the button.


Since I needed some way to debug and see the values, I wrote this code
in my views.py:

  text1 = "debug_info:"
  for key in TaskLog1.__dict__:
try:
  if TaskLog1.__dict__[key] != None:
 text1 = text1 + "\n" + key + "=" + TaskLog1.__dict__[key]
  else:
 text1 = text1 + "\n" + key + "=None"
except:  #avoid errors when we hit an object such
as "User"
   pass;

  form2 = ProvisionForm(initial={'text1': text1});
  return respond(request, user, 'provision', {'form': form2,
'TaskLog': TaskLog, 'text1': text1})


This allows me to pass "text1" back to the form to see what the value
are, and taskCode is always = None.

Any ideas how to get the value of which button was clicked?  I might
eventually have 100 such buttons, each with a different taskCode value
assigned.

I've also tried setting the taskcode this way:
  form = ProvisionForm(initial={'taskCode': "mytest"})


Also, is there a smarter way to debug than what I did above?

Thanks,
Neal Walters

--~--~-~--~~~---~--~~
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: Cost of large inserts

2009-05-13 Thread Barry Hunter

It al depends on how long you want to to take. leaving it running long
enough means you could almost do within the free quota.

http://code.google.com/appengine/docs/quotas.html
http://code.google.com/appengine/docs/billing.html

Probably the only quota that you can't get round and would have to pay
is monthly storage. (you only get 1Gb free)


On 13/05/2009, GNS  wrote:
>
>  I need to make a very large insert (1 billion rows).
>
>  I'm currently using amazon SDB, and they use some odd formula for
>  price calculation, which will result in a cost of several thousand
>  dollars for this insert. Keep in mind that I have just one column
>  which will be around 50 bytes. So overall it's just 50GB of data. I
>  can to this in a few hours with a local computer, but amazon claims it
>  takes something like 15.000 machine hours and would cost a fortune.
>
>  Has anyone experience with the google app database? How do they
>  charge? How much does it cost to perform a very large sequential
>  insert?
>
>  Thanks
>
>  >
>


-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
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: Neat URLs for developing multiple applications on same development machine

2009-05-13 Thread Barry Hunter

Can you use ProxyPass?

Pseudo apache config:


ServerName myapp1
ProxyPass / http://localhost:8080/



ServerName myapp2
ProxyPass / http://localhost:8081/


On 13/05/2009, kRON  wrote:
>
>  Dear all,
>
>  I was wondering if someone could point me in the right direction for
>  creating neat aliases for each application to avoid the URL clashes
>  and clutter in my browser.
>
>  Ideally, I'd like something like http://myapp1/.$ to bind to localhost:
>  8080 and http://myapp2/.$ to localhost:8081. I have Windows 7 RC1 and
>  Apache 2.2. I've created entries in my hosts file for myapp1 and
>  myapp2 to point to 127.0.0.1 and created VirtualHost entries, but the
>  problem is that I'm either left with redirecting or rewriting the URL
>  which, in the end, doesn't mask me from seeing http://localhost:8081.
>
>  Sorry if this isn't the right place to ask, but I'd appreciate any
>  pinpoints!
>
>
>  >
>


-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
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: Cost of large inserts

2009-05-13 Thread GNS

I would like to have it the sooner the better.

I see free daily limit is 10 million requests, but since it's 1
billion rows I can't wait 3 months for it to complete.

Has anyone experience of inserting way more than 10m in a day and is
able to tell me what the cost would be?

Thanks

On May 13, 11:22 pm, Barry Hunter  wrote:
> It al depends on how long you want to to take. leaving it running long
> enough means you could almost do within the free quota.
>
> http://code.google.com/appengine/docs/quotas.htmlhttp://code.google.com/appengine/docs/billing.html
>
> Probably the only quota that you can't get round and would have to pay
> is monthly storage. (you only get 1Gb free)
>
> On 13/05/2009, GNS  wrote:
>
>
>
>
>
> >  I need to make a very large insert (1 billion rows).
>
> >  I'm currently using amazon SDB, and they use some odd formula for
> >  price calculation, which will result in a cost of several thousand
> >  dollars for this insert. Keep in mind that I have just one column
> >  which will be around 50 bytes. So overall it's just 50GB of data. I
> >  can to this in a few hours with a local computer, but amazon claims it
> >  takes something like 15.000 machine hours and would cost a fortune.
>
> >  Has anyone experience with the google app database? How do they
> >  charge? How much does it cost to perform a very large sequential
> >  insert?
>
> >  Thanks
>
> --
> Barry
>
> -www.nearby.org.uk-www.geograph.org.uk-
--~--~-~--~~~---~--~~
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: Application Identifiers

2009-05-13 Thread Sri

Hi Nick,

Asking an email-user to transfer an app name would work if email-
users were that savvy (ok gmail users are a bit more techier than non-
gmail users, but still asking them to log into appspot is a bit of a
stretch dont you think?)..

why would people register email accounts similar to popular app
names?  remember what happened with domain squatting?

cheers
S

On May 13, 8:42 pm, "Nick Johnson (Google)" 
wrote:
> Hi Sri,
>
> There's no way to see why an App ID is taken, unfortunately. As far as
> 'transferring' a username goes, any user can register an app with the
> same name as their gmail account, so if you can convince the owner of
> the account to register the app with the same name as their address,
> and then add you as an administrator, you can remove their
> administrator privileges and take control of the app (with their
> permission, of course!)
>
> People could create gmail accounts just to prevent a name being used
> in App Engine, but it's not clear to me why they'd want to do that.
>
> -Nick Johnson
>
> On Wed, May 13, 2009 at 10:32 AM, Sri  wrote:
>
> > Hi Dave,
>
> >   Thanks for that mate.  But yeah that still is a bit inconvinient
> > given that most gmail users may not even be app developers.
>
> > Also is it possible to show which of the cases the violation is off?
> > I mean whether if it is an existing gmail ID or an already registered
> > app.  Or perhaps a way to atleast talk to the gmail user to get some
> > kind of "Transfer" of the app name...
>
> > Also by tying app names to gmail user names, doesnt it incentivize
> > spammers to create fake accounts just to prevent a name from being
> > used for an app?
>
> > cheers
> > Sri
>
> > On May 13, 6:19 pm, David Wilson  wrote:
> >> Hey Sri,
>
> >> For whatever strange reason, App IDs that conflict with Gmail
> >> usernames are reserved by default. That means if
> >> legendofthefiveri...@gmail.com is somebody's e-mail address, you can't
> >> use it for your appspot domain.
>
> >> David
>
> >> 2009/5/12 Sri :
>
> >> > Does GAE place any restrictions on app engine titles via some
> >> > automatic algorithms?  I mean it may just be squatters doing what they
> >> > do best, but does Google place any restrictions?  Like dictionary
> >> > words or plurals of existing games etc?
>
> >> > I am not looking for any rude or obscene words but when writing a game
> >> > a lot of "legend" related titles seem to be taken.  Surely there cant
> >> > be that many games out there on app engine right?
>
> >> > cheers
> >> > Sri
>
> >> --
> >> It is better to be wrong than to be vague.
> >>   — Freeman Dyson
--~--~-~--~~~---~--~~
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: google apps how to make a test url...

2009-05-13 Thread pranny



On May 12, 11:50 pm, shappy  wrote:
> Hi, I am going to start making a website for a company.
Great :)

> currently I want to know how I can make urls for google apps engine.
>
> when I upload my app to google how would I know the urls that will be
> part of the application? do I have to specifiy it with google app
> engine sdk  or is it online managment panel?

When you create a new application, you have to specify the application
id (in online magamenent panel). This is a unique id, through which
your application is identified amongst all other applications build on
AppEngine. Your appspot URL will be
.aspppspot.com.

> the reason i as is because I need to make a  url like  www.domain.com
> and one like   dev.www.domain.com
> one url is for testing purposes and the other is the live url of the
> website.

For development purposes, the SDK provides a local web server. It will
be on your machine. The production will be .appspot.com. For
creating urls like http://domain.com and http://www.domain.com, you
need to do appropriate mapping in the Dashboard of your website's
cpanel. If it has been bought from google via google apps its easy.
refer http://code.google.com/appengine/kb/general.html#naked_domain

> Also is their any way I can search the app id  of a url ?

http://.appspot.com

> cause I worked on  a website that I just made modifications. A
> previous programmer made the base of the site and he setup the
> website. He told me about an app that would upload it to something
> it:  dev.domain.com
>
> the problem is that he forgot the applications name. so I am finishing
> up that site and soon I will need to know that app name.

> Is their any way I can search for the app name if I have the url that
> app name points to?
You can look into the cpanel domain forwarding and masking, if there
is any entry for .appspot.com or if it has been purchased
through Google Apps, then look under the appengine services tab.

--
Cheers

Pranav Prakash

"This life is more than ordinary"
--~--~-~--~~~---~--~~
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: use of Django's "forms.Form" on GAE

2009-05-13 Thread pranny

Neal,
IIRC, cleaned_data is available only after you have used is_valid()
method? Did you missed it out ?
Check out 
http://docs.djangoproject.com/en/dev/topics/forms/#processing-the-data-from-a-form

--
Cheers,
Pranav Prakash

"This life is more than ordinary"

On May 13, 11:36 pm, Neal  wrote:
> I seemed to solved that problem by changing one import:
>
> from django import newforms as forms
>
> Now I'm trying to get a field from the form:
>
> TaskLog1.taskCode = form.cleaned_data['taskCode'];
>
> which is giving this error: #ProvisionForm' object has no attribute
> 'cleaned_data'
> (the form was defined as follows:
>  form = ProvisionForm(data=request.POST or None)
>
> and like this:
>
> class ProvisionForm(forms.Form):
>    buttonFlag = forms.CharField(required=False)
>    taskCode   = forms.CharField(required=False)
>
> So again, it looks like the Django samples that I'm trying to follow
> need more modifications to work with GAE?
> What is the substitute for the "cleaned_data" method?  Or where can I
> look it up?
> How can I get the value from a field on my form into a database
> variable?
>
> Thanks,
> Neal Walters
--~--~-~--~~~---~--~~
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: Datastore usage ~ 80 times more than expected (Add your vote to a datastore usage accounting feature)

2009-05-13 Thread WeatherPhilip

Jason

I removed a bunch of single property indexes (by setting indexed=False
and then loaded and stored each item. This didn't save much (a few
percent). Also, the fact that I can't see the single property indexes
makes it more tricky to figure out if they have really gone or not!

I'm now deleting 10% of the records, but I've only reclaimed 2-3% of
the space (0.92GB down to 0.90GB).

I don't have any significant use of multi-value fields (there is one
field, but only rarely does it have more than one (2) values).

Philip

On May 13, 2:51 pm, "Jason (Google)"  wrote:
> Hi Philip. Calling to_xml() is not a great indicator of the size of your
> entity as stored in BigTable. Unfortunately, there is currently no
> straightforward way to estimate how large your entities are, although we're
> working on possible solutions to this problem.
>
> Without knowing your data model or index definitions, it's certainly not
> impossible to rule out the size of your indexes, particularly if your
> application is querying across mutliple multi-valued properties, although
> this isn't the only scenario that could lead to huge indexes. If you have a
> property that you're never querying against, I recommend you try removing
> this single property index and see if that makes a noticeable impact or see
> if you can eliminate any of your custom indexes which you don't use too
> often.
>
> - Jason
>
> On Tue, May 12, 2009 at 8:32 PM, WeatherPhilip <
>
> philip-goo...@gladstonefamily.net> wrote:
>
> > I just did a test on one of my apps. Nearly all my data is in a single
> > model.
>
> > I have 163189 instances, and the total size (calculated by reading
> > each instance and running to_xml() on it, and then adding up the
> > results) is 281,145,536 bytes. Most of my properties have
> > indexed=False. The dashboard reports using 890MB of data. I don't know
> > whether the dashboard calculation is wrong, whether I should be using
> > a different calculation to estimate my record size, or something else.
> > If my indexes really are consuming 600MB, then I would work on redoing
> > a chunk of the app to fix that problem.
>
> > However, the only course at the moment appears to be to delete old
> > data, and hope that the data consumption goes down. Not really very
> > satisfactory.
>
> > Philip
>
> > On May 12, 1:38 am, Andy Freeman  wrote:
> > > Since index space can be significant, can we get some additional
> > > information?
>
> > > For example, does an indexed db.ListProperty(db.Key) with three
> > > elements take significantly more or less space than an indexed
> > > db.StringListProperty with three elements whose value is str() of the
> > > same keys?  (The pickle of keys seems to be significantly larger than
> > > the pickle of the equivalent strings.)
>
> > > On May 11, 5:04 pm, "Jason (Google)"  wrote:
>
> > > > Hi Anthony. I'm very sorry for the late reply, and thank you for
> > bearing
> > > > with me. I've discussed this with thedatastoreteam and it's evident
> > that
> > > > the CSV file's size is not a great indicator of how much storage your
> > > > entities will consume. On top of the size of the raw data, each entity
> > has
> > > > associated metadata, as you've already mentioned, but I'd bet that the
> > > > indexes are consuming the greatest space. If you don't ever query on
> > one or
> > > > more of these 15 string properties, you may consider changing their
> > property
> > > > types to Text or declaring indexed=false in your model. If you can do
> > this
> > > > with one of your properties and re-build your indexes, I'd be
> > interested in
> > > > seeing how much your storageusagedecreases since you'll need one less
> > > > index.
>
> > > > (Note that single-property indexes are present but not listed in the
> > Admin
> > > > Console.)
>
> > > > - Jason
>
> > > > On Sat, May 9, 2009 at 4:34 PM, Kugutsumen 
> > wrote:
>
> > > > > Two weeks ago, I've sent my applications ID to both you and Nick and
> > I
> > > > > haven't heard from you since then.
>
> > > > > Thanks- Hide quoted text -
>
> > > > - Show quoted text -
>
>
--~--~-~--~~~---~--~~
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] Random 500 Internal Server Errors

2009-05-13 Thread WeatherPhilip

I get some small number of Internal Server Errors during the day --
but it appears that the request never actually started. The time/cpu
information from the logfile says:

500 10243ms 0cpu_ms 0kb

Given that there is never a 0 cpu_ms request if my code actually runs,
I suspect that the infrastructure was trying to start a new instance
of my app, and failed after 10 seconds.

Is there anything that can be done about this?

Thanks

Philip
--~--~-~--~~~---~--~~
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: Datastore usage ~ 80 times more than expected (Add your vote to a datastore usage accounting feature)

2009-05-13 Thread Andy Freeman

Argh!

This means that one form (db.Key) is smaller than the other
(comparable string) for the datastore while the reverse is true for
memcache.

How about defining a __getstate__ and __setstate__ for db.Key that is
smaller than the string equivalent?  This will help for memcaching any
db.Model instance whose .key() is defined.

On May 13, 11:41 am, "Jason (Google)"  wrote:
> Hi Andy. In this case, the list of Key objects will be smaller than the list
> of key strings. Even though the picked db.Key object is larger, it is a
> binary-encoded protocol buffer form that gets stored, which is smaller than
> the pickled string. That said, I doubt it would make a tremendous difference
> unless you have a lot of these entities or these lists have a lot of values.
>
> - Jason
>
>
>
> On Mon, May 11, 2009 at 10:38 PM, Andy Freeman  wrote:
>
> > Since index space can be significant, can we get some additional
> > information?
>
> > For example, does an indexed db.ListProperty(db.Key) with three
> > elements take significantly more or less space than an indexed
> > db.StringListProperty with three elements whose value is str() of the
> > same keys?  (The pickle of keys seems to be significantly larger than
> > the pickle of the equivalent strings.)
>
> > On May 11, 5:04 pm, "Jason (Google)"  wrote:
> > > Hi Anthony. I'm very sorry for the late reply, and thank you for bearing
> > > with me. I've discussed this with the datastore team and it's evident
> > that
> > > the CSV file's size is not a great indicator of how much storage your
> > > entities will consume. On top of the size of the raw data, each entity
> > has
> > > associated metadata, as you've already mentioned, but I'd bet that the
> > > indexes are consuming the greatest space. If you don't ever query on one
> > or
> > > more of these 15 string properties, you may consider changing their
> > property
> > > types to Text or declaring indexed=false in your model. If you can do
> > this
> > > with one of your properties and re-build your indexes, I'd be interested
> > in
> > > seeing how much your storage usage decreases since you'll need one less
> > > index.
>
> > > (Note that single-property indexes are present but not listed in the
> > Admin
> > > Console.)
>
> > > - Jason
>
> > > On Sat, May 9, 2009 at 4:34 PM, Kugutsumen  wrote:
>
> > > > Two weeks ago, I've sent my applications ID to both you and Nick and I
> > > > haven't heard from you since then.
>
> > > > Thanks- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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: Datastore usage ~ 80 times more than expected (Add your vote to a datastore usage accounting feature)

2009-05-13 Thread Andy Freeman

Argh!

This means that one form (db.Key) is smaller than the other
(comparable string) for the datastore while the reverse is true for
memcache.

I've created am issue ( 
http://code.google.com/p/googleappengine/issues/detail?id=1538
)requesting a __getstate__ and __setstate__ for db.Key that is smaller
than the string equivalent.  In addition to eliminating the
inconsistency betwen the datastore and memcache sizes, it will reduce
the size of every memcache'd db.Model instance whose .key() is
defined.

On May 13, 11:41 am, "Jason (Google)"  wrote:
> Hi Andy. In this case, the list of Key objects will be smaller than the list
> of key strings. Even though the picked db.Key object is larger, it is a
> binary-encoded protocol buffer form that gets stored, which is smaller than
> the pickled string. That said, I doubt it would make a tremendous difference
> unless you have a lot of these entities or these lists have a lot of values.
>
> - Jason
>
>
>
> On Mon, May 11, 2009 at 10:38 PM, Andy Freeman  wrote:
>
> > Since index space can be significant, can we get some additional
> > information?
>
> > For example, does an indexed db.ListProperty(db.Key) with three
> > elements take significantly more or less space than an indexed
> > db.StringListProperty with three elements whose value is str() of the
> > same keys?  (The pickle of keys seems to be significantly larger than
> > the pickle of the equivalent strings.)
>
> > On May 11, 5:04 pm, "Jason (Google)"  wrote:
> > > Hi Anthony. I'm very sorry for the late reply, and thank you for bearing
> > > with me. I've discussed this with the datastore team and it's evident
> > that
> > > the CSV file's size is not a great indicator of how much storage your
> > > entities will consume. On top of the size of the raw data, each entity
> > has
> > > associated metadata, as you've already mentioned, but I'd bet that the
> > > indexes are consuming the greatest space. If you don't ever query on one
> > or
> > > more of these 15 string properties, you may consider changing their
> > property
> > > types to Text or declaring indexed=false in your model. If you can do
> > this
> > > with one of your properties and re-build your indexes, I'd be interested
> > in
> > > seeing how much your storage usage decreases since you'll need one less
> > > index.
>
> > > (Note that single-property indexes are present but not listed in the
> > Admin
> > > Console.)
>
> > > - Jason
>
> > > On Sat, May 9, 2009 at 4:34 PM, Kugutsumen  wrote:
>
> > > > Two weeks ago, I've sent my applications ID to both you and Nick and I
> > > > haven't heard from you since then.
>
> > > > Thanks- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---