Re: [pylons-devel] Setting translogger format via ini

2016-03-11 Thread Mike Orr
ug_toolbar access.ignore_usual = true On Thu, Mar 10, 2016 at 6:46 PM, Mike Orr wrote: > On Thu, Mar 10, 2016 at 3:32 AM, Zsolt Ero wrote: >> Hi, >> >> My first mailing list post, as this really puzzles me. I'd like to use a >> short format for displaying HTTP requests in deve

Re: [pylons-devel] Setting translogger format via ini

2016-03-10 Thread Mike Orr
/there-is-no-way-to-escape-character-in-the > > Any ideas how to solve this? I didn't like using middleware so I made a Pyramid tween that logs requests. I don't have the code with me but I can get it tomorrow. After calling the applicaiton I make a log message based on the response

Re: [pylons-devel] PasteDeploy in the Pylons GitHub org?

2016-03-08 Thread Mike Orr
n, I couldn't find enough pluses to switch to it, and my codeveloper couldn't either. Still, it would be nice to have something cleaner than INI and PasteDeploy in Pyramid's default, but I also don't know what would be a good candidate for that. -- Mike Orr --

Re: [pylons-devel] Adding custom properties to the request, or how is the request meant to be used?

2016-01-29 Thread Mike Orr
To post to this group, send email to pylons-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/pylons-devel. > For more options, visit https://groups.google.com/d/optout. -- Mike Orr -- You received this message because you are subscribed to the Google Groups

Re: [pylons-devel] Best Practices with ORM use

2016-01-08 Thread Mike Orr
On Fri, Jan 8, 2016 at 12:55 AM, Torsten Irländer wrote: > But I wasn't aware of that > this > could be a topic for a talk. Actually I thought this is kind of a hack but > is > seems to be not bad :D. Organizing business logic has been a perennial issue for Pyramid and Pylons developers forever.

Re: [pylons-devel] Re: wsgi server of choice?

2015-09-29 Thread Mike Orr
gt; You received this message because you are subscribed to the Google Groups > "pylons-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-devel+unsubscr...@googlegroups.com. > To post to this group, send email to pylons-devel

Re: [pylons-devel] Re: ZODB News

2015-09-29 Thread Mike Orr
d tuples, while Durus just appends until you pack. Redis is probably the most useful for counters and updating timestamps because it can change memory in place. So it all comes down to the nature of your data and what you want to do with it, whether a SQL database or object database or key-valu

Re: [pylons-devel] AuthTktAuthenticationPolicy's auth_tkt

2015-07-11 Thread Mike Orr
On Fri, Jul 10, 2015 at 7:12 PM, Andrew Burnett wrote: > I apologize in advance if 1) This is not the proper place to be asking such > a question 2) My understand of authentication is so lackluster that my > question is irrelevant to begin with. Having said that, I will ask away: > > I was hoping

Re: [pylons-devel] Announcing Montague: replace INI with YAML, JSON, etc

2015-07-02 Thread Mike Orr
On Tue, Jun 23, 2015 at 12:55 PM, Jon Rosebaugh wrote: > Around last December, I got annoyed with the way PasteDeploy combines the > INI file parsing with the WSGI object loading. INI files are awfully clumsy > and there are many alternatives that offer features such as lists and nested > dicts, b

Re: [pylons-devel] Announcing Montague: replace INI with YAML, JSON, etc

2015-06-27 Thread Mike Orr
> I've encountered one particular difficulty with pshell and other Pyramid > scripts: Montague allows a config file to have more than one logging config, > which means I've combined development.ini and production.ini into a single > config.toml. pserve lets you specify which app and server to load

Re: [pylons-devel] Announcing Montague: replace INI with YAML, JSON, etc

