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
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
/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
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
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
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
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.
--
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
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
t help with that -- http://help.github.com, http://hginit.com/.)
Marius Gedminas
--
MCSE == Minesweeper Consultant / Solitaire Expert
signature.asc
Description: Digital signature
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
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
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
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
(..., 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
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
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
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
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__.
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-
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
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
22 matches
Mail list logo