Re: Routes and backslashes

2009-01-29 Thread Pavel Skvazh
Can you also please take a look at the bug I've sent you regarding routes? On Jan 28, 9:16 pm, Ben Bangert b...@groovie.org wrote: On Jan 28, 2009, at 6:44 AM, Pavel Skvazh wrote: Is there a way (if not, is it worth adding) to tell routes to match routes with both trailing slash and

Re: Routes and backslashes

2009-01-29 Thread Pavel Skvazh
I've tried you technique. map.redirect('/{controller}/', '/{controller}') map.connect('/articles', controller='articles', action='show', conditions=dict(sub_domain=['my'])) When I plug in http://my.localhost.com:5000/articles/ i get redirected here:

WebHelpers home page moved?

2009-01-29 Thread Stephen Emslie
http://pylonshq.com/WebHelpers/ seems to be missing. Has it moved, or perhaps been lost in the upgrade? If it has moved, it is still set as the WebHelpers home page on pypi. http://pypi.python.org/pypi/WebHelpers/0.6.4 --~--~-~--~~~---~--~~ You received this

Re: WebHelpers home page moved?

2009-01-29 Thread Gael Pasgrimaud
The doc has moved: http://pylonshq.com/docs/en/0.9.7/thirdparty/webhelpers/ On Thu, Jan 29, 2009 at 2:54 PM, Stephen Emslie stephenems...@gmail.com wrote: http://pylonshq.com/WebHelpers/ seems to be missing. Has it moved, or perhaps been lost in the upgrade? If it has moved, it is still set

Re: Is Django more popular than Pylons?

2009-01-29 Thread Damjan
Oh, this is the same as the per-user install directory? http://www.python.org/dev/peps/pep-0370/ I thought there could be only one site-packages per user, not multiple ones per application. yes, that's the feature, $PYTHONUSERBASE controls which environment you are using, so you can have

Re: QuickWiki

2009-01-29 Thread Mario Ruggier
On Jan 12, 2009, at 12:13 PM, Mike Orr wrote: On Jan 8, 12:59 pm, mk mrk...@gmail.com wrote: Hello everyone, I'm sad to report that QuickWiki as installed from pypi doesn't work with Pylons 0.9.7. I installed it using easy_install, followed the On Thu, Jan 8, 2009 at 10:52 AM, Thomas G.

Re: Is Django more popular than Pylons?

2009-01-29 Thread Kless
Damjan, and does ipython works from $PYTHONUSERBASE? because it doesn't works on virtualenv. If if works then would be another great advantage :) On 29 ene, 16:39, Damjan gdam...@gmail.com wrote: Oh, this is the same as the per-user install directory?http://www.python.org/dev/peps/pep-0370/

Re: Is Django more popular than Pylons?

2009-01-29 Thread Wyatt Baldwin
On Jan 29, 10:16 am, Bernard Rankin beranki...@yahoo.com wrote: Damjan, and does ipython works from $PYTHONUSERBASE? because it doesn't works on virtualenv. If if works then would be another great advantage :) Ipython seems to work fine for me on virtualenv  What about it does not

Re: Is Django more popular than Pylons?

2009-01-29 Thread Gael Pasgrimaud
Here it is: http://www.gawel.org/howtos/howto-install-pylons-with-buildout Don't know if this doc have a place on pylonshq since the official way to install pylons is with virtualenv. On Wed, Jan 28, 2009 at 9:48 PM, Mike Orr sluggos...@gmail.com wrote: On Wed, Jan 28, 2009 at 11:43 AM,

Re: Is Django more popular than Pylons?

2009-01-29 Thread Mike Orr
On Thu, Jan 29, 2009 at 12:55 PM, Gael Pasgrimaud g...@gawel.org wrote: Here it is: http://www.gawel.org/howtos/howto-install-pylons-with-buildout Don't know if this doc have a place on pylonshq since the official way to install pylons is with virtualenv. It belongs in the Pylons Cookbook

Re: Is Django more popular than Pylons?

2009-01-29 Thread Gael Pasgrimaud
On Thu, Jan 29, 2009 at 10:15 PM, Mike Orr sluggos...@gmail.com wrote: On Thu, Jan 29, 2009 at 12:55 PM, Gael Pasgrimaud g...@gawel.org wrote: Here it is: http://www.gawel.org/howtos/howto-install-pylons-with-buildout Don't know if this doc have a place on pylonshq since the official way

different between filter(id).first() and get(id)?

2009-01-29 Thread John Brennan
In my test suite I'm saving an object then testing to make sure it saved with all the right properties. This returns the object correctly: meta.Session.query(self).filter(self.stuff==True).get(id) but this does NOT work (it returns None):

Re: moving logic from controller to model

2009-01-29 Thread John Brennan
i fixed the problem by upgrading to SA 0.5.2 (minor tweaks from 0.4.4 -- about 10 min total to get app upgraded) then i used lasizoillo's solution: class Foo(object): @classmethod def getById(self, id): return meta.Session.query(self).get(id) @classmethod def findAll(self):

Re: different between filter(id).first() and get(id)?

2009-01-29 Thread Paweł Stradomski
W liście John Brennan z dnia czwartek, 29 stycznia 2009: but this does NOT work (it returns None): meta.Session.query(self).filter(self.stuff==True).filter(id).first() Shouldn't this be .filter_by(id=id).first()? -- Paweł Stradomski --~--~-~--~~~---~--~~ You

Re: Installing Pylons with virtualenv

2009-01-29 Thread Wyatt Baldwin
On Jan 29, 6:29 pm, Chris B bridgeyi...@gmail.com wrote: Hello I am trying to install Pylons in my home directory on a Unix server. I am new to both Python and Unix and, unfortunately have fallen at the first hurdle :-( When I run the the go-pylons.py script, I get the following