Re: [pylons-discuss] Authkit troubles

2014-04-17 Thread Etienne Robillard
The author has been contacted but doesn't actively support issues for AuthKit, so sad :-) On Thu, 17 Apr 2014 10:34:49 -0700 Mike Orr wrote: > You can try AuthKit's author, James Gardner . > > I was going to cc this but the problem description has been chopped > off in the replies, so I'll let

Re: [pylons-discuss] Possible to know if a reified method was called ?

2014-04-17 Thread Jonathan Vanasco
i'm not sure if this holds true in zodb. but if you're using SqlAlchemy and didn't do any actual database work, calling `commit()` has no perceptible effect. sqlalchemy doesn't actually talk/connect to the database until you do the first query in a session. in practice... 1. you attach

[pylons-discuss] Re: Possible to know if a reified method was called ?

2014-04-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/17/2014 03:57 PM, wilk wrote: > > Hi, > > For db connexion I use add_request_method with reify=True. In the end > I commit only if this method was called. > > Now I use a tween and record the fact that the connexion was used or > not, it's no

Re: [pylons-discuss] Possible to know if a reified method was called ?

2014-04-17 Thread Michael Merickel
You could annotate the request with some other property (request.called_foo = True) and check if getattr(request, 'called_foo') in the tween. However, if you're okay relying on an implementation detail of reify then the following works: class Foo(object): @reify def bar(self): ret

[pylons-discuss] Possible to know if a reified method was called ?

2014-04-17 Thread wilk
Hi, For db connexion I use add_request_method with reify=True. In the end I commit only if this method was called. Now I use a tween and record the fact that the connexion was used or not, it's not a problem but I wonder if there is a way to directly know if a method was called (and reified) o

Re: [pylons-discuss] Authkit troubles

2014-04-17 Thread Mike Orr
Also, search the pylons-discuss archive for earlier discussions of AuthKit. They may have something relevant. On Thu, Apr 17, 2014 at 10:34 AM, Mike Orr wrote: > You can try AuthKit's author, James Gardner . > > I was going to cc this but the problem description has been chopped > off in the repl

Re: [pylons-discuss] Dropping setup.cfg

2014-04-17 Thread Michael Merickel
Babel uses options in the setup.cfg to determine how to do string extraction and a bunch of other stuff. Lingua defers this logic to the standard gettext commands and thus those sections of setup.cfg were no longer necessary. They also were the only options in setup.cfg and so we removed the files

Re: [pylons-discuss] Authkit troubles

2014-04-17 Thread Mike Orr
You can try AuthKit's author, James Gardner . I was going to cc this but the problem description has been chopped off in the replies, so I'll let you write it. On Thu, Apr 17, 2014 at 5:25 AM, Etienne Robillard wrote: > The reason i want to stick with authkit is that i need to retain > a legacy

[pylons-discuss] Dropping setup.cfg

2014-04-17 Thread Mike Orr
The What's New in Pyramid 1.5 says: "Updated docs and scaffolds to keep in step with new 2.0 release of Lingua. This included removing all setup.cfg files from scaffolds and documentation environments." What's the background on this? First I had to find out what Lingua is; it's an internationaliz

Re: [pylons-discuss] Authkit troubles

2014-04-17 Thread Etienne Robillard
The reason i want to stick with authkit is that i need to retain a legacy database backend connection which uses the Schevo database. The driver itself is looking like this: from authkit.users import Users __all__ = ['ManagerBase', 'UserManagerBase'] class ManagerBase(Users): """ Create

Re: [pylons-discuss] A french news/dépêche on linuxfr.org ?

2014-04-17 Thread fero14041
Yes, Werner: this is a known limitation of this site. Its authentication certificate is made by the team, and not validated by an external authority. - fero14041 2014-04-17 9:05 GMT+02:00 Werner : > On 4/13/2014 20:42, wilk wrote: >> >> Somebody began, so we can contribute... >> >> https://linuxf

[pylons-discuss] Re: pkg_resources.DistributionNotFound when running pcreate

2014-04-17 Thread Michael
Turns-out the problem was that I had an old version of pcreate in the dirs where home-brew installs python .. on both machines. Thanks for the tips. On Wednesday, April 16, 2014 12:27:08 PM UTC-4, Tres Seaver wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 04/16/2014 02:27 AM

Re: [pylons-discuss] A french news/dépêche on linuxfr.org ?

2014-04-17 Thread Werner
On 4/13/2014 20:42, wilk wrote: Somebody began, so we can contribute... https://linuxfr.org/redaction/news/publication-de-pyramid-1-5 Just FYI, I get an "This Connection is Untrusted" trying to access it with Firefox on Win. Werner -- You received this message because you are subscribed to t