[google-appengine] update

2009-01-10 Thread yinDojo

Hello, i have a model that contains a person name and address
information.  The first form is to same their first name and last
name.  When the user clicks on the submit button it will take them to
the person_address.html.   When they click on the save button it will
update the address information to the newly create person.  My model
contains many attributes, so i want to separate it into a two steps
form.  The first form will save their first and last name and so on.
The second form will save their address and email and so on.  How
could i accomplisth this? Should  i pass the key to the
person_address.html, then pass that key to the function in the
view.py?
Can i pass the key when using return render_to_response
('person_address.html',{'form':form,})

Thank You.  -T


# =  models.py ==
class personInfo(db.Model):
"""Basic user profile with personal details."""
first_name = db.StringProperty()
last_name = db.StringProperty()
company_name = db.StringProperty()
title = db.StringProperty()
street_address = db.StringProperty()
city =  db.StringProperty()
state = db.StringProperty()
zip_code = db.StringProperty()
email = db.EmailProperty()


# = view.py ==
def add_person(request):
if request.method == 'POST': # If the form has been submitted...
form = CreateBusinessForm(request.POST)
if form.is_valid():
first_name = form.cleaned_data['first_name']
last_name = form.cleaned_data['last_name']
create_object(request, businesspromotion)
return 
render_to_response('person_address.html',{'form':form,})
else:
form = CreateBusinessForm()
return render_to_response('person_info.html',{'form':form,})


# = person_address.html 
{% extends 'layout.html' %}
{% block title %}Create person{% endblock %}

{% block content %}
Business Form page2
Back to listing




Street Address:


City:



  {% if object %}

  {% endif %}


{% endblock %}
--~--~-~--~~~---~--~~
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: user login URLs in html/javascript

2009-01-10 Thread Gipsy Gopinathan
go to http://dpaste.com/107358/

You should be able create the logout link by just changing it to

users.create_logout_url("/") instead of users.create_login_url("/")


On Sat, Jan 10, 2009 at 9:43 PM, thebrianschott wrote:

>
> Believe it or not, I now need a link like the other one, but for
> logging out.
> It seems a little silly to ask Gipsy to run the sample program again,
> revised to
> get a logout, but I don't quite see how to add such a sample to my
> existing
> app. Could you tell me how to do so, please?
>
> On Jan 10, 12:58 am, thebrianschott  wrote:
> > Got it. And it takes me back just right.
> >
> > Thanks so much Gipsy. IOU, big time.
> >
> > Brian in Atlanta
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: user login URLs in html/javascript

2009-01-10 Thread thebrianschott

Believe it or not, I now need a link like the other one, but for
logging out.
It seems a little silly to ask Gipsy to run the sample program again,
revised to
get a logout, but I don't quite see how to add such a sample to my
existing
app. Could you tell me how to do so, please?

On Jan 10, 12:58 am, thebrianschott  wrote:
> Got it. And it takes me back just right.
>
> Thanks so much Gipsy. IOU, big time.
>
> Brian in Atlanta
--~--~-~--~~~---~--~~
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] OverQuotaError with mail.Send()

2009-01-10 Thread Y

I am sometimes getting OverQuotaError when sending a large HTML-
formatted  email. With most HTML-formatted emails I send out I don;t
get any errors and I am well within my daily quota limits. Is there a
size limit on the email itsel?. The email with the error is 388,000
bytes.
--~--~-~--~~~---~--~~
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: memcache vs regular dictionary

2009-01-10 Thread djidjadji

memcache storage is visible to all interpreter instances. There are
more then one computers serving your queries. These instances don't
share global memory, they are distributed over a large number of
sites. When there is no traffic there is no 'warm' interpreter to
service the next request. Your global dictionary is gone.

2009/1/11 ten_foot_ninja :
>
> Hello,
> I've been trying to find some info on why I would want to use the
> memcache api vs keeping everything in my own dictionary object.
>
> What are the benefits to using memcache?
> >
>

--~--~-~--~~~---~--~~
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: Whaddya mean "Verify my account"? Again?!

2009-01-10 Thread Andrew Badera
That's the facts of beta life man.

