Re: Running Pylons via FastCGI (Again)

2007-09-11 Thread Jens Hoffrichter
Hello, On 9/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Issuing an os.chdir(/path/to/pylons) fixed the problem although I am > not sure if this is the best solution or not. If there any suggestions > on how to make this work better, I would really appreciate it. I think you need to a

Re: Running Pylons via FastCGI (Again)

2007-09-11 Thread Jens Hoffrichter
rk in pylons as well. Regards, Jens On 9/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > On Sep 11, 4:57 am, "Jens Hoffrichter" <[EMAIL PROTECTED]> > wrote: > > I think you need to add the pylons path to the library paths in python. > >

Re: Ide

2008-06-20 Thread Jens Hoffrichter
Hi everyone, I'd like to chime in this discussion and adding my personal 2 cent to it. Warning: Lengthy response coming up, and not only for pylons, but also for general python dev First of all, choose of editor is very much a choice of personal preference and sometimes even a "religious" thing

Recommended way to build forms

2008-07-15 Thread Jens Hoffrichter
Hi all, Finally I will be getting around to build a proof of concept, for a project I will be working on, in pylons. So after all those mails from me with: "I don't know pylons, just python", this might be a real change ;) I have started looking into what I will really need for the project, and

Re: miruku 0.1a6 released.

2008-07-15 Thread Jens Hoffrichter
Hello, 2008/7/11 Olli Wang <[EMAIL PROTECTED]>: > miruku is a migration toolkit for SQLAlchemy. > > I'm pleased to release miruku 0.1a6. There are several bugs fixed > since 0.1a3. You may need to re-read the tutorial to adapt some not > backward-compatible updates. If you have any suggestion or

Re: Recommended way to build forms

2008-07-17 Thread Jens Hoffrichter
Hello, I started building the first form for the project yesterday, and have decided to give tw.forms a try. Though it was a bit confusing that there is ToscaWidgets and tw.forms, it took me a bit of time to figure out that I didn't have the whole package to start building forms :) A thing which

Parsing paste config file (development.ini)

2008-07-19 Thread Jens Hoffrichter
Hey guys, I'm currently trying to figure out a standard compatible way (speak: Reuse the code from paste/pylons) to parse the config file. The reason for this is that I need a standalone application outside of pylons as a supporting process, but I really would like to use the development/test.in

Re: Pylons on Google App Engine

2008-07-21 Thread Jens Hoffrichter
Hello Jonathan, 2008/7/21 Jonathan Vanasco <[EMAIL PROTECTED]>: > > php is a templating language. all that stuff is written in c and is > optimized. php is WAY faster at variable interpolation than python, > perl, everything else. > > templates are a small fraction of your 'business logic'. 95

Pylons powered - New site

2008-11-12 Thread Jens Hoffrichter
ailing list who have been helpful and discussed with me a lot during the whole time doing the implementation. Regards, Jens Hoffrichter Manager Engineering & Development -- p-square oHG - smart programming for smart people Schultesche Heide 23 - D-44807 Bochum phone +49 (0)234 5164848 - fax +49 (

Re: How do I get the current controller action?

2008-11-14 Thread Jens Hoffrichter
If you modify the signature of the __call__ method in the BaseController to def __call__(self, action): you have it right there, and can check all you want :) That is how I do that exactly in my home brewn authentication ;) Regards, Jens --~--~-~--~~~---~--~~ Y

Re: How do I get the current controller action?

2008-11-14 Thread Jens Hoffrichter
I'm pretty sure I read that in some sort of pylons documentation. I'm really trying to remember where it is, I think it was in a discussion on AuthKit vs. some home-brewn stuff. The pylonsbook has something similar there, but it looks different Ah well, I hope it helped :) Jens --~--~-

Re: Pyjamas : Python -> JS

2008-12-06 Thread Jens Hoffrichter
Hello all, 2008/12/6 Lawrence Oluyede <[EMAIL PROTECTED]>: > > On Sat, Dec 6, 2008 at 2:36 PM, Jorge Vargas <[EMAIL PROTECTED]> wrote: >> That said I really think a JS wrapper in JS is better than a JS >> wrapper in python or whatever language for that matter. Any DSL which >> is pretty much what

Re: Pylons + Dojo

2009-04-06 Thread Jens Hoffrichter
Hi Mauricio, 2009/4/6 Mauricio Daniel Hoffart : > I am new to pyton > I am trying to use Pylons + Dojo and I am having trouble calling a control > with multiple parameters. What is an example of that? > > Thanks a lot > > Ex: >

Re: MySQL-python installation nightmare

2009-05-08 Thread Jens Hoffrichter
Mmmh, I'm not sure this is the right question to ask, but as you don't mention it in your mail: Why don't you just take a binary installation from mysql-python.sourceforge.net? Either the precompiled .egg or the setup binary - that worked for me everytime I worked with mysql and python on a window

Re: myghty: Error(UnicodeDecodeError): 'ascii' codec can't decode byte 0xc3

