virtualenv, bb-freeze and pylons on osx

2008-10-09 Thread Jose Galvez
Has anyone been able to freeze a pylons app with bb-freeze on osx? I've got it working nicely on windows and linux, but really need something equivalent on osx. the ultimate goal is to create a dvd that works on pc's and mac with my pylons app running a local webserver off the dvd. Like I

recent change regarding to strict_c

2008-10-09 Thread Michael van Tellingen
Hi all, The recent change (http://pylonshq.com/hg/pylons-dev/rev/3c601ae9ef0b) to not attach the action arguments automagically to the c variable is imo not a really good one :-) I'm always setting strict_c to catch any errors early but I do like the fact that I can access the action arguments of

Re: recent change regarding to strict_c

2008-10-09 Thread Mike Orr
On Thu, Oct 9, 2008 at 1:46 AM, Michael van Tellingen [EMAIL PROTECTED] wrote: Hi all, The recent change (http://pylonshq.com/hg/pylons-dev/rev/3c601ae9ef0b) to not attach the action arguments automagically to the c variable is imo not a really good one :-) I'm always setting strict_c to

Re: virtualenv, bb-freeze and pylons on osx

2008-10-09 Thread Mr.Rech
Its Package Index page (http://pypi.python.org/pypi/bbfreeze/0.96.5) explicitly says that bbfreeze doesn't work on OSX. Anyway, I'd be really interested in such an application, i.e. getting a pylons app running a local webserver off the dvd. Can I get the same result with py2app or py2exe?

Re: Shutdown hook

2008-10-09 Thread Mr.Rech
Not sure about this (never tried), but Python Library Reference says: Note: the functions registered via this module are not called when the program is killed by a signal, when a Python fatal internal error is detected, or when os._exit() is called. Since Ctrl+C sends a SIGINT to your server

Re: virtualenv, bb-freeze and pylons on osx

2008-10-09 Thread Mr.Rech
Its Package Index page (http://pypi.python.org/pypi/bbfreeze/0.96.5) says explicitly that bbfreeze doesn't work on OSX. Anyway I'd be interested in this as well (i.e. getting a pylons application runnning a local webserver off the dvd). Can I get this using py2app or py2exe? Andrea Jose Galvez

Re: non rails number_to_human_size ?

2008-10-09 Thread ChrisB
On Oct 7, 3:43 pm, Mike Orr [EMAIL PROTECTED] wrote: def format_size(n, binary, precision?)    ``n`` -- the number    ``binary`` -- true to use base 1024 and the Gi series.    ``precision`` -- not sure about this I think precision should be an indication of significant figures. So a

Re: Shutdown hook

2008-10-09 Thread Jonathan Vanasco
after reading that i thought catch signal? and then yahoo search said import signal and someone seems to have worked on the same issue-- http://stevemorin.blogspot.com/2005/11/python-shutdown-hook-method-update.html from what i've read, you probably want a couple of ways to catch the exit (

Authkit setup error

2008-10-09 Thread dw
I'm trying to integrate authkit into my app and I'm going through the book online. I'm using pylons 0.9.7 to match the book and my model is set up in the same manner as the simple site tutorial. When I run the setup-app to set up the user tables I get the following error: File XXX/websetup.py,

Re: recent change regarding to strict_c

2008-10-09 Thread Ben Bangert
On Oct 9, 2008, at 1:46 AM, Michael van Tellingen wrote: The recent change (http://pylonshq.com/hg/pylons-dev/rev/ 3c601ae9ef0b) to not attach the action arguments automagically to the c variable is imo not a really good one :-) I'm always setting strict_c to catch any errors early but I do

test driven development with XMLRPController?

2008-10-09 Thread Cucho
Hi! Does anybody knows how to use paste.fixtures facilities to tests and XMLRCPController, in a similar way to testing regular controllers? Thanks Agustin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Shutdown hook

2008-10-09 Thread Wichert Akkerman
Previously Mr.Rech wrote: Not sure about this (never tried), but Python Library Reference says: Note: the functions registered via this module are not called when the program is killed by a signal, when a Python fatal internal error is detected, or when os._exit() is called. Since

Re: virtualenv, bb-freeze and pylons on osx

2008-10-09 Thread Jose Galvez
Just to give everyone an update, bbfreeze now does support osx, at least to some degree if you install from the dev tip. The reason I wanted to try bbfreeze is that it seems to deal with eggs pretty better then many of the other freezers out there. Did it this afternoon and got it to

Re: virtualenv, bb-freeze and pylons on osx

2008-10-09 Thread Jose Galvez
Mr.Rech wrote: Its Package Index page (http://pypi.python.org/pypi/bbfreeze/0.96.5) explicitly says that bbfreeze doesn't work on OSX. Anyway, I'd be really interested in such an application, i.e. getting a pylons app running a local webserver off the dvd. Can I get the same result with

Re: Templating c Stacked Object

2008-10-09 Thread EricHolmberg
Probably the best place for calling _rewriteLoginPage would in a   __before__ method. __call__ is the main entry point into Controllers,   and unfortunately by that point variables like c aren't setup yet.   Whereas they would be in __before__ (and __after__). Thanks, I'll test that out and

Re: Templating c Stacked Object

2008-10-09 Thread EricHolmberg
Are you sure?  I've been putting 'c' assignments in BaseController.__call__ without problem, for things like the default page title and breadcrumbs. It works fine with debugging enabled, have you used it with the release version as well? The problem here seems to be that

Re: Templating c Stacked Object

2008-10-09 Thread Mike Orr
On Thu, Oct 9, 2008 at 7:27 PM, EricHolmberg [EMAIL PROTECTED] wrote: Are you sure? I've been putting 'c' assignments in BaseController.__call__ without problem, for things like the default page title and breadcrumbs. It works fine with debugging enabled, have you used it with the release

Re: Freezing a Pylons app

2008-10-09 Thread Christopher Barker
Mike Orr wrote: We're testing it right now. I'm cc'ing my colleague who's involved more directly with it. That would be me. I'm trying to bundle up a pylons based app with py2app on OS-X. I've run into a problem with Paste. The issue is that paste (and paste.deploy, and paste.script) is set

Re: Freezing a Pylons app

2008-10-09 Thread Jose Galvez
I just has some positive results using bbfreeze freezing a pylons app on windows and linux. I had to write my own launcher which called paste.script to serve it, but so far its working great. I'm also experimenting with the dev tip of bbfreeze on mac some success Jose [EMAIL PROTECTED]