Thanks-
- Andy Badera
- and...@badera.us
- (518) 641-1280
- Google me: http://www.google.com/search?q=andrew+badera



On Sat, Jan 10, 2009 at 2:45 PM, Faber Fedor  wrote:

> Why can't I get my account at my client (NOT my personal account) verified?
> At their site, I am lead architect and developer. They pay for Google Apps
> and Domains.
>
> Does Google expect me to have a phone for every client I want to bring to
> them?
>
> Mixing my personal account with those of my clients' (plural!) is not a
> Good Thing.
>
> On Sat, Jan 10, 2009 at 10:37 AM, Alexander Konovalenko  > wrote:
>
>> On Sat, Jan 10, 2009, Faber Fedor  wrote:
>> >
>> > IIUC, I'm screwed. :-)
>> >
>> > I used my cell number for my personal AppEngine account.  So how do I
>> get
>> > verified for my client's account when my SMS number has already been
>> used?
>> > Or do I have to have them create the app?
>>
>> Perhaps you can create the app using your personal account, invite
>> your client's account to the app and after logging in under your
>> client's account remove your personal account from the list of
>> developers. I'm not sure if this will work as intended though. Please
>> let me (and the group) know if this solves your problem.
>>
>>  -- Alexander
>>
>
>
>
> --
>
> Faber Fedor
> Cloud Computing New Jersey
> http://cloudcomputingnj.com
>
> >
>

--~--~-~--~~~---~--~~
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] memcache vs regular dictionary

2009-01-10 Thread ten_foot_ninja

Hello,
I've been trying to find some info on why I would want to use the
memcache api vs keeping everything in my own dictionary object.

What are the benefits to using memcache?
--~--~-~--~~~---~--~~
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: polish locale in app engine

2009-01-10 Thread Greg Temchenko

I have the same trouble with russian locale. I tried to use 'ru',
'ru_RU', and 'ru_RU.UTF-8' and everytime I get the message "locale not
supported".
I have no idea.  It seems GAE supports locale not well...

On Dec 31 2008, 4:32 am, konryd  wrote:
> Hello,
>
> I'm having huge trouble trying to sort a list of string with respect
> to polish locale. It seems there is no such locale installed in GAE
> servers (I'm getting an error: "locale not supported"). Do you have a
> list of all locales available in GAE (I need 'pl_PL.UTF-8')?
>
> Konrad Delong

--~--~-~--~~~---~--~~
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] Alternate Upload Tools...

2009-01-10 Thread ramu

First of all, thanks for this great product. Now I feel myself *how
much* time I wasted looking for a free reliable PHP host since last 2
month. It was 2 days back when I entered "data api" in google.co.in
and came across this solution from google. I have been reading and
reading and reading than since on different help foram and discussion
group... ( even found gminifb.py , the facebookAPI handler created for
App Engine Python ) . I ran the SDK and followed each page of getting
started. O yes, the 1st reading about Python on wiki. Finally the
moment came I wanted to upload the test app of *getting started*
section. Whooshhh IT FAILED. Again some googling on net and realised I
need some python configuration to upload through the AUTHENTICATED
proxy I use for internet connection.Tried to the limit with no
success.


Now all I want is ANY alternate tool to upload my files to Google App
Engine. Their count is well below 100 so no problem uploading
individually.


IS THERE any alternate method ( I couldn't google about ) for doing
so.???

Ram Shanker

--~--~-~--~~~---~--~~
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] I need help~

2009-01-10 Thread qhzh...@live.cn

Hi:
  Today I try to use "dev_appserver.py helloworld/", but it allways
error that:

Traceback :
  File "C:\Prongram Files\Google\google_appengine\dev_appserver.py",
line 50, in 
execfile>
NameError: name 'execfile' is not defined

How can I solve it?
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] Limit on number of entities per transaction

2009-01-10 Thread devj

Is there a limit on number of entities I can insert/update in a
transaction - or is it just the size of the request that limits it?

Thanks in advance,
jay

--~--~-~--~~~---~--~~
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] App Engine Deep Zoom of 100 Megapixel image

