Création des Logiciels de gestion d'Entreprise, Création et référencement des sites web, Réseaux et Maintenance, Conception
Création des Logiciels de gestion d'Entreprise, Création et référencement des sites web, Réseaux et Maintenance, Conception
import googledatastore as datastoreNext include writeEntity() and readEntity() functions:
def main()
writeEntity()
readEntity()
def WriteEntity():First create a new file called “demo.py”. Inside demo.py, we’ll add code to write and then read an entity from the Cloud Datastore. Finally we can update main() to print out the property values within the fetched entity:
req = datastore.BlindWriteRequest()
entity = req.mutation.upsert.add()
path = entity.key.path_element.add()
path.kind = 'Greeting'
path.name = 'foo'
message = entity.property.add()
message.name = 'message'
value = message.value.add()
value.string_value = 'to the cloud and beyond!'
try:
datastore.blind_write(req)
except datastore.RPCError as e:
# remember to do something useful with the exception pass
def ReadEntity():
req = datastore.LookupRequest()
key = req.key.add()
path = key.path_element.add()
path.kind = 'Greeting0'
path.name = 'foo0'
try:
resp = datastore.lookup(req)
return resp
except datastore.RPCError as e:
# remember to do something useful with the exception pass
def main()Before we can run this code we need to tell the SDK which Cloud Datastore instance we would like to use. This is done by exporting the following environment variable:
writeEntity();
resp = readEntity();
entity = resp.found[0].entity
for p in entity.property:
print 'Entity property name: %s', p.name
v = p.value[0]
print 'Entity property value: %s', v.string_value
~$ export DATASTORE_DATASET cloud-datastore-demoFinally we’re able to run the application by simply issuing the following:
~$ python demo.pyBesides the output that we see in console window, we’re also able to monitor our interactions within the Cloud Console. By navigating back to Cloud Console, selecting our cloud-datastore-demo project, and then selecting the Cloud Datastore we’re taken to our instance’s dashboard page that includes number of entities, properties, and property types, as well as index management, ad-hoc query support and breakdown of stored data.
It Is a simple process to add our blog content to Facebook fan page . First you log in Your facebook account .Then Click here
You Will reach below page
click : beta.rssgraffiti.com
See the instruction and click allow button. After that u reach: http://beta.rssgraffiti.com/#_=_
Click “Add new Publishing Plan “
Enter a name which you Like to use and click “Create publishing Plan”
After that click add new button. Then popup a window like below. Add your RSS FEED address OR Twitter username placed blank space.
Click “Add Source” Button
Edit feed setup and save it.
Go to target and select your page.
Edit your settings and save it. Click OFF button to ON
Do you have any problem? comment below this post. Thanks
2013, By: Seo Master