Re: WebHelpers developments

2012-12-06 Thread Christoph Haas
I'm actively using GitHub for the development already. You can find the project here: https://github.com/Signum/paginate Yes, paginate now supports Python 3. It does not have the exact same API as webhelpers.paginate for Pylons. I ignorantly simplified the module, made it independent from Pylons

Re: WebHelpers developments (paginate 0.4.0 released)

2012-12-06 Thread Christoph Haas
I have just released version 0.4.0 of the paginate module: http://pypi.python.org/pypi/paginate/0.4.0 Changes: - Module is now standalone and not included as webhelpers.paginate any more. Once the module was deemed stable, webhelpers can drop it. - API overhaul. You shouldn't try to include

Re: WebHelpers developments

2012-12-03 Thread Christoph Haas
On 30.11.2012 17:51, Mike Orr wrote: On Thu, Nov 29, 2012 at 3:20 PM, Jonathan Vanasco jvana...@gmail.com mailto:jvana...@gmail.com wrote: Is there a url for that Paginate project ? http://pypi.python.org/pypi/paginate/0.3.2 However, the last release is 2008. But I expect the next

Re: Proper pattern for Pyramid, MongoDB and models.py

2012-11-23 Thread Christoph Haas
Am 23.11.2012 05:35, schrieb maxfrei: If you will use mongoengine as orm you just need to register you connection during start application in main() function. After it you can simple work with models without passing connection. http://mongoengine.org/ Thanks. I will try it. Took a look at

Re: Proper pattern for Pyramid, MongoDB and models.py

2012-11-23 Thread Christoph Haas
Thanks for your reply. Am 23.11.2012 07:07, schrieb Malthe Borch: On 23 November 2012 01:10, Christoph Haas em...@christoph-haas.de wrote: ... [snip] so later I could perhaps replace MongoDB by something else but have all the abstraction in the models.py. I think this is missing the point

Re: Proper pattern for Pyramid, MongoDB and models.py

2012-11-23 Thread Christoph Haas
Am 23.11.2012 15:06, schrieb Blaise Laflamme: Thats right, mongoengine has a global connection and uses pymongo connection pool. So you won't have to worry about that too much. Thanks. In the mongoengine-users mailing list archive I've read about problems when using threads (as Pyramid does)

Proper pattern for Pyramid, MongoDB and models.py

2012-11-22 Thread Christoph Haas
Dear list, I've been using Pylons for years. Now I want to create a web app in Pyramid using MongoDB. I followed http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/database/mongodb.html and the approach works well. I can access the MongoDB database using request.db from my

CookieError: Illegal key value - an attacker?

2010-10-02 Thread Christoph Haas
Dear list, I'm running a 0.9.7 application (screenshots.debian.net) and this morning received a paste error in my mail that got me thinking. The actual exception was: CookieError: Illegal key value: ,__utma And the probable cause is this cookie: HTTP_COOKIE

redirect_to in __before__ leads to 404

2009-09-10 Thread Christoph Haas
Dear list, I'm rolling my own simple authentication which has always worked like that in several other Pylons projects (see http://wiki.pylonshq.com/display/pylonscookbook/Simple+Homegrown+Authentication) by adding a conditional redirection in the BaseController's __before__ method:

Re: Unicode exception in 'paster shell' (repr versus __repr__)

2009-08-05 Thread Christoph Haas
Paweł Stradomski schrieb: W liście Christoph Haas z dnia wtorek 04 sierpnia 2009: Does anyone have an explanation why foo.__repr__() and repr(foo) makes such a difference here? Hints welcome. Shouldn't repr return plain string, not unicode one? When calling .__repr__() directly you just

Unicode exception in 'paster shell' (repr versus __repr__)

2009-08-04 Thread Christoph Haas
Dear list, I'm experiencing a strange encoding error when using 'paster shell' with Pylons 0.9.7. In my SQLAlchemy objects I define my own __repr__() method to an ORM-mapped class. Observe: class VirtualUser(MyOrm): def __repr__(self): return uVirtualUser (#%s): Login=%s Email=%s

Details of an abort(403, ...) always end up as 'FORBIDDEN'

2009-01-22 Thread Christoph Haas
Dear list, I'm currently customizing the error messages in a Pylons project. And it seems like whenever I abort(403, 'foobar') my error template the request.params['message'] jusr contains 'FORBIDDEN' although I sent 'foobar' as the 'details' parameter. Grepping through the code it comes from

Re: Details of an abort(403, ...) always end up as 'FORBIDDEN'

