Re: Pyramid 1.0a8 released

2010-12-29 Thread Marius Gedminas
this: request.session.flash(dict(message='Hello!', queue='welcome')). Or you could push tuples. Or a custom subclass of unicode with a 'css_class' attribute -- just make sure it's pickleable. Marius Gedminas -- Only great masters of style can su

Re: help on webob

2010-12-30 Thread Marius Gedminas
ing this a push, if time permits. The upstream repository is https://bitbucket.org/ianb/webob/. I suppose we should submit patches via bitbucket pull requests? Marius Gedminas -- In order to get a loan you must first prove you don't need it. signature.asc Description: Digital signature

Re: help on webob

2010-12-30 Thread Marius Gedminas
/html_escape.txt I like mine maybe a bit better -- it has descriptions, and, I think, tests a few more cases. *shrug* My repository currently has two unmerged heads, and I'm uncertain what to do about it. Incidentally, one thing I noticed during this exercise was that WebOb.html_es

Re: New Pyramid User. Have a quick question about static_url

2011-01-13 Thread Marius Gedminas
not URLs. Use the pkg_resources APIs: data = pkg_resources.resource_string('house2', 'static/pylons.css') or fileobj = pkg_resources.resource_stream('house2', 'static/pylons.css') ... fileobj.close() > I just want to test to see if a f

Re: Pyramid 1.0a10 released

2011-01-21 Thread Marius Gedminas
g at some > >> point. > > > > Could you turn it into sphinx docs so it can be added to pylonsproject.org > > along with the other docs? That would make the package and its documentation > > more accessible. > > It is Sphinx docs. I just haven't gotten the h

Re: Requirements for Pyramid 1.0b1

2011-01-21 Thread Marius Gedminas
compared two sdists, not realizing that this way I may miss source files not mentioned in the manifest. Marius Gedminas -- Writing setattr hooks properly is a black art. Writing persistent setattr hooks is more like hearding bees blindfolded... -- Casey Duncan signature.asc Description: Digital signature

Re: Pyramid 1.0 released.

2011-01-31 Thread Marius Gedminas
mming an object with a ``__del__`` into the WSGI environment. I think I owe you a beer for that. Marius Gedminas -- You'll find creativity working hand in hand with engineering. It will feel strange and you might feel like things are out of control. Relax - they are. --

Re: Pyramid Migration Guide, first draft

2011-02-07 Thread Marius Gedminas
n the document, so a link to #static-files would probably be better than repetition.) The section about path attributes could really use some examples. Marius Gedminas -- You've obviously never tried to reverse engineer a chip using an electron microscope. [...] That's like looking at

Re: Pyramid Migration Guide, first draft

2011-02-07 Thread Marius Gedminas
x27;pyramid.events.BeforeRender') > """ It's here: http://bit.ly/gG2dbt (Full URL: https://bitbucket.org/sluggo/pyramid_sqla/src/d826ad458869/pyramid_sqla/paster_templates/pyramid_sqla/+package+/subscribers.py_tmpl#cl-7) Marius Gedminas -- Those of you thinking that grown m

Re: git?

2011-02-19 Thread Marius Gedminas
t help with that -- http://help.github.com, http://hginit.com/.) Marius Gedminas -- MCSE == Minesweeper Consultant / Solitaire Expert signature.asc Description: Digital signature

Re: CSRF protection and session factories

2011-03-09 Thread Marius Gedminas
tant aspects of how to handle CSRF protection. > > It's messy, but I didn't think it was too bad. In short, <...> This whole post would be an excellent addition to the docs (after some minor editing)! Marius Gedminas -- Writing about music is like dancing about architect

Re: Pyramid 2 ideas

2011-03-14 Thread Marius Gedminas
On Mon, Mar 14, 2011 at 02:03:33PM +0800, Wichert Akkerman wrote: > On 2011-3-14 01:53, Thomas G. Willis wrote: > >i like ini files so much better than yaml. > > Same for me. Are we collecting votes here? Because I'd like to add a +1 for INI and against YAML. Marius Gedm

Re: WebHelpers conflict #63 and #59

2011-03-21 Thread Marius Gedminas
py_newline215 ? docs.python.org has no knowledge of it. Marius Gedminas -- It is a mess, pure and simple. Sucks to be away from Unix, huh? -- man perlfaq3 signature.asc Description: Digital signature

Re: waitress: intermittent failures with python 3.2

2012-10-23 Thread Marius Gedminas
e same thing you saw. In total I've seen 8 failures out of 110 runs. Marius Gedminas -- After having done some test using hi-tech istruments (moving my mouse during a kernel build) [...] -- Davide Libenzi on lkml signature.asc Description: Digital signature

Re: Wanted: HTML tag generator for WebHelpers2

2013-06-29 Thread Marius Gedminas
(..., class_=["foo", "bar"]) i.e. overload the type of the attribute instead of the name? > Are there any other attributes where this would be useful on? > > Are there any other syntactic sugar patterns that would be helpful in a > Javascript-rich or HTML 5 application? Marius Gedminas -- Any sufficiently advanced technology is indistinguishable from a rigged demo. - Andy Finkel, computer guy signature.asc Description: Digital signature

Re: [pylons-devel] pserve.exe syntax error on windows with --reload

2016-09-25 Thread Marius Gedminas
don't understand Windows :( File a new bug maybe? Regards, Marius Gedminas -- Despite all appearances, your boss is a thinking, feeling, human being. -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To unsubscribe from this gr

Re: webhelpers.paginate fails on explicit mapper

2010-11-06 Thread Marius Gedminas
On Sep 20, 11:14 pm, Christoph Haas wrote: > Thanks for the fix, Mike. I'll try to keep a closer eye on paginate > issues in the future. :) FWIW this looks like http://pylonshq.com/project/pylonshq/ticket/675 Was that the wrong place to report a webhelpers bug? -- Marius Gedmin

Relying on __del__ for cleanup

2010-11-07 Thread Marius Gedminas
7;s a bit heavyweight. Have you considered a different event to indicate end of request processing? Marius Gedminas -- Premature optimization is the root of all evil. -- D.E. Knuth signature.asc Description: Digital signature

Re: Relying on __del__ for cleanup

2010-11-07 Thread Marius Gedminas
On Sun, Nov 07, 2010 at 04:11:19PM +0200, Marius Gedminas wrote: > http://docs.pylonshq.com/pyramid/dev/narr/urldispatch.html#cleaning-up-after-a-request > recommends this for running cleanup code after request processing: > <...> > > I'm uneasy about the __del__.

Re: Relying on __del__ for cleanup

2010-11-07 Thread Marius Gedminas
On Sun, Nov 07, 2010 at 12:34:03PM -0500, Chris McDonough wrote: > On Sun, 2010-11-07 at 19:17 +0200, Marius Gedminas wrote: > > On Sun, Nov 07, 2010 at 04:11:19PM +0200, Marius Gedminas wrote: > > > http://docs.pylonshq.com/pyramid/dev/narr/urldispatch.html#cleaning-

Re: pyramid terminology: "model"->"resource"

2010-12-15 Thread Marius Gedminas
agree or strongly disagree with this? I'm wavering between -1 and -0 on this. To me "resource" implies static files (images, css, javascript), but that may be a result of too much soaking in Zope-land. Also, resource_url() is rather long. I kind of like "tra

Re: pyramid terminology: "model"->"resource"

2010-12-17 Thread Marius Gedminas
ings us to the second phase which we call "Resource > Publication" uses additional information about the request (request > method, etc) and the resource to lookup a view callable, and call it, > passing in the resource we just found. This is a nice explanation. Marius Gedminas -- Bu