Re: "challenges" while upgrading to 0.9.7

2009-05-26 Thread Shannon -jj Behrens
On Tue, May 26, 2009 at 12:14 PM, Mike Orr wrote: > > On Mon, May 25, 2009 at 9:01 PM, Shannon -jj Behrens wrote: >> This thread kind of died.  I think that some of the above should >> result in changes to the upgrading notes, and I think one or two of >> them should

Re: "challenges" while upgrading to 0.9.7

2009-05-25 Thread Shannon -jj Behrens
On Fri, May 22, 2009 at 2:33 AM, Shannon -jj Behrens wrote: > I have a project in production, and I decided to upgrade my app from > 0.9.6.1 to 0.9.7.  I read all the docs related to upgrading.  I > decided to use "paster create myapp -t pylons" to upgrade my project. > The

Re: "challenges" while upgrading to 0.9.7

2009-05-22 Thread Shannon -jj Behrens
On Fri, May 22, 2009 at 2:33 AM, Shannon -jj Behrens wrote: > I have a project in production, and I decided to upgrade my app from > 0.9.6.1 to 0.9.7.  I read all the docs related to upgrading.  I > decided to use "paster create myapp -t pylons" to upgrade my project. > The

Re: "challenges" while upgrading to 0.9.7

2009-05-22 Thread Shannon -jj Behrens
>>  * Once I got response.status_code working, it started shoving my HTML >>    response into the middle of a big error template instead of just serving >>    what I had.  This totally messed with my Web service which counts on >>    the sparse HTML error messages I provide.  I hacked around the p

"challenges" while upgrading to 0.9.7

2009-05-22 Thread Shannon -jj Behrens
I have a project in production, and I decided to upgrade my app from 0.9.6.1 to 0.9.7. I read all the docs related to upgrading. I decided to use "paster create myapp -t pylons" to upgrade my project. These are the headaches I encountered: * Warn people that if they use paster create to upgrad

logging setup

2009-02-24 Thread Shannon -jj Behrens
It's weird that the default setup in development.ini is: [handler_console] class = StreamHandler args = (sys.stderr,) level = NOTSET formatter = generic I used log.warn in my controller and it didn't go to stderr. I changed level to INFO so I can see the logging message. Best Regards, -jj --

Re: SMTPHandler not working

2009-02-18 Thread Shannon -jj Behrens
Check out this blog post: http://jjinux.blogspot.com/2009/02/python-logging-to-email-in-pylons.html If you have any comments, leave them on my blog. I'm having a hard time keeping up with this list ;) -jj On Wed, Dec 17, 2008 at 2:16 AM, Pavel Skvazh wrote: > > Trying to use SMTPHandler for l

Re: best way to get user's IP address in pylons?

2008-07-09 Thread Shannon -jj Behrens
On Mon, Jul 7, 2008 at 6:18 PM, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote: > Ugh, looking at request.environ, Varnish is giving me > HTTP_X_FORWARDED_FOR. Looking at my old Aquarium code, it respected > X_FORWARDED_HOST. Looking at Paste's proxy middleware, I see t

Re: supervisor questions

2008-07-09 Thread Shannon -jj Behrens
On Mon, Jul 7, 2008 at 4:37 PM, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote: > Hi, > > I'm looking at > http://wiki.pylonshq.com/display/pylonscookbook/Monitor+Pylons+application+with+supervisord. > I have a few questions: > > 1. Why does it use a manually cr

Re: supervisor questions

2008-07-08 Thread Shannon -jj Behrens
Thanks for all the advice guys. -jj -- It's a walled garden, but the flowers sure are lovely! http://jjinux.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this gro

Re: best way to get user's IP address in pylons?

2008-07-07 Thread Shannon -jj Behrens
Ugh, looking at request.environ, Varnish is giving me HTTP_X_FORWARDED_FOR. Looking at my old Aquarium code, it respected X_FORWARDED_HOST. Looking at Paste's proxy middleware, I see that it looks for X-Forwarded-Server. Gees, am I confused! Can someone lend me a clue? Thanks, -jj --~--~

Re: A new SQLAlchemy migration toolkit - miruku 0.1a3 has been released

2008-07-07 Thread Shannon -jj Behrens
On Thu, Jul 3, 2008 at 6:59 PM, Olli Wang <[EMAIL PROTECTED]> wrote: > > On Jul 4, 9:42 am, "Shannon -jj Behrens" <[EMAIL PROTECTED]> wrote: >> How is it possible to not require an upgrade script? What happens if >> I'm changing an email field into tw

Re: Exposing database Id via URL