2015-06-27 Thread Mike Orr
On Tue, Jun 23, 2015 at 12:55 PM, Jon Rosebaugh wrote: > Around last December, I got annoyed with the way PasteDeploy combines the > INI file parsing with the WSGI object loading. INI files are awfully clumsy > and there are many alternatives that offer features such as lists and nested > dicts, b

Re: [pylons-devel] Should pyramid.request.Request.route_path() work for external routes?

2013-10-06 Thread Mike Orr
On Sat, Oct 5, 2013 at 12:00 AM, Harvey Smith wrote: > Currently in Pyramid v1.5a2 one cannot easily loop over a list of routes to > generate the URLs (for example to generate a nav menu) if some of the routes > are external and one wished to use URL paths instead of qualified URLs > (easier to se

Re: Pyramid Design Question

2013-09-03 Thread Mike Orr
On Mon, Sep 2, 2013 at 8:42 PM, Michael Zhang wrote: > Hi guys, > > My name is Michael Zhang, and I am very new to Pyramid. I have a quick > question in designing a large web application backend, and hope the > community can help me out. I really appreciate your help. It helps me to > learn and g

Re: Wanted: HTML tag generator for WebHelpers2

2013-07-04 Thread Mike Orr
On Wed, Jul 3, 2013 at 10:21 PM, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 07/03/2013 11:12 PM, Mike Orr wrote: > >> The thing is, WebHelpers has always tried to avoid dependencies so >> that it can be used in the widest variety of use

Re: Wanted: HTML tag generator for WebHelpers2

2013-07-03 Thread Mike Orr
On Wed, Jul 3, 2013 at 11:09 AM, Jason McKellar wrote: > On Tue, Jul 2, 2013 at 12:46 PM, Mike Orr wrote: >> Maybe I should just ask the list: is lxml suitable as a tag generator >> for webhelpers2.html? Or is it too big for a general-purpose library, >> not everyone of whi

Re: Wanted: HTML tag generator for WebHelpers2

2013-07-02 Thread Mike Orr
On Tue, Jul 2, 2013 at 12:46 AM, Mike Orr wrote: > On Mon, Jul 1, 2013 at 11:48 PM, Wichert Akkerman wrote: >> >> On Jun 28, 2013, at 23:04 , Mike Orr wrote: >> >> I'm thinking about rewriting the low-level HTML tag generator in >> WebHelpers2, and wonderi

Re: Wanted: HTML tag generator for WebHelpers2

2013-07-02 Thread Mike Orr
On Mon, Jul 1, 2013 at 11:48 PM, Wichert Akkerman wrote: > > On Jun 28, 2013, at 23:04 , Mike Orr wrote: > > I'm thinking about rewriting the low-level HTML tag generator in > WebHelpers2, and wondering if there's an existing library that would be > worth using in t

Re: Wanted: HTML tag generator for WebHelpers2

2013-07-01 Thread Mike Orr
to py.test, the Python 3 port, and some small reorganizations. The online docs don't yet mention the list arguments or the underscore to hyphen conversion (for data-foo). On Sat, Jun 29, 2013 at 9:08 PM, Mike Orr wrote: > On Sat, Jun 29, 2013 at 3:11 PM, Marius Gedminas wrote: >> O

Re: Wanted: HTML tag generator for WebHelpers2

2013-06-29 Thread Mike Orr
On Sat, Jun 29, 2013 at 3:11 PM, Marius Gedminas wrote: > On Fri, Jun 28, 2013 at 02:04:08PM -0700, Mike Orr wrote: >> I'd also like feedback on another idea. I'm thinking about adding arguments >> to build up the class attribute and style attribute piecemeal: >&g

Re: Wanted: HTML tag generator for WebHelpers2

2013-06-28 Thread Mike Orr
valid in attribute names. On Fri, Jun 28, 2013 at 2:31 PM, Jonathan Vanasco wrote: > > > On Friday, June 28, 2013 5:04:08 PM UTC-4, Mike Orr wrote: >> >> >> Are there any other syntactic sugar patterns that would be helpful in a >> Javascript-rich or HTML

Wanted: HTML tag generator for WebHelpers2

2013-06-28 Thread Mike Orr
so since HTML doesn't define "styles" and "classes", and is unlikely to because of user confusion.) Is there a better API? 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 HT

Re: question about design decision on pyramid's core

2013-03-30 Thread Mike Orr
//groups.google.com/group/pylons-devel?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To unsubscribe from this group and stop r

Re: Is there a need to mention non-final release version in 'versionadded' directives?

2013-02-03 Thread Mike Orr
On Sun, Jan 27, 2013 at 9:42 AM, Tshepang Lekhonkhobe wrote: > Could we simply remove this? Does a user need to know which exact alpha (or > beta) release an API was added? I think such detail is a bit of overkill for > 'versionadded' Sphinx directives; it's better left in VCS history. > > ok: add

Re: Sites using Pyramid & Pyramid Advocacy

2012-10-28 Thread Mike Orr
those who are using Pyramid and looking for ideas for their own sites. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send e

Re: How important is the file structure (templates and static folder) in the package of a Pyramid Project

2012-09-23 Thread Mike Orr
nting to "myapp:static". That provides a place for all static files to go, without the developer having to define a view and a directory. You can of course have multiple static directories for different purposes. The fastest way to serve static files in production, is to arrange for t

Cleaning up the Pylons GitHub project

2012-05-16 Thread Mike Orr
layed when you go to the repository, but that doesn't help when you're going down the list of repositories and don't want to open all of them. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To po

Re: suggestion for scaffolds

2012-02-03 Thread Mike Orr
t). +1 I usually delete them immediately, but when I started I was reluctant to because I didn't know which ones I might want to use or refer to. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group

