Re: [google-appengine] how does a user become an admin?

2012-12-19 Thread Emmanuel Mayssat
Apparently on the dev server, I need to login using /_ah/login and select
login as administrator.
That creates a dev_appserver_login cookie.

Not sure how that works if you have your own login facility as I do
How can my user be admin when using my own login facility?

It may be that you have to use the google appengine user model...

Apparently no one on this mailing list knows how to verify
handlers:
- url: /admin/.*
  script: main.app
  login: admin  -- here !

Will try stackoverflow !


On Tue, Dec 18, 2012 at 6:39 PM, Thiago Catoto tcat...@gmail.com wrote:

 admn == owner !?

 o.O
 On Dec 19, 2012 12:35 AM, Emmanuel Mayssat emays...@gmail.com wrote:

 I found the permission page for the application hosted at google.
 But how do I set a user as admin on a devel server?

 --
 E




 On Mon, Dec 17, 2012 at 2:36 PM, Gianni giann...@gmail.com wrote:

 the admin users are listed in 'Permissions' page
 -- Gianni



 On Mon, Dec 17, 2012 at 9:38 PM, Emmanuel Mayssat emays...@gmail.comwrote:

 handlers:
 - url: /admin/.*
   script: main.app
   login: admin


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


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

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


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



Re: [google-appengine] how does a user become an admin?

2012-12-18 Thread Emmanuel Mayssat
I found the permission page for the application hosted at google.
But how do I set a user as admin on a devel server?

--
E




On Mon, Dec 17, 2012 at 2:36 PM, Gianni giann...@gmail.com wrote:

 the admin users are listed in 'Permissions' page
 -- Gianni



 On Mon, Dec 17, 2012 at 9:38 PM, Emmanuel Mayssat emays...@gmail.comwrote:

 handlers:
 - url: /admin/.*
   script: main.app
   login: admin


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


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



[google-appengine] ancestor vs ReferenceProperty

2012-12-18 Thread Emmanuel Mayssat
I am having difficulties understanding the benefits of using ancestors for 
an object.
What is the difference with using instead a ReferenceProperty called 
_parent ?

--
Emmanuel

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/k0H10mXOXjoJ.
To 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] db versus ndb

2012-12-18 Thread Emmanuel Mayssat
ndb is the next version of db.
is there any reason of using db.Models anymore?
I just went through the doc.
From a progammer perspective is there a difference between db and ndb?
--
E

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



[google-appengine] how does a user become an admin?

2012-12-17 Thread Emmanuel Mayssat
I downloaded an Google AppEngine from GitHub.
In the app.yml, I see directives like:

handlers:
- url: /admin/.*
  script: main.app
  login: admin

What is required for a user to be considered admin?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/hEIXk_oVWUQJ.
To 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] User authentication in GAE

2012-12-07 Thread Emmanuel Mayssat
[Following on the webapp2 vs django thread]

Is there a built in authentication in GAE (other than just 'gmail' users)?
In the previous thread I read that facebook, twitter, and ... users can
automatically login your application.
Is that true? I assume you are referring to Oauth.
But AFAIK, for facebook, I have to use the facebook-sdk (python). I assume
for twitter there is a module as well.

For webapp2, I implemented my account creation and session management.
Most websites who use facebook connect also offer traditional account
creation.
I am not sure on how to make it all work together.
Some user will be using facebook connect, others twitter 'connect', others
traditional account creation

As anyone worked on the whole shebang account creation?



[from previous thread]

webapp2 doesn't provide a 'user account management' thing. App Engine
is something much more than just app instances hosting.

Take for instance built-in Users/authentication service. Using that
you can make it so that any user on the planet with Google Account,
OpenID, OAuth 1 or OAuth 2 (via Cloud Endpoints) can sign in to your
app, w/o you creating an account for them beforehand. All you'd have
to do is something like assign permissions (if there's a permission
concept in your app). So, Django's standalone user account management
doesn't not fully fit into this thing.

You could go ahead and let your users sign in with their twitter,
facebook, yahoo and what have you accounts. Who uses passwords these
days, anyway :)

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



