[google-appengine] Re: Timeouts

2009-01-03 Thread Paul Kinlan
Hi,

I also regularly get datastore timeouts for reads and writes.  Looking at
the status monitor there never seem to be any problems.

Kind Regards,
Paul Kinlan

2009/1/3 Xavier Mathews xavieruni...@gmail.com


 Place it in the issue tracker.

 On 01/02/2009, Alexander Kojevnikov alexan...@kojevnikov.com wrote:
 
  My application is getting a very high number of data store timeouts.
 
  Is there an unreported issue going on right now?
 
  The status monitor doesn't show anything unusual:
  http://code.google.com/status/appengine/detail/datastore/2009/01/02
 
  
 


 --
 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Client Based Tech Support Specialist
 Hazel Crest Illinois
 xavieruni...@gmail.com¥xavierunited@hotmail.com¥truestar...@yahoo.com
 Fear of a name, only increases fear of the thing itself.

 


--~--~-~--~~~---~--~~
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: Can not import my data model class in another **.py file ???

2009-01-03 Thread Remis B



Youngfe wrote:
 I have a file(xPhotoHandler.py) with following codes inside:

 from google.appengine.ext import webapp
 from google.appengine.api import users
 from xphoto import xPhoto
 class xPhotoHandler(webapp.RequestHandler):
def get(self):
 pass

 I have defined xPhoto class in file(xphoto.py) in the my app root
 folder

 but when I call from web there's an error show as below:

 xphoto undefined, xPhoto undefined

 I don't know why? Can anyone help it out? Thanks!

You have to add from xxx import at the beginning of xPhotoHandler.py
file. I guess it should look something like:

from xphoto import xPhoto

hope it will help.

Regards Remis B


--~--~-~--~~~---~--~~
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: currency or comma in float numbers format

2009-01-03 Thread Remis B

That is fine but I have another question, How can I make and filter to
be used in GAE templates. I mean to be able to use something like this
{{ product.price|my_money_format_filter}} where my_money_format_filter
is my own implementation of the filter.

Remis B

On Jan 3, 2:30 am, warreninaustintexas warreninaus...@gmail.com
wrote:
 I wrote my own function to convert since I couldn't find a Django
 filter or Python library to do so.  I convert to a summary style
 format instead of full-precision currency:

   if abs(what_number)  10:
     return_string = str(round(float(what_number)/10,places)) +
 B
   elif abs(what_number)  100:
     return_string = str(round(float(what_number)/100,places)) +
 M
   elif abs(what_number)  1000:
     return_string = str(round(float(what_number)/1000,places)) + K
   else:
     return_string = str(round(float(what_number),places))

 Hope that helps.
 w.

 On Jan 2, 5:31 pm, Shay Ben Dov shay.ben...@gmail.com wrote:

  Hi,
  Anyone knows how to implement in GAE
  currency formating of floating numbers like:
  {{ value|floatformat:2 }} built_in filter
  Shay
--~--~-~--~~~---~--~~
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: one application multiple alias domain

2009-01-03 Thread hawkett

You may be interested in this feature request and surrounding
discussion

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

On Jan 2, 5:03 pm, gops patelgo...@gmail.com wrote:
 thanks , that just didn't occur to me...rocking!!

 one more question :: How can i handle multiple google apps account
 from same interface ? ... basically i have multiple clients , and as a
 admin , it is quite tadious to logout and login for different
 admin ...  and as it occurs to me , there must be multiple
 profile extension for firefox ... let me google for it.

 thanks for your help.

 On Jan 1, 11:50 pm, niklasr nikla...@gmail.com wrote:

  Sure you can. For each domain just apply the same app.
  Niklas
  On Jan 1, 2:29 pm, gops patelgo...@gmail.com wrote:

   is there any way in google apps to add gooogle app engine app and run
   it for multiple domain alias.

   i.e.  www.maindomain.com/mypage.htmlandwww.aliasdomain.com/mypage.html
   will show same page.

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



[google-appengine] appcfg.py update error

2009-01-03 Thread egilchri

Yesterday, I started getting errors with appcfg.py. Sometimes, it
seemed like I could get around the error by moving a source file away,
and then back, but the condition is persisting. I'll include a
transcript below. I tried running appcfg.py with the --noisy flag, but
this didn't point to any obvious problems. I admit, there is a lot of
cruft in my subdirectories (such as a CVS directory), but I'm not sure
how to analyze this problem. -- thanks

appcfg.py  update robobrightkite/
Loaded authentication cookies from /Users/egilchri/.appcfg_cookies
Scanning files on local disk.
Initiating update.
Could not guess mimetype for stylesheets/CVS/Root.  Using application/
octet-stream.
Could not guess mimetype for stylesheets/CVS/Entries.  Using
application/octet-stream.
Could not guess mimetype for stylesheets/CVS/Repository.  Using
application/octet-stream.
Cloning 12 static files.
Cloning 71 application files.
Uploading 2 files.
2009-01-03 08:40:32,197 ERROR appcfg.py:1070 An unexpected error
occurred. Aborting.
Rolling back the update.
Traceback (most recent call last):
  File /usr/local/bin/appcfg.py, line 48, in module
execfile(script_path, globals())
  File /usr/local/google_appengine/google/appengine/tools/appcfg.py,
line 1530, in module
main(sys.argv)
  File /usr/local/google_appengine/google/appengine/tools/appcfg.py,
line 1526, in main
AppCfgApp(argv).Run()
  File /usr/local/google_appengine/google/appengine/tools/appcfg.py,
line 1201, in Run
self.action.function(self)
  File /usr/local/google_appengine/google/appengine/tools/appcfg.py,
line 1405, in Update
lambda path: open(os.path.join(basepath, path), rb))
  File /usr/local/google_appengine/google/appengine/tools/appcfg.py,
line 1057, in DoUpload
self.UploadFile(missing_file, file_handle)
  File /usr/local/google_appengine/google/appengine/tools/appcfg.py,
line 977, in UploadFile
payload=file_handle.read())
  File /usr/local/google_appengine/google/appengine/tools/appcfg.py,
line 279, in Send
f = self.opener.open(req)
  File /Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urllib2.py, line 381, in open
response = self._open(req, data)
  File /Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urllib2.py, line 399, in _open
