I am preparing to release my first Werkzeug application, and could use
some feedback.

I was lucky in that the application I wanted to develop was able to
leverage the tutorial heavily. I found the documentation pretty good
for everything that Werkzeug provides. However, I run into some
problems when I wanted to do something provided by some other
frameworks, and how to do things not covered in the tutorial, and it
wasn't/still isn't clear what would be good ways to add those pieces.

1. Passing application options around. I decided to load options from
an ini file like Pylons apps do, and I used ConfigObj for this. There
may be some issues with multithreading, but my tests seem to work ok.
But it isn't  clear to me what would be the best way to pass the
application options to view functions and utility functions. Should I
add the application as member to the request object when passing it to
view functions, or something else? Since I decided to use Mako
Templates, I want to pass in module_directory for TemplateLookup, but
the tutorial was able to set everything in utilities at import time
which won't work for me. I added an "install_template_lookup"
function, but this does not feel like a good solution. Basically I am
wondering about the issue with calling this every time the app object
gets instantiated.

2. Internationalization and localization. I can see how I could use
the gettext module to get strings and use normal localization tools to
translate them, and I could see starting the server in a specific
language. But I don't see how I could add the ability be able to serve
every request in different language by checking the HTTP headers
first.

3. How to implement "secure form", i.e. generate a random token when
the form is first created and then check that this random token was
returned in the form submit?

I may be forgetting some other issues, but these are probably the most
pressing on my mind at the moment.

The application is open source. Minimal documentation, including an
online demo. Sources available via Subversion, and downloads from
PyPI.

http://www.heikkitoivonen.net/solu/

--
  HT
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to