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

2015-10-20 Thread Chris Withers
erek wrote: Like others, I do also deploy production using Nginx and uWSGI. For development I use just waitress or uWSGI, depending on the project and how much infrastructure has been built. On Thursday, September 24, 2015 at 12:25:14 PM UTC-4, Chris Withers wrote: Hi All, What's

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

2015-10-20 Thread Chris Withers
hich the module system is installed. Laurence On Thursday, 24 September 2015 09:25:14 UTC-7, Chris Withers wrote: Hi All, What's the recommended wsgi server for Pyramid apps nowadays? My go-to would normally be mod_wsgi, but I'm having a hard time getting my head

[pylons-devel] wsgi server of choice?

2015-09-28 Thread Chris Withers
Hi All, What's the recommended wsgi server for Pyramid apps nowadays? My go-to would normally be mod_wsgi, but I'm having a hard time getting my head around using that with an environment set up with environment modules . That modules system is causing me ple

[pylons-devel] wsgi server of choice?

2015-09-24 Thread Chris Withers
Hi All, What's the recommended wsgi server for Pyramid apps nowadays? My go-to would normally be mod_wsgi, but I'm having a hard time getting my head around using that with an environment set up with environment modules . That modules system is causing me plen

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

2015-07-15 Thread Chris Withers
On 28/06/2015 06:29, Mike Orr wrote: 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 s

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

2012-11-04 Thread Chris Withers
Hi All, Anyone know what's up with these two domains? Trying to set up a new pyramid project and getting lots of noise from setuptools about these two... Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk -- You received

Re: OAuth 2.0 for Pyramid

2011-08-13 Thread Chris Withers
Have you taken a look at Velruse: http://packages.python.org/velruse/ cheers, Chris On 10/08/2011 07:24, Kevin Van Wilder wrote: Woops, forgot the most important bit: You can find it at http://code.google.com/p/pyramid-oauth2/ On Aug 9, 8:29 am, Kevin Van Wilder wrote: Hi there, We are cu

Re: [Pyramid] How to do testing _with_ sqlalchemy?

2011-08-02 Thread Chris Withers
Hi All, Sorry to top post but people have been and I missed the start of the thread... This sounds like the kind of thing that mortar_rdb helps with: http://packages.python.org/mortar_rdb/use.html See the testing section in the above docs... cheers, Chris On 28/07/2011 17:20, Joe Dallago

Re: Pyramid authentication options

2011-05-30 Thread Chris Withers
On 18/02/2011 23:13, whit wrote: Ben Bangert was working on Velruse http://packages.python.org/velruse/index.html during pyramid's formative months. I'd look there for starters. has anyone done an integration between velruse and pyramid that they'd care to share? I'm getting there, slowly.

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

2011-05-26 Thread Chris Withers
On 26/05/2011 14:15, Daniel Holth wrote: In Pyramid you could replace the standard context finding methods with a view that raises exceptions and build your whole application out of exception views. ...which result in the PSU (That's *not* the Pyramid Secret Underground, which doesn't exist an

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

2011-05-16 Thread Chris Withers
On 16/05/2011 19:46, Michael Merickel wrote: I really don't like the idea of the abort(404) API providing no way to provide a custom 404 page, I don't think anything Chris has said suggests you wouldn't be able to provide a customer 404 page... that's why I mention marrying the two. And cal

How do I develop a Pylons package?

2011-05-16 Thread Chris Withers
Hi All, I'm looking for the equivalent of the following: http://packages.python.org/testfixtures/development.html ...for Pylon project packages. In short, for any package, what's the "right" way to: - get a development environment ready including setting up a virtualenv, installing the pack

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

2011-05-16 Thread Chris Withers
On 16/05/2011 19:42, Stephen Lacy wrote: design. I'm not fond of thinking of things like access violations as "exceptions". Oh, I very much am. It's much easier and more powerful to, at any point, raise a "whoa, you're not allowed to do that!" exception, and not have to worry about all the i

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

2011-05-16 Thread Chris Withers
On 16/05/2011 18:58, Tres Seaver wrote: On 05/16/2011 02:27 AM, Chris McDonough wrote: I've created a branch named "httpexception-utils" on GitHub which contains an implementation of "redirect" and "abort" for Pyramid that act like their Pylons brethren. In short, the abort feature is used like

[deform] input filters?

2011-05-10 Thread Chris Withers
Hi All, I'm wondering how I should achieve this; So, I have a url field, if someone types "www.example.com", I want that to end up as "http://www.example.com"; when it's stored, and I want a validator to make sure that's the case. However, if someone types "www.example.com", I don't want val

Re: [deform] doc bug patch

2011-05-10 Thread Chris Withers
On 05/05/2011 20:00, Tres Seaver wrote: Fork, fix, push, and issue a pull request: simple ones like that can even be pulled TTW now. Done :-) Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk -- You received this message