2009-01-10 Thread antsyawn

I thought I'd post a mashup I put together using App Engine. It uses
Microsoft Seadragon and Lovepixel's 1x1 cityscape.

The Seadragon data weighs in at 93mb and is composed of over 2000
files.

I recommend viewing with Chrome, since it's by far the fastest for
this site.

http://lovepixelzoom.appspot.com

--~--~-~--~~~---~--~~
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] FormEncode

2009-01-10 Thread Arjan

Hi all,

I am writing a GAE app using the webapp framework. However, I would
like to use the FormEncode framework to help me validate user input
from HTML forms.

I downloaded the FormEncode framework and unpacked it. Copying the
"formencode" directory to my app engine application seems to work. Is
it really this simple to get FormEncode working on GAE?

Have other people used FormEncode on GAE? I am curious what their
experience is.

Thanks for any advice/help,

Arjan

--~--~-~--~~~---~--~~
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] New Project : PHPGeoCache For Local Storage and Google App Engine

2009-01-10 Thread Alper

Hi,

I have just released a new project named "PHPGeoCache", which is a
tile proxy for WMS like TileCache or GeoWebCache written in PHP. The
relation of the project and the group is that Google App Engine can be
used as a tile storage.

You can easily use it with Google Maps API, MS Virtual Earth or
OpenLayers projects.

I'm very glad to hear your comments, questions or bug reports about
the project.

Thanks.

Alper Dincer.
http://www.geowebdeveloper.com

Blog entry about the project : 
http://www.geowebdeveloper.com/2009/01/11/phpgeocache-for-google-app-engine/
Project page : http://www.geowebdeveloper.com/phpgeocache/
--~--~-~--~~~---~--~~
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 timeouts and retries.

2009-01-10 Thread David Wilson

2009/1/10 djidjadji :
>
> Be aware that there are times that memcache is disabled. At certain
> maintenance activities memcache.get() always returns None and
> memcache.set() has no effect.
> And memcache will be cleared when maintenance is over and normal
> behavior has returned.
>
> Your application must be able to deal with this situation.

Indeed. My point was that this isn't really a workable alternative to
simply retrying the Datastore request.

Thanks,


David.

>
> 2009/1/10 David Wilson :
>>   * Somehow use memcache as an alternative.
>
> >
>



-- 
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: Admin interface that let's me enter dummy data

2009-01-10 Thread boson

For what it's worth, I wrote a simple JSON importer for my app.  I
hand-write (or later will build a tool to write) the core data, and
use the importer to upload it.  It's mostly direct dict->entity
mapping, but there is also custom code where appropriate for reference
fixing, validity checks, etc.  This has worked well for me.

With this, I can upload my data to dev appserver or production easily,
and keep data in revision control.

On Jan 8, 8:54 pm, adelevie  wrote:
> I really like GAE's admin interface save for one thing: it doesnt let
> me enter dummy data--it says I must do it programmatically. While I'm
> sure there is some legitimate reason for this, I still would like an
> automated set of forms generated from my existing models. Is anyone
> else in the same boat as me? Right now I'm stuck manually creating a
> form class and url for each models--quite messy. Are there any clever
> workarounds?
--~--~-~--~~~---~--~~
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: Whaddya mean "Verify my account"? Again?!

2009-01-10 Thread Faber Fedor
Why can't I get my account at my client (NOT my personal account) verified?
At their site, I am lead architect and developer. They pay for Google Apps
and Domains.

Does Google expect me to have a phone for every client I want to bring to
them?

Mixing my personal account with those of my clients' (plural!) is not a Good
Thing.

On Sat, Jan 10, 2009 at 10:37 AM, Alexander Konovalenko
wrote:

> On Sat, Jan 10, 2009, Faber Fedor  wrote:
> >
> > IIUC, I'm screwed. :-)
> >
> > I used my cell number for my personal AppEngine account.  So how do I get
> > verified for my client's account when my SMS number has already been
> used?
> > Or do I have to have them create the app?
>
> Perhaps you can create the app using your personal account, invite
> your client's account to the app and after logging in under your
> client's account remove your personal account from the list of
> developers. I'm not sure if this will work as intended though. Please
> let me (and the group) know if this solves your problem.
>
>  -- Alexander
>