2009-01-22 Thread Christoph Haas
On Donnerstag, 22. Januar 2009, John_Nowlan wrote: Don't know if its relevant but have you seen: http://wiki.pylonshq.com/display/pylonsdocs/Error+Documents Yes, thanks. That's what I usually use. Just that the details argument doesn't make it through to the resulting error page. Cheers

mod_wsgi and virtualenv

2008-11-10 Thread Christoph Haas
Hi, I'm trying to deploy a Pylons app via mod_wsgi (Apache). That works so far. But I want to use a virtualenv directory and can't find any documentation on it. I found something for workingenv but don't know how to translate that to virtualenv.

Re: webhelpers.paginate+mako ajax

2008-11-06 Thread Christoph Haas
Hi, Mike and Ben... On Mittwoch, 5. November 2008, Mike Orr wrote: On Wed, Nov 5, 2008 at 11:14 AM, ben adam [EMAIL PROTECTED] wrote: I have a mako template that looks like: ## start template- %inherit file=/base.tmpl / div id=my_results p${ c.paginator.pager('$link_first

Re: How to filter the @jsonify warning

2008-10-18 Thread Christoph Haas
On Samstag, 18. Oktober 2008, Philip Jenvey wrote: On Oct 17, 2008, at 2:01 PM, Christoph Haas wrote: I tried to use: import warnings warnings.filterwarnings('ignore', 'JSON responses with Array envelopes') in several places like lib/base.py or config/environment.py

How to filter the @jsonify warning

2008-10-17 Thread Christoph Haas
Fellow earthicans, I'm trying the ExtJS Javascript framework in a workflow-style Pylons project. And that means passing a lot of JSON data around. There is a certain cross-site vulnerability problem when sending JSON arrays (versus JSON dictionaries or scalars). But without working around it

Sphinx documentation stumbles upon SQLAlchemy models

2008-08-26 Thread Christoph Haas
Dear list... I'm on a documentation frenzy now in my current Pylons project. And I'm using Sphinx for that purpose. All my controllers and helper functions are documented automatically. Great. Unfortunately Sphinx fails to create module documentation for my models. I'm staying close to the

Re: WebHelpers 0.6 released

2008-07-12 Thread Christoph Haas
On Freitag, 11. Juli 2008, Ian Bicking wrote: Christoph Haas wrote: I use method='post' everywhere in my code because uppercase attributes aren't xhtml'ish. That reminds me that I wanted to open a ticket for that one. :) Uppercase attribute... values? What does XHTML care about

Re: WebHelpers 0.6 released

