Questions tagged [gae-python27]

Google App Engine Python Runtime Environment.

App Engine executes Python application code using a pre-loaded Python interpreter in a safe "sandboxed" environment. The python app receives web requests, performs work, and sends responses by interacting with this environment.

A Python web app interacts with the App Engine web server using the WSGI protocol, so apps can use any WSGI-compatible web application framework. App Engine includes a simple web application framework, called webapp2, to make it easy to get started. For larger applications, mature third-party frameworks, such as Django, work well with App Engine.

33 questions
3
votes
2 answers

Google App Engine configuring Endpoints API

I have a problem configuring Endpoints API. Any code i use, from my own, to google's examples on site fail with the same traceback WARNING 2016-11-01 06:16:48,279 client.py:229] no scheduler thread, scheduler.run() will be invoked by…
2
votes
1 answer

Arabic text showing as black squares in reportlab python

I am generating pdf using reportlab library for python27 project. The arabic texts are not printing properly and instead i see these tiny black squares. I tried following this solution: ReportLab: Arabic characters are displayed as black squares.…
mike
  • 33
  • 8
2
votes
1 answer

GAE python: how to use delete_serving_url

First I put image to storage: import cloudstorage as gcs ... path = '/bucket/folder/image.jpg' with gcs.open(path, 'w') as f: f.write(data) Then I get serving url: url = images.get_serving_url(None, filename='/gs{}'.format(self.path), …
glmvrml
  • 1,612
  • 2
  • 14
  • 31
2
votes
1 answer

Unit Testing Inbound Mail Service on Google App Engine

I have a handler in my application for processing inbound emails. Is there some way to unit test that functionality? I don't see anything in the documentation.
Brandon
  • 2,886
  • 3
  • 29
  • 44
1
vote
0 answers

Python Get index of Tuple with using endswith

Is there a to give me the index of the tuple when I use endswith function. eg: lst = ('jpg','mp4','mp3') b = "filemp4" If I use b.endswith(lst), this give me True or false. but I need to find the index of 'lst' that match's the the string provided…
1
vote
0 answers

Python27-try/except issue

Why the else function not running after below, it can be saved: def OnButtonSavedata(default): Number=numberctrl.GetValue() if len(Number)==9: try: float(Number) except ValueError: wx.MessageBox('Just…
Norbulus
  • 23
  • 5
1
vote
1 answer

Can't Change Jetbrains Pycharm python interpreter from 3.6 to 2.7

I'm using pycharm community edition for learning. and I need to change the project interpreter to 2.7. I have linux ubuntu 18.04 and I downloaded and installed python 2.7.15, but I just can't find the interpreter. Can anyone help with finding it?…
A.naam
  • 375
  • 1
  • 5
  • 16
1
vote
1 answer

Set an attribute on a request before it's handled

My App Engine application has a custom user model. This model is accessed frequently in the application code. I would like to simplify the code by injecting a model instance into each authenticated request before the request is handled (similar to…
snakecharmerb
  • 47,570
  • 11
  • 100
  • 153
1
vote
0 answers

Flask with python selenium

When i run my first file newone.py at that time flask server is open and the i press one button and my second file test.py is call and run my function script and test my website testing are complete successful but one file is generated .html but its…
1
vote
1 answer

Running script in Python command line

I am quite new to Python. I have python27 installed in my PC(windows). I am trying to run a script in python command line. My script was named "Script". And that contains import sys # Load a library module print(sys.platform) print(2 ** 100) #…
Rashed
  • 11
  • 1
1
vote
0 answers

Is Disabling equivalent to deleting Google AppEngine API from the Project?

I deployed API with a different name earlier. This API shows as a different API, under my API Manager Dashboard. I disabled the old API for now. Does this have the same effect as deleting this API?
sam
  • 777
  • 2
  • 6
  • 19
1
vote
1 answer

Should Cloud Endpoints Frameworks library be included when deploying?

Quickstart has a step to include the endpoint library under lib directory. When deploying apparently the packages that are getting installed in this directory are conflicting with AppEngine environment. After "Generating the OpenAPI configuration…
sam
  • 777
  • 2
  • 6
  • 19
1
vote
1 answer

Refactoring Web App code when API gets added later

I have a Web Application for which we are adding an API now. I am looking for best practices to keep in mind while working on this. I am considering these factors: DRY: Avoid redundancy (to the extent possible). Take for example, a part of the code…
user362953
  • 435
  • 2
  • 13
1
vote
1 answer

How to delete firebase email authentication users in python?

Currently I have email authenticated users on my firebase account using the new authentication api. Currently I am not using the real time database to store my users I am using the default email and password to authentication store user information.…
1
vote
1 answer

How to migrate from db.model to ndb.model?

I have an old gae app that uses db.model. I understand that I should migrate to ndb.model. Is there an easy way or must I make many changes? My code is fairly large and I have an old model that is db.model that I use to build index and search.…
1
2 3