Re: [google-appengine] Google app engine and lock-in

2012-12-05 Thread Emmanuel Mayssat
I am using python.
I assume Cape Dwarf is for the java version of the app engine, isn't it?


On Wed, Dec 5, 2012 at 2:52 AM, Francois MASUREL masu...@mably.com wrote:

 Great news !

 Does any hosting solution based on CapeDwarf exist or is planned ?

 François



 On Wed, Dec 5, 2012 at 11:41 AM, Ales Justin ales.jus...@gmail.comwrote:

 As promised, and a bit of pr ...
 * http://in.relation.to/Bloggers/FirstCapeDwarfRelease

 -Ales

 On Nov 23, 2012, at 11:54 PM, Ales Justin ales.jus...@gmail.com wrote:

 Sounds interesting... Any idea about the costs ?


 Deployment and setup wise there are no costs, as it's all open source,
 hence you can build and maintain it yourself. Not that I suggest that --
 we make our $ out of support. :-)

 But obviously if you need any serious environment, you'll need some
 hardware.

 But a note of warning, this is a new project, hence not yet around at all
 - just about to do initial release,
 and we definitely welcome community participation.

 Otoh, we take big pride in testing things, and we do try to think
 scalable all the time.
 Things are implemented to run in a cluster / cloud, while we admit there
 are some design issues we need to re-evaluate.

 I'll push some announcement blog on Monday,
 with more detailed instructions and binaries on how to use things.

 I suggest you give it a spin and let us know.

 -Ales

 On Thursday, November 22, 2012 9:12:44 PM UTC+1, Ales Justin wrote:

 Wrt lock-in, at JBoss/RedHat we're working on this new project:
 * http://www.jboss.org/**capedwarf http://www.jboss.org/capedwarf

 I'm just about to do initial Beta1 release in the next few days.
 Perhaps give it a spin and let us know any feedback.

 -Ales

 On Wednesday, November 21, 2012 5:26:11 AM UTC+1, Emmanuel Mayssat wrote:

 I am aware of AppScale
 http://appscale.cs.ucsb.edu/

 But is the backend (database) of google app engine also supported?
 If so which one is it?
 (AppScale support memcachedb, cassandra, mysql, mongodb, and a few
 others)
 http://www.youtube.com/watch?**v=ebnh3D79xUshttp://www.youtube.com/watch?v=ebnh3D79xUs

 Regards,
 E


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



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


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


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



Re: [google-appengine] Re: GAE app with images stored on S3

2012-12-05 Thread Emmanuel Mayssat
At this point, Google Cloud Storage integration with GAE is 
experimental...
Whatever that means!
In other words, the interface is changing.
Not sure I want to deal with that.
(I will look at it more closely though)
Thanks,


On Wed, Dec 5, 2012 at 11:40 AM, alex a...@cloudware.it wrote:

 Have you guys ever considered Google Cloud Storage? We used to use S3
 too, a couple years back, but eventually transfered all assets and
 whatnot to GCS for various reasons. It's an awesome service.

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

 On Wed, Dec 5, 2012 at 8:27 PM, Alexander Trakhimenok
 alexander.trakhime...@gmail.com wrote:
  We've implemented storing images to S3 from GAE for
  http://www.myclasses.org/ and pretty happy with results.
 
  There is a 2 factors problem with serving images from GAE's blob-store:
 
  Generation of get_serving_url takes a while. If you have many images to
  serve on a single page (e.g. list if classes and their avatars in our
 case)
  it can really slow your code and as result cost you money. So you don't
 want
  to do it on every page rendering.
  We tried to cache the URL returned by get_serving_url() but it occurred
 it
  expires in a while (may be days or weeks) and there is no clear
  understanding when exactly and how to invalidate the URLs or HTML of
 pages
  we generate  cached in DB.
 
  With S3 we can have static  stable URL what is perfect for us. And in
  conjunction with CloudFrount it works really fast - we see noticeable
  improvements in client pages rendering by browsers.
 
  We used boto library to work with S3 that is not coupled with Django in
  any way (as far as I know) so you can try it as well.
 
  Good luck,
 
  Alex
  Founder  Lead Dev @ Petamatic.com
 
  On Tuesday, 4 December 2012 16:32:31 UTC-4, Emmanuel Mayssat wrote:
 
  They are several discussion about storing images in database (blob)
 versus
  filesystem (s3).
  Did anyone implement an app on GAE with an image interface on S3?
 
  I am not even sure where to start
 
  Django has a
  http://django-storages.readthedocs.org/en/latest/index.html
  but I use webapp2
 
  Thanks for any info,
 
  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  To view this discussion on the web visit
  https://groups.google.com/d/msg/google-appengine/-/GCtIWJ99pIcJ.
 
  To post to this group, send email to google-appengine@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.

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



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