2008-07-07 Thread Shannon -jj Behrens
> I would say: avoid using MD5 as a random string generator because it > hasn't been created for that purpose. If you want universally unique IDs and you have Python 2.5, see http://docs.python.org/lib/module-uuid.html. For my situation, normal autoincremented IDs are fine. Happy Hacking! -jj

Re: best way to get user's IP address in pylons?

2008-07-07 Thread Shannon -jj Behrens
Ian wrote: > I think we had philosophical differences about whether to read the > headers in attributes, or rewrite the environment, and I was on the rewrite > side. And... wasn't it X-Forwarded-Server? Sorry, didn't mean to pick on you, Ian ;) I'm all for rewriting the environ. If I remember

Re: distribute Pylons app with bytecode files only?

2008-07-07 Thread Shannon -jj Behrens
> Some people use 'encryption' as a trick - which is quite stupid I would have enjoyed your email much more if you didn't use such strong language ;) I've used obfuscation tools for Perl before, and yes, they're nice. When we encrypted the Python code, the only way to unencrypt it was to underst

Re: tests fail because of g

2008-07-07 Thread Shannon -jj Behrens
> I'm questioning why its initializing for every test, and not 1x then run all > the tests in it. If you use nose and *don't* use the unittest API, then you can have module-level setup functions. Create a directory named test with a file called test_foo. All your tests are normal functions like

supervisor questions

2008-07-07 Thread Shannon -jj Behrens
Hi, I'm looking at http://wiki.pylonshq.com/display/pylonscookbook/Monitor+Pylons+application+with+supervisord. I have a few questions: 1. Why does it use a manually created server.py instead of using paster like normal? 2. Does anyone have an rc script to start supervisor under Ubuntu? 3. I

Re: A new SQLAlchemy migration toolkit - miruku 0.1a3 has been released

2008-07-03 Thread Shannon -jj Behrens
On Wed, Jul 2, 2008 at 6:02 PM, Olli Wang <[EMAIL PROTECTED]> wrote: > Hi, I've just created a new migration toolkit - miruku. The goal of > miruku project is to do the migration work automatically by just one > simple command. There is no need to write upgrade script manually and > there is no ve

Re: distribute Pylons app with bytecode files only?

2008-07-03 Thread Shannon -jj Behrens
In the past, I worked at a company that stored all Python encrypted in a Berkeley DB and then used a custom import hook to get at it. -jj On Thu, Jul 3, 2008 at 8:45 AM, Dean Landolt <[EMAIL PROTECTED]> wrote: > You do realize it's trivial to decompile python bytecode, right? > > If you're that

Re: best way to get user's IP address in pylons?

2008-07-03 Thread Shannon -jj Behrens
On Thu, Jul 3, 2008 at 2:05 PM, Ian Bicking <[EMAIL PROTECTED]> wrote: > > Jonathan Vanasco wrote: >> On Jul 3, 4:42 pm, Wichert Akkerman <[EMAIL PROTECTED]> wrote: >>> Possibly better: >>> >>> request.environ.get("X_FORWARDED_FOR", request.environ["REMOTE_ADDR"]) >> >> maybe someone can make a

Re: com to co.uk with url_for

2008-06-28 Thread Shannon -jj Behrens
Pass qualified=True to url_for. -jj On Wed, Jun 25, 2008 at 7:26 AM, Nico Nicolic <[EMAIL PROTECTED]> wrote: > > Ok, I've created my own solution with regular expression. But the > problem is, when I'm trying to get the existing URL with url_for(), > it's just returns the relative url: "/", but

Re: Testing with the session object

2008-06-28 Thread Shannon -jj Behrens
On Fri, Jun 27, 2008 at 6:33 AM, Marin <[EMAIL PROTECTED]> wrote: > > I have this controller: > > class HeplController(BaseController): > >def index(self): >del session['user'] >session.save() >return 'OK' > > And I want to test if it works correctly with this test: > >

Re: Slightly OT - Testing Browsers with Pylons

2008-06-28 Thread Shannon -jj Behrens
On Fri, Jun 27, 2008 at 2:10 PM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > Just wondering what people use to test Pylons webapps with. > > I've been using Safari myself. > > I wanted to use Firefox badly, but the 3.0 branch has 2 behaviors that > seem to make development impossible: > - if Pyl

Re: mod_wsgi does not check for changed files?

2008-06-28 Thread Shannon -jj Behrens
On Fri, Jun 27, 2008 at 12:53 PM, webwurst <[EMAIL PROTECTED]> wrote: > Hi! > > If i start a pylons project with paster i can add the parameter -- > relaod, so changes to the source code are reflected directly. But i'm > using mod_wsdi now and i have to restard apache if i want changes in a > pyth