'_open', req)
  File /Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urllib2.py, line 360, in _call_chain
result = func(*args)
  File /Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urllib2.py, line 1107, in http_open
return self.do_open(httplib.HTTPConnection, req)
  File /Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urllib2.py, line 1082, in do_open
raise URLError(err)
urllib2.URLError: urlopen error (35, 'Resource temporarily
unavailable')
[Julia-Bucks-Computer:~/appengine] egilchri% '
--~--~-~--~~~---~--~~
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: Adding property to a Model

2009-01-03 Thread murexconsult...@googlemail.com

Thanks, adding the default fixed it. Although the development
datastore viewer still does not work correctly. I can not edit the new
field for the old or NEW records.

When I uploaded to production all worked fine. The production
dataviewer displayed Missing for the field in the old rows, and the
correct value for new ones.

The development dataserver behaves slightly differently in this use
case than the production one.

But the production one works better!

Thanks
Robin

On Jan 3, 7:41 am, Alexander Kojevnikov alexan...@kojevnikov.com
wrote:
  I can insert new rows fine, and see them in the Development server
  datastore viewer. But when I try to access the new property contains
  NoneType: None.

 You can assign a default value to the property, it will be used when
 an entity has no value for the property:

   boat = db.StringProperty(default='my default value')

  How can I force the Datastore to add this new property without having
  to delete all the old data and re-add?

 You don't have to re-create your entities, if you want you can iterate
 through them and update the property value:

   entity.boat = 'my default value'
   entity.put()

 If you have many entities, you will have to do the update in multiple
 requests, probably using the __key__ index to properly iterate over
 all of them. But before doing this, consider using the 'default'
 parameter first, it's much easier.
--~--~-~--~~~---~--~~
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] Extend Template

2009-01-03 Thread lookon

Is there any way for GAE to combine multiple templates to one. For
example, I want to combine header.html, content.html, footer.html into
on page, How can I do this under GAE?
--~--~-~--~~~---~--~~
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: URL Fetch API --- Does Google log IP addresses to prevent abuses?

2009-01-03 Thread KillIEbrowser

Now I'm building a new free web App using HTTPS:

Private URL Fetching

and I think is useful to see a URL Fetch Log into the App Engine
Admin.
Can you make this feature, please?


On Dec 30 2008, 9:32 pm, Barry Hunter barrybhun...@googlemail.com
wrote:
 IP addresses of what?

 2008/12/30 KillIEbrowser davide.rogn...@gmail.com:



  Hi All,
  Does Google log IP addresses to prevent abuses?

 --
 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: Extend Template

2009-01-03 Thread Roberto Saccon

If you are using django templates there are LOTS of ways to combine
multiple templates, eg. include tags, template inheritence

take a look the django templates documentation

regards
Roberto

On Jan 3, 12:28 pm, lookon areyouloo...@gmail.com wrote:
 Is there any way for GAE to combine multiple templates to one. For
 example, I want to combine header.html, content.html, footer.html into
 on page, How can I do this under GAE?
--~--~-~--~~~---~--~~
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: Over Quota: Datastore Indices Count

2009-01-03 Thread dloomer

Is the index quota limit actually 50?  I don't see that listed on my
Quota Details page or here: 
http://code.google.com/appengine/articles/quotas.html.

Anyway, just today I started seeing that warning in my dashboard even
though I have only 45 indices (no more than nine for any given entity
kind).  What's strange is, I had never seen this warning before in
spite of the fact that up until yesterday, when I did some cleanup, I
had 13 additional indices on top of the current 45.

Incidentally, late last night I was getting 500 server errors on the
index update portion of my deployments (no further details on the
nature of the error were given).

I haven't quite nailed down the security model of my app yet, so I
don't want to make the app ID public here -- I can provide that in a
private e-mail.


On Dec 20 2008, 1:40 am, paptimus papti...@gmail.com wrote:
 Hi, GAE team.

 I encountered Your application is exceeding a quota: Datastore
 Indices Count on dashboard.

 The number of indeces is under 50, but one model has about 30 indeces.
 So I think this one is the point of over quota warning and vacuumed
 these indeces.
 Vacuume_index was completed and there is no index of that model.

 But the warging of over quota ramains over 24 hours and the status of
 a new index remains building.

 I hope you check my index and change the status to Error if my index
 has problems, please.

 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: Can not import my data model class in another **.py file ???

2009-01-03 Thread gops

the usual mistake i make is to put __init__.py file in that folder...

On Jan 3, 12:30 pm, Youngfe ywfee...@gmail.com wrote:
 I have a file(xPhotoHandler.py) with following codes inside:

 from google.appengine.ext import webapp
 from google.appengine.api import users
 from xphoto import xPhoto
 class xPhotoHandler(webapp.RequestHandler):
    def get(self):
         pass

 I have defined xPhoto class in file(xphoto.py) in the my app root
 folder

 but when I call from web there's an error show as below:

 xphoto undefined, xPhoto undefined

 I don't know why? Can anyone help it out? 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: Should I use App Engine Patch

2009-01-03 Thread gops

dont use it if you are in learning phase , or not in hurry.

think this way :: if there was a need of app engine patch than google
would have released it.

and i personally think , webapp is sufficient for pretty large
project , afterall no matter how much django do for you , atlast for
sufficiently large project we endup
with our own library-or-framework.

On Jan 2, 10:42 pm, Ray Malone rayish...@gmail.com wrote:
 I'm not sure of the benefits of using the Patch.  I have been able to
 build two good sized apps (1000+ lines of code each) using the App
 Engine defaults.   I know my code is not best practice yet, so I'm
 looking to learn more and make my next app better.  While I like how
 the models are setup, the process of creating and maintaining an app
 seems complicated.  Can you tell me what I would gain from using the
 Patch.  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: Timeouts

2009-01-03 Thread Aaron OBrien
My app serves a fair amount of requests about 4 a second and ruffly half of
them save to the datastore.  It is very fault tolerant so our users
shouldn't be noticing it - and if they are it's still fairly minor.
In the last 9 hours we have had 10% of these requests fail (about 13,700
requests).  Prior to 2 days ago it was not uncommon to see the failure rate
around 1%  less than 100 failures for over 20 hours.
The code that saves to the data store saves a model that has a reference to
another object.  This referenced object is pretty simple - StringProperty
objects and a couple DateProperty objects.