Re: [google-appengine] Re: GAE app with images stored on S3

2012-12-05 Thread Emmanuel Mayssat
Ok, I am considering the boto package/module/egg.
I can easily download it from github, but how can I install it with GAE?
It obviously should be in my app files uploaded to GAE.
How did you install boto in your app directory?

Also if you have sample code (upload + fetch) that would be awesome!

My understanding is that the uploaded file should go to GAE first and then
AWS S3.
Not sure how the boto s3 code works at this point. But clarification would
be welcome.

Thanks,


On Wed, Dec 5, 2012 at 11:27 AM, Alexander Trakhimenok 
alexander.trakhime...@gmail.com wrote:

 We've implemented storing images to S3 from GAE for
 http://www.myclasses.org/ and pretty happy with results.

 There is a 2 factors problem with serving images from GAE's blob-store:

1. Generation of get_serving_url takes a while. If you have many
images to serve on a single page (*e.g. list if classes and their
avatars in our case*) it can really slow your code and as result cost
you money. So you don't want to do it on every page rendering.
2. We tried to cache the URL returned by get_serving_url() but it
occurred it expires in a while (may be days or weeks) and there is no clear
understanding when exactly and how to invalidate the URLs or HTML of pages
we generate  cached in DB.

 With S3 we can have static  stable URL what is perfect for us. And
 in conjunction with CloudFrount it works really fast - we see noticeable
 improvements in client pages rendering by browsers.

 We used boto library to work with S3 that is not coupled with Django in
 any way (*as far as I know*) so you can try it as well.

 Good luck,

 Alex
 Founder  Lead Dev @ Petamatic.com

 On Tuesday, 4 December 2012 16:32:31 UTC-4, Emmanuel Mayssat wrote:

 They are several discussion about storing images in database (blob)
 versus filesystem (s3).
 Did anyone implement an app on GAE with an image interface on S3?

 I am not even sure where to start

 Django has a
 http://django-storages.**readthedocs.org/en/latest/**index.htmlhttp://django-storages.readthedocs.org/en/latest/index.html
 but I use webapp2

 Thanks for any info,

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

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


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



[google-appengine] GAE app with images stored on S3

2012-12-04 Thread Emmanuel Mayssat
They are several discussion about storing images in database (blob) versus 
filesystem (s3).
Did anyone implement an app on GAE with an image interface on S3?

I am not even sure where to start

Django has a 
http://django-storages.readthedocs.org/en/latest/index.html
but I use webapp2

Thanks for any info,

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/hlK5Pyn3GlEJ.
To 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] webapp2 versus django on GAE

2012-12-04 Thread Emmanuel Mayssat
GAE can be used with webapp2 or django.
I have been using webapp2 for a short while.
I intend to do a 'serious' application (at least for now I am developing 
the skills!)

I have a prototype running on webapp2.

How easy/difficult is it to migrate from webapp2 to django?
What are the benefits?

Are all the django app running on GAE, or only a subset?
Should I care?

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



Re: [google-appengine] Re: link - login page (if not logged already logged in) -- destination page

2012-11-24 Thread Emmanuel Mayssat
I was hoping for something more creative ;-)
I guess I will use one of those methods

Thanks,