Re: Logging configuration

2011-10-21 Thread Mike Orr
ogging > configuration takes place when you use "paster serve".  If you don't use > "paster serve", it doesnt happen. "paster serve" does the equivalent of: import logging.config logging.config.fileConfig(INI_FILE) You can put that in your startup code somewh

Re: When the Pyramid Migration Guide will be completed?

2011-08-13 Thread Mike Orr
or more options, visit this group at > http://groups.google.com/group/pylons-devel?hl=en. > -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubs

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

2011-06-02 Thread Mike Orr
On Thu, Jun 2, 2011 at 12:03 PM, Wichert Akkerman wrote: > On 2011-6-2 19:20, Mike Orr wrote: >> >> OK, but there's such a thing as view support methods, code that's >> common to several views so it doesn't have to be repeated in all of >> them. That

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

2011-06-02 Thread Mike Orr
get("id")) # Private methods def _process_id(self, id_str): if id_str is None or not id_str.isdigit(): abort(400, "query param 'id' missing") id = str(id) self.record = model.Something.get(id) if self.record is None:

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

2011-06-01 Thread Mike Orr
error and the user raise it explicitly. raise redirect(location) raise abort(N, message=None) Or they could be capitalized to appear more like class constructors: raise Redirect(location) raise Abort(N, message=None) -- Mike Orr -- You received this message because you are

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

2011-05-31 Thread Mike Orr
n unorthodox way to return but it's probably better to just allow it than to take steps to prevent it. I could see how it could be a "feature" in a few cases. And again, Python doesn't seem to be overly concerned with what you raise. The move against string exceptions was to mak

Re: Pyramid 2 Brainstorm & Marrow

2011-05-26 Thread Mike Orr
e surface in Pyramid and what design requirements it has at that particular point. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from thi

Re: Pyramid 2 Brainstorm & Marrow

2011-05-26 Thread Mike Orr
needs. It's a case of you promoting an alternative that Pyramid isn't sure it needs, so it wants to make sure it does need it before putting a lot of time into it. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To

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

2011-05-26 Thread Mike Orr
pplication-making function that would turn it into a WSGI application (something like the HTTPException constructor), and return that. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email

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

