On Apr 15, 1:09 am, "Diez B. Roggisch" <[email protected]> wrote: > > I've used Elixir recently in a wxPython application and would like to > > use it with TG2.1. I started a project for my wife back in Jan and > > asked about it: > >http://groups.google.com/group/sqlelixir/browse_thread/thread/f0b3571... > > > I gave up then because Chris Perkins said it wasn't going to be > > integrated into TG2 but instead should be its own package and I had > > too much trouble trying to make it work (and my wife changed her mind > > on what she wanted...). http://trac.turbogears.org/ticket/2293 I > > tried the patch that Alex Bodnaru had submitted but as I recall it > > wouldn't run properly. > > > Diez mentioned that he is using it in a recent post and Jonathan > > LaCour also said he was using it so maybe I can get farther this > > time. Quoting Diez: > > > "We use it - it is really simple to set up. Just not via build-in > > qickstart templates. But all you essentially need to do is to copy a > > boiler-plate elixir setup into the generated model files." > > > There were quite a few changes that Alex Bodnaru had in a patch he had > > submitted (the trac link above), if the change is simpler than that > > then I would love to try it (or it can be that complicated if it > > works :) > > The patch is for TG2 itstelf, to create a quickstart option for > elixir. So it's complicated. All you need to do is > > - quickstart a TG2 project. > - hook the generated session and metadata into elixir > - declare entities > - .... > - profit! > > I placed a simple example here: > > http://roggisch.de/ElixirTest.tgz > > To use, do > > create virtualenv, activat > easy_install TurboGears2 tg.devtools Elixir > unpack > python2.5 setup.py develop # in the unpacked app > paster setup-app development.ini > > > > > So, I would appreciate it if I can get some guidance on how difficult > > this will be, honestly I am pretty new at this so most choices won't > > be obvious. For instance, I'm not sure what the scope of a boiler > > plate Elixir setup is? I know how to create a Elixir based model file > > for wxPython, how would it be different here? > > I don't understand this. > > > > > Can I leave the authentication and authorization alone and just use > > Elixir with my model files? > > You can keep the existing authentication models around, and they > should work of course. I don't know how they interact with Elixir > entities though - in the end, it's all SQLAlchemy. But I haven't tried > that. > > Or you create your own model in elixir, and try to coerce repoze.who/ > what to use it. To be honest: I stear clear from repoze.who/what if I > can, in fact I created my own tgext.simpleauth framework because I > don't like the design of it. So you need to ask others how to make > that happen. In theory, it's totally customizable. In practice to me > that boils down to implementing everything yourself, while jumping to > quite a few hoops - not worth my time. YMMV, of course! > > Diez
Hi, Thanks for the files. I'm using TG 2.1b2 but I was able to quickstart a 2.1 project and then diff between that and your files to see the changes. The significant differences appeared to be obvious so I copied them over and it seems to be working. Thanks again, Eric -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