-- 

Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.com

--~--~-~--~~~---~--~~
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] Update just one (or few) files

2009-01-10 Thread Nefarious

So, I want to update just one file on production GAE, however, I have
many changes locally.  I don't want to update all my files with all
changes, just one file.   Does anyone know if it is possible to just
update one (or a few) files while not updating all your local
changes?  Ideally, some flag in appcfg.py which just specifies one
file?  Oh how I wish I had tagged things in CVS.
--~--~-~--~~~---~--~~
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 short unique URL for an entity

2009-01-10 Thread Anthony

You could use the id instead of the key, key().id, then you can get it
back with just DocModel.get_by_id(id)

You should be able to go straight to the doc without the parent
account id /doc/12345

I'm not sure you can guarantee id uniqueness across your whole data
store, but it should be unique for any given model?


On Jan 10, 3:24 pm, Jesse Grosjean  wrote:
> I'm relatively new to web programming, so don't feel back about
> telling me the obvious :)
>
> I have a simple model consisting of Account entities that can own many
> document entities. I'd like to create a short as possible, globally
> unique URL scheme that I can use to access any document. For testing
> right now I'm just using the documents .key() in the URL. So for
> example my urls look something like this:
>
> /documents/
> ag13cml0ZXJvb20tY29tchwLEgdBY2NvdW50GH4MCxIIRG9jdW1lbnQYiQEM
>
> But that's really long. I'm now trying to figure out the easiest way
> to make it shorter. One option that I'm considering is to just put the
> account id and document id in the URL separated by a dash like this:
>
> /documents/126-137
>
> And then I can reconstruct the Key like this:
>
> db.Key.from_path('Account', account_key, 'Document', document_key)
>
> I haven't actually tried this yet... but I think it should work?
>
> My goal is a unique, short, permanent URL for every document in the
> system. If I'm going about this the wrong way or doing something dumb
> please let me know.
>
> Thanks,
> Jesse
--~--~-~--~~~---~--~~
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: Problems parsing output of Model.to_xml() when using db.EmailProperty()'s

2009-01-10 Thread AE6RT

Ugh.  This message was so well-formatted when I submitted it.  Sorry
this is now so hard to read.

Mark

On Jan 10, 8:34 am, AE6RT  wrote:
> Good day.
>
> I have an archetypal "user" model that contains an email address-like
> attribute.
>
> Consider two cases where a) the email address is defined as a
> db.StringProperty(), and b) the email address is defined as a
> db.EmailProperty().
>
> Assume in both cases that these user instances are called "userObj",
> with an XML represenation "userXML".
>
> In the first case, where the email attribute is defined as a
> db.StringProperty(), "userXML" looks like this:
>
> 
>   tag:x.gmail.com,2009-01-10:User[agh0YWdsZXRzMHIKCxIEVXNlchgBDA]
> 
>   b...@example.com
> 
>
> Python's xml.dom.minidom can parse this using "minidom.parseString
> (userXML)"
>
> In the second case, where the email attribute is defined as a
> db.EmailProperty(), "userXML" looks like this:
>
> 
>   tag:x.gmail.com,2009-01-10:User[agh0YWdsZXRzMHIKCxIEVXNlchgBDA]
> 
>    address="b...@example.com" />
> 
>
> Python's xml.dom.minidom cannot parse the second represenation,
> throwing an exception:
>
> s = minidom.parseString(userXML)
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/xml/dom/minidom.py", line 1913, in parse
>     return expatbuilder.parse(file)
>   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/xml/dom/expatbuilder.py", line 924, in parse
>     result = builder.parseFile(fp)
>   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/xml/dom/expatbuilder.py", line 207, in parseFile
>     parser.Parse(buffer, 0)
> xml.parsers.expat.ExpatError: unbound prefix: line 3, column 41
>
> For reference, line 3, column 41 in the input is the closing ">" of
> the  tag with attribute named "email".
>
> Can anyone shed some light on why the XML representation when using
> db.EmailProperty() does not parse?
>
> 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] Problems parsing output of Model.to_xml() when using db.EmailProperty()'s