Is saving this reference more expensive than creating a uniqueId of the
(simple)object and manually saving a the custom defined uniqueId to it?

If this continues throughout the day I guess I'll turn profiling back on and
see what's going on...

Any thoughts on re-working the reference? Is it a more expensive operation
to save and retrieve references to objects rather than a custom unqique key
to the object?  If I reworked the relationship it would force me to turn
back around and query to get the referenced object when I need it though.

Thanks for helping!

-Aaron

On Sat, Jan 3, 2009 at 2:56 AM, Paul Kinlan paul.kin...@gmail.com wrote:

 Hi,

 I also regularly get datastore timeouts for reads and writes.  Looking at
 the status monitor there never seem to be any problems.

 Kind Regards,
 Paul Kinlan

 2009/1/3 Xavier Mathews xavieruni...@gmail.com


 Place it in the issue tracker.

 On 01/02/2009, Alexander Kojevnikov alexan...@kojevnikov.com wrote:
 
  My application is getting a very high number of data store timeouts.
 
  Is there an unreported issue going on right now?
 
  The status monitor doesn't show anything unusual:
  http://code.google.com/status/appengine/detail/datastore/2009/01/02
 
  
 


 --
 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Client Based Tech Support Specialist
 Hazel Crest Illinois
 xavieruni...@gmail.com¥xavierunited@hotmail.com¥truestar...@yahoo.com
 Fear of a name, only increases fear of the thing itself.




 


--~--~-~--~~~---~--~~
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: entity.populate()

2009-01-03 Thread gops

i am using your code , thats easy and cool!! thanks.

On Dec 31 2008, 8:31 pm, Rodrigo Moraes rodrigo.mor...@gmail.com
wrote:
 Hey,
 I am missing a way to populate an entity with data from a dict (or a
 list of tuples with key/value). We can do this with new entities:

     entity = ModelFoo(**data)

 ... but how about existing entities? Wouldn't a populate() (or load(),
 or call it a better name :-) Something like:

     entity = ModelFoo.get_by_id(id)
     entity.populate(data)

 It's pretty simple, and I am wondering if it would not be worth to
 have in Molel:

     def populate(self, data):
         properties = self.properties()
         for key, value in data.iteritems():
             if key in properties:
                 setattr(self, key, value)

 ... or: maybe I am missing a feature that already exists?

 thank you,
 rodrigo
--~--~-~--~~~---~--~~
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: Modeling Article Error

2009-01-03 Thread gops

the think i like about google is , you respect it so much that , even
if it make mistake , you just point that out the best way you can.

had it been that microsoft made such mistake , i dont think much
people will bother to even tell them ...

:D

On Dec 31 2008, 1:15 pm, dave...@gmail.com dave...@gmail.com
wrote:
 I'm not sure if this is big enough to be posted in the issue tracker,
 but I noticed a small coding mistake when I was reading the Datastore
 Modeling article athttp://code.google.com/appengine/articles/modeling.html

 Right at the bottom of the One to Many section, is the following
 paragraph followed by a line of code:

 When Scott loses his phone, it's easy enough to delete that record.
 Just delete the PhoneNumber instance and it can no longer be queried
 for:

 jack.phone_numbers.filter('phone_type =', 'home').get().delete()

 Shouldn't the line of code be:

 scott.phone_numbers.filter('phone_type =', 'home').get().delete()
--~--~-~--~~~---~--~~
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

2009-01-03 Thread Roberto Saccon

if you need features of django  0.96 then it makes sense to use this
patch (or writing your own ...)

if not, I agree with gops

regards

On Jan 3, 2:43 pm, gops patelgo...@gmail.com wrote:
 dont use it if you are in learning phase , or not in hurry.

 think this way :: if there was a need of app engine patch than google
 would have released it.

 and i personally think , webapp is sufficient for pretty large
 project , afterall no matter how much django do for you , atlast for
 sufficiently large project we endup
 with our own library-or-framework.

 On Jan 2, 10:42 pm, Ray Malone rayish...@gmail.com wrote:

  I'm not sure of the benefits of using the Patch.  I have been able to
  build two good sized apps (1000+ lines of code each) using the App
  Engine defaults.   I know my code is not best practice yet, so I'm
  looking to learn more and make my next app better.  While I like how
  the models are setup, the process of creating and maintaining an app
  seems complicated.  Can you tell me what I would gain from using the
  Patch.  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] App Engine blocked in China, what to do?

2009-01-03 Thread Nick Winter

Our app, Skritter (id skrit), teaches Chinese characters. It's become
a big pain that skritter.com, which is hosted on App Engine, is
blocked in China. It was unblocked for a couple weeks, but is now
blocked again.

skrit.appspot.com works, though (with a couple minor issues related to
HTTPS login trying to return them to skritter.com). We've been telling
users to go to the appspot domain instead, but most people will just
see 404 at skritter.com and never return.

According to this thread: 
http://groups.google.com/group/google-appengine/browse_thread/thread/c83a316d28eb8ea7
one user worked around this a couple months ago by setting up nginx as
a reverse proxy. Is that the only way to solve this issue? I've tested
a few sites in the app gallery to see if they're blocked in China,
too, and some were, but one wasn't; I don't know if it's using another
way, isn't directly hosted on App Engine, or is also doing the reverse
proxy thing.

Since we don't have another server, is EC2 the logical choice for
setting up nginx?

Are there plans to fix this issue on Google's end?
--~--~-~--~~~---~--~~
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: three web proxy sites on Google app Engine(proxypy, go2, web-proxy), which is better?

2009-01-03 Thread Barry Hunter

You missed one
http://mirrorrr.appspot.com/
available at
http://code.google.com/p/mirrorrr/
dont know if its better, but it works.

2009/1/2 auzhuang auzhu...@gmail.com:

 I found three web proxy sites on Google app :

 http://proxypy.appspot.com/

 http://go2.appspot.com/

 http://web-proxy.appspot.com/

 which is better?  Is it open source?

 




-- 
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: URL Fetch API --- Does Google log IP addresses to prevent abuses?

2009-01-03 Thread Barry Hunter

Do it yourself:
http://code.google.com/appengine/docs/python/logging.html

