News
Home Home Contact us Contact
home News Projects Tests Files Follow manatlan on Twitter Sign in
2009/07/18 13:04

Big changes in manatlan.com ;-)

Apparently nothing has changed (may be some disturbance now). But a lot of changes was made. I had just migrate all files+models from one appspot-id to another one (At the beginning I couldn't choose "manatlan" as appspot-id ?! Now it works ?!). Files were easily migrated (thanks to gae). But models were more complex, thanks to AEX, it helps me a lot ;-)

BTW, flux.manatlan.com was a subdomain of my old appspot-id (it was very dependant on this website). Now it has its own appspot-id and works alone (with its own cron, taskqueue, and own quotas). It's in beta stage now (use at your own risks).

So, this is the first post (a test ;-)) on my new appspot-id.

Comments (View) Tags: aex, gae
2009/04/08 19:56

A simple export/import lib for GAE

In fact, I always asked myself why there was a to_xml() instance method on an entity, without an from_xml() on the model class (the reverse method). If you have an answer, please, don't hesitate : tell me ;-)

So, I tried to make my own from_xml method. And it seems it works pretty good for me (afaik for the models of this website). So I want to share my work, so volunteers could help me to make it better : I take patches, and will maintain it.

My script exposes 2 methods :

  • exporte(*objects) : will generate (yield) a xml flow (using the to_xml()) of all "objects". object can be a Model class, in this case it will query all entities, or object can be some entities.
  • importe(objects,file=None,buffer=None,delete=False) : will import in models defined in objects, the xml flow from a file if file is defined, or from a buffer if buffer is defined. 'delete' will make a delete all before importing.

You will find it on the project's page

UPDATE 2009/04/09 :

Comments (View) Tags: aex
<< oldest

Tags

RSS Python Powered Get Ubuntu
©opyleft 2008-2019 - manatlan