Hello,
On Feb 27, 2011, at 10:40 PM, Chris Withers wrote:
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
The event_manager could be ZCA event API. You could also move event-firing
logic inside subclass of class of some_objects repository:
Oh, sorry, I was thought of wrapping repository inside versioning repository
proxy, not subclassing. :-)
--
You received this message because you are
Hello Tres,
FWIW, repoze.who 2.0 explicitly works to enable / ease using 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.
sorry
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
Hi All,
I like to use laquo; and raquo; 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
Spurred by this discussion, I implemented a simple events system
that's akin to Zope3's object events.
From the docs:
To subscribe only to insert events of documents, do::
def document_insert_handler(event):
print event.object, event.request
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
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
Wrap laquo; in webhelpers.html.literal() or ...set # -*- coding: utf-8 -*-
in your Python file and just pass the unicode character to the batcher.
--
You received this message because you are subscribed to the Google Groups
pylons-devel group.
To post to this group, send email to
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
Hi there
I was looking at the virginia sample application, and I have a few
question :
- What mechanism protects the application from viewing the /../ dir ?
I know the open method from Filesystem check the path before opening a
file, but that doesn't explain that when going to the url
Hi All,
So, the symptom of this is an exception as follows when the config commits:
ConfigurationConflictError: Conflicting configuration actions
For: ('view', None, '', None, InterfaceClass
pyramid.interfaces.IView, None, None, None, 'user', None, False, None,
None, None)
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.
If you are using traversal your application basically assumes a resource
tree, and so to get the url you provide a resource
13 matches
Mail list logo