2009/1/3 KillIEbrowser davide.rogn...@gmail.com:

 Now I'm building a new free web App using HTTPS:

 Private URL Fetching

 and I think is useful to see a URL Fetch Log into the App Engine
 Admin.
 Can you make this feature, please?


 On Dec 30 2008, 9:32 pm, Barry Hunter barrybhun...@googlemail.com
 wrote:
 IP addresses of what?

 2008/12/30 KillIEbrowser davide.rogn...@gmail.com:



  Hi All,
  Does Google log IP addresses to prevent abuses?

 --
 Barry

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




-- 
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] Ten reasons why couchdb is better than (off topic)

2009-01-03 Thread mobil

Ten reasons why couchdb is better than (off topic)


http://pylab.blogspot.com/2009/01/ten-reasons-why-couchdb-is-better-than.html

Guys I wrote up a small list of reasons why i think couchdb is way
bettter than mysql. Do let me know what you think




--
Gpirate the top torrent search engine
http://gpirate.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] Re: entity.populate()

2009-01-03 Thread Rodrigo Moraes

On Sat, Jan 3, 2009 at 3:55 PM, gops wrote:

 i am using your code , thats easy and cool!! thanks.

cool. i created a feature request for it. star if you think it is worth:

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

thanks,
rodrigo

--~--~-~--~~~---~--~~
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 to app engine Help with dev_appserver.py script

2009-01-03 Thread jmac007

I'm running Mac OSX 10.5.5 and i've installed Mac Python 2.5. I
followed the install doc and only installed the PythonApplications.
Then I create a folder off of my home directory called helloworld
and I create a file call helloworld.py. I then create a file called
app.yaml and save it with that extension.

I open up a terminal window and run dev_appserver helloworld/ and it
fails with an error in line 2 column 1.

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] My return HttpResponseRedirect doesn't work

2009-01-03 Thread KissDragon

Here is the py file content:

#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect
from django.http import HttpResponse
from model.BlogModel import *

import sys
reload(sys)
sys.setdefaultencoding('utf-8')

def process(request):
  blog = BlogModel()
  blog.author = str(request.POST['author'])
  blog.title = str(request.POST['title'])
  blog.content = str(request.POST['content'])
  blog.put()
  return HttpResponseRedirect(/)

When I  execute this process methed,  it can put the data into
database but doesn't redirect to /.

what's wrong with 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] Will be possible to schedule an application?

2009-01-03 Thread Josu

Hi,

I've read that is not possible to create a python application to be
run at a schedule time without any web request.

I'm interested in running one python algorithm that is executed
following one schedule. The result is an e-mail to the user that has
created the schedule.

Do you any way to implement this in App Engine? Will be possible? Thk
you.

Best Regards,

Jordi

--~--~-~--~~~---~--~~
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] Debugging with pdb() ?

2009-01-03 Thread Stuart Grimshaw

Call me old school, but I much prefer to do my debugging with pdb, I
really don't want to install Eclipse just to debug a small app like
this.

So, how do I get pdb running under the app engines local server? If I
include it as I usualle would (import pdb; pdb.set_trace()) I get a
500 server error and I can see the pdb prompt, how do I get it to halt
execution, and how do I attach to the debugger from the command line?

--~--~-~--~~~---~--~~
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: three web proxy sites on Google app Engine(proxypy, go2, web-proxy), which is better?

2009-01-03 Thread admin go2
All of them are excellent.

web-proxy.appspot.com is base on the open source code *mirrorrr* .
Bslatkin wrote the excellent code of *mirrorrr.appspot.com
*http://mirrorrr.appspot.com/
*.*

go2.appspot.com is not open source yet.


On Jan 2, 2:40 pm, auzhuang auzhu...@gmail.com wrote:
 I found three web proxy sites on Google app :

 http://proxypy.appspot.com/

 http://go2.appspot.com/

 http://web-proxy.appspot.com/

 which is better?  Is it open source?

--~--~-~--~~~---~--~~
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: through python AIM/gtalk libraries?

2009-01-03 Thread satish

I am interested too. I played around with IM integration using the
services from http://new.imified.com/ and it worked fine for simple
functionality.

On Jan 1, 2:08 pm, mclovin hanoo...@gmail.com wrote:
 I wanted to test out some SMS web app, where I can communicate w/ the
 application from my phone. I was wondering if the App Engine allows me
 to do this through the use of either AIM libraries or Gtalk Libraries
 written in python.

 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] Working with mappings

2009-01-03 Thread MajorProgamming

Sample code:

application = webapp.WSGIApplication([('/', MainPage),
  ('/newentry', NewEntry),
  ('/editentry', EditEntry),
  ('/deleteentry', DeleteEntry),
 ],
 debug=True)

Firstly, Do these mappings also support regular expression mappings?

Secondly, How can I use dynamic mappings (like instead of
http://example.com/article?id=20 -- http://example.com/article/20)?
[and is there any advantage to doing query strings in this fashion?]

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] Weird behavior of Django - Cycle

2009-01-03 Thread MajorProgamming

I have this code in one of my HTML Templates:

{%if forloop.counter0|divisibleby:3%}/trtr class={% cycle
even,odd%}{%endif%}

[snipped out]

For some reason every time I reload the page, the cycle behaves
differently. It's almost like the system keeps the last cycling in
memory - could there be some sort of leakage? What am I doing 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: Working with mappings

2009-01-03 Thread Rodrigo Moraes

On Sat, Jan 3, 2009 at 10:02 PM, MajorProgamming wrote:
 Firstly, Do these mappings also support regular expression mappings?