2011-05-25 Thread Mike Orr
, but otherwise it's like, "Oh, nice, it found something. That doesn't tell me what it's going to do with it." I think that's a shortcoming of the HTTP status: it should have been called 'Redirect' rather than 'Found'. BTW, I mentioned a few days

Re: Pyramid 2 Brainstorm & Marrow

2011-05-25 Thread Mike Orr
the libraries themselves.  Additionally, > you'll have to dig into a fork [4] to see demonstrations of WSGI1 > compatibility in marrow.server.http.  The adapter [5] is simple, and likely > incomplete, but functional. I'm probably sounding redundant here, but only those who are especia

Re: route_url _query None value behavior

2011-05-24 Thread Mike Orr
;> >  99                 prefix = '&' >> > 100         else: >> > 101             if v.__class__ is unicode: >> > 102                 v = v.encode('utf-8') >> >                    if v: >> > 103                 v = quote_pl

Re: Session differences in Pylons and Pyramid

2011-05-23 Thread Mike Orr
ases. So a lot of your work will be working around features you don't need. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from

Re: GSoC, Python 3 dependencies, Paste

2011-04-07 Thread Mike Orr
ilders, but not much with the Zope-style interfaces or traversal. So I'm fine with anything database-y but if it involves ZCA or garbage collection or packet tracing, I'd probably want to call in the experts. Anyway, it helps to know up front what kinds of tasks a student can jump right

Re: ATTN: Please keep general discussion on pylons-discuss

2011-03-31 Thread Mike Orr
ions on -devel in the alpha days of Pyramid, to prevent Pyramid questions from confusing Pylons users. That's where all the confusion between the lists came from. That's over now. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-dev

Re: Form handling in Pyramid

2011-03-30 Thread Mike Orr
hope i'll have more success with it... Have you tried pyramid_simpeform? It's a different interface than @validate but it seems to be becoming the most common on on Pyramid. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-de

Re: Terminology Change - Template to Skeleton

2011-03-23 Thread Mike Orr
On Wed, Mar 23, 2011 at 3:31 PM, Philip Jenvey wrote: > > On Mar 22, 2011, at 7:14 PM, Mike Orr wrote: > >> On Tue, Mar 22, 2011 at 6:46 PM, Ben Bangert wrote: >>> >>> >>> We sure can! In fact, several of us have the commit rights needed. :) >&g

Re: WebHelpers conflict #63 and #59

2011-03-22 Thread Mike Orr
Update: I found a way to check for the exact exception reported, which was common to the Sprox failure and other unsliceable failures ("TypeError: unhashable type"). So I can at least raise the incompatible message so users will know what's going on. On Tue, Mar 22, 2011 at 10:

Re: WebHelpers conflict #63 and #59

2011-03-22 Thread Mike Orr
t check whether .__getitem__ accepts a slice without calling it and guessing what the exception means, and calling it may cause side effects (like a db query). So if y'all can make sure you're satisfied with it, I'll release beta 2 in a day or two. -- Mike Orr -- You received this message

Re: Terminology Change - Template to Skeleton

2011-03-22 Thread Mike Orr
. I wouldn't deprecate -t though (even if you deprecate the long form --template), because many people are used to typing it and it would be annoying to get deprecation warnings all the time. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "p

Re: Terminology Change - Template to Skeleton

2011-03-22 Thread Mike Orr
cause the term was just too cumbersome, but I never thought the Pyramid docs would be amenable to doing that. And then a few days later you say you do want to change the Pyramid docs. So it's an idea that's gaining momentum, and that's why the big discussion broke out. -- Mike Orr

Fwd: [GitHub] Added Pylons migration guide and dev docs links. [Pylons/pylonshq GH-15]

2011-03-21 Thread Mike Orr
ps://github.com/Pylons/pylonshq/pull/15 -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr

Re: Terminology Change - Template to Skeleton

