Re: how to pass information between controllers

2006-10-18 Thread Bruno Desthuilliers
Max Slimmer wrote: (top-post corrected) > > On 10/17/06, *bruno desthuilliers* <[EMAIL PROTECTED] > > wrote: > (snip) > > CommandProcessor is a controller with a growing list of 'cmd's > (actions) > > and > > each one will render a page, the user then ca

Re: SQLAlchemy sessions

2006-10-18 Thread Robert Ian Smit
> > in my methods I do: > > > >def some_method(self): > >foo = object_session(self).query(Foo).get(1) > You may run into problems if you have unattached objects though. eg. New > objects you want to save. I tend to save objects to the session immediately after instantiating so I don'

Still some more about Genshi!

2006-10-18 Thread Pedro Algarvio, aka, s0undt3ch
I think there might be others that are having troubles using the Pylons WebHelpers with Genshi. The problem is that any html generated by the WebHelpers is going to be escaped by Genshi. benbangert has hacked some code(which he said he'd paste it somewhere when done) which will wrap all helpers

Re: Still some more about Genshi!

2006-10-18 Thread Pedro Algarvio, aka, s0undt3ch
one way would be to include in /lib/helpers.py from genshi.core import Markup That would alow on to use h.Markup to wrap our helper's calls inside the templates. h.Markup(h.content_tag('b', 'some text')) Just as an exmaple... --~--~-~--~~~---~--~~ You receiv

configuring myghty_data_dir in .ini doesn't work

2006-10-18 Thread Shannon -jj Behrens
Hi, I'm trying to configure the myghty_data_dir in my production.ini file to be somewhere in /var, but it insists on creating the data directory in my current working directory: $ ls -R data data: templates data/templates: lock obj data/templates/lock: data/templates/obj: The session files,

Re: configuring myghty_data_dir in .ini doesn't work

2006-10-18 Thread Philip Jenvey
On Oct 18, 2006, at 4:39 PM, Shannon -jj Behrens wrote: > > Hi, > > I'm trying to configure the myghty_data_dir in my production.ini file > to be somewhere in /var, but it insists on creating the data directory > in my current working directory: > > $ ls -R data > data: > templates > > data/temp

Re: Still some more about Genshi!

2006-10-18 Thread Sergey Lipnevich
I hope the following is a bit of help. All helpers that I use generate complete valid XML that I wrap in ${XML(h.)}. Other helpers I either ignore or look up implementation and redo them using py:def. I also use py:def a lot for my own fragments, it works wonders. Fragments are a different story

Re: Still some more about Genshi!

2006-10-18 Thread Pedro Algarvio, aka, s0undt3ch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sergey Lipnevich wrote: > I hope the following is a bit of help. All helpers that I use generate > complete valid XML that I wrap in ${XML(h.)}. Other helpers I > either ignore or look up implementation and redo them using py:def. I > also use py:def