2007-05-16 Thread Jens Hoffrichter
On 5/16/07, voltron <[EMAIL PROTECTED]> wrote: > > Hi Steve, this is good information as it is a good workaround for the > problem that I have been having with my Mako templates with > Umlauts( see thread > http://groups.google.com/group/pylons-discuss/browse_thread/thread/4d278dee35c62519) > > I

Re: myghty: Error(UnicodeDecodeError): 'ascii' codec can't decode byte 0xc3

2007-05-16 Thread Jens Hoffrichter
Hey Voltron, On 5/16/07, voltron <[EMAIL PROTECTED]> wrote: > > Oh I did not know about that, thanks Jens. Excuse my newbiness, but > could you explain your method further? where is site.py? The declaration for working with encodings in Python files is described here, in PEP 263: http://www.pyt

Re: A few questions about style...

2007-08-13 Thread Jens Hoffrichter
Hello everyone, Just to state it again, I'm no Pylons developer, but a Python veteran, and the discussion about search engines caught my attention and I thought that I might add my 2 cents to it :) On 8/13/07, Marcin Kasperski <[EMAIL PROTECTED]> wrote: > >> 3) What is the typical approach to g

Re: pylons crash

2007-08-23 Thread Jens Hoffrichter
You might want to take a look here: http://groups.google.com/group/pylons-discuss/browse_thread/thread/4d944dc3c85346d5/70948f9c90994de0 This actually a quite common python problem, if this doesn't resolve your issues, you may look in the group for unicode or utf-8. It is almost certainly relate

Logging with multiple applications in one .ini file

2009-12-06 Thread Jens Hoffrichter
Hello all, I am currently configuring a second application in parallel to my currently running application the .ini file. So far, everything is running quite good, the application is running without a problem. But I can't seem to get logging for the second application up and running. I have adde

Re: searching for some jsonify example or tutorial

2009-12-17 Thread Jens Hoffrichter
> import simplejson > json_obj = {'foo', 'bar'} > return simplejson.dumps(json_obj) > etc... Or even simpler (at least in 0.9.6.2 - not sure if this still stands with newer versions) from pylons.decoraters import jsonify class TestController(BaseController): @jsonify def testaction(self):

Roadmap for 1.0

2010-03-18 Thread Jens Hoffrichter
Hi all, I know I'm probably touching a bit of a sore topic here, but I'd like to ask what the roadmap for the 1.0 release of pylons will be. The background for this question is not that I'm impatient, but we are about to start one or two projects which are due to be finished in around 3 months. I

Re: Roadmap for 1.0

2010-03-20 Thread Jens Hoffrichter
Hi Mike, On 19 March 2010 01:19, Mike Orr wrote: > 1.0 is just waiting for the documentation and tests to be finished. I > don't know the date but I'd expect it in the next 2-3 weeks. The code > is finished; there won't be any changes from tip unless an unexpected > bug is discovered. > > Lookin

Re: YUI CSS grids deprecated in 3.1?

2010-04-26 Thread Jens Hoffrichter
We have worked now for a couple of projects with Blueprint, http://www.blueprintcss.org/ - I can really recommend that, it makes the layout just so easy you don't really have to think about it, especially if you have a grid-like layout with a fixed with (which most of our projects have). Jens --

WebHelpers compatible with Pylons 0.9.6.2

2010-04-27 Thread Jens Hoffrichter
Hi all, Yes, I know, I'm speaking of an ancient Pylons version there, but it is what we are using for running two of our major applications. The major changes in Pylons >= 0.9.7 have put us off migrating to a newer Pylons, as it would just quite risky doing that on a live service (not to mention

Returning a file object from an action

2010-07-21 Thread Jens Hoffrichter
Hi everyone, I looked into the documentation, but couldn't find any mentioning of what I could return from an action. I know that I can return a string, most likely rendered from a template. Is it possible to return a file object from an action, so that the contents of the file will be delivered

Re: Returning a file object from an action

2010-07-21 Thread Jens Hoffrichter
Hi, On 21 July 2010 21:40, Mike Orr wrote: > On Wed, Jul 21, 2010 at 12:33 PM, Ian Wilson > wrote: >> Hello, >> >> I think you want something like this. >> >> from paste.fileapp import FileApp >> >> # in controller >>     #...in some action, get the path to serve >>     wsgi_ap

Re: Returning a file object from an action

2010-07-23 Thread Jens Hoffrichter
On 22 July 2010 20:01, Mike Orr wrote: >>> > I think you want something like this. >>> > >>> > from paste.fileapp import FileApp >>> > >>> > # in controller >>> >     #...in some action, get the path to serve >>> >     wsgi_app = FileApp(path) >>> >     return wsgi_app(request

Optimizations for production

2010-08-20 Thread Jens Hoffrichter
Hi everyone, As this mailing list has proved very proficient in the past in helping with my problems, I thought you could help me now by brain storming for more optimizations on our production site here. I have done all the things I can think of by now, but maybe I'm missing something fundamental.

Re: pyramids and pylons

2010-11-05 Thread Jens Hoffrichter
Hi all, Thanks to especially Graham and Mike to point out what the benefit for the "end-user-developer" (a crude term, I know ;) ) will be with the Pylons2/Pyramid move. When I started to read these posts, I was a bit concerned, too. I (we, my company) have been long time Pylons users, and admitt

Re: A Plone clone for Pyramid?

2010-11-05 Thread Jens Hoffrichter
Having a nearly-ready made CMS on top of Pylons would be the most amazing thing likeever ;) I have struggled too much with the shortcomings of PHP based CM systems over the years (and I'm doing so right now, once more, with growing pains). That much said, I would love to contribute something

Re: A Plone clone for Pyramid?

2010-11-13 Thread Jens Hoffrichter
Hello everyone, The thought of having a CMS on top of Pylons/Pyramid didn't leave me alone, and I caught myself thinking about how I would implement it, so I'm going to throw some ideas and thoughts in the room, and hope a productive discussion spawns from it. First of all, I have a heave CMS bac

First pyramid impressions

2011-03-07 Thread Jens Hoffrichter
Hello everyone, I have already (though infrequently) posted to this mailing list, but just to give a short overview of myself: I have been developing in Python for nearly 10 years now, have written big and small web applications using Myghty and Pylons. In Pylons, I have made the upwards transitio