michael@d2m.at  |  +43 (664) 948-8084
You are here: Home Blog 2008 04 13 Grok without ZODB, WSGI based

Grok without ZODB, WSGI based

by Michael Haubenwallner last modified Jun 26, 2010 10:55 PM

When Google released its appengine SDK this Monday i started to explore a potential integration with Grok immediately. There are several problems that need to be solved, but i'm confident that the zope3 libs will be used with appengine apps in the future.

When tinkering with Grok/appengine i wanted at one point to rip off the ZODB dependency. That was suprisingly easy to achieve - it took an afternoon to get it running - and i must say that using Grok as a WSGI app was the part that made it possible at all.

I just posted d2m.wsgiapp to PyPI - this is a package that lets you run Grok without a ZODB as a WSGI application. It uses a custom root object and a custom publication. A demo application is also included for testing.

I'd really appreciate your feedback on the package.

Moreover - parts of Grok already integrate with the appengine framework. I now have a grok app running with the Google appengine.datastore as DB backend.

Next stop is - amazingly - re-adding the ZODB as a pluggable datastorage. You are welcome to join the project.

 

Comment

Posted by Martijn Faassen at 2008-04-14 12:21:14
Very cool! Things look further along than I thought they could be at this point. Do you have a Grok app running on the hosted app engine already, or are you making it run locally with the app engine framework?

Comment

Posted by d2m at 2008-04-14 12:36:40
I'm using Googles appengine.datastore from inside Grok only. There are problems with importing eggs or compiled packages, also the total number of files used by the packages seems to be limited to 1000 atm.

So in short, Grok does not run with appengine, but i'm sure the attempt to integrate it will create new possibilities for Grok.

Comment

Posted by Chris McDonough at 2008-04-14 17:06:26
Excellent! I'm going to try to set aside some time during the time the Grokkerdam sprint is going on to try to work on this remotely.

Comment

Posted by kapil thangavelu at 2008-05-01 03:30:32
it might be nice to credit that most of this is just straight copied from ore.wsgiapp.

as for appengine, there are several issues with running zope on appengine, the c modules prevent basic things like zope.component from working.. and thats just one of several. assuming pure python implmentations are used, just as serious is the 1000 file limit imposed by app engine which requires reworking template/zcml to run from zip safe eggs.

Comment

Posted by d2m at 2008-05-01 06:15:29
@kapil: i think i already did in the package README.txt file, but let me repeat: 'ore.wsgiapp was a valueable help when starting the project'.

Things are a bit different with Grok and it took me some time to get the paster configuration setup and the appsetup right to integrate with the Grok infrastructure. I also wanted to promote the idea of a ZODB-less Grok just before the Grokkerdam sprint happening. Hope sprinters there will get to it and take it even further.

Filed under: , , , , ,