ute('hello', '/howdy')
config.scan('.views')
# do your loading here.
return config.make_wsgi_app()
- -- %<
Tres.
- --
===
Tres Seaver +1 54
e-commerce package based on Pyramid
/ SubstanceD (Chris and I worked on it for the original customer: Carlos
took it over and got them to open-source it). I can't recall the URL
just at the momen
- --
===
Tres Seaver
t;>
>> the reason why this is something that i'm interested in, is that the
>> various templating languages currently supported by pyramid allow
>> raw python, so it's possible for slow or blocking code to sneak into
>> them.
>>
>> i just wanted to s
th no main loop at all.
Tres.
- --
=======
Tres Seaver +1 540-429-0999 tsea...@palladion.com
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - ht
t;
> Where action_config is a decorator that extands view_config to use the
> wrapped function's name as a predicate match for the action param in
> rhe matchdict. If the view callable is named "search", it executes
> without problem.
I don't think this is a Pyr
ent format
variables to generate XML (or when I do *any* parsing at all). It truly
*is* best-of-breed in this space, sitting atop libxml2 / libxslt which
are the definiitive open source libraries for XML. Again, YMMV.
Tres.
- --
=======
ications anyway.
I like using lxml in my Pyramid apps because it makes Apple slaves^W^WMac
users cry. ;) Unfortunately, the new wheel stuff is going to make that
all better.
Tres.
- --
=======
Tres Seaver +1 540-429
open-source license. See:
https://github.com/Pylons/pyramid_beaker/LICENSE.txt
Tres.
- --
=======
Tres Seaver +1 540-429-0999 tsea...@palladion.com
Palladion Software "Excellence by Design"http://p
, if need be, or the
'docs.pylonsproject.org' RTD site.
Tres.
- --
===
Tres Seaver +1 540-429-0999 tsea...@palladion.com
Palladion Software "Excellence by Design"http://palladion.com
-BE
s on a
> workaround, I'm all ears. I'll be working on a workaround today
> otherwise.
You can restrict the URLs that buildout will use to fetch distributions::
[buildout]
...
allow-hosts =
pypi.python.org
Tres.
- --
====
a tutorial (or provide one themselves) on
> integrating ZEO into a project that's already using ZODB.
http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/database/zodb_zeo.html
- --
=======
Tres Seaver
on HTTP should have
> something HTTP specific?
XML-RPC is *defined* in terms of HTTP. The spec at the URL you posted
describes a custom (non-HTTP-based) wire protocol, which cannot possibly
be handled by a Pyramid app.
Tres.
- --
=======
Tres
m which it
would get back the 'appstruct'. You are free to use whatever tools you
like for parsing the XML and constructing the appstruct. I would be
likely to use lxml.
Hope this helps,
Tres.
- --
===
Tres Seaver
;/>
Instead::
http://example.com";>
Like , the tag is treated specially by browsers and
other HTML procesors. I just lost an hour or more last week chasing down
oddball behavior due to this quirk.
Tres.
- --
=======
Tres
hanks!
Tres.
- --
===
Tres Seaver +1 540-429-0999 tsea...@palladion.com
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
For next year's PyCon:
http://www.bbc.com/news/technology-17569427
Tres.
- --
===
Tres Seaver +1 540-429-0999 tsea...@palladion.com
Palladion Software "
thinking about it? Please let us
know if so.
What: EuroPython 2012
When: July 2nd - 8th, 2012.
Wnere: Florence, Italy
URL: http://ep2012.europython.eu/
Tres.
- --
===
Tres Seaver +1 540-429-0999 tsea
is pulling down the 2.5 egg
> then it means you're on 2.5.
OP should try generating a new virtualenv using Python 2.7: the existing
virtualenv is hard-wired to use the Python it was built from.
Tres,
- --
=======
Tres Seav
rial above.
>
> Here's my setup and how I got to the end result:
> http://127.0.0.1/PE/RunMyProject/ confirms that Apache+mog_wsgi
> serves up MyProject's welcome screen.
Cool, thanks for sharing / confirming that it works for you!
Tres.
- --
python without calling
> 'activate', then it seems to work:
FWIW, that is *always* how I use a virtualenv: I really dislike having
'activate' pollute my shell, and just typing 'bin/' shows me what
is available there.
Tres.
- --
====
other than
> leaking actions?
Hmm, smells like maybe an unintended mutable default arg?
Tres.
- --
===
Tres Seaver +1 540-429-0999 tsea...@palladion.com
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SI
d(wrapped):
def _wrapper(*argv, **kw):
try:
return wrapped(*argv, **kw)
except HTTPException, e:
return e
return _wrapper
View code would look like::
@returnRaised
def aview(request):
abort(401)
Tres.
- --
==
st: simple ones like that can
even be pulled TTW now.
Tres.
- --
=======
Tres Seaver +1 540-429-0999 tsea...@palladion.com
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Vers
onsproject.org/projects/pyramid/1.0/narr/renderers.html
Tres.
- --
=======
Tres Seaver +1 540-429-0999 tsea...@palladion.com
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNA
t; shorter "Scaffold". "Scaffolding" connotes the ad-hoc process of
> constructing it individually for each building, while "Scaffold"
> sounds like a product that remains the same over many uses, which is
> how an app template works.
>
> There's also tha
> Unfortunately, no, I didn't register for PyCon (although I am within
> driving distance).
Maybe you can come hang out with folks in the evening? We are likely
assemble in the Hyatt Regency lobby bar after sessions let out before
heading out to dinner somewhere, either in walking d
directly against classes, goes back to our Zope-ish roots. I think
some of those interfaces are actually left over from the time when Chris
re-wrote 'repoze.kiss' to function as a BFG-based application: in
'repoze.kiss', there were real views registered for all the interfaces
the core design, and much of the code, comes from r.who 1,
which has been in heavy use for years now.
Tres.
- --
===
Tres Seaver +1 540-429-0999 tsea...@palladion.com
Palladion Software "Excellence by Design&q
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 02/28/2011 12:53 PM, Chris Withers wrote:
> On 28/02/2011 16:58, Tres Seaver wrote:
>>> I'm worried that I'm being evil. Am I being evil?
>>> How else can I get hold of Pyramid's notion of the current u
rkaround for
not being change the event code, if that happens to be the case.
Tres.
- --
===
Tres Seaver +1 540-429-0999 tsea...@palladion.com
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN
ing the
machinery where needed in the app by exposing the configured plugins via
an API (the login and logout views are the obvious consumers). It also
retainis the flexibility of middleware for enforcing policies.
Tres.
- --
==
(1)
_sdist.run(self)
and then use pass it to setup()::
setup(...,
cmdclass={'sdist': sdist},
)
Tres.
- --
===
Tres Seaver +1 540-429-0999 tsea...@palladion.com
Palladion Software &qu
p://docs.repoze.org/who/2.0/api.html#mixed-use-of-repoze-who-middleware-and-api
Note: repoze.who is now hosted at github:
https://github.com/repoze/repoze.who
I'll be happy to land patches to improve the docs!
Tres.
- --
===
g an importError?
Have you run '/path/to/python setup.py develop' on your 'testProject'?
Tres.
- --
===
Tres Seaver +1 540-429-0999 tsea...@palladion.com
Palladion Software "Excellence by Des
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 02/18/2011 05:06 PM, Tres Seaver wrote:
>> - the link to http://docs.pylonshq.com/pyramid_who/dev/ redirects to
>> http://docs.pylonsproject.org/ with no sign of "who" on the page.
>
> I think I requested that page
kout from github
(IMO that would be better, as you could help get the wrinkles ironed out).
Tres.
- --
===
Tres Seaver +1 540-429-0999 tsea...@palladion.com
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGN
global" ZCA APIs,
it won't benefit from Pyramid's segregated registries, but that is no
different from use of any other global (module- or class-scope
variables, etc.)
Again, thanks for the writeup!
Tres.
- --
===
Tre
e object and traverse through it. Could
> ArchiveYear and ArchiveMonth be made into Folder subclasses to factor
> away some of the code?
That would makes sense if you actually want to *store* the entries
inside the archive/year/month tree (a perfectly reasonable strategy).
Making the *entry
ogic for parsing the
> path lives in the view and/or the context. With URL Dispatch it's in
> the configuration.
Agreed. I find the traversal stuff much easier to test on this account.
The fact that I find it easier to think about is likely due to the warp
in my brain from years of hea
your fork to submit a pull request.
It is more work for you the first time, but it makes it easier / cleaner
for a developer with push rights to get it right. Plus, you are then
set up for the next time. ;)
Tres.
- --
=======
Tres S
y(object):
def __init__(self, **kw):
self.__dict__.update(kw)
or else the 'DummyModel' class from repoze.bfg^W^W^Wpyramid.testing:
Tres.
- --
=======
Tres Seaver +1 540-429-0999 tsea...@palladion.com
P
41 matches
Mail list logo