Re: PyWin32, and Pylons...

2009-04-28 Thread durumdara
Hi! On ápr. 27, 20:46, Christopher Barker chris.bar...@noaa.gov wrote: durumdara wrote: Yes. I install pylons by the online help. This is speaking about virtualenv... Can I use easyinstall pylons on normal python installation without virtualenv? yes, you sure can. I tested it, and it

Re: Plugin architecture

2009-04-28 Thread Randy Syring
It works, but that's a pain if you need to put your Pylons authorization system around it. As JonathanV said, Pylons is not really structured to plug in mini-apps the way Django is.   This was the killer for Pylons for me, see:

Re: Unintended delete

2009-04-28 Thread Ben Bangert
On Apr 27, 2009, at 5:11 PM, edgarsmolow wrote: A persons table is used in various parts of the app to track individuals. The rel column is the relation of the person to respondent (i.e, the person filling out the web form). In addition, the respondent's children and his/her choices for

Re: Plugin architecture

2009-04-28 Thread Ben Bangert
On Apr 27, 2009, at 3:01 PM, Mike Orr wrote: At PyCon, some of us experimented with a full plugin system (Zope Component Architecture) as used in repoze.BFG. It's too early to tell whether it would be feasable for a Pylons-like framework (and most of the developers are too busy to pursue it

Re: Plugin architecture

2009-04-28 Thread Wyatt Baldwin
On Apr 28, 8:42 am, Randy Syring rsyr...@gmail.com wrote: It works, but that's a pain if you need to put your Pylons authorization system around it. As JonathanV said, Pylons is not really structured to plug in mini-apps the way Django is.   This was the killer for Pylons for me, see:

Re: Plugin architecture

2009-04-28 Thread Gael Pasgrimaud
On Tue, Apr 28, 2009 at 12:01 AM, Mike Orr sluggos...@gmail.com wrote: It works, but that's a pain if you need to put your Pylons authorization system around it. It's not a real pain if you use repoze.who/what As JonathanV said, Pylons is not really structured to plug in mini-apps the way

Re: Plugin architecture

2009-04-28 Thread Ben Bangert
On Apr 28, 2009, at 10:22 AM, Gael Pasgrimaud wrote: ZCA can be a good thing, but it also can be a mess. When you have too much interfaces and/or zcml in your code it can take a few hours to retrieve where a bug came from. Having a more advanced plugin system can be a good thing but what i like

Mapping form submit values to method arguments?

2009-04-28 Thread Alex Maslov
Hello everyone! Is there any way to map submitted values to the corresponding controller method arguments (for instance, POST value of 'name' to name argument of controller_method(self, name) )? Thanks a lot! --~--~-~--~~~---~--~~ You received this message

Re: Unintended delete

2009-04-28 Thread edgarsmolow
Ben, Your schema doesn't reflect the actual business case. The database must store information about people who are in various roles regarding the respondent (account holder). 1. Accounts are for a family. Spouses would have only one account; never separate ones. 2. A trustee is not

Re: Plugin architecture

2009-04-28 Thread Mike Orr
On Tue, Apr 28, 2009 at 10:22 AM, Gael Pasgrimaud g...@gawel.org wrote: On Tue, Apr 28, 2009 at 12:01 AM, Mike Orr sluggos...@gmail.com wrote: It works, but that's a pain if you need to put your Pylons authorization system around it. It's not a real pain if you use repoze.who/what Yes,

Re: Plugin architecture

2009-04-28 Thread Wyatt Baldwin
On Apr 28, 11:36 am, Mike Orr sluggos...@gmail.com wrote: On Tue, Apr 28, 2009 at 10:22 AM, Gael Pasgrimaud g...@gawel.org wrote: On Tue, Apr 28, 2009 at 12:01 AM, Mike Orr sluggos...@gmail.com wrote: It works, but that's a pain if you need to put your Pylons authorization system around

ProfileMiddleware problem?

2009-04-28 Thread Ross Vandegrift
Hey everyone, I noticed when shuffling between config files that my profiling setup is busted. In my middleware.py: # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares) if config.get('profile'): from paste.debug.profile import ProfileMiddleware app =

Re: Plugin architecture

2009-04-28 Thread Wichert Akkerman
Previously Mike Orr wrote: The most difficult problem seems to be controllers, and the 'controller_scan' argument in Routes which seems useless. (We had to hardcode the controllers in our GUI BILS app because of some incompatibility with py2exe.) Several people have asked how to have

Re: Plugin architecture

2009-04-28 Thread Ben Bangert
On Apr 28, 2009, at 2:43 PM, Wichert Akkerman wrote: If you decide to use zope.component a controller could be a named utility. You could then register it like so: class BaseController(object): This is the standard Pylons base controller class. implements(IPylonsController) class

Re: Plugin architecture

2009-04-28 Thread Wichert Akkerman
Previously Ben Bangert wrote: On Apr 28, 2009, at 2:43 PM, Wichert Akkerman wrote: If you decide to use zope.component a controller could be a named utility. You could then register it like so: class BaseController(object): This is the standard Pylons base controller class.

Re: Plugin architecture

2009-04-28 Thread Mike Orr
On Tue, Apr 28, 2009 at 3:09 PM, Ben Bangert b...@groovie.org wrote: On Apr 28, 2009, at 2:43 PM, Wichert Akkerman wrote: If you decide to use zope.component a controller could be a named utility. You could then register it like so:  class BaseController(object):     This is the standard

Re: Plugin architecture

2009-04-28 Thread Gael Pasgrimaud
On Wed, Apr 29, 2009 at 12:19 AM, Wichert Akkerman wich...@wiggy.net wrote: Previously Ben Bangert wrote: On Apr 28, 2009, at 2:43 PM, Wichert Akkerman wrote: If you decide to use zope.component a controller could be a named utility. You could then register it like so: class

Re: ProfileMiddleware problem?

2009-04-28 Thread Marius Gedminas
On Tue, Apr 28, 2009 at 04:36:16PM -0400, Ross Vandegrift wrote: Hey everyone, I noticed when shuffling between config files that my profiling setup is busted. In my middleware.py: # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares) if config.get('profile'):

Re: Plugin architecture

2009-04-28 Thread Iain Duncan
On Tue, 2009-04-28 at 15:09 -0700, Ben Bangert wrote: On Apr 28, 2009, at 2:43 PM, Wichert Akkerman wrote: If you decide to use zope.component a controller could be a named utility. You could then register it like so: class BaseController(object): This is the standard Pylons

Re: ProfileMiddleware problem?

2009-04-28 Thread Ian Bicking
I think there's been some changes to the middleware and to the Python profiling module, which may be leading to this (older versions of Python required replacing sys.stdout to capture the profiling output, later versions stopped requiring this hack). Maybe you changed your Python version? Or

Re: Plugin architecture

2009-04-28 Thread Randy Syring
On Apr 28, 12:25 pm, Ben Bangert b...@groovie.org wrote: The key difference between Django style re-use and repoze.bfg/Zope   style re-use is how much life is going to suck down the road   maintaining the apps. When you consider how Django approaches it, it   seems like this will be a pain