2008-07-11 Thread Christoph Haas
On Freitag, 11. Juli 2008, Mike Orr wrote: On Fri, Jul 11, 2008 at 9:43 AM, rcs_comp [EMAIL PROTECTED] wrote: in html.tags the form function has 'POST' for the default method, which is invalid xhtml. I changed it to: def form(url, method=post,... and all is well. Is it really?

Re: WebHelpers 0.6 released

2008-07-09 Thread Christoph Haas
Hi, Pavel... On Mittwoch, 9. Juli 2008, Pavel Skvazh wrote: I'd like to share a use case with paginate. I've got a model that serves query results in the format I need. It manages starts and limits, includes [totalrow] property so I just need paginate to draw a nice paging bar. Everything

Re: Severe security vulnerability?: ajax shell in traceback

2008-07-06 Thread Christoph Haas
Hi, Mats... On Sonntag, 6. Juli 2008, Mats wrote: I just installed Pylons and found the ability to execute python commands within the traceback pretty cool. Unfortunately I'm concerned that this could be a major security vulnerability. I was expecting that there might be some restriction on

Re: best way to send email w/o blocking?

2008-07-06 Thread Christoph Haas
On Sonntag, 6. Juli 2008, kevin wrote: I'm sending email from my webapp using python's builtin smtplib, but I'd rather the user experience not block on this sending. What are your recommendations for sending email without blocking? I always send mails to localhost where I have an MTA (Postfix

Re: Severe security vulnerability?: ajax shell in traceback

2008-07-06 Thread Christoph Haas
On Sonntag, 6. Juli 2008, Mats wrote: I am so glad that a concern plus two kind suggestions by a newcomer to the fine Pylons community, was addressed by sarcasm (paragraph 2) and that I deserve to get hacked (paragraph 3) as a response. Sorry, I didn't mean to be harsh. But you sounded like

Re: Controller name

2008-05-28 Thread Christoph Haas
Hi, Antonia... first of all: please don't hijack threads. Start a new thread if you want to post to this list. Don't just reply to a random posting. On Mittwoch, 28. Mai 2008, Antonio Beamud Montero wrote: How I can get the controller name in the actual template context. For example, a

Re: Controller name

2008-05-28 Thread Christoph Haas
On Mittwoch, 28. Mai 2008, Antonio Beamud Montero wrote: El mié, 28-05-2008 a las 12:50 +0200, Christoph Haas escribió: first of all: please don't hijack threads. Start a new thread if you want to post to this list. Don't just reply to a random posting. I'm sorry. It's a new thread

Re: How did you begin your fun with Pylons?

2008-05-23 Thread Christoph Haas
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 sparse, and it relies on the user having a good understanding of MVC frameworks (like

Re: autocomplete

2008-05-14 Thread Christoph Haas
On Mittwoch, 14. Mai 2008, Jonathan Vanasco wrote: is anyone working on building this into pylons? Are you speaking of a Javascript feature to allow autocomplete during typing into INPUT/text form fields? That is not exactly a functionality delivered by Pylons itself. And the Webhelpers will

Re: mako marco? webhelpers plugin?

2008-05-11 Thread Christoph Haas
Hi... err... whoever... On Sonntag, 11. Mai 2008, [EMAIL PROTECTED] wrote: i am new to pylons and found the webhelpers are quite handy. i need to program on other javascript lib(dhtml calendar) which is not include in webhelpers. if i want to make something reusable other than hardcode the js

Re: Mercurial

2008-05-05 Thread Christoph Haas
Hi... errr... blaf? On Montag, 5. Mai 2008, blaf wrote: I'm in the move to install Mercurial or Bazaar for versioning a shared Pylons project. Actually I've never used both in real production, just installed them and played a bit to see how they work. Both seems good but I can't figure out

Re: Paginate module

2008-05-01 Thread Christoph Haas
Hi, Jorge... On Donnerstag, 1. Mai 2008, Jorge Vargas wrote: hi I was going to ask about this but I saw this recent thread regarding the pagination and it seems better to follow up on this than to start a new thread. Please note this is my first time working on paginated data with pylons.

Re: Paginate module

2008-05-01 Thread Christoph Haas
On Donnerstag, 1. Mai 2008, Christoph Haas wrote: I'm confident that #2 is stable. I'm using it in two real-life projects already. Feel free to use that. One note: I'm tossing a few variable names around. So I rather meant that the basic functionality is stable and tested while the API might

Re: Paginate module

2008-04-30 Thread Christoph Haas
Hi, Tobias... On Dienstag, 29. April 2008, Saibot wrote: I am using paginate and have some problems with it. Thats my controller code: items = meta.metadata.tables.get(table).select().order_by(column) I'm no SQLAlchemy guru. But with SQLAlchemy 0.4.* that should just be: items =

Recovering from a lost database link (SQLAlchemy)

2008-04-30 Thread Christoph Haas
Fellow earthicans... I had to restart my PostgreSQL service here and noticed that Pylons doesn't recover properly. Instead of reconnecting to the database through SQLAlchemy I just get internal errors all along. Has anyone cared for a remedy to this problem? I know that SQLAlchemy doesn't

Re: Paginate module

2008-04-17 Thread Christoph Haas
On Mittwoch, 16. April 2008, blaf wrote: something strange appened... when using the keyword host in a Page object: c.page = h.Page(hosts, count=hosts.count(), page_nr=page_nr, items_per_page=25, host=host) I got an error in the link generation function: ${ c.page.pager('$link_first ~5~

Re: Controller Newbie Question

2008-04-08 Thread Christoph Haas
On Tue, Apr 08, 2008 at 09:26:16AM -0700, dave wrote: 1. My controller index function sets some class variables. (eg. self.myvar ) 2. It then renders a template. 3. The template html loads some javascript in the standard html way ( eg. script type=text/javascript src=my javascript.js/

German screencast?

2008-03-29 Thread Christoph Haas
Fellow earthicans... I have still the writing of my Beginning Pylons article on my todo list somewhere in the upper third. :) However recent project work and my family kept me from really putting any work into it. However I had a lazier idea a while ago which was creating a couple of

Re: from pylons import config

2008-02-15 Thread Christoph Haas
On Fri, Feb 15, 2008 at 06:05:09PM +1100, Carlo Sogono wrote: Can someone please direct me to any documentation with examples on how to use config? Try http://wiki.pylonshq.com/display/pylonsmisc/Pylons+Cheatsheet#global-objects I would like to see how this really works. Look at the source

Re: Model init

2008-02-12 Thread Christoph Haas
On Tue, Feb 12, 2008 at 07:34:46AM -0800, Pavel Skvazh wrote: This may sound like a really obvious, not really Pylons related question but still, I'm pretty sure there are people who just doesn't really pay attention to this or just new guys like me. Right, we eat new guys for breakfast. :) I

Pylons users world map

2008-01-30 Thread Christoph Haas
Hi, $ALL... as a fun thing we just started a (Google) map of Pylons users worldwide. It's wide open so you can add yourself if you like. URL: http://maps.google.com/maps/ms?ie=UTF8hl=enmsa=0msid=113626440684499633273.000444f7bceab55523105 It's also linked from the Pylons wiki (Miscelleanous

Re: where is pylons's svn gone?

2008-01-29 Thread Christoph Haas
On Mon, Jan 28, 2008 at 11:24:51PM -0800, bearsprite wrote: Recently I couln't svn co form [http://pylonshq.com/svn/Pylons/trunk], where is it gone? Pylons' sources are now kept in a Mercurial repository at http://pylonshq.com/hg/pylons-dev/ Cheers Christoph -- [EMAIL PROTECTED]

Re: Documentation for begginers

2008-01-28 Thread Christoph Haas
Hi, Mike... On Sun, Jan 27, 2008 at 08:46:20PM -0800, Mikeroz wrote: I've just started to have some fun with pylons and I've got a question - what's wrong with the documentation? I mean - it's cool because it's there but there's almost no tutorials and stuff... is someone working on it? Or

Re: [ANN] paginate 0.3.2

2008-01-24 Thread Christoph Haas
On Thu, Jan 24, 2008 at 06:19:56PM +0900, Atsushi Odagiri wrote: Hello, Christoph When I tried to install paginate, got error. easy_install paginate Searching for paginate Reading http://pypi.python.org/simple/paginate/ Reading http://paginate.workaround.org/ No local packages or

[ANN] paginate 0.3.2

2008-01-23 Thread Christoph Haas
Fellow earthicans... I have just released version 0.3.2 of the paginate module. It splits up large data sets into pages (just like search engines displays ~10 results per page instead of flooding you with 8 million results at onc3) and can easily be used with Pylons. It serves as a replacement

[ANN] Pylons Cheatsheet

2008-01-23 Thread Christoph Haas
Me again... :) I've been collecting knowledge about the various parts of Pylons in notes cluttering my KDE desktop. So I've started creating a 'Cheat Sheet' styled properly formatted document on my workaround.org site a while ago. To put the document where it can be found I've copied it to:

Re: WebHelpers plans

2008-01-11 Thread Christoph Haas
On Fri, Jan 11, 2008 at 05:51:00AM -0800, Mike Orr wrote: On Jan 11, 2008 4:48 AM, Lawrence Oluyede [EMAIL PROTECTED] wrote: What about http://codespeak.net/lxml/dev/lxmlhtml.html#creating-html-with-the-e-factory ? About the JavaScript thing: is it savvy to havea one for all

formencode validation on GET requests

2008-01-07 Thread Christoph Haas
Fellow earthicans... today I had a case where I wanted to @validate (Pylons decorator) GET requests through a formencode schema. It works well now that I use the parameters - post_only=False - on_get=True I just wonder if there is a reason that those are two parameters. Is there any case where

SQLAlchemy logging in paster shell

2007-12-16 Thread Christoph Haas
Dear list... I've struggling with logging of SQL statements through SQLAlchemy for months now. I start to assume that logging is somehow broken in the paster shell. My development.ini has the default [loggers] section as part of the 0.9.6.1 Pylons template. I have just tried to add an

Re: Upgrading existing project to newer Pylons

2007-12-13 Thread Christoph Haas
On Thu, Dec 13, 2007 at 11:47:58AM +0100, Marcin Kasperski wrote: Maybe I missed something, but ... what should I do to upgrade existing project to the new Pylons release? I mean, for example, patching middleware.py so it suits newer idioms, patching imports etc. Install the new

Re: h.link_to_remote help

2007-12-04 Thread Christoph Haas
On Mon, Dec 03, 2007 at 10:03:50PM -0800, Anil wrote: ${ h.link_to_remote(Download, dict(url=h.url(controller=export, action=pdf)) ) } I have a link like that. The action pdf generates a PDF file. Then, I want to show this PDF file to the browser (for download). How can I do this? I am

Re: Wiki page for Documentation Suggestions

2007-11-29 Thread Christoph Haas
On Thu, Nov 29, 2007 at 09:02:31AM +0200, Max Ischenko wrote: On 11/29/07, Christoph Haas [EMAIL PROTECTED] wrote: But Pylons is moving. And people find out interesting things and develop nifty ideas every day. We discuss them on IRC but in this case I'd love to have a planet

Re: Wiki page for Documentation Suggestions

2007-11-28 Thread Christoph Haas
Ches, On Wed, Nov 28, 2007 at 11:37:44AM -0800, Ches Martin wrote: Just wanted to share for public consumption that I've created a page in the Cookbook section of the wiki for suggested documentation fixes/ suggestions:

Re: mako rendering 'ascii' codec can't decode byte on variable from sqlalchemy

2007-11-18 Thread Christoph Haas
On Sun, Nov 18, 2007 at 01:20:54AM -0800, eleith wrote: i meant div ${c.name}/div I figured. :) Did you declare your Mako template file as UTF8? I always prepend my template files with: # -*- coding: utf-8 -*- Since Pylons 0.9.6 you do not need to do any fancy encoding stunts. Just pass

Re: Outputting results of Pylons function to Javascript

2007-11-04 Thread Christoph Haas
On Sun, Nov 04, 2007 at 07:45:13AM -0800, JamesT wrote: I have a javascript file in /public/javascript that I want to receive data from a pylons function. I assume that you are including and running that Javascript from the HTML output you send to the browser. :) I am returning JSON

Re: Outputting results of Pylons function to Javascript

2007-11-04 Thread Christoph Haas
On Sun, Nov 04, 2007 at 05:48:10PM -, JamesT wrote: I think it has to do with the route to the pylons controller/function from the javascript file. Is your javascript located in /public/ javascripts/? Yes. And in one case I load the Javascript from my HTML document like: script

Re: Packages to use on Gutsy

2007-10-26 Thread Christoph Haas
On Fri, Oct 26, 2007 at 03:12:48AM -0400, Matt Feifarek wrote: Definitely use easy_install for Pylons and its dependencies Thanks all. Amazing, something upon which everyone agrees! Actually not. But I'm a bit tired of voicing my opinion and I can imagine that others may be tired of my

Re: Packages to use on Gutsy

2007-10-26 Thread Christoph Haas
On Fri, Oct 26, 2007 at 09:44:02AM -0700, zunzun wrote: On Oct 26, 8:42 am, Christoph Haas [EMAIL PROTECTED] wrote: Actually not. But I'm a bit tired of voicing my opinion and I can imagine that others may be tired of my opinion either. I am an Ubuntu user and was disappointed to learn

Re: Packages to use on Gutsy

2007-10-26 Thread Christoph Haas
On Fri, Oct 26, 2007 at 02:22:42PM -0700, Mike Orr wrote: On 10/26/07, zunzun [EMAIL PROTECTED] wrote: On Oct 26, 8:42 am, Christoph Haas [EMAIL PROTECTED] wrote: Actually not. But I'm a bit tired of voicing my opinion and I can imagine that others may be tired of my opinion either

Re: FormEncode form validators

2007-10-19 Thread Christoph Haas
On Thu, Oct 18, 2007 at 10:28:52PM -0400, Yannick Gingras wrote: Christoph Haas [EMAIL PROTECTED] writes: I could contribute validators for: - valid IPv4 network/address specifications (e.g. 10.0.0.0/8 or 192.168.25.1 but not 1.2.3.4/123) Here is what I use for IPv4 addr ranges

Re: Reducing pylons app memory usage?

2007-10-17 Thread Christoph Haas
On Tue, Oct 16, 2007 at 04:22:14PM +0200, Marcin Kasperski wrote: Any ideas how could I reduce pylons app RAM usage? At the moment pylons process takes above 100MB (almost static site serving some templates) - both when run with paste, and when run under mod_wsgi. Quite a lot, considering

Re: Reducing pylons app memory usage?

2007-10-17 Thread Christoph Haas
On Wed, Oct 17, 2007 at 09:03:12PM +0300, Max Ischenko wrote: On 10/17/07, Christoph Haas [EMAIL PROTECTED] wrote: On Tue, Oct 16, 2007 at 04:22:14PM +0200, Marcin Kasperski wrote: Any ideas how could I reduce pylons app RAM usage? At the moment pylons process takes above

Re: FormEncode form validators

2007-10-17 Thread Christoph Haas
On Wed, Oct 17, 2007 at 01:20:07PM -0500, Ian Bicking wrote: FormEncode is overdue for a release, but before that a request: there has been some mention that FormEncode should ship more useful form validators. For instance, FieldsMatch is an example of something currently shipped, but

Re: Jsonify like TG

2007-10-02 Thread Christoph Haas
On Tue, Oct 02, 2007 at 01:08:34AM -0600, Philip Cooper wrote: I wrote up this page http://www.openvest.com/trac/wiki/PylonsJsonify Quoting: * The reason is that the return from a controller method is a call to * render_response. This isn't quite true. You could send a Response() object

paster shell doesn't make models available

2007-09-03 Thread Christoph Haas
Dear list... when I run paster shell I do not have the model object available. I can of course import it manually from myproject import model but it used to be available in previous versions. How can I control what paster shell is doing? Wasn't it supposed to import everything from lib/base.py

Re: Session directories in 0.9.6

2007-08-24 Thread Christoph Haas
On Thu, Aug 23, 2007 at 06:16:35PM -0700, Mike Orr wrote: What are the cache and session config variables in 0.9.6? I upgraded my application with paster create and it contained: beaker.session.key = ... beaker.session.secret = ... cache_dir = %(here)s/data cache_enabled

Re: 'c' variable between redirects

2007-08-24 Thread Christoph Haas
On Fri, Aug 24, 2007 at 02:33:07PM +0200, Tomasz Nazar wrote: Whatever variable attached to 'c', it is available in the template when rendered via 'render_response('x.tmpl')'. I often however use redirects 'h.redirect_to(another_action)' to reuse controller's code. And the 'c'-attached

SQLAlchemy queries getting logged twice

2007-08-22 Thread Christoph Haas
Dear list... 0.9.6rc2 I just enabled sqlalchemy.echo and found that all queries are getting printed to the console twice. Raising the handler level to WARNING lead to the correct results. Looks like somehow the sqlalchemy mapper is propagating to the root logger. What can be done about that? I

Re: New SQLAlchemy tutorial; SAContext is dead

2007-08-16 Thread Christoph Haas
On Wed, Aug 15, 2007 at 06:04:22PM -0700, Mike Orr wrote: I've updated SQLAlchemy for people in a hurry with the new SQLAlchemy 0.4 programming pattern designed by Ben, MikeB, and myself. We're no longer using SAContext but instead putting the engine, metadata, and contextual session

Re: New SQLAlchemy tutorial; SAContext is dead

2007-08-16 Thread Christoph Haas
On Thu, Aug 16, 2007 at 01:55:26PM -0700, Mike Orr wrote: First, apologies for the mistakes in the tutorial. I'm going to convert my own application today, so that will be a practical test. But I did say to check back in 24 hours in case there are corrections. Let's make that 48 hours from

Re: [Paste] Can't start pylons app

2007-08-15 Thread Christoph Haas
On Wed, Aug 15, 2007 at 09:02:22AM -0400, Matt Feifarek wrote: On 8/15/07, Ian Bicking [EMAIL PROTECTED] wrote: Yeah; weird stuff with site-packages or easy-install.pth, perhaps? Doing python -c import pylons; print pylons.__file__ might help debug, and maybe if you install yolk

Re: [Paste] Can't start pylons app

2007-08-15 Thread Christoph Haas
On Wed, Aug 15, 2007 at 02:19:14PM -0400, Matt Feifarek wrote: On 8/15/07, Neil Blakey-Milner [EMAIL PROTECTED] wrote: On 8/15/07, Christoph Haas [EMAIL PROTECTED] wrote: Morale: never install eggs on a Debian-based system. Or, even better, use virtual-python or workingenv

Re: Can't start pylons app

2007-08-15 Thread Christoph Haas
On Wed, Aug 15, 2007 at 06:33:33PM -, __wyatt wrote: On Aug 15, 10:01 am, Christoph Haas [EMAIL PROTECTED] wrote: On Wed, Aug 15, 2007 at 09:02:22AM -0400, Matt Feifarek wrote: On 8/15/07, Ian Bicking [EMAIL PROTECTED] wrote: Yeah; weird stuff with site-packages or easy

Re: CSS/Javascript in Pylons

2007-08-12 Thread Christoph Haas
On Sat, Aug 11, 2007 at 02:51:48PM -, Jose Figueras wrote: In my controllers I try to include CSS references (to css files inside /public/css) dynamically before I call to render_response(). The same about javascript files. If you are using templates then nothing it technically output

Re: Redirection question

2007-08-11 Thread Christoph Haas
On Sat, Aug 11, 2007 at 04:59:33AM -, [EMAIL PROTECTED] wrote: Hello guys, is it recommended that a controller action displays various templates?, or is better redirect to the appropiate controller action for it to display the template? Depends on whether you want the URL to change.

Re: Logging

2007-08-11 Thread Christoph Haas
On Sat, Aug 11, 2007 at 02:28:31AM -0700, Mike Orr wrote: On 8/11/07, Christoph Haas [EMAIL PROTECTED] wrote: On Fri, Aug 10, 2007 at 09:31:58PM -0700, Mike Orr wrote: How do I get the Pylons logging to work in 0.9.6? I tried a few variations on import logging; logging.basicConfig

Pagination module updated

2007-08-09 Thread Christoph Haas
Dear list... there was a tiny bug in my pagination module that lead to SQL errors in case a certain ORM-query lead to an empty result (0 items). It had been pointed out a month ago already but I suspected an SQLAlchemy bug. That has been fixed and the new version (currently Rev 100) is

Re: should I code against the current release or the 0.96rc?

2007-07-31 Thread Christoph Haas
On Mon, Jul 30, 2007 at 11:30:43PM -0700, Jose Galvez wrote: Well I've definitely got a deadline to make this week. What I'm afraid of is that this project will grow and the migration will be that much more difficult. Indeed. The API has changed a bit (to the better) and I would suggest you

Re: 0.9.6rc: No templates directory

2007-07-31 Thread Christoph Haas
On Tue, Jul 31, 2007 at 10:39:47AM +0200, Christoph Haas wrote: Is it a bug that the templates directory is missing with the 0.9.6rc Pylons template? Creating it (mkdir) and putting Mako templates into it works perfectly though. So the basic Mako configuration is okay. Just figured that it's

Re: Pylons 0.9.6 Release Candidate 1

2007-07-17 Thread Christoph Haas
On Mon, Jul 16, 2007 at 03:19:16PM -0700, Ben Bangert wrote: On Jul 16, 2007, at 2:40 PM, Jose Galvez wrote: Sure, First I was testing with pylons-0.9.6rc2dev_r2256-py2.5.egg The project was created with pylons 0.9.4.1 and then converted after installing rc2 using

Re: Pylons 0.9.6 Release Candidate 1

2007-07-17 Thread Christoph Haas
On Tue, Jul 17, 2007 at 11:34:03AM -0500, Ian Bicking wrote: Christoph Haas wrote: On Mon, Jul 16, 2007 at 03:19:16PM -0700, Ben Bangert wrote: On Jul 16, 2007, at 2:40 PM, Jose Galvez wrote: Sure, First I was testing with pylons-0.9.6rc2dev_r2256-py2.5.egg

SAContext and paster shell

2007-07-16 Thread Christoph Haas
Dear list, I'm on SQLAlchemy 0.3.9 and SAContext 0.3.1 now with Pylons 0.9.6-rc1. A lot of knowledge is useless now that SQLAlchemy changed quite a few things regarding queries and Pylons doesn't have pylons.database any longer. Currently I'm trying to get myself acquainted with a lot of syntax

Re: putting binary data into the response

2007-07-13 Thread Christoph Haas
On Fri, Jul 13, 2007 at 01:09:06PM -0700, Jose Galvez wrote: Hi all, I know this should be simple but I can't find the answer anywhere, I have some images in a database that I need to send to a webpage. So I have a simple controller that should just send the binary data but I can't find how

Re: The is-Pylons-for-me post

2007-07-09 Thread Christoph Haas
Martin, On Mon, Jul 09, 2007 at 12:30:18AM -0700, Martin Aspeli wrote: We've just (almost certainly) chosen Pylons for a quick-and-dirty web application project. There are just a few outstanding things that we need to do, which I'm not sure how to approach. Speed is of the essence here, so

Re: How do I set my form to be a unicode string?

2007-07-01 Thread Christoph Haas
On Sun, Jul 01, 2007 at 11:27:38AM -0300, Walter Cruz wrote: Well, I asked before search the in the list archives! Sorry, no. If you like to continue the topic you brought up with another thread then please use the other thread. I didn't follow the other thread. If you start a new thread then I

Re: using decorators with controllers

2007-06-17 Thread Christoph Haas
On Sun, Jun 17, 2007 at 12:47:47AM -0700, voltron wrote: I am having problems using decorators with controllers. In a test controller: # testcontroller.py def dec(func): # do lotsa things print im doing something finished = True if finished: func() # call the

Re: Global Authkit app protection

2007-06-17 Thread Christoph Haas
On Sun, Jun 17, 2007 at 10:01:24AM -, Jose Figueras wrote: Following Authkit with Pylons article (and a mixture of other articles, docs, etc) If I try to protect my whole application I see this strange error: exceptions.AssertionError: Forwarding loop detected; '/signin' visited twice

Re: Global Authkit app protection

2007-06-17 Thread Christoph Haas
On Sun, Jun 17, 2007 at 09:03:42PM -, Jose Figueras wrote: On 17 jun, 13:22, Christoph Haas [EMAIL PROTECTED] wrote: On Sun, Jun 17, 2007 at 10:01:24AM -, Jose Figueras wrote: Following Authkit with Pylons article (and a mixture of other articles, docs, etc) If I try to protect

Re: Pylons success story (IncidentNews)

2007-06-16 Thread Christoph Haas
On Fri, Jun 15, 2007 at 03:48:07PM -0700, Mike Orr wrote: My first Pylons site is in production now at http://incidentnews.gov/ . It's running the following: Pylons 0.9.6 dev r2009 [...] Christoph Haas's alternative paginator Glad to hear that the paginator is

Re: logo redux

2007-06-16 Thread Christoph Haas
On Sat, Jun 16, 2007 at 12:02:11PM -0700, michael wrote: I was reading over the mailing list threads about the logo and I kinda had an idea. I just wanted to throw in my two cents. http://www.genoverly.com/pylons_play/pylons_logo_01_html.html I like it. Without a lot of philosophy it shows

Re: [RFC] Alternative paginator

2007-06-15 Thread Christoph Haas
On Fri, Jun 15, 2007 at 12:08:31PM -0700, Mike Orr wrote: There's a bug in Christoph Haas's alternative paginator (http://workaround.org/pylons/paginator/) if the result set contains zero records and 'show_if_single_page' is true. Module inews.lib.paginator:245 in navigator text = '%s' %

Re: [RFC] Alternative paginator

2007-06-15 Thread Christoph Haas
On Fri, Jun 15, 2007 at 09:26:00PM +0200, Christoph Haas wrote: I have added support for jQuery, too. UPDATE: the jQuery enabled version is already online at http://workaround.org/pylons/paginate I have also moved some logic around so it might well be the reported bug is gone. I'll check

Re: going off line

2007-06-15 Thread Christoph Haas
On Fri, Jun 15, 2007 at 02:11:01PM -0700, Shannon -jj Behrens wrote: Wish me luck with my fourth child which is due in two weeks! Best wishes! But next time you better thread instead of fork. Four children is prolly enough. :) Cheers Christoph

Re: AuthKit Authorization Manager?

2007-06-13 Thread Christoph Haas
On Wed, Jun 13, 2007 at 11:28:31AM -0700, HiTekElvis wrote: I just started using AuthKit and have it working pretty snappily. Very pleased. Have a question: Is there a way to have a sort of Authorization Manager, where you can keep all of the permissions and authorizations in one file

Re: Can't get the blog tutorial to work

2007-06-12 Thread Christoph Haas
On Tue, Jun 12, 2007 at 05:34:47AM -0700, kib2 wrote: I'm new to Pylons and even more to DataBases. I followed your tutorial on how to make a basic blog with Pylons, but once I launch my app I've got the following errors : File 'C:\\Documents and Settings\\kib\\Bureau\\KIB\\blogtutorial\

Re: SQLAlchemy object

2007-06-03 Thread Christoph Haas
On Sat, Jun 02, 2007 at 01:09:37PM -0400, Michael Bayer wrote: at Mike Orr's prodding, ive worked up a SQLAlchemy context object based on his proposal for a facade that deals with the various session (context)/engine/metadata mixtures. I think this would be a good idea for the very

Re: Pylons Logo Design

2007-06-02 Thread Christoph Haas
On Fri, Jun 01, 2007 at 03:15:19PM -0700, Ben Bangert wrote: On Jun 1, 2007, at 11:11 AM, Mike Orr wrote: The introduction can be improved, certainly. I wasn't here when Pylons was started or the website was created, but my sense is that Pylons has evolved since then. Its first adherents

Re: Pylons Logo Design

2007-06-01 Thread Christoph Haas
Hi, James... On Fri, Jun 01, 2007 at 09:57:31AM +0100, James Gardner wrote: Ben and I have started thinking again about what really makes Pylons different from other web frameworks and how we can best highlight those differences in the Pylons marketing to help attract people to the

Re: Pylons Logo Design

2007-06-01 Thread Christoph Haas
On Fri, Jun 01, 2007 at 11:43:00AM +0100, James Gardner wrote: I didn't see the discussion actually but I've just had a look at the logs. Actually I like the style of the everaldo icons and logos, do you know if they are very costly? From IRC (Yannick is not subscribed here): 12:57

Re: Pylons Logo Design

2007-06-01 Thread Christoph Haas
On Fri, Jun 01, 2007 at 10:21:12AM -0400, Dan wrote: This is all highly opinionated, but here are some of my suggestions. I think you should consider changing domain names. I don't think the name Pylons is bad, just combined with the domain pylonshq.com it just doesn't stick. I'd

Re: Apache mod_proxy + Pylons

2007-05-31 Thread Christoph Haas
On Thu, May 31, 2007 at 11:04:33AM -0700, voltron wrote: Actually its easy paster serve --daemon production.ini Thats it. I would not advice you to use --reload of you are using Debian though, What makes you draw *that* funny conclusion? I'm developing Pylons applications on Debian for

  1   2   >