Hello,
I want to chip in :) I'm also working on mako port of deform
templates.
Here is my clone of Joe's repo https://github.com/kozog/deform_mako
I would appreciate some comments :)
-- Krzysiek
On 24 Cze, 23:14, Joe Dallago jd.dall...@gmail.com wrote:
Just wanted to mentioned that I started
Hello.
I'd like to use declarative_base from sqlalchemy.ext in my project. But for
initialize Base, I need engine. How I can get initialized engine in
model.__init__.py?
May be I could use engine=None?
Thanks.
--
You received this message because you are subscribed to the Google Groups
I guess this has probably been asked before, but Google did not return
anything meaningful.
My question is what would be the best way to supply POST vars in PHP
notation, that would be converted to a dictionary (in Pyramid):
var[foo]=123 - becomes request.POST[var][foo] with value 123
On 06/24/2011 07:21 PM, Chris McDonough wrote:
If you mean you want to be able to do if perm in all_perms, where
all_perms is some sort of list or dict provided by Pyramid (and not
just an object with a __contains__ wrapper, as I provided before), I'm
afraid it's not going to fly.
Yes, I see
deform is one way.
http://docs.pylonsproject.org/projects/deform/dev/
Toscawidgets is another way but that library may not be as stable as you
would like at the moment.
http://toscawidgets.org/documentation/tw2.core/history.html
--
You received this message because you are subscribed to
import simplejson
mypost = request.params.POST('var')
json.loads('[%s]' % mypost[:-1])
Or something like that
You wouldn't have to change your php to send json, python could convert it to
json
Thank you,
Stonly Baptiste
Aston UC
Consider using sqlahelper for this. It was made for exactly this
purpose. You import it to both model.__init__.py and
project.__init__.py. It can keep track of your base, engine, and
session.
https://bitbucket.org/sluggo/sqlahelper/overview
In case you are also using Mako for templating and
On Sat, Jun 25, 2011 at 7:19 AM, Grigoriy Tretyakov
monax.tinyc...@gmail.com wrote:
Hello.
I'd like to use declarative_base from sqlalchemy.ext in my project. But for
initialize Base, I need engine. How I can get initialized engine in
model.__init__.py?
May be I could use engine=None?