On Sat, Nov 24, 2012 at 1:34 PM, JH ja...@mhztech.com wrote:

 You could use a session and store the redirect page in a session variable
 if they are redirected to a login page.  Then send to that page after a
 successful login.  Or you could embed the redirect page in your urls.  This
 should be a trivial issue to solve.


 On Friday, November 23, 2012 7:01:55 PM UTC-6, Emmanuel Mayssat wrote:

 I would like to send emails with url pointing to specific pages/urls in
 my app.
 When clicking on the link, users may not be logged in or even signed up.
 I would like the link to redirect them to the signin/singup page if
 required and when completed to go to the destination page as specified in
 the link.

 How do you recommend I do that with python/webapp2?

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

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


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



[google-appengine] link - login page (if not logged already logged in) -- destination page

2012-11-23 Thread Emmanuel Mayssat
I would like to send emails with url pointing to specific pages/urls in my 
app.
When clicking on the link, users may not be logged in or even signed up.
I would like the link to redirect them to the signin/singup page if 
required and when completed to go to the destination page as specified in 
the link.

How do you recommend I do that with python/webapp2? 

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



[google-appengine] How to find if a friendship exist?

2012-11-20 Thread Emmanuel Mayssat
I have a model as follow

class User(db.Model):
   name = db.StringProperty(required=True)

class Friendship(db.Model):
   user1 = db.ReferenceProperty(required=True, 
collection_name=user1_set)
   user2 = db.ReferenceProperty(required=True, 
collection_name=user2_set)

I can create users and friendship relationship between them.
Now the question is:
How can I find if to people are already friends?

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



[google-appengine] Google app engine and lock-in

2012-11-20 Thread Emmanuel Mayssat
I am aware of AppScale
http://appscale.cs.ucsb.edu/

But is the backend (database) of google app engine also supported?
If so which one is it?
(AppScale support memcachedb, cassandra, mysql, mongodb, and a few others)
http://www.youtube.com/watch?v=ebnh3D79xUs

Regards,
E

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



Re: [google-appengine] Re: Sending emails from gae using mailgun

2012-11-12 Thread Emmanuel Mayssat
I would say mailgun can do that!
Since you send the text of the email in the http request.
1 generate the content of that email using a template (jinja2) locally (on
gae) and send it to mailgun (or other) !
Simple!
Have a look at
t = jinja_env.get_template(template)
email_content = t.render(parameters)

Now the problem I have is sending emails asynchronously.
Can anyone send me some code to do this?
(I saw some come about RPC and am wondering what to do with the callback,
when I don't really need it , etc..)
REgards,
--
E



On Mon, Nov 12, 2012 at 11:45 AM, David Hardwick 
david.hardw...@bettercloud.com wrote:

 Do any of these email services offer template based emails, where the
 marketing department can control the copy with some ${thisIsAVariable}
 inserts into the copy, and the development team just needs to send over the
 variables to the email?

 ExactTarget has this but I was just curious if others had any other
 Vendors that also provide this feature.  That way the marketing team can
 test different copy in the subject and body to increase conversion rates on
 opening and clicking through without requiring a deployment to update the
 email template buried in the code.

 Rock on,
   -Hardwick



 On Friday, November 9, 2012 4:30:46 PM UTC-5, Emmanuel Mayssat wrote:

 I am writing an app that requires email to be sent (notifications)
 I am contemplating using mailgun as a service.

 1/ I s there a email web service you recommended?

 I can send emails through mailgun using the 'request' python module

 def send_simple_message():
 data = {from: Excited User m...@samples.mailgun.org,
   to: [t...@gmail.com, to...@outlook.com],
 #
   subject: [https] Hello Mama (REQUEST),
   text: Testing some Mailgun awesomness!}
 return requests.post(
 mailgun_url,
 auth = HTTPBasicAuth(username, password),
   # -- or simply auth=(username, password)
 data = data )

 I can also send emails from the shell using urllib2 (More complex because
 of https)

 Cutting and pasting my urllib2 code in my gae app doesn't report any
 error or anything else

 2/ Can email be send when using the local gae server or the app have to
 be fully deployed?

 3/ Is there a way to send emails through google app engine? (including
 for users that do not have gmail accounts)

 4/ I cannot make sense of the gae policy as far as sending emails
 What are administrator password?
 Where are the administrator accounts?
 My domain is not hosted on gae.
 I am just using gae for test right now.

 Regards



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

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


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



[google-appengine] Sending emails from gae using mailgun

2012-11-09 Thread Emmanuel Mayssat
I am writing an app that requires email to be sent (notifications)
I am contemplating using mailgun as a service.

1/ I s there a email web service you recommended?

I can send emails through mailgun using the 'request' python module

def send_simple_message():
data = {from: Excited User m...@samples.mailgun.org,
  to: [t...@gmail.com, t...@outlook.com], 
#
  subject: [https] Hello Mama (REQUEST),
  text: Testing some Mailgun awesomness!}
return requests.post(
mailgun_url,
auth = HTTPBasicAuth(username, password),   
# -- or simply auth=(username, password)
data = data )

I can also send emails from the shell using urllib2 (More complex because 
of https)

Cutting and pasting my urllib2 code in my gae app doesn't report any error 
or anything else

2/ Can email be send when using the local gae server or the app have to be 
fully deployed?

3/ Is there a way to send emails through google app engine? (including for 
users that do not have gmail accounts)

4/ I cannot make sense of the gae policy as far as sending emails
What are administrator password?
Where are the administrator accounts?
My domain is not hosted on gae.
I am just using gae for test right now.

Regards



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/2E2UOMqqL9IJ.
To 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] GAE and facebook LIKE button