2011-03-21 Thread Mike Orr
On Mon, Mar 21, 2011 at 2:05 PM, Ben Bangert wrote: > On Mar 21, 2011, at 1:48 PM, Mike Orr wrote: > >> "Template" has been a problem for years. Even if people can figure it >> out, it's cumbersome to write in documentation and tutorials where you >> have t

Re: Terminology Change - Template to Skeleton

2011-03-21 Thread Mike Orr
ut, it's cumbersome to write in documentation and tutorials where you have to explain that a template (skeleton) is not a template (file) although some of its files are templates. And the phrase "application template" is long and cumbersome when you have to repeat it many times.

Re: Terminology Change - Template to Skeleton

2011-03-21 Thread Mike Orr
On Mon, Mar 21, 2011 at 11:08 AM, Alice Bevan–McGregor wrote: > On 2011-03-20 23:23:02 -0700, Mike Orr said: > >> On Sun, Mar 20, 2011 at 8:12 PM, Joe Dallago wrote: >>> >>> This issue has been previously discussed, I just wanted to make sure >>> that e

Re: Terminology Change - Template to Skeleton

2011-03-21 Thread Mike Orr
7;s probably what everybody does anyway, right? No, because the project name and package name is built into the structure, so reusing an existing app would mean making a lot of fundamental changes to it. -- Mike Orr -- You received this message because you are subscribed to the Google Groups &q

Re: WebHelpers conflict #63 and #59

2011-03-21 Thread Mike Orr
bhelpers/changeset/556b55e75dd6#chg_webhelpers/paginate.py_newline215 > ?  docs.python.org has no knowledge of it. Oh, that should be .__getslice__ . Maybe that's causing some of the SQLAlchemy complications (but not all of them). -- Mike Orr -- You received this message because you are subscribed to

Re: Terminology Change - Template to Skeleton

2011-03-20 Thread Mike Orr
ne. Yes. I already did that in the Akhet manual but I had to introduce it with "template" and use "template" in the PyPI description for ppl who might not recognize it. The sooner we can get away from "template" completely, the better. -- Mike Orr -- You received thi

Re: WebHelpers conflict #63 and #59

2011-03-20 Thread Mike Orr
been patches to add PyMongo, CouchDB, and now Sprox to paginate, but we can't add everything. Better to go with autonomous helper classes. But this is a longer-term project, it's not something I can do right now. Christoph, what do you think? https://bitbucket.org/bbangert/webhelpers/issue

WebHelpers conflict #63 and #59

2011-03-20 Thread Mike Orr
> ++ self.items = list(self.collection)[self.first_item-1:self.last_item] In other words, different users have contradictory desires. Should I revert #59 and change it to WONTFIX, or is there a way to reconcile these two? Or is this a reason to overhaul how paginate handles lists vs queries overal

Re: GSOC status

2011-03-17 Thread Mike Orr
GSOC.  I have spoken to Whit > Morris, and he has has agreed to sponsor me.  I was thinking that > re-factoring Paste(serve and create) could be my project.  Any > objections? -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel&

Re: GSOC status

2011-03-16 Thread Mike Orr
sted in and > your general skill level with Python and Pylons/Pyramid? -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group,

Re: Pyramid 2 ideas

2011-03-15 Thread Mike Orr
s > "pylons-devel" group. > To post to this group, send email to pylons-devel@googlegroups.com. > To unsubscribe from this group, send email to > pylons-devel+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/pylons-devel

Re: RESTful Pyramid

2011-03-14 Thread Mike Orr
REST on your own. Yes, there needs to be an official way to do it. You can also use the request_param route predicate to check the _method param directly. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this

Re: Pyramid 2 ideas

2011-03-14 Thread Mike Orr
e's anything somebody think is especially cool they can make an add-on for it. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from t

Re: Pyramid 2 ideas

