Re: build a generic solution to handle "static" templates files (used with template css files...)

2009-05-26 Thread huy
ou mean by generic but this is pretty straight forward. Cheers, Huy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.

Re: pylons 0.8.2 replacement for m.send_redirect ?

2006-06-08 Thread Huy
en, I ended up using this. However, i am using other methods from the "m" object, like fetch_component (myghty related) and "m" seems to no longer be in fashion in the Pylons 0.8.2+. What do you suggest ? regards, Huy --~--~-~--~~~---~--~~

Re: [Sqlalchemy-users] how to get table description from existing DB/schema

2006-06-09 Thread Huy
It's just a quicky but using JDBC gives me database independent metadata acess. It'd be nice if sqlalchemy's autoload feature could generate the metadata. regards, Huy --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Pylons 0.9 and object m

2006-07-11 Thread Huy
subexec() I see error page with: "exceptions.NameError: global name > 'm' is not defined", why ? > > Where is a problem, please ? > > Tomas > > Try removing your cache directory. Huy --~--~-~--~~~---~--~~ You received this message because you

Upgrading existing 0.8.2 -> 0.9+

2006-08-25 Thread Huy
Hi, I have raised this issue before, but just wandering if there will be any further thought given to making it easier to upgrade existing applications to newer versions of pylons. Manually creating a new project, then copying files over is way too hit and miss. Regards, HUy

Re: session problem in 0.92dev

2006-08-28 Thread Huy
Jarosław Kulesza wrote: > Huy Do wrote: > > >> Hi, >> I'm getting this error when trying to access the session in pylons 0.92. >> >> Any ideas ? >> >> Thanks >> >> >> File "/home/huy/apps/ktrack/ktrack/menu.py"

Re: form post and h.redirect_to

2006-09-15 Thread Huy
Hi, Can anyone shed some light on this ? Am I doing something wrong ? Please help. Huy > According to the docs at > http://pylonshq.com/docs/0.9.2/form_handling.html I should be able to > use h.redirect_to to avoid the form repost problem. > > However, it doesn't seem to

Re: Using SQLAlchemy with Pylons

2006-10-13 Thread Huy
uery(myclass).select(*args) use like in your controller: rs = database.select(model.MyModel) Isn't this more straight forward. You can then use this in your unit test or anywhere else for that matter (outside of pylons) by simply just importing dat

Re: SQLAlchemy sessions

2006-10-17 Thread Huy
ou have unattached objects though. eg. New objects you want to save. Huy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@google

Re: deferred response rendering / standardized database transactional pattern

2007-04-05 Thread Huy
ore was almost what I needed, except for the auto save() it did to newly created objects; my db object is pretty much objectstore, without the auto save). For the complex cases with multiple queries/updates/deletes, I create dao methods (in a seperate module) which I wrap with a transaction

session problem in 0.92dev

2006-08-28 Thread Huy Do
Hi, I'm getting this error when trying to access the session in pylons 0.92. Any ideas ? Thanks Huy 2006-08-28 22:10:34,547 ERRORscgi-wsgi1072 Exception caught from handler Traceback (most recent call last): File "/usr/local/python2.4.2//lib/python2.4/site-packages/flup

Re: session problem in 0.92dev

2006-08-28 Thread Huy Do
Jaros?aw Kulesza wrote: > Huy Do wrote: > > >> Hi, >> I'm getting this error when trying to access the session in pylons 0.92. >> >> Any ideas ? >> >> Thanks >> >> >> File "/home/huy/apps/ktrack/ktrack/menu.py"

Re: Using SQLAlchemy with Pylons

2006-10-14 Thread Huy Do
Shannon -jj Behrens wrote: > On 10/13/06, Huy <[EMAIL PROTECTED]> wrote: > >> Shannon -jj Behrens wrote: >> >>> I've added my notes to the wiki after incorporating all of your feedback: >>> >>> Using SQLAlchemy wi