2009-01-10 Thread AE6RT

Good day.

I have an archetypal "user" model that contains an email address-like
attribute.

Consider two cases where a) the email address is defined as a
db.StringProperty(), and b) the email address is defined as a
db.EmailProperty().

Assume in both cases that these user instances are called "userObj",
with an XML represenation "userXML".

In the first case, where the email attribute is defined as a
db.StringProperty(), "userXML" looks like this:


  tag:x.gmail.com,2009-01-10:User[agh0YWdsZXRzMHIKCxIEVXNlchgBDA]

  b...@example.com


Python's xml.dom.minidom can parse this using "minidom.parseString
(userXML)"

In the second case, where the email attribute is defined as a
db.EmailProperty(), "userXML" looks like this:


  tag:x.gmail.com,2009-01-10:User[agh0YWdsZXRzMHIKCxIEVXNlchgBDA]

  


Python's xml.dom.minidom cannot parse the second represenation,
throwing an exception:

s = minidom.parseString(userXML)
Traceback (most recent call last):
  File "", line 1, in 
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/xml/dom/minidom.py", line 1913, in parse
return expatbuilder.parse(file)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/xml/dom/expatbuilder.py", line 924, in parse
result = builder.parseFile(fp)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/xml/dom/expatbuilder.py", line 207, in parseFile
parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: unbound prefix: line 3, column 41

For reference, line 3, column 41 in the input is the closing ">" of
the  tag with attribute named "email".


Can anyone shed some light on why the XML representation when using
db.EmailProperty() does not parse?

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: Google App Engine Platform

2009-01-10 Thread hawkett

You may want to star this issue

http://code.google.com/p/googleappengine/issues/detail?id=874

Apologies if it reads a little strangely, I was in an odd mood at the
time :)

On Jan 10, 12:48 am, Alexander Kojevnikov 
wrote:
> > What if I want to move away from GAE later.. can I host django,
> > web.py, or webapp frameworks myself? (Does my question make sense?)
>
> Check out this 
> article:http://code.google.com/appengine/articles/pure_django.html
--~--~-~--~~~---~--~~
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: Whaddya mean "Verify my account"? Again?!

2009-01-10 Thread Alexander Konovalenko

On Sat, Jan 10, 2009, Faber Fedor  wrote:
>
> IIUC, I'm screwed. :-)
>
> I used my cell number for my personal AppEngine account.  So how do I get
> verified for my client's account when my SMS number has already been used?
> Or do I have to have them create the app?

Perhaps you can create the app using your personal account, invite
your client's account to the app and after logging in under your
client's account remove your personal account from the list of
developers. I'm not sure if this will work as intended though. Please
let me (and the group) know if this solves your problem.

 -- Alexander

--~--~-~--~~~---~--~~
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] Creating a short unique URL for an entity

2009-01-10 Thread Jesse Grosjean

I'm relatively new to web programming, so don't feel back about
telling me the obvious :)

I have a simple model consisting of Account entities that can own many
document entities. I'd like to create a short as possible, globally
unique URL scheme that I can use to access any document. For testing
right now I'm just using the documents .key() in the URL. So for
example my urls look something like this:

/documents/
ag13cml0ZXJvb20tY29tchwLEgdBY2NvdW50GH4MCxIIRG9jdW1lbnQYiQEM

But that's really long. I'm now trying to figure out the easiest way
to make it shorter. One option that I'm considering is to just put the
account id and document id in the URL separated by a dash like this:

/documents/126-137

And then I can reconstruct the Key like this:

db.Key.from_path('Account', account_key, 'Document', document_key)

I haven't actually tried this yet... but I think it should work?

My goal is a unique, short, permanent URL for every document in the
system. If I'm going about this the wrong way or doing something dumb
please let me know.

Thanks,
Jesse


--~--~-~--~~~---~--~~
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: Interaction with other server

2009-01-10 Thread Gipsy Gopinathan
Do you have access to install appengine sdk on your hosting server? If yes
then you can do an appcfg update to your appengine app from the hosting
server for updating your static or any other files..