2011-03-13 Thread Mike Orr
On Sun, Mar 13, 2011 at 1:40 PM, Andrey Popp <8may...@gmail.com> wrote: > Hello, > > On Mar 13, 2011, at 3:29 PM, Mike Orr wrote: >> - Replace the INI file with an YAML file? > > YAML is not as good as it can be for config file format: > >  * It has slow parsers

Re: Pyramid 2 ideas

2011-03-13 Thread Mike Orr
serve" both are necessary. People are always having to look in both PasteDeploy and PasteScript to see where something is defined. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylon

Re: Pyramid 2 ideas

2011-03-13 Thread Mike Orr
m. > > There exists a package called alacarte which offers a back-end agnostic > templating interface.  It already supports Mako, Jinja2, and a handful of > others, including serialization formats like JSON, Bencode, and YAML.  It > was built to replace the ancient (and crufty) Tur

Re: Pyramid 2 ideas

2011-03-13 Thread Mike Orr
dvantages may be outweighing its advantages. YAML can express all the things ppl wish the config file had. It can also express a full ZCA configuration, which would allow the same file to do app configuration, logging, and component configuration without using ZCML. That's what Marco was, a Y

Pyramid 2 ideas

2011-03-13 Thread Mike Orr
are more properly dependencies of the specific applications which are using them. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this gro

Re: CSRF protection and session factories

2011-03-12 Thread Mike Orr
quest (400). It's a client error if the token is incorrect, not a server error. Otherwise it gives the impression that a bug made the server crash, and the server logs will say that too so you can't count how many hack attempts vs genuine errors you got. -- Mike Orr -- You received

Re: Some thoughts about Pyramid

2011-03-04 Thread Mike Orr
On Fri, Mar 4, 2011 at 12:03 PM, Blake Hyde wrote: > On Fri, Mar 4, 2011 at 2:50 PM, Mike Orr wrote: >> I have a friend who is a marketer and supports the Pylons Project, but >> he's kind of gotten burned out on Python as a whole for various >> reasons so he can&#

Re: Some thoughts about Pyramid

2011-03-04 Thread Mike Orr
la Guardia > wrote: >> Guys, >> >> I'll be at PyCon and would like to sprint on this. Maybe a tutorial >> with code. Anyone? -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to

Re: Some thoughts about Pyramid

2011-03-04 Thread Mike Orr
be more resistance to doing that than there was for ZCML. Traversal is central to an application if you're using it, whereas ZCML is "just zis configuration format, y'know". [voice of Zaphod Beeblebrox's psychiatrist] -- Mike Orr -- You received this message because you are s

Re: Some thoughts about Pyramid

2011-03-04 Thread Mike Orr
rned out on Python as a whole for various reasons so he can't quite be a full marketing advisor. Is there anyone else with marketing-type experience who would like to stand up? -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel&q

Re: Some thoughts about Pyramid

2011-03-04 Thread Mike Orr
buted with Pyramid depend on X which provides X". That will keep people fully informed about what decisions the templates are making for them, and what leeway they have to choose alternatives. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "

Re: Some thoughts about Pyramid

2011-03-04 Thread Mike Orr
27;s anything that needs to change in the manual. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+

Re: Tutorials

2011-03-03 Thread Mike Orr
xtensions.) But Distribute is also stagnating somewhat as development focuses on Distutils2. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe

Re: Some thoughts about Pyramid

2011-03-03 Thread Mike Orr
tion templates recommend. There have been calls over the years to replace Paster, but no clear idea on what to replace it with, or assurance that anything else would be sufficiently better. Paste's creator, Ian Bicking, has been spinning off packages out of Paste (WebOb, WebError), and expects

pylons-discuss and pylons-devel

2011-03-03 Thread Mike Orr
On Thu, Mar 3, 2011 at 11:44 AM, Mike Orr wrote: > On Thu, Mar 3, 2011 at 1:03 AM, drebbin wrote: >> Hi all, >> I am joining this community because of an interest in Pyramid -- about which >> I had posted an issue in the pylons-devel list. Now I notice that that list >&g