Re: Pylons equivalent of cherrypy's serve_file?

2008-06-24 Thread Shannon -jj Behrens
On Tue, Jun 24, 2008 at 7:41 PM, Chris <[EMAIL PROTECTED]> wrote: > Is there a Pylons equivalent of CherryPy's serve_file ? > I'm trying to allow file download for files that are not in the > 'public' directory > > In cherry py, it'd go something like this: > from cherrypy.lib.static import serve_

Re: How are c/h/etc provided to templates?

2008-06-24 Thread Shannon -jj Behrens
On Tue, Jun 24, 2008 at 7:25 AM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > I'm trying to make two other objects available to all templates. > > I'm wondering what the best practice would be. > > Looking at pylons.templating, I'm honestly a bit confused about what > is going on. > > ( and if yo

Re: url_for for static resources

2008-06-21 Thread Shannon -jj Behrens
On Sat, Jun 21, 2008 at 7:53 AM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > i had a similar situation -- i wanted to change url_for's output on > people who have a 'preview' cookie and those who don't > > i basically did this > > def url_for_custom( url ): >rval = url_for(url) >if logic

Re: jsonp support

2008-06-19 Thread Shannon -jj Behrens
On Thu, Jun 19, 2008 at 3:29 PM, Ian Bicking <[EMAIL PROTECTED]> wrote: > Maybe something like this: > > class HTTP_OK(HTTPException): > code = 200 > message = 'OK' > > raise HTTP_OK('some message') > > A little weird. But a good way to break out of the decorators. Hey Ian, I've needed that

Re: jsonp support

2008-06-19 Thread Shannon -jj Behrens
I understand what you mean. I return my errors in JSON. I think that makes the user's life easier. -jj On Thu, Jun 19, 2008 at 3:25 PM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > this thread had me thinking... > > it would be really neat if there were a way to cancel out the jsonify > decor

Re: '+' in URL not getting stripped away like '%20'

2008-06-19 Thread Shannon -jj Behrens
Hmm, upon rereading your post, I'm not sure if the two things are connected. Sorry. -jj On Thu, Jun 19, 2008 at 1:57 PM, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote: > If you put a URL into some HTML, you should HTML escape it. Yes, this > is strange. I wrote about

Re: '+' in URL not getting stripped away like '%20'

2008-06-19 Thread Shannon -jj Behrens
If you put a URL into some HTML, you should HTML escape it. Yes, this is strange. I wrote about it here: http://jjinux.blogspot.com/2006/03/html-escaping-s-in-urls-in-html.html Best Regards, -jj On Thu, Jun 19, 2008 at 11:48 AM, Tom <[EMAIL PROTECTED]> wrote: > Just wanted to update anyone wh

Re: Reddit open sources their site & pylons implementation

2008-06-19 Thread Shannon -jj Behrens
On Wed, Jun 18, 2008 at 8:03 AM, aaaron <[EMAIL PROTECTED]> wrote: > Announcement: > > http://blog.reddit.com/2008/06/reddit-goes-open-source.html > > Trac: > > http://code.reddit.com/ That video was awesome ;) -jj -- I, for one, welcome our new Facebook overlords! http://jjinux.blogspot.com/

Re: Ide

2008-06-19 Thread Shannon -jj Behrens
On Thu, Jun 19, 2008 at 1:26 AM, Antonio Beamud Montero <[EMAIL PROTECTED]> wrote: > El mié, 18-06-2008 a las 21:23 +, Rafael Hernandez S escribió: >> What Ide I can use with pylons > > Emacs ;) I saw a comparison, and WingIDE won a year ago or so. It's commercial, though. Personally, I use

Re: jsonp support