On Tue, Jan 6, 2009 at 4:50 AM, gabon  wrote:

>
> Tired of the performances of my cheap hosting, I would like to try to
> see if GAE is the answer for small projects that could be quite
> demanding and should be reliable.
> Let's imagine I have a database on my personal website and I would
> like to kind of mirror it every now and then to have almost the same
> data in my GAE app. I could for instance call a dynamically generated
> text file (ie xml) with all the needed data from my personal webserver
> and copy in the GAE app directory. Can I copy static files to the app
> directory from my app (in python)? I read network operations are
> limited but I presume not that much.
>
> Any suggestion?
>
> Thanks, chr
>
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: Very urgent

2009-01-10 Thread Kajikawa Jeremy
that is pretty much what I had in mind...

pretty raw-ish output using HTTP for transport

but I would definitely check out whats needed for proper REST actions,
 maybe you will need a pure-python REST library to wrapper it.

thats what I am uncertain about with regards the iPhone.

Jeremy

On Sat, 2009-01-10 at 04:22 -0800, arnie wrote:
> writing xml dynamically in
> self.response.out.write("""
> 
> - 
>   5
>   2
>   
>   1
>   Home
>   False
>   """)
> will work or any other way to write it?
> --~--~-~--~~~---~--~~
> 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
> -~--~~~~--~~--~--~---
> 


signature.asc
Description: This is a digitally signed message part


[google-appengine] Re: Very urgent

2009-01-10 Thread Kajikawa Jeremy
Im using for direct http://.appspot.com/resource

 when a GET happens Im using webapp but returning a raw XML
 content...

the client I have gets an HTTP wrapped XML response...

check out using a REST library since you need that for the iPhone
 and returning the XML needed raw off the URL path to it...

not having it as part of the website generally but similarly made as
 a feed might help.

Ive only given it a little thought with a small bit of experimentation.

but it would be similar to writing the "Hello world" example and using
 a different content-type header marker with different content
 similar to what I am doing afaik.

I have no prior knowledge of iPhone and its development...
 and working entirely on what was in your message.

Have fun with my idea if you like...and let me know how you get on.
 if it does solve your issue maybe just mention me as a Thank you
 otherwise no problem.

Jeremy

On Sat, 2009-01-10 at 03:53 -0800, arnie wrote:
> Hi Jeremy
> So all you want to say is generate a dynamic XML [in a similar way as
> we write code for html] inside the request handler code? Will it be
> acceptable by iphone? Will no REST features required in that case?
> I would like to see the way you are mentioning, can you please tell
> that?
> 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
> -~--~~~~--~~--~--~---
> 


signature.asc
Description: This is a digitally signed message part


[google-appengine] Re: Very urgent

2009-01-10 Thread arnie

writing xml dynamically in
self.response.out.write("""

- 
  5
  2
  
  1
  Home
  False
  """)
will work or any other way to write it?
--~--~-~--~~~---~--~~
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: Debug Console

2009-01-10 Thread djidjadji

For me it only works on the dev-server.
The production (appspot.com) server does not give an overlay.

In your google_appengine/templates directory do you have?
1 Javascript file: logging_console.js
3 HTML files: logging_console_[footer|header|middle].html

2009/1/10 DocDay :
>
> Of course, and that's the part that isn't working. I've not seen it on
> either the development or the Google server.
>
> On Jan 9, 6:17 pm, djidjadji  wrote:
>> Try this URL
>> http://localhost:8080/?debug
>> When there is a parameter called 'debug' you get an overlay console

--~--~-~--~~~---~--~~
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: Very urgent

2009-01-10 Thread arnie

Hi Jeremy
So all you want to say is generate a dynamic XML [in a similar way as
we write code for html] inside the request handler code? Will it be
acceptable by iphone? Will no REST features required in that case?
I would like to see the way you are mentioning, can you please tell
that?
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: Very urgent

2009-01-10 Thread Andrew Badera
I'd be curious to see what you come up with, I've been wanting to implement
a similar low-level service framework myself.

