[pylons-devel] Re: Suggestion to store load data (non-db) as constants or in config on startup

2016-04-11 Thread Tres Seaver
ute('hello', '/howdy') config.scan('.views') # do your loading here. return config.make_wsgi_app() - -- %< Tres. - -- === Tres Seaver +1 54

[pylons-devel] Re: Ecommerce platform based on Pyramid/Pylons

2015-07-31 Thread Tres Seaver
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

[pylons-devel] Re: suggestion - internal lifecycle logging

2014-10-03 Thread 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

[pylons-devel] Re: Newbie question: How to run task after the pyramid web app is up?

2014-01-28 Thread Tres Seaver
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

[pylons-devel] Re: Reserved names for view callables?

2013-12-10 Thread Tres Seaver
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

Re: Wanted: HTML tag generator for WebHelpers2

2013-07-03 Thread Tres Seaver
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. - -- =======

Re: Wanted: HTML tag generator for WebHelpers2

2013-07-03 Thread Tres Seaver
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

Re: Alternative Licensing Request ?

2013-06-28 Thread Tres Seaver
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

Re: http://www.pagetemplates.org/ and http://chameleon.repoze.org timeouts?

2012-11-08 Thread Tres Seaver
, 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

Re: http://www.pagetemplates.org/ and http://chameleon.repoze.org timeouts?

2012-11-06 Thread Tres Seaver
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. - -- ====

Re: Pyramid - Adding ZEO to an existing ZODB project

2012-11-02 Thread Tres Seaver
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

Re: MessagePack-RPC support by pyramid_rpc

2012-10-08 Thread 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

Re: Using pylons - colander for xml deserialization

2012-08-22 Thread Tres Seaver
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

Re: Pyramid debug toolbar and iframes

2012-06-14 Thread 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

Help needed: EuroPython poster session

2012-06-12 Thread Tres Seaver
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)

BBC News - Giant junk robot plays the bass

2012-04-02 Thread Tres Seaver
-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 "

EuroPython interest?

2012-03-16 Thread Tres Seaver
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

Re: pyramidtut

2011-11-16 Thread Tres Seaver
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

Re: Windows: Running a Pyramid Application under Apache+mod_wsgi.

2011-10-27 Thread Tres Seaver
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. - --

Re: problem running helloworld

2011-09-02 Thread Tres Seaver
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. - -- ====

Re: odd test problem

2011-05-18 Thread Tres Seaver
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

Re: Adding "abort" and "redirect" to Pyramid

2011-05-16 Thread Tres Seaver
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. - -- ==

Re: [deform] doc bug patch

2011-05-05 Thread Tres Seaver
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

Re: pyramid view_config and redirect

2011-04-28 Thread Tres Seaver
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

Re: Terminology Change - Template to Skeleton

2011-03-21 Thread Tres Seaver
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

Re: Some thoughts about Pyramid

2011-03-04 Thread Tres Seaver
> 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

Re: Question about virginia

2011-03-01 Thread Tres Seaver
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

Re: pyramid_beaker vs beaker wsgi middleware

2011-03-01 Thread Tres Seaver
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

Re: am I evil?

2011-02-28 Thread Tres Seaver
-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

Re: am I evil?

2011-02-28 Thread Tres Seaver
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

Re: pyramid_beaker vs beaker wsgi middleware

2011-02-28 Thread Tres Seaver
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. - -- ==

Avoiding releases broken due to missing setuptools_git

2011-02-26 Thread Tres Seaver
(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

Re: make repoze.who respond to 403 Forbidden

2011-02-22 Thread Tres Seaver
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. - -- ===

Re: Error when trying to enable Mako

2011-02-21 Thread Tres Seaver
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

Re: pyramid_who

2011-02-18 Thread Tres Seaver
-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

Re: pyramid_who

2011-02-18 Thread Tres Seaver
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

Re: Pyramid Migration Guide, first draft

2011-02-09 Thread Tres Seaver
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

Re: Pyramid: URLDispatch vs Traversal question

2011-01-31 Thread Tres Seaver
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

Re: Pyramid: URLDispatch vs Traversal question

2011-01-30 Thread Tres Seaver
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

Re: Documentation Typo

2011-01-26 Thread Tres Seaver
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

Re: How to mock models while testing views?

2011-01-25 Thread Tres Seaver
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