They *are* regular expressions. That's how those expressions are evaluated.

 Secondly, How can I use dynamic mappings (like instead of
 http://example.com/article?id=20 -- http://example.com/article/20)?

('/article/([\d]+)', Article)

With the above rule, the matched values are passed to the handler, in
order. So in Article you'll have the method get(self, article_id),
which receives the article id from the matched rule.

 [and is there any advantage to doing query strings in this fashion?]

Well, sometimes query strings are more convenient, but in many times
you would want to certify that only url's with minimally valid
parameters (in the above example, an integer) will match. With ?id=20,
you'll have to check if an id is passed in the handler method, *after*
the dispatch process. It's also a matter of aesthetics and, most
important, how your handlers are organized.

-- rodrigo

--~--~-~--~~~---~--~~
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: Googe App Engine and Friend Connect...

2009-01-03 Thread benzrad

so great to hear from u, dear Mangar,
i will trie the code asap. but i want to know if upload: static/*.*
mandatory? where is upload from? i didn't see a folder in that
title.
TIA.
--~--~-~--~~~---~--~~
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: Working with mappings

2009-01-03 Thread MajorProgamming

What's passed to the article_id parameter? How does GAE know what to
pass?

On Jan 3, 7:58 pm, Rodrigo Moraes rodrigo.mor...@gmail.com wrote:
 On Sat, Jan 3, 2009 at 10:02 PM, MajorProgamming wrote:
  Firstly, Do these mappings also support regular expression mappings?

 They *are* regular expressions. That's how those expressions are evaluated.

  Secondly, How can I use dynamic mappings (like instead of
 http://example.com/article?id=20--http://example.com/article/20)?

 ('/article/([\d]+)', Article)

 With the above rule, the matched values are passed to the handler, in
 order. So in Article you'll have the method get(self, article_id),
 which receives the article id from the matched rule.

  [and is there any advantage to doing query strings in this fashion?]

 Well, sometimes query strings are more convenient, but in many times
 you would want to certify that only url's with minimally valid
 parameters (in the above example, an integer) will match. With ?id=20,
 you'll have to check if an id is passed in the handler method, *after*
 the dispatch process. It's also a matter of aesthetics and, most
 important, how your handlers are organized.

 -- rodrigo
--~--~-~--~~~---~--~~
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] Download a copy of my application's source code.

2009-01-03 Thread Diego

Unfortunately (for me) my hard drive crashed and I did not have a
backup of my application's source. Is it possible to get a copy of the
files from GAE?

Thank you.

Cheers.
--~--~-~--~~~---~--~~
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: App Engine blocked in China, what to do?

2009-01-03 Thread Jacky

Hi, This is Jacky from China and I'm telling you a good news:your
skrit works fine in China NOW.

There's no problem for running your application from my computer,
which is inside the GFW(so we called the wall filter informations on
internet. Yes, this is an unconvenience, but this is provided by
Cisco, an America Co., so don't complain :) )





On Jan 4, 4:18 am, Nick Winter livel...@gmail.com wrote:
 Our app, Skritter (id skrit), teaches Chinese characters. It's become
 a big pain that skritter.com, which is hosted on App Engine, is
 blocked in China. It was unblocked for a couple weeks, but is now
 blocked again.

 skrit.appspot.com works, though (with a couple minor issues related to
 HTTPS login trying to return them to skritter.com). We've been telling
 users to go to the appspot domain instead, but most people will just
 see 404 at skritter.com and never return.

 According to this 
 thread:http://groups.google.com/group/google-appengine/browse_thread/thread/...
 one user worked around this a couple months ago by setting up nginx as
 a reverse proxy. Is that the only way to solve this issue? I've tested
 a few sites in the app gallery to see if they're blocked in China,
 too, and some were, but one wasn't; I don't know if it's using another
 way, isn't directly hosted on App Engine, or is also doing the reverse
 proxy thing.

 Since we don't have another server, is EC2 the logical choice for
 setting up nginx?

 Are there plans to fix this issue on Google's end?

--~--~-~--~~~---~--~~
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: appcfg.py update error

2009-01-03 Thread 施强
please try it again , every thing will be ok...

2009/1/3 egilchri egilc...@gmail.com


 Yesterday, I started getting errors with appcfg.py. Sometimes, it
 seemed like I could get around the error by moving a source file away,
 and then back, but the condition is persisting. I'll include a
 transcript below. I tried running appcfg.py with the --noisy flag, but
 this didn't point to any obvious problems. I admit, there is a lot of
 cruft in my subdirectories (such as a CVS directory), but I'm not sure
 how to analyze this problem. -- thanks

 appcfg.py  update robobrightkite/
 Loaded authentication cookies from /Users/egilchri/.appcfg_cookies
 Scanning files on local disk.
 Initiating update.
 Could not guess mimetype for stylesheets/CVS/Root.  Using application/
 octet-stream.
 Could not guess mimetype for stylesheets/CVS/Entries.  Using
 application/octet-stream.
 Could not guess mimetype for stylesheets/CVS/Repository.  Using
 application/octet-stream.
 Cloning 12 static files.
 Cloning 71 application files.
 Uploading 2 files.
 2009-01-03 08:40:32,197 ERROR appcfg.py:1070 An unexpected error
 occurred. Aborting.
 Rolling back the update.
 Traceback (most recent call last):
  File /usr/local/bin/appcfg.py, line 48, in module
execfile(script_path, globals())
  File /usr/local/google_appengine/google/appengine/tools/appcfg.py,
 line 1530, in module
main(sys.argv)
  File /usr/local/google_appengine/google/appengine/tools/appcfg.py,
 line 1526, in main
AppCfgApp(argv).Run()
  File /usr/local/google_appengine/google/appengine/tools/appcfg.py,
 line 1201, in Run
self.action.function(self)
  File /usr/local/google_appengine/google/appengine/tools/appcfg.py,
 line 1405, in Update
lambda path: open(os.path.join(basepath, path), rb))
  File /usr/local/google_appengine/google/appengine/tools/appcfg.py,
 line 1057, in DoUpload
self.UploadFile(missing_file, file_handle)
  File /usr/local/google_appengine/google/appengine/tools/appcfg.py,
 line 977, in UploadFile
payload=file_handle.read())
  File /usr/local/google_appengine/google/appengine/tools/appcfg.py,
 line 279, in Send
f = self.opener.open(req)
  File /Library/Frameworks/Python.framework/Versions/2.5/lib/
 python2.5/urllib2.py, line 381, in open
response = self._open(req, data)
  File /Library/Frameworks/Python.framework/Versions/2.5/lib/
 python2.5/urllib2.py, line 399, in _open
'_open', req)
  File /Library/Frameworks/Python.framework/Versions/2.5/lib/
 python2.5/urllib2.py, line 360, in _call_chain
result = func(*args)
  File /Library/Frameworks/Python.framework/Versions/2.5/lib/
 python2.5/urllib2.py, line 1107, in http_open
return self.do_open(httplib.HTTPConnection, req)
  File /Library/Frameworks/Python.framework/Versions/2.5/lib/
 python2.5/urllib2.py, line 1082, in do_open
raise URLError(err)
 urllib2.URLError: urlopen error (35, 'Resource temporarily
 unavailable')
 [Julia-Bucks-Computer:~/appengine] egilchri% '
 



-- 
---
Name : Shi Qiang(John)
Tel : 13735533727
Gmail : shiqiang...@gmail.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] Re: Configuring Friend Connect

2009-01-03 Thread benzrad

i tried the code, but it don't work on my app at http://app21zh.appspot.com
.in friend connect in the process to setup the site, it still reported
can't find the 2 files, which i had place all over including static
folder.
i need more instruction.TIA.


On Dec 4 2008, 6:28 am, Andi Albrecht albrecht.a...@googlemail.com
wrote:
 Hi Rajiv,

 here's how I did it... I copied the two files in a directory called
 static (where all my CSS and images live). Then I'd added the
 following lines to app.yaml:

 - url: /rpc_relay.html
   static_files: static/rpc_relay.html
   upload: static/rpc_relay.html

 - url: /canvas.html
   static_files: static/canvas.html
   upload: static/canvas.html

 I'm not sure if you can omit the upload directive. But the relevant
 part is to point the urls to the files you've downloaded from the
 friend connect page.

 Hope that helps,

 AndiOn Wed, Dec 3, 2008 at 8:37 PM, Rajiv R rajsp...@gmail.com wrote:

  am trying to use friend connect for my app engine application. I am
  told to place 2 .html files in the app's home url i.e
  http://appname.appspot.com/filename.html.

  I tried a few options in app.yaml but they all result in 404-Not
  Found.

  any suggestions?

  Cheers!
  Rajiv
--~--~-~--~~~---~--~~
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: Googe App Engine and Friend Connect...

2009-01-03 Thread benzrad

i tried the code, but it don't work on my app at http://app21zh.appspot.com
.in friend connect in the process to setup the site, it still reported
can't find the 2 files, which i had place all over including static
folder.
i need more instruction.TIA.



On Jan 1, 3:56 pm, Shalin Shekhar Mangar shalinman...@gmail.com
wrote:
 You can add them inside the static directory. You must also map them to
 '/' (root) by adding the following in your app.yaml file.

 - url: /canvas.html
   static_files: static/canvas.html
   upload: static/canvas.html

 - url: /rpc_relay.html
   static_files: static/rpc_relay.html
   upload: static/rpc_relay.html

 Hope that helps.

 On Mon, Dec 29, 2008 at 7:21 AM, benzrad dab...@gmail.com wrote:

  dear sir,
  i also want to add google friend connect onto my GAE, but where
  directory should i place the 2 file google asked for uploading, ie.,
  canvas.htmlrpc_relay.html ? i place them on the root folder of my
  app, also place them in the static folder with other html files, but
  neither working, ie, the setup process of google friend connect can't
  find them. where and how to setup in the py file to let the 2 html
  files can be found on root folder? i absolutely bland on python code,
  but i try to learn.p help me out.

 --
 Regards,
 Shalin Shekhar Mangar.
--~--~-~--~~~---~--~~
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: Download a copy of my application's source code.

2009-01-03 Thread David Symonds

On Sun, Jan 4, 2009 at 12:45 PM, Diego di...@heyboyo.com wrote:

 Unfortunately (for me) my hard drive crashed and I did not have a
 backup of my application's source. Is it possible to get a copy of the
 files from GAE?

Nope. Make backups and/or use source control next time.


Dave.

--~--~-~--~~~---~--~~
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: Download a copy of my application's source code.

2009-01-03 Thread Diego

Thanks for the reply, David.

Yep, my mistake. It was a tiny app, but still could have avoided re-
writing it.

On Jan 4, 1:15 pm, David Symonds dsymo...@gmail.com wrote:
 On Sun, Jan 4, 2009 at 12:45 PM, Diego di...@heyboyo.com wrote:
  Unfortunately (for me) my hard drive crashed and I did not have a
  backup of my application's source. Is it possible to get a copy of the
  files from GAE?

 Nope. Make backups and/or use source control next time.

 Dave.
--~--~-~--~~~---~--~~
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: Working with mappings

2009-01-03 Thread Rodrigo Moraes

On Sat, Jan 3, 2009 at 11:16 PM, MajorProgamming wrote:
 What's passed to the article_id parameter?

The digits extracted from the matched url - using the rule regexp as below:

 ('/article/([\d]+)', Article)

 How does GAE know what to pass?

It simply passes all values captured by the regexp. Your handler
method will receive as many values as the regex captures. Take a look
at google.appengine.ext.webapp.__init__.py: the magic happens in
WSGIApplication.__call__

For a bit more sophisticated / flexible routing mechanisms, see Routes
or Werkzeug's routing:

http://routes.groovie.org/
http://werkzeug.pocoo.org/documentation/routing

-- rodrigo

--~--~-~--~~~---~--~~
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: Django Syndication Troubles

2009-01-03 Thread Bobby

I haven't tried the ZipImport approach so i can't help there but I was
able to get Syndication to work using the AppEngine patch:
http://code.google.com/p/app-engine-patch/

By following the Django syndication docs:
http://docs.djangoproject.com/en/dev/ref/contrib/syndication/?from=olddocs

It worked out of the box so thumbs up for the AppEngine Django Patch.

Bobby

On Dec 24 2008, 3:19 am, Dylan Lorimer write2dy...@gmail.com wrote:
 Hi,

 So I thought I'd take a stab at adding in the syndication framework
 into my GAE Django app. However, I'm running into an error within the
 feeds.py where it looks like it's trying to use class from the sites
 contrib package.

 Guess my question is whether anyone has had any success in getting
 syndication to work with Django 1.0 on the GAE using the ZipImport
 method for Django.

 Cheers,
 dylan

 Stack Trace:
  --  -- --

 Traceback (most recent call last):
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 2443, in _HandleRequest
     base_env_dict=env_dict)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 353, in Dispatch
     base_env_dict=base_env_dict)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 1869, in Dispatch
     self._module_dict)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 1787, in ExecuteCGI
     reset_modules = exec_script(handler_path, cgi_path, hook)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 1685, in
 ExecuteOrImportScript
     script_module.main()
   File /Users/edylan/Desktop/JaceyPhotographs2/main.py, line 48, in
 main
     util.run_wsgi_app(application)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/ext/webapp/util.py, line 76, in run_wsgi_app
     result = application(env, _start_response)
   File /Users/edylan/Desktop/JaceyPhotographs2/django.zip/django/core/
 handlers/wsgi.py, line 239, in __call__
   File /Users/edylan/Desktop/JaceyPhotographs2/django.zip/django/core/
 handlers/base.py, line 67, in get_response
     try:
   File /Users/edylan/Desktop/JaceyPhotographs2/django.zip/django/
 middleware/common.py, line 57, in process_request
     def process_response(self, request, response):
   File /Users/edylan/Desktop/JaceyPhotographs2/django.zip/django/core/
 urlresolvers.py, line 244, in resolve
   File /Users/edylan/Desktop/JaceyPhotographs2/django.zip/django/core/
 urlresolvers.py, line 180, in resolve
     raise ImproperlyConfigured, Error while importing URLconf %r: %s
 % (self.urlconf_name, e)
   File /Users/edylan/Desktop/JaceyPhotographs2/django.zip/django/core/
 urlresolvers.py, line 178, in resolve
     except ValueError, e:
   File /Users/edylan/Desktop/JaceyPhotographs2/django.zip/django/core/
 urlresolvers.py, line 197, in _get_urlconf_module
     return self._resolve_special('404')
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 847, in decorate
     return func(self, *args, **kwargs)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 1443, in load_module
     return self.FindAndLoadModule(submodule, fullname, search_path)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 847, in decorate
     return func(self, *args, **kwargs)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 1351, in
 FindAndLoadModule
     description)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 847, in decorate
     return func(self, *args, **kwargs)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 1301, in
 LoadModuleRestricted
     description)
   File 

[google-appengine] Re: SMS: through python AIM/gtalk libraries?

2009-01-03 Thread mclovin

Have you tried SMS through aim with imified?

On Jan 3, 1:44 pm, satish satish...@gmail.com wrote:
 I am interested too. I played around with IM integration using the
 services fromhttp://new.imified.com/and it worked fine for simple
 functionality.

 On Jan 1, 2:08 pm, mclovin hanoo...@gmail.com wrote:

  I wanted to test out some SMS web app, where I can communicate w/ the
  application from my phone. I was wondering if the App Engine allows me
  to do this through the use of either AIM libraries or Gtalk Libraries
  written in python.

  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] 500 Error on deploy

2009-01-03 Thread Bobby

Am i the only one right now who's getting a 500 Error on deploy?

...
Cloning 154 static files.
Cloned 100 files.
Cloning 370 application files.
Cloned 100 files.
Cloned 200 files.
Cloned 300 files.
2009-01-04 01:33:38,578 INFO appcfg.py:1209 Files to upload: {'feeds/
feeds.py': '3d018dd2_f1e9a617_f12dfc55_93f0fcb2_192d0d69'}
Uploading 1 files.
2009-01-04 01:33:38,578 INFO appcfg.py:1318 Uploading file 'feeds/
feeds.py'
Closing update.
2009-01-04 01:33:40,266 ERROR appcfg.py:1334 An unexpected error
occurred. Aborting.
Rolling back the update.
Error 500: --- begin server output ---

Server Error (500)
A server error has occurred.
--- end server output ---
--~--~-~--~~~---~--~~
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: 500 Error on deploy

2009-01-03 Thread Bobby

In the app's dashboard it tells me that i'm exceeding a quota:
Your application is exceeding a quota: App Config Service Config App
Call Count

But on the quota details page it shows everything is ok. Does anyone
have any insight on what's going on? If not i guess i have to wait
until the quotas reset in an hour so.

Bobby

On Jan 4, 1:35 am, Bobby bobbysoa...@gmail.com wrote:
 Am i the only one right now who's getting a 500 Error on deploy?

 ...
 Cloning 154 static files.
 Cloned 100 files.
 Cloning 370 application files.
 Cloned 100 files.
 Cloned 200 files.
 Cloned 300 files.
 2009-01-04 01:33:38,578 INFO appcfg.py:1209 Files to upload: {'feeds/
 feeds.py': '3d018dd2_f1e9a617_f12dfc55_93f0fcb2_192d0d69'}
 Uploading 1 files.
 2009-01-04 01:33:38,578 INFO appcfg.py:1318 Uploading file 'feeds/
 feeds.py'
 Closing update.
 2009-01-04 01:33:40,266 ERROR appcfg.py:1334 An unexpected error
 occurred. Aborting.
 Rolling back the update.
 Error 500: --- begin server output ---

 Server Error (500)
 A server error has occurred.
 --- end server output ---
--~--~-~--~~~---~--~~
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: 500 Error on deploy

2009-01-03 Thread Bobby

The AppEngine giveth and it taketh away.

Bobby

On Jan 4, 1:48 am, Bobby bobbysoa...@gmail.com wrote:
 In the app's dashboard it tells me that i'm exceeding a quota:
 Your application is exceeding a quota: App Config Service Config App
 Call Count

 But on the quota details page it shows everything is ok. Does anyone
 have any insight on what's going on? If not i guess i have to wait
 until the quotas reset in an hour so.

 Bobby

 On Jan 4, 1:35 am, Bobby bobbysoa...@gmail.com wrote:



  Am i the only one right now who's getting a 500 Error on deploy?

  ...
  Cloning 154 static files.
  Cloned 100 files.
  Cloning 370 application files.
  Cloned 100 files.
  Cloned 200 files.
  Cloned 300 files.
  2009-01-04 01:33:38,578 INFO appcfg.py:1209 Files to upload: {'feeds/
  feeds.py': '3d018dd2_f1e9a617_f12dfc55_93f0fcb2_192d0d69'}
  Uploading 1 files.
  2009-01-04 01:33:38,578 INFO appcfg.py:1318 Uploading file 'feeds/
  feeds.py'
  Closing update.
  2009-01-04 01:33:40,266 ERROR appcfg.py:1334 An unexpected error
  occurred. Aborting.
  Rolling back the update.
  Error 500: --- begin server output ---

  Server Error (500)
  A server error has occurred.
  --- end server output  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: 500 Error on deploy

2009-01-03 Thread Alexander Kojevnikov

There's a limit on the number of app updates per day:
http://is.gd/ew6Q

On Jan 4, 5:48 pm, Bobby bobbysoa...@gmail.com wrote:
 In the app's dashboard it tells me that i'm exceeding a quota:
 Your application is exceeding a quota: App Config Service Config App
 Call Count

 But on the quota details page it shows everything is ok. Does anyone
 have any insight on what's going on? If not i guess i have to wait
 until the quotas reset in an hour so.

 Bobby

 On Jan 4, 1:35 am, Bobby bobbysoa...@gmail.com wrote:

  Am i the only one right now who's getting a 500 Error on deploy?

  ...
  Cloning 154 static files.
  Cloned 100 files.
  Cloning 370 application files.
  Cloned 100 files.
  Cloned 200 files.
  Cloned 300 files.
  2009-01-04 01:33:38,578 INFO appcfg.py:1209 Files to upload: {'feeds/
  feeds.py': '3d018dd2_f1e9a617_f12dfc55_93f0fcb2_192d0d69'}
  Uploading 1 files.
  2009-01-04 01:33:38,578 INFO appcfg.py:1318 Uploading file 'feeds/
  feeds.py'
  Closing update.
  2009-01-04 01:33:40,266 ERROR appcfg.py:1334 An unexpected error
  occurred. Aborting.
  Rolling back the update.
  Error 500: --- begin server output ---

  Server Error (500)
  A server error has occurred.
  --- end server output ---
--~--~-~--~~~---~--~~
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: 500 Error on deploy

2009-01-03 Thread Bobby

And on the third day the AppEngine createth the datastore and it saw
that it was good. It said unto it, go free and distributeth thyself
and thy tables into multiple server nodes so as to increase
concurrency and throughput. You shall throw exceptions on the fifth
day of the week and call it the sabbath.

And when the fifth day came, exceptions were thrown and all rejoiced.

Bobby

On Jan 4, 1:55 am, Bobby bobbysoa...@gmail.com wrote:
 The AppEngine giveth and it taketh away.

 Bobby

 On Jan 4, 1:48 am, Bobby bobbysoa...@gmail.com wrote:



  In the app's dashboard it tells me that i'm exceeding a quota:
  Your application is exceeding a quota: App Config Service Config App
  Call Count

  But on the quota details page it shows everything is ok. Does anyone
  have any insight on what's going on? If not i guess i have to wait
  until the quotas reset in an hour so.

  Bobby

  On Jan 4, 1:35 am, Bobby bobbysoa...@gmail.com wrote:

   Am i the only one right now who's getting a 500 Error on deploy?

   ...
   Cloning 154 static files.
   Cloned 100 files.
   Cloning 370 application files.
   Cloned 100 files.
   Cloned 200 files.
   Cloned 300 files.
   2009-01-04 01:33:38,578 INFO appcfg.py:1209 Files to upload: {'feeds/
   feeds.py': '3d018dd2_f1e9a617_f12dfc55_93f0fcb2_192d0d69'}
   Uploading 1 files.
   2009-01-04 01:33:38,578 INFO appcfg.py:1318 Uploading file 'feeds/
   feeds.py'
   Closing update.
   2009-01-04 01:33:40,266 ERROR appcfg.py:1334 An unexpected error
   occurred. Aborting.
   Rolling back the update.
   Error 500: --- begin server output ---

   Server Error (500)
   A server error has occurred.
   --- end server output  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: 500 Error on deploy

2009-01-03 Thread Bobby

Alexander, that's what i figured, i guess i have to wait. Thanks.

Bobby

On Jan 4, 2:04 am, Bobby bobbysoa...@gmail.com wrote:
 And on the third day the AppEngine createth the datastore and it saw
 that it was good. It said unto it, go free and distributeth thyself
 and thy tables into multiple server nodes so as to increase
 concurrency and throughput. You shall throw exceptions on the fifth
 day of the week and call it the sabbath.

 And when the fifth day came, exceptions were thrown and all rejoiced.

 Bobby

 On Jan 4, 1:55 am, Bobby bobbysoa...@gmail.com wrote:



  The AppEngine giveth and it taketh away.

  Bobby

  On Jan 4, 1:48 am, Bobby bobbysoa...@gmail.com wrote:

   In the app's dashboard it tells me that i'm exceeding a quota:
   Your application is exceeding a quota: App Config Service Config App
   Call Count

   But on the quota details page it shows everything is ok. Does anyone
   have any insight on what's going on? If not i guess i have to wait
   until the quotas reset in an hour so.

   Bobby

   On Jan 4, 1:35 am, Bobby bobbysoa...@gmail.com wrote:

Am i the only one right now who's getting a 500 Error on deploy?

...
Cloning 154 static files.
Cloned 100 files.
Cloning 370 application files.
Cloned 100 files.
Cloned 200 files.
Cloned 300 files.
2009-01-04 01:33:38,578 INFO appcfg.py:1209 Files to upload: {'feeds/
feeds.py': '3d018dd2_f1e9a617_f12dfc55_93f0fcb2_192d0d69'}
Uploading 1 files.
2009-01-04 01:33:38,578 INFO appcfg.py:1318 Uploading file 'feeds/
feeds.py'
Closing update.
2009-01-04 01:33:40,266 ERROR appcfg.py:1334 An unexpected error
occurred. Aborting.
Rolling back the update.
Error 500: --- begin server output ---

Server Error (500)
A server error has occurred.
--- end server output  Hide quoted text -

   - Show quoted text -- 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] serverside reverse geocoding

2009-01-03 Thread niklasr

I save one geopt per entity and want to display its location
breadcrumb from its view  i.e. localityname  administrativeareaname 
nation
The only way seems to be gmaps javascript api as no gae serverside
function is available for reverse geocoding.

Can we expect serverside reverse geocoding from future gae api?
Is setting page content with javascript less SEO-friendly (I think so)
as crawlers may not register javascript content?
Any other tips on locations breadcrumb navigation?

Thank you
Niklas
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---