WebHelpers 1.2 released

2010-08-18 Thread Mike Orr
WebHelpers 1.2 has been released. This version uses MarkupSafe, which is an implementation of ``literal`` and ``escape`` that's more secure and has a C speedup for escape. Pylons and Mako have also switched to MarkupSafe, so if you're on Pylons 1.0.1 you already have it. The other changes are all

can some one help me choose the right library for dynamic forms?

2010-08-18 Thread Krishnakant Mane
Hello all, I have off late posted a few questions which are challenging for me to solve. I have a need to create dynamic forms for my pylons application. I had posted earlier on using tw.dynforms and asked for some guidance. But now I know that I will be forced to change my templating engine to

Re: can some one help me choose the right library for dynamic forms?

2010-08-18 Thread Ian Wilson
Formencode has a notion of nested variables/repetitions. Is that what you are trying to do ? http://formencode.org/Validator.html#http-html-form-input It can be tricky to setup but its possible. On Wed, Aug 18, 2010 at 12:18 PM, Krishnakant Mane krm...@gmail.com wrote: Hello all, I have off

UnicodeDecodeError when using Mako?

2010-08-18 Thread karikris...@gmail.com
Now I get UnicodeDecodeError with pylons and mako. I referred the wiki page http://wiki.pylonshq.com/pages/viewpage.action?pageId=5439551 but good not get much idea how to configure this for pylons 1.0 and above. Here is error details UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in

Re: can some one help me choose the right library for dynamic forms?

2010-08-18 Thread karikris...@gmail.com
Hi Krishnakant, I think, you may need to roll out your own solution. Anyway, my knowledge in this field is very limited. Regards, Krish http://www.stacked.in [Pylons, Redis, JQuery] On Aug 19, 12:34 am, Ian Wilson ianjosephwil...@gmail.com wrote: Formencode has a notion of nested

Re: can some one help me choose the right library for dynamic forms?

2010-08-18 Thread Wojtek Augustynski
Yeah, Mako is sooo easy to make your own custom tags.. Now if you mix in dojo declarative tags you have magic. Simple XHR or any RPC you want. Beautiful OO JS design, huge librariry, and 80% of the stuff is easy as a custom dojo type tag which you can extend with mako. On Wed, Aug 18, 2010 at

Re: UnicodeDecodeError when using Mako?

2010-08-18 Thread Daniel Kluev
On Thu, Aug 19, 2010 at 7:04 AM, karikris...@gmail.com karikris...@gmail.com wrote: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128) This error means mako received non-unicode string, tried to cast unicode(string) on it, and failed due to

'url' function from Forms section in the documentation

2010-08-18 Thread Wouter Van Hemel
Hello, I'm new to Pylons. In the Forms section of the 1.0 documentation on the Pylons website we're given the following example: def email(self): # Code to perform some action based on the form data # ... redirect(url(action='result')) ... but in a default 1.0 installation, the

py2exe and pylons pkg_resources.DistributionNotFound: PasteScript

2010-08-18 Thread ollebanan
Hi all, I'm currently trying to bundle a Pylons application via py2exe, however. I keep getting: Traceback (most recent call last): File main.py, line 1, in module import paste.script.serve File paste\script\serve.pyc, line 18, in module File paste\script\command.pyc, line 36, in

Setting up Virtual Environment

2010-08-18 Thread Kunal Cholera
I am trying to setup virtual environment on my computer to play around with pylons. I used the following command : C:\C:\Python26\python.exe C:\Users\kunal\Downloads \virtualenv-1.4.9\virtualenv -1.4.9\virtualenv.py C:\Development Now when I am trying to install pylons in my virtual

SQLAlchemy, Multiple Engines and Threading

2010-08-18 Thread Myx
Greetings fellow Pyloneers! I have started to encounter a quite annoying problem while working on my current project: The results from database querys are different from thread to thread. My project is a server for a flash game, the server contains code for logging in and databaseing. The idea

Pylons authentication and authorization using repoze.what

2010-08-18 Thread saurabh
Hello, I have written a small tutorial on Pylons authentication and authorization using repoze.what. http://sarafsaurabh.wordpress.com/2010/08/10/pylons-authentication-and-authorization-using-repoze-what/ Most of the stuff is copied over from the original pylons cookbook tutorial. But I ran

Interactive Debugger not working with Genshi

2010-08-18 Thread Richie Ward
I created my project with Genshi support instead of Mako and the Interactive Debugger does not show up when I raise an Exception. I found out that if I make a project with the default mako, it works fine! Can someone help me? Is this a bug? If so can someone file it? I am having problems

Pylons Escaping and Security

