Beispiel #1
0
	def _render(self, settings, saved=False):
		data = {
			"page" : "settings",
			"email_address" : settings.email_address,
			"dropbox_access_token" : settings.dropbox_access_token or "",
			"timezone" : settings.timezone,
			"timezones" : timezones,
			"email_hour" : settings.email_hour,
			"include_old_post_in_entry" : settings.include_old_post_in_entry,
			"upload_url" : filestore.create_upload_url('/upload-finished'),
			"saved" : saved,
			"can_migrate_images" : not settings.blobstore_migration_done,
			"bucket_exists" : filestore.bucket_exists(),
			"version" : open('VERSION').read()
		}
		self.response.write(get_template('settings.html').render(data))
Beispiel #2
0
	def get(self):
		self.response.headers['Content-Type'] = "application/json"
		self.response.write(json.dumps({"upload_url" : filestore.create_upload_url('/api/addphoto')}))
Beispiel #3
0
	def get(self):
		self.response.headers['Content-Type'] = "application/json"
		self.response.write(json.dumps({"upload_url" : filestore.create_upload_url('/api/addphoto')}))