Re: pyramid_tm 0.1 released

2011-02-28 Thread Mike Orr
artificial and rigid to use for data services. You see that especially in repoze.who/what, which are overly complex partly because of their middleware nature, and to an extent Routes too. Generic reusable code is a good thing but it doesn't have to be middleware. The various form libraries are

Re: paginator/batcher for use with Pyramid

2011-02-24 Thread Mike Orr
On Thu, Feb 24, 2011 at 4:20 PM, Mike Orr wrote: >>> 2) The user would have to pass in the name of the primary key field. >> >> To where? > > To the Page constructor. It has to know which field to look at to > determine what the last primary key value was. Er, i

Re: paginator/batcher for use with Pyramid

2011-02-24 Thread Mike Orr
On Thu, Feb 24, 2011 at 2:20 PM, Chris Withers wrote: > On 24/02/2011 19:10, Mike Orr wrote: >>>> >>>> On Thu, Feb 24, 2011 at 6:37 PM, Mike Orr  wrote: >>>>> >>>>> Paginate works with Pyramid, with the caveat that if you use the >>&

Re: paginator/batcher for use with Pyramid

2011-02-24 Thread Mike Orr
On Thu, Feb 24, 2011 at 11:10 AM, Mike Orr wrote: >>> Can't we have a default pyramid generator (and well, webob based >>> frameworks) in WebHelpers who use the request.path to generate the url >>> ? >>> >>> So you can use Page.pager(request=req

Re: paginator/batcher for use with Pyramid

2011-02-24 Thread Mike Orr
On Thu, Feb 24, 2011 at 10:57 AM, Ben Bangert wrote: > On Feb 24, 2011, at 9:43 AM, Gael Pasgrimaud wrote: > >> On Thu, Feb 24, 2011 at 6:37 PM, Mike Orr wrote: >>> Paginate works with Pyramid, with the caveat that if you use the >>> Page.pager() method, you have

Re: paginator/batcher for use with Pyramid

2011-02-24 Thread Mike Orr
legroups.com. > To unsubscribe from this group, send email to > pylons-devel+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/pylons-devel?hl=en. > > -- Mike Orr -- You received this message because you are subscribed to the

Global variables

2011-02-12 Thread Mike Orr
7;s the official recommendation for arbitrary global variables? I just wrote what I thought would be safe. But people have their database connections and other things they'll have to put somewhere. Should I say to put them all in the registry? Under Settings? As module globals? If they do

Pyramid Migration Guide, first draft

2011-02-05 Thread Mike Orr
Replies to pylons-devel if it's a minor bug report or comment or Pyramid usage issue, or to pylons-discuss if you think it's important to all Pylons users. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To po

Re: Pyramid 1.0 released.

2011-01-30 Thread Mike Orr
I'm still working on a Pylons-Pyramid migration guide. I should have a draft out by next weekend. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com.

Re: Pyramid: URLDispatch vs Traversal question

2011-01-30 Thread Mike Orr
makes almost everything folders nowadays, as it makes it easier to both use the object and traverse through it. Could ArchiveYear and ArchiveMonth be made into Folder subclasses to factor away some of the code? -- Mike Orr -- You received this message because you are subscribed to the Google

Re: Pyramid 1.0b3 released...

2011-01-28 Thread Mike Orr
On Fri, Jan 28, 2011 at 10:52 AM, Christoph Zwerschke wrote: > Am 28.01.2011 17:51 schrieb Mike Orr: >> >> On Fri, Jan 28, 2011 at 8:13 AM, Chris McDonough  wrote: >>> >>> - Paster templates and tutorials now use tabs instead of spaces in their >>>  HTML

Re: Pyramid 1.0b3 released...

