Re: Best practices for where to work with SQLAlchemy

2011-05-20 Thread Gopalakrishnan S
Does transaction manager commit sqlalchemy session? Really? I like the idea still.. -- Gopalakrishnan Subramani On May 20, 8:04 am, Michael Merickel mich...@merickel.org wrote: Assuming transaction.close is a typo and you meant transaction.commit, you may want to think about not calling it at

Re: Best practices for where to work with SQLAlchemy

2011-05-20 Thread Chris McDonough
On Fri, 2011-05-20 at 00:43 -0700, Gopalakrishnan S wrote: Does transaction manager commit sqlalchemy session? Really? I like the idea still.. Yes, at least if you have ZopeTransactionExtension configured in your session. - C -- Gopalakrishnan Subramani On May 20, 8:04 am, Michael

Re: Best practices for where to work with SQLAlchemy

2011-05-20 Thread Chris Withers
On 20/05/2011 09:35, Chris McDonough wrote: On Fri, 2011-05-20 at 00:43 -0700, Gopalakrishnan S wrote: Does transaction manager commit sqlalchemy session? Really? I like the idea still.. Yes, at least if you have ZopeTransactionExtension configured in your session. ...which mortar_rdb does

Re: Reusing sqlalchemy models across several pyramid apps

2011-05-20 Thread Chris Withers
On 19/05/2011 15:57, 371c wrote: The idea is to: * create a separate project (eg. models_app) to be installed into the python env via python setup install - sort of like a shared library. Use buildout or a virtual_env if you're not already. * In p1, p2 and/or p3, import models_app to have

Re: Best practices for where to work with SQLAlchemy

2011-05-20 Thread Alec Munro
I did indeed mean transaction.commit(). I'm happy to know that the transaction will be committed on it's own if I don't do it, I think I will take advantage of that. I'm also curious about this mortar_rdb thing... But other than that bit of trivia, any reasons I should structure my code

Re: Best practices for where to work with SQLAlchemy

2011-05-20 Thread Chris Withers
On 20/05/2011 14:00, Alec Munro wrote: But other than that bit of trivia, any reasons I should structure my code differently? Nope, looks good, just make sure you get repoze.tm2 or pyramid_tm in the mix, I'd likely opt for the latter... Chris -- Simplistix - Content Management, Batch

Re: Customizing tinyMCE by using Deform

2011-05-20 Thread Chris Withers
On 19/05/2011 05:51, Boyi Shafie wrote: Hi, Any body can suggest on how to customize tinyMCE using Deform. I use the 'advanced' editor. How do I create interface with deform widget using tinyMCE.init to include and add buttons. Or is there any other way around. I guess you need to create a

Running Pyramid on Google’s App Engine (Windows)

2011-05-20 Thread Rod Sarria
Hi guys, I'm new to Pyramid and Google App Engine. I just checked out the new features for Pyramid and I loved it, can't wait to test it. My problem is I'm running on Windows 7 and I can't get installed the Pyramid framework on GAE. I know there is a “appengine-monkey” tutorial to get Pyramid

Problem installing egg from file

2011-05-20 Thread Jojo
Hi, I have a big headache for pylons app egg installation. As I have read around the net, there are a lot of ways to deploy a Pylons app. I have choose to use a virtualenv + easy_install, because it seems the most easy. I have read a lot of time the official documentation, but there is something

how to access pyramid configuration

2011-05-20 Thread Gopalakrishnan S
I am porting pylons project to pyramid. I use the pylons.config for my site domain name, title etc like pylons.config['site_name'] etc.. how to access the ini content in my pyramid project? -- Gopalakrishnan Subramani -- You received this message because you are subscribed to the Google

Re: how to access pyramid configuration

2011-05-20 Thread Gael Pasgrimaud
Hi, On Fri, May 20, 2011 at 7:40 PM, Gopalakrishnan S gopalakrishnan.subram...@gmail.com wrote: I am porting pylons project to pyramid. I use the pylons.config for my site domain name, title etc like pylons.config['site_name'] etc.. how to access the ini content in my pyramid project? I

Re: how to access pyramid configuration

2011-05-20 Thread Parnell Springmeyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 `settings = request.registry.settings` It will be a dictionary of the keys/values in the INI :) Gopalakrishnan S gopalakrishnan.subram...@gmail.com writes: I am porting pylons project to pyramid. I use the pylons.config for my site domain name,

Re: Problem installing egg from file

2011-05-20 Thread Michael Merickel
I think you can just run easy_install egg_file. -- 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.com. To unsubscribe from this group, send email to

Re: Problem installing egg from file

2011-05-20 Thread Mike Orr
On Fri, May 20, 2011 at 2:00 AM, Jojo matteo.delloi...@gmail.com wrote: Hi, I have a big headache for pylons app egg installation. As I have read around the net, there are a lot of ways to deploy a Pylons app. I have choose to use a virtualenv + easy_install, because it seems the most easy. I

Modify cookie session timeout

2011-05-20 Thread Brian O'Connor
Hi, I'm using cookie only sessions on Pylons 1.0, and I was wondering what the easiest way to modify the Expires time on the cookie is? We don't want to set the expiration date for every cookie, only the ones that explicitly say 'remember me' when they login. I've been going through the beaker

HTTP errors in Pyramid

2011-05-20 Thread Mike Orr
I tried returning ``HTTPBadRequest(explanation)`` in a Pyramid handler, and I got a blank screen instead of an error message. The HTTP status is correct but the content-length is 0. It's an Akhet application, pretty close to the default. Is there some aspect of Pyramid's or Paste's error handling

Re: HTTP errors in Pyramid

2011-05-20 Thread Parnell Springmeyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike, Instantiate the class like so: HTTPBadRequest(body=explanation) Mike Orr sluggos...@gmail.com writes: I tried returning ``HTTPBadRequest(explanation)`` in a Pyramid handler, and I got a blank screen instead of an error message. The HTTP

Re: how to access pyramid configuration

2011-05-20 Thread Gopalakrishnan S
Thank you. settings works.. :-) On May 20, 11:07 pm, Parnell Springmeyer ixma...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 `settings = request.registry.settings` It will be a dictionary of the keys/values in the INI :) Gopalakrishnan S

Re: How to load Pyramid environment?

2011-05-20 Thread Gopalakrishnan S
OK.. Here is what my problems.. I use celery with pylons.. The following script initialize my pylons environment so that I would be able to use the project models, lib etc from outside paster. In my celery task, I use my models defined in the project.. import pylons from paste.deploy