Thanks-
- Andy Badera
- and...@badera.us
- (518) 641-1280
- Google me: http://www.google.com/search?q=andrew+badera



On Sat, Jan 10, 2009 at 6:26 AM, Kajikawa Jeremy wrote:

> Actually I have a similar requirement and found that instead of worrying
> about
>  doing anything in the webapp beyond the single resource its easiest to
>  reply with direct HTML as a raw result without putting any real HTML
> into the tags
>
> since the WSGI runs directly similar to a CGI with stdin and stdout
> being the socket
>  connection made.
>
> Im experimenting with skipping WSGI and using raw incoming and raw
> response
>  processing using an own XML setup as well.
>
> I can tell you how I get on if you like?
>
> Jeremy
>
> On Sat, 2009-01-10 at 03:17 -0800, arnie wrote:
> > Hi Dan, Thanks a lot for a quick clarifying reply.
> >  I am googling continuously to find the solution. One of the solution
> > that I found is at the below given link
> >
> http://www.ioncannon.net/web-services/180/soap-on-the-google-app-engine-platform/
> > I goes through this tutorial but got stuck at "python wsdl2py
> > SimpleEcho.wsdl". How to run this command?. I have downloaded the
> > ZSI-2.1-a1.tar.gz
> >
> > Actually my web service consumer is an IPhone application. In my
> > previous project on iphone that consumes a .net web service, I have
> > noticed that we have to make the web service REST enabled so that the
> > iphone can consume it. Also, if the python web service can be an xml
> > web service then it will be helpful. Can you tell me that without
> > using ZSI library, I can create an xml web service for google app
> > engine using python?
> > For a given table [Python class]
> > class Person(db.Model):
> > FirstName = db.StringProperty()
> > LastName = db.StringProperty()
> > Address = db.StringProperty()
> > What code, I will have to write in the request handler for getting an
> > xml result [a collection of Person class objects]?
> > > >
>

--~--~-~--~~~---~--~~
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: Very urgent

2009-01-10 Thread Kajikawa Jeremy
Actually I have a similar requirement and found that instead of worrying
about
 doing anything in the webapp beyond the single resource its easiest to
 reply with direct HTML as a raw result without putting any real HTML
into the tags

since the WSGI runs directly similar to a CGI with stdin and stdout
being the socket
 connection made.

Im experimenting with skipping WSGI and using raw incoming and raw
response
 processing using an own XML setup as well.

I can tell you how I get on if you like?

Jeremy

On Sat, 2009-01-10 at 03:17 -0800, arnie wrote:
> Hi Dan, Thanks a lot for a quick clarifying reply.
>  I am googling continuously to find the solution. One of the solution
> that I found is at the below given link
> http://www.ioncannon.net/web-services/180/soap-on-the-google-app-engine-platform/
> I goes through this tutorial but got stuck at "python wsdl2py
> SimpleEcho.wsdl". How to run this command?. I have downloaded the
> ZSI-2.1-a1.tar.gz
> 
> Actually my web service consumer is an IPhone application. In my
> previous project on iphone that consumes a .net web service, I have
> noticed that we have to make the web service REST enabled so that the
> iphone can consume it. Also, if the python web service can be an xml
> web service then it will be helpful. Can you tell me that without
> using ZSI library, I can create an xml web service for google app
> engine using python?
> For a given table [Python class]
> class Person(db.Model):
> FirstName = db.StringProperty()
> LastName = db.StringProperty()
> Address = db.StringProperty()
> What code, I will have to write in the request handler for getting an
> xml result [a collection of Person class objects]?
> --~--~-~--~~~---~--~~
> 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
> -~--~~~~--~~--~--~---
> 


signature.asc
Description: This is a digitally signed message part


[google-appengine] Re: Very urgent

2009-01-10 Thread arnie

Hi Dan, Thanks a lot for a quick clarifying reply.
 I am googling continuously to find the solution. One of the solution
that I found is at the below given link
http://www.ioncannon.net/web-services/180/soap-on-the-google-app-engine-platform/
I goes through this tutorial but got stuck at "python wsdl2py
SimpleEcho.wsdl". How to run this command?. I have downloaded the
ZSI-2.1-a1.tar.gz