2011-01-28 Thread Mike Orr
four-space tabs. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. Fo

Re: How to mock models while testing views?

2011-01-25 Thread Mike Orr
ods on the model) which the view calls, you'd test those in isolation too. Then you can just let the views test the real models, and if the view result contains model instance(s), you can examine those too and make sure they have the correct values. -- Mike Orr -- You received this message b

Re: Form handling in Pyramid

2011-01-21 Thread Mike Orr
if the other PUT style was used. So maybe they should do ``if self.request.method != 'GET':`` instead, although that raises the possibility that the method may be entirely unexpected ('DELETE' instead of 'PUT'), in which case again the result is wrong. (It *should*

Re: Form handling in Pyramid

2011-01-21 Thread Mike Orr
On Fri, Jan 21, 2011 at 12:38 PM, Chris McDonough wrote: > On Fri, 2011-01-21 at 12:30 -0800, Mike Orr wrote: >> On Fri, Jan 21, 2011 at 12:15 PM, Chris McDonough wrote: >> >> config.add_view(some_method) >> >> config.add_view(some_method_PUT, request_me

Re: Form handling in Pyramid

2011-01-21 Thread Mike Orr
On Fri, Jan 21, 2011 at 11:55 AM, Mike Orr wrote: > How does Pyramid handle HTTP method tunneling? Where the formal method > is POST and the actual method is in a '_method' param? it's not really > a form library issue because you'd want it uniform across all >

Re: Form handling in Pyramid

2011-01-21 Thread Mike Orr
s make the routes less straightforward (they show the low-level details rather than the high-level intention). If the application is expecting both tunneled PUT and direct PUT, it will have to accomodate both possibilities. And views will also have to handle tunneled PUT themselves because it won

Re: Form handling in Pyramid

2011-01-21 Thread Mike Orr
beyond me why someone would try to be emulating a > "REST client" when using a browser, as the access patterns and expected > responses for REST APIs are dramatically different than those of a user > using a browser (authentication is usually different, usually REST > methods

Re: Form handling in Pyramid

2011-01-21 Thread Mike Orr
How does Pyramid handle HTTP method tunneling? Where the formal method is POST and the actual method is in a '_method' param? it's not really a form library issue because you'd want it uniform across all libraries. How does Pylons do it? Is it in WebOb? Is it something we ne

Re: Pyramid 1.0a10 released

2011-01-20 Thread Mike Orr
On Thu, Jan 20, 2011 at 2:49 PM, Wichert Akkerman wrote: > On 2011-1-20 19:49, Mike Orr wrote: >> >> On Thu, Jan 20, 2011 at 2:43 AM, Eric Lemoine >>  wrote: >>> >>> On Thu, Jan 20, 2011 at 11:02 AM, Wichert Akkerman >>>  wrote: >>>> &g

Re: Pyramid 1.0a10 released

2011-01-20 Thread Mike Orr
pypi/pyramid_sqla/0.1>. > > <https://bytebucket.org/sluggo/pyramid_sqla/wiki/html/index.html> Bitbucket doesn't have a good place for documentation so I put it in the project wiki. Static files in the wiki have this different URL (bytebucket.org). I may set up a site on docs.pyth

Re: Pyramid 1.0a10 released

2011-01-19 Thread Mike Orr
;  http://docs.pylonsproject.org/projects/pyramid_handlers/dev/#setup > >  Once this step is accomplished, config.add_handler will >  work again. Released pyramid_sqla 0.2 to reflect this. Applications made with pyramid_sqla 0.1 will not work with 1.0a10 until you apply this change. -- Mike Orr

Form handling in Pyramid

2011-01-17 Thread Mike Orr
view that look almost the same. It's like one could go to either URL? What's the purpose of this, and how does it handle the case of failed validation? Anyway, if you have any ideas on what should be in the Pyramid-Pylons form howto (which will probably be the Pyramid form howto too,

  1   2   3   4   >