2010-08-18 Thread Nat W
I saw the developer of Python's ESAPI library recently published Swingset, designed to educate about XSS (cross-site scripting) and other vulnerabilities in python: http://owasp-esapi-python-swingset.appspot.com/ Of particular note for Pylons community members is his demonstration of a couple

TurboMail 3 with Pylons 1.0 - MailNotEnabledException

2010-08-18 Thread Bzouchir
hi guys, I am trying to setup TurboMail 3 with Pylons 1.0 Followed the docs http://packages.python.org/TurboMail/chapters/detailed.html#pylons I have added this to the development.ini ** [DEFAULT] ... mail.on = true mail.manager = immediate mail.transport = smtp mail.smtp.server

How to do dynamic inheritance in Mako?

2010-08-18 Thread Chi
Instead of static inheriting the files, like this: %inherit file=base.mako/ I want to set the file names dynamically in the controller with the context variable so that I can do this: %inherit file=${c.base_file}/ I tired but I got the global name 'c' not defined error. Than I tried: %inherit

pylons.config doesn't seem to care about config... at all

2010-08-18 Thread Peter Hartmann
Hello there, truth is, I was not using Pylons since 0.9.7, but this piece of documentation still seems relevant: http://pylonshq.com/docs/en/1.0/configuration/#getting-information-from-configuration-files So I have an auth.py file in /config which sets up, well, auth. It takes three parameters

Re: Routing for a RESTful web service - question

2010-08-18 Thread Geoffry
So, it turns out I missed noticing the lines: map.connect('/{controller}/{action}') map.connect('/{controller}/{action}/{id}') and didn't think about the order of my routes and these... By putting these default routes after mine it fixed the problem - as {action} was not being picked up

Re: TurboMail 3 with Pylons 1.0 - MailNotEnabledException

2010-08-18 Thread Graham Higgins
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11 Aug 2010, at 14:16, Bzouchir wrote: from turbomail.adapters import tm_pylons tm_pylons.start_extension() I'll hazard a(n educated) guess... The Pylons adaptor for TM uses old-style (i.e. 0.9.7) config-handling: from pylons

Re: TurboMail 3 with Pylons 1.0 - MailNotEnabledException

2010-08-18 Thread Graham Higgins
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18 Aug 2010, at 22:59, Graham Higgins wrote: The Pylons adaptor for TM uses old-style (i.e. 0.9.7) config-handling: from pylons import config Nope, wrong according to 1.0 docs...

Re: TurboMail 3 with Pylons 1.0 - MailNotEnabledException

2010-08-18 Thread Mariano Mara
Excerpts from Bzouchir's message of Wed Aug 11 10:16:21 -0300 2010: hi guys, I am trying to setup TurboMail 3 with Pylons 1.0 Followed the docs http://packages.python.org/TurboMail/chapters/detailed.html#pylons I have added this to the development.ini ** [DEFAULT] ...

Re: pylons.config doesn't seem to care about config... at all

2010-08-18 Thread karikris...@gmail.com
Hi Peter, You need to add this line at the end of config/environment.py load_environment pylons.config.update(config) I still don't know whether this is issue with documentation or issue with pylons.. On Aug 14, 8:13 pm, Peter Hartmann mailbox@gmail.com wrote: Hello there, truth is, I

Re: TurboMail 3 with Pylons 1.0 - MailNotEnabledException

2010-08-18 Thread karikris...@gmail.com
try this in your config/environment.py's at the END of load_environment function pylons.config.update(config) tm_pylons.start_extension() without update, the recent pylons doens't work for me, too. I copied my settings [DEFAULT] ... ... mail.on = true mail.manager = immediate

Re: Setting up Virtual Environment

2010-08-18 Thread Eric Rasmussen
I tried that command on a Windows machine and it did setup the environment in c:\development\scripts, so I don't know that you're doing anything wrong. I'm not on a Windows machine at the moment, but I believe virtualenv comes with a virtualenv.exe or virtualenv-script.exe file. You should be able

Re: SQLAlchemy, Multiple Engines and Threading

2010-08-18 Thread Wyatt Baldwin
On Aug 14, 11:34 am, Myx myxpyxy...@hotmail.com wrote: Greetings fellow Pyloneers! I have started to encounter a quite annoying problem while working on my current project: The results from database querys are different from thread to thread. My project is a server for a flash game, the

Re: How to do dynamic inheritance in Mako?

2010-08-18 Thread Eric Rasmussen
Here's the syntax that works for me: %inherit file=${context.get('base_file')}/ And in the controller you'd have something like this: c.base_file = '/base/index.html' Even though the variable is named c.variable name in the controller, when you use context.get() you omit the c. On Wed, Aug