No hacks, just repackaged the eggs in a GAE friendly manner (also, a zip
file was needed to accommodate for the 1000 file limit) and added fake
parser and compiler modules to allow initialization to work.

Here's the complete application handler I used:

import sys
sys.path.insert(0,'bfg_dist.zip')

from google.appengine.ext.webapp.util import run_wsgi_app

from repoze.bfg.router import make_app

from bfgstarter.models import get_root
import bfgstarter

application = make_app(get_root, bfgstarter)

def main():
  run_wsgi_app(application)

if __name__ == '__main__':
  main()


Any suggestions for templating engines?

Carlos de la Guardia

On Sat, May 2, 2009 at 12:15 PM, Chris McDonough <chr...@plope.com> wrote:

> On 5/2/09 12:53 PM, Carlos de la Guardia wrote:
>
>> Chameleon.* will not work because it needs to generate code objects and
>> that's forbidden in GAE (no marshal.py, parser.py or direct calls to
>> new.code() or similar). BFG itself works just fine. Well, at least the
>> starter app minus chameleon does:
>>
>> http://bfgapp.appspot.com
>>
>
> Cool.  I'm not sure if you needed to do any hacks to BFG to get this to go
> but I *think* the current BFG trunk will "just run" (albeit without any
> templating) on GAE.
>
> - C
>
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to