2008-06-19 Thread Shannon -jj Behrens
Here's what I ended up writing for use in my controller. It's a bit verbose, but it fits in with how I was doing things anyway. That is, I was already using FormEncode for other stuff, and I already had a create_exception_response function for other things: class JSONPValidator(formencode.Schem

Re: Pylons-based JSON-RPC service?

2008-06-17 Thread Shannon -jj Behrens
On Sun, Jun 15, 2008 at 1:12 PM, KJ <[EMAIL PROTECTED]> wrote: > Would Pylons be a good choice for implementing a JSON-RPC-based web > service? > > If yes, can someone point me to a good example? (Actually, I'd be > interested in seeing examples of any Pylons-based web service, even if > it doesn

Re: Adding content-length in all responses

2008-06-17 Thread Shannon -jj Behrens
On Mon, Jun 16, 2008 at 4:11 PM, Agustín (Cucho) Villena <[EMAIL PROTECTED]> wrote: > Hi! > > At work we need to add the "content-length" header in all our > responses, but we don't want to hack any method in our controllers to > do that. > > Is there any way to factor out this behaviour in a sing

Re: best practices for static resources

2008-06-17 Thread Shannon -jj Behrens
On Mon, Jun 16, 2008 at 2:37 PM, Cliff Wells <[EMAIL PROTECTED]> wrote: > On Mon, 2008-06-16 at 14:26 -0700, Cliff Wells wrote: >> On Mon, 2008-06-16 at 13:03 +0200, Wichert Akkerman wrote: >> > I am trying to figure out what the best practices for dealing with >> > static resources such as CSS, J

Re: WebHelpers-dev change: select() option order

2008-06-17 Thread Shannon -jj Behrens
On Tue, Jun 17, 2008 at 7:48 PM, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote: > On Tue, Jun 17, 2008 at 2:52 PM, Mike Orr <[EMAIL PROTECTED]> wrote: >> The option order in webhelpers.html.tags.select() has changed from >> [(label, value)] to [(value, label)]. T

Re: WebHelpers-dev change: select() option order

2008-06-17 Thread Shannon -jj Behrens
On Tue, Jun 17, 2008 at 2:52 PM, Mike Orr <[EMAIL PROTECTED]> wrote: > The option order in webhelpers.html.tags.select() has changed from > [(label, value)] to [(value, label)]. This matches most real-world > lists including dict.items() where the dict is {id : label}. It's the > opposite of the

Re: jsonp support

2008-06-17 Thread Shannon -jj Behrens
On Tue, Jun 17, 2008 at 3:25 PM, Ian Bicking <[EMAIL PROTECTED]> wrote: > > Shannon -jj Behrens wrote: >> On Tue, Jun 17, 2008 at 2:55 PM, Ian Bicking <[EMAIL PROTECTED]> wrote: >>> Shannon -jj Behrens wrote: >>>> I'm using the jsonify decorator.

Re: jsonp support

2008-06-17 Thread Shannon -jj Behrens
On Tue, Jun 17, 2008 at 3:21 PM, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote: > On Tue, Jun 17, 2008 at 2:55 PM, Ian Bicking <[EMAIL PROTECTED]> wrote: >> Shannon -jj Behrens wrote: >>> I'm using the jsonify decorator. It'd be nice if that decorator wer

Re: jsonp support

2008-06-17 Thread Shannon -jj Behrens
On Tue, Jun 17, 2008 at 2:55 PM, Ian Bicking <[EMAIL PROTECTED]> wrote: > Shannon -jj Behrens wrote: >> I'm using the jsonify decorator. It'd be nice if that decorator were >> updated to *automatically* support the jsonp parameter >> <http://bob.pytho

jsonp support

2008-06-17 Thread Shannon -jj Behrens
Howdy, I'm using the jsonify decorator. It'd be nice if that decorator were updated to *automatically* support the jsonp parameter . Hence, if I request a URL like , and jsonify is used,

Re: Forum plug-in for pylons?

2008-06-14 Thread Shannon -jj Behrens
On Sat, Jun 14, 2008 at 4:00 AM, Krishgy <[EMAIL PROTECTED]> wrote: > > Hi, > > We are developing a website for online deal sharing community. > > I needed a simple forum for users to post questions get clarifications > from the other users & site owners. This is mainly intended to how to > use th

Re: WebHelpers with Genshi do not work

2008-06-14 Thread Shannon -jj Behrens
I wonder if the has to be escaped, like . -jj On Sat, Jun 14, 2008 at 12:11 PM, webwurst <[EMAIL PROTECTED]> wrote: > > Hi! > > I just tried this example similar to that from > http://genshi.edgewall.org/wiki/GenshiRecipes/PylonsWithGenshi#TheHardWay > > PUBLIC "-//W3C//DTD XHTML 1.0 Str

Re: Exception email reporting in production

ng all those > mails and just changing the address did the trick. > thanks > Ben > > On 13 Jun, 03:01, "Shannon -jj Behrens" <[EMAIL PROTECTED]> wrote: >> On Thu, Jun 12, 2008 at 3:48 AM, [EMAIL PROTECTED] >> >> >> >> <[EMAIL PROTECTED

Re: Difference between controllers and views?

omething about new WSGI > environment key "wsgiorg.routing_args". I might be completely wrong on > that though. > > Cheers > Alexander > > On Jun 12, 9:59 pm, "Shannon -jj Behrens" <[EMAIL PROTECTED]> wrote: >> On Thu, Jun 12, 2008 at 10:05 AM,

Re: Exception email reporting in production

On Thu, Jun 12, 2008 at 3:48 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, I'm having trouble getting pylons to report errors via email where > debug = false - basically nothing ever turns up. > > In production.ini there are some lines like: > > email_to = [EMAIL PROTECTED] > smtp_serve

Re: Difference between controllers and views?

On Thu, Jun 12, 2008 at 10:05 AM, rcs_comp <[EMAIL PROTECTED]> wrote: > On Jun 11, 4:10 pm, Karlo Lozovina <[EMAIL PROTECTED]> wrote: >> What's the practical difference between controller based approach and >> views based one? Eg. Django views, and controllers in Pylons? It >> doesn't seem that mu

Re: Bulk inserts

> - IIRC, a friend tried something similar where his apps were posting > the data to an central twisted daemon on his lan. that daemon then > handled all of the logging , rotating, and misc management. "Scalable Internet Architectures" does a good job explaining approaches like this with Spread

Re: Long running "background" operations?

On Thu, Jun 12, 2008 at 3:52 PM, Thomas Matysik <[EMAIL PROTECTED]> wrote: > Is there a way to "background" a long operation; ie return a response to the > user while leaving it running? > > I have an (infrequently used) operation that needs to be launched from a web > request that can take severa

Re: DistributionNotFound: decorator problem using PyISAPIe

On Wed, Jun 4, 2008 at 3:12 PM, rcs_comp <[EMAIL PROTECTED]> wrote: > I am trying to get Paste running using the PyISAPIe WSGI server on > IIS. However, I am getting this error and I can't figure out why: > > The same application succesfully runs with the paste HTTP server. > > Traceback (most re

Re: Truncating an html string safely

On Sat, Jun 7, 2008 at 7:24 AM, Matt Feifarek <[EMAIL PROTECTED]> wrote: > Oops; replied from the wrong address. > > -- Forwarded message -- > > On Thu, Jun 5, 2008 at 2:36 PM, Ian Bicking <[EMAIL PROTECTED]> wrote: >> >> Well... it's hard to truncate exactly, as there's all that a

Re: initialise session in functional test

On Sun, Jun 8, 2008 at 3:36 AM, Wichert Akkerman <[EMAIL PROTECTED]> wrote: > Does anyone have tips or example code for getting some test data into a > (beaker) session so a controller that's being tested can pick that up? If I were in your shoes, I would do some variation of the following: * Pu

Re: Pylons memory leak

On Wed, Jun 11, 2008 at 10:28 PM, zepolen <[EMAIL PROTECTED]> wrote: > I'm running pylons with paster in daemon mode. At startup the paster > process is using 10% (100mb) memory. > > Paster is serving about 500k requests per day, 350k are pages, 150k > are ajax requests. Static files (an extra 800

Re: Bulk inserts

On Wed, Jun 11, 2008 at 7:20 PM, Contact 42 <[EMAIL PROTECTED]> wrote: > Jonathan Vanasco wrote: >> write to a .txt log in some sort of standardized format , when it hits >> 10k lines run a batch query > what happens if an insert fails ? It continues with the rest of the batch. It'll tell you at

Re: per request template path modification

On Wed, Jun 11, 2008 at 5:40 AM, kai <[EMAIL PROTECTED]> wrote: > Hi All, > How do I modify the mako template path per request. I'm serving up > multiple languages and and I have the i18n stuff working. However some > of the markup needs to also vary depending on the language. > so during the requ

Re: paster make-config issue

On Wed, Jun 11, 2008 at 9:51 AM, Ian Bicking <[EMAIL PROTECTED]> wrote: > > Jean Parpaillon wrote: >> Hi all, >> When using paster make-config, generated file is automatically added to svn. >> Is there a way to disable it ? Why is it the default behaviour ? (Generated >> files are usually not vers

Re: Difference between controllers and views?

On Wed, Jun 11, 2008 at 3:14 PM, Ben Bangert <[EMAIL PROTECTED]> wrote: > On Jun 11, 2008, at 1:10 PM, Karlo Lozovina wrote: > >> What's the practical difference between controller based approach and >> views based one? Eg. Django views, and controllers in Pylons? It >> doesn't seem that much diff

Re: Bulk inserts

Beware of multiple threads and/or processes writing to the file at the same time. It may make sense to use a mutex. I agree with the earlier recommendations to use mysql load data in file. It really is a lot faster. You can completely remove Python from the picture when importing the file. He

Re: Pylons Session help

On Mon, Jun 9, 2008 at 1:50 AM, Krishgy <[EMAIL PROTECTED]> wrote: > > Hi, > > I am working on a community website, using pylons. > > I needed to capture the user navigation by recording user interaction > with the web site. I will store the urls with the query string (GET > method, query param sh

Re: Pylons Session help

On Mon, Jun 9, 2008 at 1:26 PM, Mike Orr <[EMAIL PROTECTED]> wrote: > > On Mon, Jun 9, 2008 at 1:50 AM, Krishgy <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I am working on a community website, using pylons. >> >> I needed to capture the user navigation by recording user interaction >> with the web

Re: Pylons Doc as compiled windows help file (chm)

On Wed, May 28, 2008 at 8:21 AM, Andrew Smart <[EMAIL PROTECTED]> wrote: > >> -Ursprüngliche Nachricht- >> Von: pylons-discuss@googlegroups.com >> [mailto:[EMAIL PROTECTED] Im Auftrag von Andrew Smart >> Gesendet: Mittwoch, 28. Mai 2008 17:20 >> An: pylons-discuss@googlegroups.com; [EMAIL

Re: advice with configuration/scaling a live Pylons app.

On Fri, May 30, 2008 at 5:12 AM, Alex Marandon <[EMAIL PROTECTED]> wrote: > > 2008/5/30 Graham Dumpleton <[EMAIL PROTECTED]>: >>> class FooController(BaseController): >>> >>> def bla(self): >>> return 'Hello World! %s' % time.time() >>> >>> def slow_bla(self): >>> time.slee

Re: advice with configuration/scaling a live Pylons app.

On Fri, May 30, 2008 at 12:49 AM, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > On May 30, 12:56 pm, "Mike Orr" <[EMAIL PROTECTED]> wrote: >> On Thu, May 29, 2008 at 4:30 PM, Graham Dumpleton >> >> >> >> <[EMAIL PROTECTED]> wrote: >> >> > On May 29, 7:29 pm, "Alex Marandon" <[EMAIL PROTECTED]> w

Re: How did you begin your fun with Pylons?

I'm not making any judgments about anyone. However, I did see a great talk yesterday called "How Open Source Projects Survive Poisonous People": http://youtube.com/watch?v=ZSFDm3UYkeE It's definitely worth watching ;) -jj On Thu, May 29, 2008 at 9:33 PM, Jonathan Vanasco <[EMAIL PROTECTED]> wr

Re: Cross-Project code sharing...modules/plugins what does Pylons use?

On Sat, May 24, 2008 at 6:37 AM, rcs_comp <[EMAIL PROTECTED]> wrote: > Hello all, > > I am new to the Python web-programming world and trying to decide on > frameworks. I was really impressed with Django, but ran into some > problems with IIS hosting. Since Pylons had really nice install > instr

Re: Deployment Question

On Fri, May 23, 2008 at 2:26 PM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > > On May 23, 3:48 pm, "Mike Orr" <[EMAIL PROTECTED]> wrote: >> This is quite interesting. I've been looking for a way to build a >> site scraper (something analogous to an aggregator but more >> site-specific) that cou

Re: Deployment Question

On Fri, May 23, 2008 at 12:32 AM, Lawrence Oluyede <[EMAIL PROTECTED]> wrote: > > On Thu, May 22, 2008 at 11:12 PM, Shannon -jj Behrens <[EMAIL PROTECTED]> > wrote: >> Has anyone tried out the mod_wsgi module for *Nginx*? Yeah, I know, >> weird: http://wiki.c

Re: How did you begin your fun with Pylons?

On Fri, May 23, 2008 at 1:38 AM, Christoph Haas <[EMAIL PROTECTED]> wrote: > On Freitag, 23. Mai 2008, Mike Orr wrote: >> On Thu, May 22, 2008 at 11:46 PM, Raoul Snyman <[EMAIL PROTECTED]> > wrote: >> > I will have to agree with the sentiments already voiced here. The >> > documentation is very sp

Re: How did you begin your fun with Pylons?

On Thu, May 22, 2008 at 7:37 AM, Mikeroz <[EMAIL PROTECTED]> wrote: > Hey guys, > I'm wondering where did you start your journey with Pylons? Ben Bangert and I decided to meet for dinner in Berkeley. I got very lost and ended up in Oakland. I finally got to the restaurant an hour late. Ben had

Re: Deployment Question

Here's my two cents: Has anyone tried out the mod_wsgi module for *Nginx*? Yeah, I know, weird: http://wiki.codemongers.com/NginxNgxWSGIModule Being asynchronous rules! That's why Erlang, Squid, IronPort servers, Nginx, etc. are able to handle so many concurrent requests so easily. Here's the

Re: Beaker Trunk With Appengine

On Fri, May 16, 2008 at 11:16 AM, Anil <[EMAIL PROTECTED]> wrote: > I am trying to run pylons with google app engine and everything is > working perfectly locally, but when I upload the site live beaker > gives me the following error. Anyone have any idea on where to start > debugging? http://pas

Re: Authkit - colliding cookies

On Sun, May 18, 2008 at 7:10 AM, Moshe C. <[EMAIL PROTECTED]> wrote: > Hi, > > I have two parallel applications running from the same host but on > different ports. > > How do I configure Authkit so that each one creates a unique cookie. > > Currently if you log into one app, you are also authenti

going "off line"

Hey guys, As much as I love Pylons, I need to step off the list for a little while. If you need to ask me questions, feel free to send me email directly. Wish me luck with my fourth child which is due in two weeks! Happy Hacking! -jj -- http://jjinux.blogspot.com/ --~--~-~--~~---

Re: Pylons deployment methods

I could create a package for a client that > does not contain development files and other unnecessary stuff that > might confuse him > > On Jun 10, 3:03 am, "Shannon -jj Behrens" <[EMAIL PROTECTED]> wrote: > > On 6/8/07, voltron <[EMAIL PROTECTED]> wrote: > >

Re: mod_python configuration?

On 6/7/07, Chris Shenton <[EMAIL PROTECTED]> wrote: > "Shannon -jj Behrens" <[EMAIL PROTECTED]> writes: > > > The current favorite way to run Pylons apps behind Apache is to proxy > > them and use Paster. It's exactly the sort of problems that

Re: Using pater with other servers

Regards, -jj On 6/8/07, voltron <[EMAIL PROTECTED]> wrote: > Could you explain how I would go about that Shannon? > > Thanks > > > > On Jun 7, 11:15 am, "Shannon -jj Behrens" <[EMAIL PROTECTED]> wrote: > > On 5/30/07, voltron <[EMAIL PROTECTE

Re: Pylons deployment methods

x? I create eggs using: python setup.py bdist_egg > I take it too be the same as in the docs, but this just threw > horrible errors back at me Sorry, I don't know why. Best Regards, -jj > On Jun 7, 12:03 pm, "Shannon -jj Behrens" <[EMAIL PROTECTED]> wro

Re: use for loop var in a code block

On 6/9/07, Techniq <[EMAIL PROTECTED]> wrote: > if I have a the following for loop: > > > > $p > > > It appears that 'p' cannot be used in the ${ ... } block. if it can, > how? if not what other options do I have? It works for me. I assume you're using Genshi. By the way, I noticed tha

Re: Conditional database creation in websetup

On 6/7/07, voltron <[EMAIL PROTECTED]> wrote: > I have meta.create_all() in my websetup.py file, this takes all the > models in the models.py file and attempts to create a database based > on the models found, can one code a conditional that asks beforehand > exactly what databases it should creat

Re: accessing request handler from BaseController

On 6/7/07, Max Ischenko <[EMAIL PROTECTED]> wrote: > Hello, > > On 6/7/07, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote: > > > > Somewhere in the environ, there's the Routes stuff. You can use that > > to figure out which action was executed. I usua

Re: Subdirectories and resource paths in Mako

On 6/7/07, Philip Jenvey <[EMAIL PROTECTED]> wrote: > > > On Jun 7, 2007, at 6:09 AM, Daniel Tang wrote: > > > On 6/7/07, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote: > > > > > Also, for static resources, like images or CSS files that > > actu

Re: Pylons deployment methods

chine as it > should > > Did I get it? Pretty close: * Create an egg. * Copy the egg to the server. * easy_install the.egg. * paster setup-app your.ini. Best Regards, -jj > "the way of the pylons is sometimes easy, but mostly secretive and > tricky" > > On May

Re: use of globals, threadless, and requests

On 5/29/07, alecf <[EMAIL PROTECTED]> wrote: > I'm interested in serving up my pylons app under Stackless Python - > Stackless is more or less single-threaded so the model is somewhat > like Twisted but without all the deferreds. Instead of threads, there > are tasklets which participate in kind o

Re: mod_python configuration?

On 5/29/07, Chris Shenton <[EMAIL PROTECTED]> wrote: > > I used mod_python about 6 months back to get Apache to proxy HTTPS to > my Pylons app; it wasn't easy. > > Now I'm trying again with current Pylons, paste and friends. But I'm > again having troubles getting it to work. > > The simplest apa

Re: Custom error documents

On 5/31/07, voltron <[EMAIL PROTECTED]> wrote: > > I wish we could edit posts. Anyway, I took a look at the docs again, > so I modified my error.py accordingly, but I still get a trace: > > > response = self._dispatch_call() > File "c:\python24\lib\site-packages\Pylons-0.9.5-py2.4.egg\pylons

Re: "Acts as authenticated" like functionality

On 6/1/07, baus <[EMAIL PROTECTED]> wrote: > > > Is there anything that implements most of the features in the Rails' > > acts like authenticated plugin for pylons? > > > > http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated > > > > It seems authkit handles a subset of this functio

Re: Subdirectories and resource paths in Mako

> Also, for static resources, like images or CSS files that actually are > on the proxy server proxying for the Paster server, how can I pass a > sort of "/media" path to my templates that would always be resolved no > matter how deep the links are that are mapped? Personally, I'm lazy, so I just

Re: Using pater with other servers

On 5/30/07, voltron <[EMAIL PROTECTED]> wrote: > I am trying to get Pylons to work with a web server that supports > FCGI, the problem is, the server manges URLs with extentions like .php > e.t.c which Pylons does not have. Are there some key things that I > have to take notice of when trying to c

Re: paster shell not available

On 6/5/07, aaaron <[EMAIL PROTECTED]> wrote: > I ran into the same problem... > > > Make sure there's a file called "paster_plugins.txt" inside your > > egg_info directory with, at least, the following lines: > > After re-creating paster_plugins.txt, what is recommended?: (a) adding > the entire e

Re: accessing request handler from BaseController

On 6/6/07, Max Ischenko <[EMAIL PROTECTED]> wrote: > Hello, > > I am not very happy with the default validation scheme suggested by Pylons > and trying to design my own. > > The idea is to let the code handle main code path (data is valid) and > handle validation error separatedly. I want to be

Pylons jobs

I'm seeing a lot of Pylons-related jobs out here in Silicon Valley. I think that's a very good sign. If anyone wants one, I know that both Wize and Metaweb are looking for really solid Python guys who know Pylons. Tell them I sent you. Best Regards, -jj -- http://jjinux.blogspot.com/ --~--~

Re: Odd behavior with paster and Pylons

On 6/3/07, Daniel Tang <[EMAIL PROTECTED]> wrote: > I discovered some interesting behavior when using Pylons on WebFaction. For > some very odd reason that I can't discern, whenever I run paster inside of a > Pylons command, even if I don't pass any arguments, it launches gconfd-2. > Normally, I

Re: SQLAlchemy + MySQL + UTF-8 support - how?

s should have gone in the DBAPI spec. However, if someone wants to let SQLAlchemy do the work, I don't have any objections. Happy Hacking! -jj > Shannon -jj Behrens wrote: > > > > > I'm not necessarily disagreeing with you, but I do think it's really > > bad prac

Re: Pylons deployment methods

On 5/29/07, voltron <[EMAIL PROTECTED]> wrote: > This is another of my "what is the best way" questions. > > I would like to deploy my Pylons application without headaches on my > clients server. This would mean my app with its templates and creating > the database. A while back, Dan posted that h

Re: SQLAlchemy + MySQL + UTF-8 support - how?

I'm not necessarily disagreeing with you, but I do think it's really bad practice to have your database confused about the encoding of the data that it's storing. At one point, I had things messed up and the data in the database was double encoded. Sure, it worked as long as I was using SQLAlche

Re: Installation problems

k. > > On May 28, 2:52 pm, "Shannon -jj Behrens" <[EMAIL PROTECTED]> wrote: > > On 5/28/07, Calder <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi, > > > > > I'm new to Pylon, and I just installed it using easy_install.

Re: Class nesting or subclassing controllers

k to creating controllers and imports > > Thanks! > > On May 26, 8:49 am, "Shannon -jj Behrens" <[EMAIL PROTECTED]> wrote: > > On 5/25/07, voltron <[EMAIL PROTECTED]> wrote: > > > > > Is it possible to nest classes in a controller class?

Re: Installation problems

On 5/28/07, Calder <[EMAIL PROTECTED]> wrote: > Hi, > > I'm new to Pylon, and I just installed it using easy_install. It said > it installed successfully, but when I start the first tutorial and > type: > paster create --template=pylons helloworld > I get the following error: > > Traceback (most

  1   2   3   4   >