Search posterous

Search all posts and users. Type a name, type a favorite song title, whatever! See what comes up.
  

More posterous blogs











More recommended blogs »

Here are posterous posts filed under datastore...

mlapida says...

After my little trip to the bookstore today, I decided I would probably need a book on Google App Engine as well, since it does slightly differ from standard python, and the datastore, Google's databases, are very deferent than anything I've worked with in the past (read: relational).

i.e. To use a database in Google app engine, you must write it as a class:

 
class Greeting(db.Model): 
 author = db.UserProperty() 
 content = db.StringProperty(multiline=True) 
 date = db.DateTimeProperty(auto_now_add=True) 

This class goes within the code, and can be written to through statements such as:

 
greeting = Greeting()


if users.get_current_user(): 
 greeting.author = users.get_current_user()


greeting.content = self.request.get('content') 
 greeting.put() 

In this sample from Google, you can see the program checking to see if the user is logged in, requesting the "content" input field from the form and sending the data to the datastore. Much more on all this to come, but for now you can find the standard tutorial on how to do this on Google's own code site. Unfortunately the book is just on preorder; fortunately it is released at the end of this month, so I wont be waiting too long. In the meantime, I'll be catching up on this python.

Filed under: datastore

maccaffeine says...

Heute habe ich es endlich mal geschafft, die portable Version von Dropbox zu installieren. Diese bekommt man hier (http://forums.getdropbox.com/topic.php?id=7729). 

Damit ist es möglich, Dropbox auf einem USB-Stick zu installieren und seine Dateien immer bei sich zu haben. So habe ich es heute auch gemacht und muss sagen, dass es wirklich genial ist.
So brauche ich mich nicht mehr im Web-Frontend einloggen um an Dateien zu kommen und kann auch von überall bequem die Dateien bei Dropbox ablegen und dann von überall drauf zugreifen.
Anmelden kann man sich für diesen genialen Dienst hier: https://www.getdropbox.com/referrals/NTE2Nzk0OQ. Dabei bekommt man kostenlos 2GB an Speicherplatz zur Verfügung gestellt und durch "meine Empfehlung" auch nochmal 250MB zusätzlich. Was Dropbox eigentlich ist (in einer etwas ausführlicheren und bebilderten Variante, als ich es eben getan habe) erklärt diese Seite: https://www.getdropbox.com/tour/2#1

Filed under: datastore