[deform] doc bug patch

2011-05-04 Thread Chris Withers
I'm pretty sure this patch is correct: diff --git a/deform/field.py b/deform/field.py index 2da070a..e0ae4c8 100644 --- a/deform/field.py +++ b/deform/field.py @@ -454,7 +454,7 @@ class Field(object): schema is returned. It will be a mapping. - If the fields cannot be succes

Re: [deform] limit number of entries in a SequenceSchema

2011-05-04 Thread Chris Withers
On 03/05/2011 20:29, Chris McDonough wrote: On Tue, 2011-05-03 at 17:31 +0100, Chris Withers wrote: Hi All, What's the correct way to limit the number of entries in a SequenceSchema node? The requirements is something like "each job must have at least one requirement line, but no m

Re: [colander] "proper" declarative with collection nodes in schemas

2011-05-03 Thread Chris Withers
On 03/05/2011 18:12, Gustavo Fonseca wrote: There are lots of situations where the same data structure should be used, and I think your suggestion would make them less reusable. Agreed, so how about this class decorator as an alternative: class instantiate: def __init__(self,*args,**kw):

[colander] "proper" declarative with collection nodes in schemas

2011-05-03 Thread Chris Withers
Hi All, We currently have to do: """ class Friend(colander.TupleSchema): rank = colander.SchemaNode(colander.Int(), validator=colander.Range(0, )) name = colander.SchemaNode(colander.String()) class Friends(colander.SequenceSchema): friend = Friend(

[deform] limit number of entries in a SequenceSchema

2011-05-03 Thread Chris Withers
Hi All, What's the correct way to limit the number of entries in a SequenceSchema node? The requirements is something like "each job must have at least one requirement line, but no more than 5" I'm also keen to know if anyone has done a widget which uses a to produce a sequence of strings

pyramid view_config and redirect

2011-04-28 Thread Chris Withers
Hi All, So, I have a view like this: @view_config(name="chris_test", renderer="templates/chris.pt") class ChrisTest(object): def __init__(self,context,request): self.context = context self.request = request def __call__(self): if self.request.GET.ge

deform and sanitizing html fields

2011-04-26 Thread Chris Withers
Hi All, Apologies for the cross post, which is the "right" list for deform? I see deform.widget.RichTextWidget but only in the context of colander.String in the schema. What's the best way to only allow a certain subset of html tags and zero javascript to be used? I don't see anything in de

Re: unit test to check if for a given path a correct context will be returned

2011-04-25 Thread Chris Withers
On 16/04/2011 16:39, Chris McDonough wrote: What you'd be testing with the sort of test I described (one that uses "pyramid.traversal.traverse") is Pyramid's traversal code itself. Well, and the configuration of traversal in the application. I often find myself wanting to write tests like thes

unicode, unicode, everywhere... well?

2011-04-12 Thread Chris Withers
Hi All, So, I got the general vibe that "everything" in Pyramid was supposed to be unicode, and that the decoding would be taken care of by the request object and any data layer (rdb, zodb, etc) and the encoding taken care of by the response object and any data layer (rdb, zodb, etc). Firstl

[WebError] where are the docs/source and who's maintaining now?

2011-04-12 Thread Chris Withers
Hi All, Is https://bitbucket.org/bbangert/weberror WebError's "home" now? Are there any docs anywhere? Who's the current active maintainer? Oh, and which is the correct mailing list for WebError? (I'll send the questions I have just to paste-users until told otherwise...) cheers, Chris -- Sim

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

2011-04-04 Thread Chris Withers
On 31/03/2011 18:58, Mike Orr wrote: On Thu, Mar 31, 2011 at 7:14 AM, Chris Withers wrote: On 15/03/2011 20:01, Ben Bangert wrote: Here's a quick way to know which one to post to: pylons-devel - Discussion about development of pylons project libraries such as pylons/pyramid/etc. p

Re: requests and transactions

2011-03-31 Thread Chris Withers
On 01/04/2011 07:23, Brian Sutherland wrote: On Thu, Mar 31, 2011 at 04:49:38PM +0100, Chris Withers wrote: - isDoomed support: I guess this could be added to the example; can someone explain when isDoomed is True and what happens if that transaction is committed instead of being manually

Re: requests and transactions

2011-03-31 Thread Chris Withers
On 31/03/2011 17:17, Chris McDonough wrote: Related: Any chance of a RequestFinished event to subscribe to rather than having to (rather convolutedly) subscribe to NewRequest just so your handler can call add_finished_callback? ...in which case, I'd dearly love that RequestFinished event! Roc

Re: requests and transactions

2011-03-31 Thread Chris Withers
On 31/03/2011 16:09, Chris Withers wrote: What's the preferred way of working with transactions now, be they just SQLAlchemy transactions or, more likely, a bunch of things tied together by a transaction from the 'transaction' package? repoze.tm2 seems to be the "old sko

Re: requests and transaction (was Re: request lifecycle)

2011-03-31 Thread Chris Withers
On 31/03/2011 16:18, Daniel Holth wrote: SQLAlchemy 0.7 deprecates SessionExtension() and other abstract base classes and replaces them with an event interface. This doesn't address any of the reasons why I re-named the thread ;-) Until 0.7 is officially released, I won't be using it... cheer

requests and transaction (was Re: request lifecycle)

2011-03-31 Thread Chris Withers
On 31/03/2011 16:00, Daniel Nouri wrote: On Thu, Mar 31, 2011 at 4:44 PM, Chris Withers wrote: On 31/03/2011 15:40, Daniel Nouri wrote: FWIW, get_current_request() works with 'before_insert' and 'before_update' events. I don't see these listed here: http://ww

Re: request lifecycle

2011-03-31 Thread Chris Withers
On 31/03/2011 15:40, Daniel Nouri wrote: On Thu, Mar 31, 2011 at 4:23 PM, Chris Withers wrote: Hi All, I'm using zope.sqlalchemy to commit a a SQLAlchemy session. As part of that commit, I want to record the user making the change as an attribute of the changed object. To do this,

request lifecycle

2011-03-31 Thread Chris Withers
Hi All, I'm using zope.sqlalchemy to commit a a SQLAlchemy session. As part of that commit, I want to record the user making the change as an attribute of the changed object. To do this, in a SessionExtension's before_flush method I do: user_id = authenticated_userid(get_current_request())

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

2011-03-31 Thread Chris Withers
On 15/03/2011 20:01, Ben Bangert wrote: Here's a quick way to know which one to post to: pylons-devel - Discussion about development of pylons project libraries such as pylons/pyramid/etc. pylons-discuss - General discussion about best practices of development, asking for help, etc. How about

Re: Terminology Change - Template to Skeleton

2011-03-22 Thread Chris Withers
On 22/03/2011 02:58, Chris McDonough wrote: I just wanted to make sure that there was some distinction between the two entities in the docs, b/c I remember this being an issue as a beginner. It became even more of a problem, when I went to IRC to ask questions, and confusion arrose over which

Re: What's the best way to optimize database connections in Pyramid?

2011-03-13 Thread Chris Withers
On 13/03/2011 14:51, Chris Rossi wrote: If it were me I would attach a connection factory instead of an open connection. The factory would open a connection and stash it on the request the first time it is invoked and then just return the stashed connection on subsequent calls. This preserves t

Re: CSRF protection and session factories

2011-03-09 Thread Chris Withers
On 09/03/2011 15:10, danjac...@gmail.com wrote: I've got a simplistic example here: http://packages.python.org/pyramid_simpleform/#csrf-validation I'm afraid this doesn't actually answer either of my questions: First, the important question: If I use http://docs.pylonsproject.org/projects/py

CSRF protection and session factories

2011-03-08 Thread Chris Withers
Hi All, First, the important question: If I use http://docs.pylonsproject.org/projects/pyramid/1.0/narr/sessions.html#using-the-default-session-factory is the CSRF protection provided by http://docs.pylonsproject.org/projects/pyramid/1.0/narr/sessions.html#preventing-cross-site-request-forgery

Re: Some thoughts about Pyramid

2011-03-05 Thread Chris Withers
On 04/03/2011 20:03, Mike Orr wrote: I'll be at the Pyramid sprint but I don't know what I'll be doing. I would like to learn Git and Pyramid-at-Github if somebody would like to do a mini crash course. Me too please! I'm currently petrified of all things git and could use some hand holding.

Re: computing url for view registered by name

2011-03-04 Thread Chris Withers
On 02/03/2011 00:48, Michael Merickel wrote: I noticed in your example you aren't specifying a context= or for_= in the view_config, implying you maybe intended to use route_name instead of name with url dispatch. Nope, no routes here, these are just views hanging off /, not registered against

Re: computing url for view registered by name

2011-03-04 Thread Chris Withers
On 01/03/2011 16:59, Jean-Philippe wrote: First off, I believe your views need to be named for this to work. But views don't need to have names ;-) That being said, the following would work from within a view callable: url = request.route_path('history') ...not if I'm not using a route...

Re: view_config registers twice if module is imported more than once with scan

2011-03-04 Thread Chris Withers
On 01/03/2011 21:21, Wichert Akkerman wrote: This feels like a bug to me but I thought I'd throw it out here in case I missed something... Sounds like something that should be added here: https://github.com/Pylons/venusian/issues . It might even be the same problem as https://github.com/Pylons/

Re: view_config registers twice if module is imported more than once with scan

2011-03-01 Thread Chris Withers
On 01/03/2011 19:26, Victor Fernandez de Alba wrote: @view_config( ) class myViewClass(): ... @view_config( ) class myOtherView(myViewClass): I've workarround it by using more generic meta-classes but it should work, isn't it? I do this too, but I only experienced the problem

view_config registers twice if module is imported more than once with scan

2011-03-01 Thread Chris Withers
Hi All, So, the symptom of this is an exception as follows when the config commits: ConfigurationConflictError: Conflicting configuration actions For: ('view', None, '', None, pyramid.interfaces.IView>, None, None, None, 'user', None, False, None, None, None) ('...views.py', 119, '', 'cl

WebTest doesn't like Pyramid NotFound rendering

2011-03-01 Thread Chris Withers
Hi All, I have a view that raises a NotFound if it can't find the model it's trying to render. I have a functional test for this that uses WebTest along the lines of: def test_not_there(self): self.testapp.get('/not_there', status=404) This results in the following barf from WebT

computing url for view registered by name

2011-03-01 Thread Chris Withers
Hi All, I have two views: @view_config(renderer='templates/index.pt') class IndexView(..): ... @view_config(name='history',renderer='templates/history.pt') class HistoryView(..): ... How should I generate urls to these? cheers, Chris -- Simplistix - Content Management, Batch Processin

Re: am I evil?

2011-03-01 Thread Chris Withers
On 01/03/2011 12:58, Daniel Nouri wrote: Spurred by this discussion, I implemented a simple events system that's akin to Zope3's object events. For a fuller version of this pattern, check out: http://pydispatcher.sourceforge.net/ cheers, Chris -- Simplistix - Content Management, Batch Proce

webhelpers.paginate: html entity for symbol_previous|next

2011-03-01 Thread Chris Withers
Hi All, I like to use « and » as my batch links. If I pass these as symbol_previous and symbol_next, they get html quoted. How can I stop that happening? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk -- You rec

pyramid pagination gotcha: depend on WebHelpers, not paginate

2011-03-01 Thread Chris Withers
On 25/02/2011 00:20, Mike Orr wrote: What version of webhelpers should I use? Are there any changes to the query I should make to make it more efficient? Just follow the WebHelpers instructions, and define a URL generator callback to pass. WebHelpers 1.2 is the current version and has been sta

Re: am I evil?

2011-02-28 Thread Chris Withers
On 28/02/2011 18:42, Tres Seaver wrote: -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

Re: pyramid_tm 0.1 released

2011-02-28 Thread Chris Withers
On 28/02/2011 18:43, Chris McDonough wrote: repoze.tm2 vs. pyramid_tm is more about opinion than it is technology Both offer the same features and the same benefits, and neither has a particular downside that isn't rooted in pure opinion. On the other hand, there are cases where using middleware

Re: authenticated_userid vs unauthenticated_userid

2011-02-28 Thread Chris Withers
On 28/02/2011 15:13, Chris McDonough wrote: The distinction is useful when folks want to closely control user checking for performance reasons, ala http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/authentication.html . I actually read that before I posted, and I just don't get it :-

Re: am I evil?

2011-02-28 Thread Chris Withers
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 user id inside a SessionExtension? The "approved" way to share request-specific information is to just pass the request: in this case, the obviou

Re: pyramid_tm 0.1 released

2011-02-27 Thread Chris Withers
On 26/02/2011 10:18, Wichert Akkerman wrote: We had a mini-discussion on this topic on irc this week. The only difference between the two is that repoze.tm2 uses middleware, while pyramid_tm uses pyramid events. Personally I am a bit worried about a trend to move away from reusable WSGI middlewa

Re: am I evil?

2011-02-27 Thread Chris Withers
On 28/02/2011 03:27, Eric Ongerth wrote: Tune in next week when some community member writes a post entitled "Chris Withers Considered Harmful" ! I'm pretty sure that's been done before... Chris ;-) -- Simplistix - Content Management, Batch Processing & Python Cons

mortar_rdb 1.1.0 released!

2011-02-27 Thread Chris Withers
Hi All, I'm pleased to announce a new release of mortar_rdb. This package ties together SQLAlchemy, sqlalchemy-migrate and the component architecture to make it easy to develop projects using SQLAlchemy through their complete lifecycle. This release allows you to register SessionExtensions with

am I evil?

2011-02-27 Thread Chris Withers
Hi All, I'm writing a SQLAlchemy SessionExtension based on this pattern: http://www.sqlalchemy.org/trac/browser/examples/versioning/history_meta.py?rev=7253:3ef75b251d06#L171 So, in the listener, I want to record the user that made the change. How should I get hold of the currently authenticate

authenticated_userid vs unauthenticated_userid

2011-02-27 Thread Chris Withers
Hi All, The docs don't seem too clear on the difference between these two functions. It seems to boil down to "however the authentication policy wants to differentiate these" and I worry that different authentication policies will do different things and users (like me!) will end up getting c

Re: pyramid_tm 0.1 released

2011-02-26 Thread Chris Withers
On 25/02/2011 14:17, Rocky Burt wrote: pyramid_tm 0.1 has been released. ``pyramid_tm`` is a package which allows Pyramid requests to join the active transaction as provided by the `transaction `_ package. See `http://docs.pylonsproject.org/projects/pyra

Re: paginator/batcher for use with Pyramid

2011-02-24 Thread Chris Withers
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 Page.pager() method, you have to pass a custom URL generator to the constructor as described on the webhelpers.paginate page. Okay, I take it

paginator/batcher for use with Pyramid

2011-02-24 Thread Chris Withers
Hi All, What's the recommended paginator/batcher for use with Pyramid? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk -- You received this message because you are subscribed to the Google Groups "pylons-devel" g

Re: default permission overriding

2011-02-22 Thread Chris Withers
On 22/02/2011 20:17, Alice Bevan–McGregor wrote: Create an empty object instance called NoDefault and use that in place of None, allowing None to be passed as a legitimate value. My 2¢. My 2p too :-) Chris -- Simplistix - Content Management, Batch Processing & Python Consulting -

"user objects"

2011-02-22 Thread Chris Withers
Hi All, Suppose I have a user object that behaves something like: class User: def __init__(self,name,password): self.name,self.password = name,password def authenticate(self,password): return self.password==password def allowed(self,permission): ... stuff ... Now, for the s

Re: Raw MySQL with SQLAlchemy using Pyramid framework

2011-02-20 Thread Chris Withers
On 20/02/2011 02:06, Chris McDonough wrote: On Sun, 2011-02-20 at 00:02 +, Chris Withers wrote: and I want to use raw MySQL (personal reasons) Don't be an idiot ;-) Not really funny. Please see http://docs.pylonsproject.org/community/conduct.html . I know, with hindsight the s

Re: Raw MySQL with SQLAlchemy using Pyramid framework

2011-02-19 Thread Chris Withers
On 19/02/2011 09:44, AwaisMuzaffar wrote: I have recently made a decision to start using the Pyramid (python web framework) for my projects from now on. Yay :-) I have also decided to use SQLalchemy, Yay :-) and I want to use raw MySQL (personal reasons) Don't be an idiot ;-) The firs

Re: git?

2011-02-19 Thread Chris Withers
On 19/02/2011 08:01, Chris McDonough wrote: Chris, is that a doc bug target? I guess it should just say that something that implements zope.component.interfaces.IComponents? Please someone submit a pull request wrt to this topic. This is a git thing, right? As such, it currently means nothing

Re: Global variables

2011-02-19 Thread Chris Withers
A bit late in on this one, sorry: On 18/02/2011 23:15, Iain Duncan wrote: > > Some of us *do* write apps that expect to be extended / reconfigured via > > the ZCA registry, but Pyramid itself doesn't mandate that (or even > > document it all that well). If such an app uses th

Re: docs unclear re using zope global registry

2011-02-18 Thread Chris Withers
On 19/02/2011 00:25, Iain Duncan wrote: Further, in case it's useful, if you do this in your app start up code. gsm = getGlobalSiteManager() config = Configurator( registry=gsm ) then whenever you use request.registry you're using the zope global registry, in case you have some special need f

Re: pyramid_who

2011-02-18 Thread Chris Withers
; It work fine for me. > > -- > Gael > > On Fri, Feb 18, 2011 at 7:14 PM, Chris Withers wrote: >> Hi Tres, >> >> I see from: >> >> http://lists.repoze.org/pipermail/repoze-dev/2011-February/003770.html >> >> ...that I should use pyramid_wh

pyramid_who

2011-02-18 Thread Chris Withers
Hi Tres, I see from: http://lists.repoze.org/pipermail/repoze-dev/2011-February/003770.html ...that I should use pyramid_who to get a Pyramid authentication policy that will work with repoze.who 2.0? This leads to: http://pypi.python.org/pypi/pyramid_who ...which appears to be in a bit of

Re: default permission overriding

2011-02-18 Thread Chris Withers
On 18/02/2011 16:48, Chris McDonough wrote: @view_config(context=Blog, name='add_entry.html', permission=None) ...seems an explicit and less cumbersome way of specifying the same thing, what am I missing? You're missing the fact that the default value of the permission= argument to view_config

default permission overriding

2011-02-18 Thread Chris Withers
Hi All, Glad to see this feature: http://docs.pylonsproject.org/projects/pyramid/1.0/narr/security.html#setting-a-default-permission Slightly confused by the cumbersome '__no_permission_required__' requirement. @view_config(context=Blog, name='add_entry.html', permission=None) ...seems an ex

Re: docs unclear re using zope global registry

2011-02-18 Thread Chris Withers
On 18/02/2011 04:35, Iain Duncan wrote: And I see the following: "If the registry argument is passed as a non-None value, it must be an instance of the pyramid.registry.Registry class representing the registry to configure." I certainly hope this isn't true. It would be frustrating if Pyramid n

mortar_rdb 1.0.0 released!

2011-02-18 Thread Chris Withers
Hi All, I'm very pleased to finally announce the release of mortar_rdb 1.0.0. This package ties together SQLAlchemy, sqlalchemy-migrate and the component architecture to make it easy to develop projects using SQLAlchemy through their complete lifecycle. While I'll be using it with Pyramid, the

Pyramid authentication options

2011-02-17 Thread Chris Withers
Hi All, Can anyone recommend Pyramid-friendly components for either of the following: - OpenID login - Membrship signup (ie: users generating their own logins) - Facebook/MSN/etc logins The background for this is that I'm hopefully going to be writing a Pyramid app to handle the job board on

Re: stucco_auth 0.1e-6 released

2011-01-21 Thread Chris Withers
On 21/01/2011 08:25, Ginés Martínez wrote: Great, I find it very interesting. IMHO, would be good if the package had the prefix pyramid_ to facilitate the search for new people at pypi. Regards! I'd prefer to see people just use a Pyramid trove classifier... cheers, Chris -- Simplistix - Con

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

2010-12-17 Thread Chris Withers
On 17/12/2010 12:37, Marius Gedminas wrote: On Thu, Dec 16, 2010 at 11:57:42PM -0500, Mark Ramm wrote: The main reason behind me asking Chris about this is that I can imagine writing a simple explanation of the "traversal" model which makes sense to a variety of TG, Zope, and even Django users.

. to _

2010-11-14 Thread Chris Withers
Hi All, I notice that as part of the move from repoze.bfg to pyramid, the dots have changed to underscores. This is something I've thought about a lot in the past myself, but never managed to come up with a decent answer, so I'd be very interested to know what tipped the balance to change al