2012-10-16 Thread Emmanuel Mayssat
I used GAE to setup my landing page. I have a twitter, G+, and facebook 
like button.

To my surprise, when I click the like button:
1/ I don't see any picture
2/ The description is Description
3/ The URL is ok

I looked at how to add information for a page that is liked.
According to Facebook, I need to add meta tags in the html-head of the page.
http://developers.connect.facebook.com/docs/reference/plugins/like/

To add a picture, I need to set my Open Graph Tags.

meta property=og:image content=http://.../myimage.jpg/ 


But still, doesn't work.

I looked at the the 'Debugger'

http://developers.facebook.com/tools/debug

entered my appspot.com URL 


To my surprise my landing page is running in a frame.

http://developers.facebook.com/tools/debug/og/echo?q=http%3A%2F%2Fwww.reciprocityweb.com%2F


So the html-head is actually generated by Google App Engine.

In that html-head, I see that 

[...]

head

titleReciprocity-Ring/title
meta name=description content=Description

/head

which is actually what appears in when someone clicks on the LIKE button.

Q: Is is possible to change the html-head of the automatically generated 
GAE page?
Q: How can I implement a LIKE button in a GAE html-frame?

Regards,
--
Emmanuel




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/5PHgPNNbNqIJ.
To 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] GAE and social buttons (FB like in particular)

2012-10-16 Thread Emmanuel Mayssat

Hello,

I am using GAE as a landing page for my app (to be developed on GAE soon 
after)
I am trying to add social button (twitter, G+, facebook like)
It turns out for the FB like, I need to enter open graph tags in the 
html-head
http://developers.facebook.com/docs/reference/plugins/like/

To my surprise, my GAE templates are running in a frame of an 
GAE-autogenerated html document.
http://developers.facebook.com/tools/debug/og/object?q=reciprocity-ring-001.appspot.com
So the FB like button tries to access the open graphs tags in the wrong 
html-head, i.e. it looks at the GAE-autogenerated head.

1/ How can I edit the GAE http-head

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN 
http://www.w3.org/TR/html4/strict.dtd;
html
head
meta http-equiv=content-type content=text/html; charset=utf-8
titleReciprocity-Ring /title
meta name=description content=Description
meta name=keywords content=Keywords
/head
frameset rows=100%,* border=0
frame src=http://reciprocity-ring-001.appspot.com/; frameborder=0
frame frameborder=0 noresize
/frameset
!-- pageok --!-- 03 --!-- --
/html


2/ How can I work around this issue without editing the above file?

Emmanuel

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/MV_vL7Rn6t8J.
To 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.