Actually my web service consumer is an IPhone application. In my
previous project on iphone that consumes a .net web service, I have
noticed that we have to make the web service REST enabled so that the
iphone can consume it. Also, if the python web service can be an xml
web service then it will be helpful. Can you tell me that without
using ZSI library, I can create an xml web service for google app
engine using python?
For a given table [Python class]
class Person(db.Model):
FirstName = db.StringProperty()
LastName = db.StringProperty()
Address = db.StringProperty()
What code, I will have to write in the request handler for getting an
xml result [a collection of Person class objects]?
--~--~-~--~~~---~--~~
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] searchable database limited by the users radious and google checkout authentication ????

2009-01-10 Thread computero71

looking to setup google searchable database limited by the users
radious from the signup city listed and authintication by google
checkout paid account


any tips tricks tem[plate suggestions etc 


thanks a million !!
--~--~-~--~~~---~--~~
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: Interaction with other server

2009-01-10 Thread gabon

I'm loading an xml using urlfetch and seems to work ok. It seems clear
that I cannot save any file on the application folders though.

Cheers, chr

gabon wrote:
> Tired of the performances of my cheap hosting, I would like to try to
> see if GAE is the answer for small projects that could be quite
> demanding and should be reliable.
> Let's imagine I have a database on my personal website and I would
> like to kind of mirror it every now and then to have almost the same
> data in my GAE app. I could for instance call a dynamically generated
> text file (ie xml) with all the needed data from my personal webserver
> and copy in the GAE app directory. Can I copy static files to the app
> directory from my app (in python)? I read network operations are
> limited but I presume not that much.
>
> Any suggestion?
>
> Thanks, chr
--~--~-~--~~~---~--~~
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] Handlers conflict

2009-01-10 Thread gabon

I am newbie to GAE, I am creating different handlers, each one with
its own py script, like in most of the examples found. The weird
problem I am having is that when I try to execute a new handler just
created, I get an error referring a previous one (like if there is
dependency/conflict with one and another):

 /Developer/GoogleAppEngine/Projects/xxx/copy.py in ()
2 from google.appengine.api import users
3 import wsgiref.handlers
4 import urllib
5 import time
6 from xml.dom import minidom
google undefined, webapp undefined

: cannot import name webapp

copy.py is a previously created handler and both handlers require
admin login.
If I execute the copy and then the new handler, the new handler works
fine. But as soon as I modify the new handler I have to execute again
the previous one. How can two handler interfere (especially at import
level)?

Since the log skipped the first line in copy.py ("from
google.appengine.ext import webapp"), I added an empty line at the
start and end but I still get:

 /Developer/GoogleAppEngine/Projects/xxx/copy.py in ()
2 from google.appengine.ext import webapp
3 from google.appengine.api import users
4 import wsgiref.handlers
5 import urllib
6 import time
google undefined, webapp undefined


Thanks for any help, chr
--~--~-~--~~~---~--~~
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: Debug Console

2009-01-10 Thread DocDay

Of course, and that's the part that isn't working. I've not seen it on
either the development or the Google server.

On Jan 9, 6:17 pm, djidjadji  wrote:
> Try this URLhttp://localhost:8080/?debug
> When there is a parameter called 'debug' you get an overlay console
>
> 2009/1/9 DocDay :
>
>
>
>
>
> > I've been going through the article "Logging Events in Your
> > Application" athttp://code.google.com/appengine/articles/logging.html
>
> > In the section entitled "Viewing the Log Information in Real Time", a
> > "debug console" is described. Try as I might, I've been unable to get
> > this to work. Has anyone had success with this?
>
> > Doc- 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 timeouts and retries.

2009-01-10 Thread djidjadji

Be aware that there are times that memcache is disabled. At certain
maintenance activities memcache.get() always returns None and
memcache.set() has no effect.
And memcache will be cleared when maintenance is over and normal
behavior has returned.

Your application must be able to deal with this situation.

2009/1/10 David Wilson :
>   * Somehow use memcache as an alternative.

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