[capnproto] Nested lists with pycapnp

2020-11-27 Thread Wichert Akkerman
Hi everyone, I have a schema that uses a two-dimensional list. The schema looks like this: struct Feature { coordinates @4 :List(List(Float64)); } Where coordinates will be a list of 2-item lists. I can initialise the outer list easily: feature = geo_schema.Feature.new_message() coordinates

[Standards] Clarification for XEP-0054: private fields

2019-09-19 Thread Wichert Akkerman
Hi everyone, I am looking for a clarification on XEP-0054. The history description for the XEP mentions that it essentially encapsulates draft-dawson-vcard-xml-dtd-01 over XMPP, with changes to using xuppercase for elements and adding JABBERID and DESC. draft-dawson-vcard-xml-dtd-01 also docume

Re: SPI credit cards for regular billing, specifically AWS costs

2018-02-16 Thread Wichert Akkerman
> On 16 Feb 2018, at 14:58, Philip Balister wrote: > > On 02/16/2018 08:48 AM, Peter Cock wrote: >> On Fri, Feb 16, 2018 at 1:37 PM, Martin Michlmayr wrote: >>> * Peter Cock [2018-02-15 16:51]: Does this mean none of the other SPI projects currently pay for AWS at the moment? >>> >

Re: [python-nl] wincertstore

2017-07-25 Thread Wichert Akkerman
On 25 Jul 2017, at 09:45, Geert Stappers wrote: > Vervolgens het voorbeeld uitgeprobeert. > > for storename in ("CA", "ROOT"): > with wincertstore.CertSystemStore(storename) as store: > for cert in store.itercerts(usage=wincertstore.SERVER_AUTH): >

Bug#797181: Review status

2016-02-21 Thread Wichert Akkerman
Hi, I was wondering if there has been any progress on this ticket? Regards, Wichert.

Re: LIR as a Service

2015-12-11 Thread Wichert Akkerman
> On 11 Dec 2015, at 00:04, Bill Allombert > wrote: > > On Thu, Dec 10, 2015 at 10:09:03PM +, Dimitri John Ledkov wrote: >> Pricing structure: >> https://www.ripe.net/publications/docs/ripe-620 >> >> * One-off sign-up fee 2 000 EUR (approx. 2 188 USD) >> * annual fee of 1 600 EUR (approx.

[bug-gettext] Allow custom flags in msgmerge

2015-11-12 Thread Wichert Akkerman
Hi, for a few projects I find myself needing an ability to add custom flags to messages to help manage our translation toolchain. For example: * Some of our messages are in markdown format. I want to be able to add a flag to them so our tooling can verify a translation is still valid markdown.

Re: [Distutils] venusian pain was: Where should I put tests when packaging python modules?

2015-10-10 Thread Wichert Akkerman
> On 10 Oct 2015, at 13:06, Thomas Güttler wrote: > > Am 10.10.2015 um 10:47 schrieb Wichert Akkerman: >> Also having test code in the package can be very painful if you use tools >> like venusian which scan and try to import all Python files. > > > Hi Wichert

Re: [Distutils] Where should I put tests when packaging python modules?

2015-10-10 Thread Wichert Akkerman
Also having test code in the package can be very painful if you use tools like venusian which scan and try to import all Python files. Sent from my iPhone > On 09 Oct 2015, at 16:05, Michael Merickel wrote: > > At the pylons project we've had a history of keeping our tests inside the > pack

[Touch-packages] [Bug 1497625] [NEW] /etc/security/namespace.init always fails with default /bin/sh

2015-09-19 Thread Wichert Akkerman
Public bug reported: Ubuntu 15.04 uses dash as its default /bin/sh. dash does not support the -p option wihch is used by /etc/security/namespace.init. As a result any attempt to use pam_namespace fails: # su iws /bin/sh: 0: Illegal option -p ** Affects: pam (Ubuntu) Importance: Undecided

[Bug 1497625] [NEW] /etc/security/namespace.init always fails with default /bin/sh

2015-09-19 Thread Wichert Akkerman
Public bug reported: Ubuntu 15.04 uses dash as its default /bin/sh. dash does not support the -p option wihch is used by /etc/security/namespace.init. As a result any attempt to use pam_namespace fails: # su iws /bin/sh: 0: Illegal option -p ** Affects: pam (Ubuntu) Importance: Undecided

Re: [Distutils] Reviving PEP 470 - Removing External Hosting support on PyPI

2015-08-31 Thread Wichert Akkerman
On 31 Aug 2015, at 16:31, Donald Stufft wrote: > Top Externally Hosted Projects by Requests > -- > > This is determined by looking at the number of requests the > ``/simple//`` page had gotten in a single day. The total number of > requests during that day

Re: [Distutils] Reviving PEP 470 - Removing External Hosting support on PyPI

2015-08-31 Thread Wichert Akkerman
> On 31 Aug 2015, at 12:36, Paul Moore wrote: > > On 31 August 2015 at 10:43, Wichert Akkerman wrote: >> I just wanted to add a bit of context, since your statement seemed to >> reflect a slightly different reality than mine. You do bring up a good point >> th

Re: [Distutils] Reviving PEP 470 - Removing External Hosting support on PyPI

2015-08-31 Thread Wichert Akkerman
> On 31 Aug 2015, at 11:35, M.-A. Lemburg wrote: > > On 31.08.2015 11:05, Wichert Akkerman wrote: >> On 31 Aug 2015, at 10:44, M.-A. Lemburg wrote: >>> >>> There's also another difference: Linux repos are usually managed >>> by a single entity o

Re: [Distutils] Reviving PEP 470 - Removing External Hosting support on PyPI

2015-08-31 Thread Wichert Akkerman
On 31 Aug 2015, at 10:44, M.-A. Lemburg wrote: > > There's also another difference: Linux repos are usually managed > by a single entity owning the packages, very much unlike PyPI which > is merely a hosting platform and index to point to packages owned > by the authors. That is probably true fo

Re: [python-nl] Volgende PUN

2015-08-20 Thread Wichert Akkerman
> On 11 Aug 2015, at 14:31, Wichert Akkerman wrote: > > On 10 Aug 2015, at 14:53, Reinout van Rees wrote: >> >> Bart Heesink schreef op 10-08-15 om 12:15: >>> @reinout Dat heb je goed onthouden!:) >>> Wij willen de PUN meetup wel graag hosten! >> M

Re: [python-nl] Volgende PUN

2015-08-11 Thread Wichert Akkerman
On 10 Aug 2015, at 14:53, Reinout van Rees wrote: > > Bart Heesink schreef op 10-08-15 om 12:15: >> @reinout Dat heb je goed onthouden!:) >> Wij willen de PUN meetup wel graag hosten! > Misschien even met Wichert overleggen voor een datum die hem goed uitkomt? > Vaak wordt het op donderdag of vri

[python-nl] Things you can do with Python..

2015-07-15 Thread Wichert Akkerman
Na jaren van werken aan websites met Python ben ik de laatste tijd eens bezig geweest met wat anders: robots zover krijgen dat ze kledingadvies kunnen geven. Op een Pepper of Nao robot werkt dat nu goed, zoals je kan zien in deze demo: https://www.youtube.com/watch?v=29ecYdLhC8s

Re: [Distutils] New buildout release needed

2015-06-30 Thread Wichert Akkerman
On 01 Jul 2015, at 04:45, Reinout van Rees wrote: > And I've fixed several issues dealing with non-ascii filenames. Apparently, > if you install pyramid (for instance), buildout will fail to run. Apparently > it is enough to install something like mr.bob to break buildout totally. It > is now f

Re: [python-nl] python27, windows 8.1

2015-05-14 Thread Wichert Akkerman
On 14 May 2015, at 23:38, Jochem Oosterveen wrote: > Verder valt op dat je eerst van alles checkt voor iets te doen. Iets meer > ‘pythonic’ is om iets gewoon te proberen en fouten dan af te handelen. Ik heb > het geheel een klein beetje aangepast waarmee de conversie van de variabele > getal na

Re: [Distutils] Proper handling of PEP420 namespace packages with setuptools and pip

2015-04-22 Thread Wichert Akkerman
On Wed, Apr 22, 2015 at 12:38 PM, Robert Collins wrote: > On 22 April 2015 at 22:13, Christoph Schmitt > wrote: > > Hello again, > > > > since I haven't got any replies yet I'm trying to make myself a bit more > > precise now. I consider the behaviour described in my original posting a > > bug.

[Distutils] pip user-agent string

2015-03-23 Thread Wichert Akkerman
I noticed that pip sends a pretty strange User-Agent string: 127.0.0.1 - - [23/Mar/2015:08:31:31 +] "GET /python/ HTTP/1.1" 200 17676 "-" "pip/6.0.8 {\x22cpu\x22:\x22x86_64\x22,\x22distro\x22:{\x22id\x22:\x22trusty\x22,\x22libc\x22:{\x22lib\x22:\x22glibc\x22,\x22version\x22:\x222.4\x22},\x22

Re: [Distutils] setup_requires for dev environments

2015-03-18 Thread Wichert Akkerman
> On 18 Mar 2015, at 17:49, Paul Moore wrote: > > On 18 March 2015 at 16:02, Ionel Cristian Mărieș wrote: >> one certainly doesn't need to shoehorn a full blown build system into >> setup.py - there's make, invoke, shell scripts and plenty of other systems >> that can do that just fine. > > Ju

Re: [pylons-discuss] Routes with same name and different url

2015-03-04 Thread Wichert Akkerman
> On 04 Mar 2015, at 15:34, Mário Idival wrote: > > Good morning > > I wonder if there is any way that I can name two routes with the same name > and with different urls … You can’t do that. Why would you want to do that? Perhaps there is an alternative approach that would work for you. W.

Re: [sqlalchemy] idle in transaction using ZopeTransactionExtension with postgres

2015-02-26 Thread Wichert Akkerman
> On 26 Feb 2015, at 17:02, Robert Daniels wrote: > > > I'm using ZopeTransactionExtension (postgresql) as: > > DBSession = scoped_session(sessionmaker(extension=ZopeTransactionExtension())) > Base = declarative_base() > > > When I invoke > > result = DBSession.execute("some sql query") >

Re: [pylons-discuss] Dynamically-generated PDF to download

2015-01-25 Thread Wichert Akkerman
> On 25 Jan 2015, at 14:40, Adam Morris wrote: > > Okay, I get that bit now, and coded it up, but when I go to render it, I use > the pyramid.renderers.render object but obviously it ends up downloading a > corrupted file because it's not even in PDF format. You are still rendering a .pt fil

Re: [pylons-discuss] Dynamically-generated PDF to download

2015-01-25 Thread Wichert Akkerman
> On 25 Jan 2015, at 07:37, Adam Morris wrote: > > I have a view that serves up a page that whose template/css contain both > define screen and print media. Which means the view's renderer provides a > page that serves up html that is formatted for the browser (screen media) and > if the user

Re: [Distutils] PEP440: foo-X.Y.Z does not satisfy "foo>X.Y"?

2014-12-23 Thread Wichert Akkerman
> On 23 Dec 2014, at 18:43, Paul Moore wrote: > > On 22 December 2014 at 20:44, Marcus Smith wrote: >> it would fail. you'd need ">1.7.0" >> >> On Mon, Dec 22, 2014 at 12:36 PM, James Bennett >> wrote: >>> >>> So, if PyPI has foo-1.7 and foo-1.7.1, does ">1.7" just fail to find >>> anythin

Re: [pylons-discuss] Handling hTTP OPTIONS request

2014-12-13 Thread Wichert Akkerman
On 13 Dec 2014, at 19:52, Raja Naresh wrote: > Hello Everyone, > > Is there a way I can handle HTTP OPTIONS request in pyramid? I am trying to > make a CORS request with a custom header hence it's preflighted and I want to > handle the HTTP OPTIONS request. Any kind of help is appreciated. Tha

Re: [pylons-discuss] JSON data no reaching my view

2014-12-10 Thread Wichert Akkerman
> On 10 Dec 2014, at 13:27, Rosciuc Bogdan wrote: > > My view code: > > > @view_config(route_name = 'declare_usage', renderer = 'declara.jinja2') > @view_config(route_name = 'declare_usage_json', renderer = 'json') > def declara_consum(request): > > #Removed code for simplicity > > val

[Distutils] SNI support in pip

2014-12-01 Thread Wichert Akkerman
I just noticed that pip does not support SNI (on Python 2.7.8). This is a bit problematic for us since we use a private index on a server using SNI, and right pip always aborts with a certificate error. I found a year old ticket that seems related (https://github.com/pypa/pip/issues/1511

Re: [python-nl] reply-to weer veranderen?

2014-11-28 Thread Wichert Akkerman
> On 26 Nov 2014, at 16:36, Guido Wesdorp wrote: > > (Ik neem trouwens ook aan dat het dan direct voor alle lijsten ingesteld moet > worden, is dat een goed idee? Zitten er nadelen aan deze instelling?) Lijkt me een prima instelling voor alle lijsten :) Gr, Wichert. _

Re: [python-nl] reply-to weer veranderen?

2014-11-26 Thread Wichert Akkerman
> On 26 Nov 2014, at 16:03, Guido Wesdorp wrote: > > Hey Wichert (of misschien iemand anders?), > > Ik wilde de discussie over de reply-to nog even door laten lopen tot mensen > het met elkaar eens zijn :) maar wel direct jouw request doorvoeren, maar ik > heb echt geen idee hoe ik dat moet d

Re: [python-nl] reply-to weer veranderen?

2014-11-26 Thread Wichert Akkerman
> On 26 Nov 2014, at 13:29, Reinout van Rees wrote: > > > > On 25-11-14 18:54, Geert Stappers wrote: >> Ja, ik weet dat deze ML, helaas, is geconfigureerd met "Reply-To-List". >> ( Reply-To: Dutch Python developers and >> users >> wordt namelijk (onnodig) gezet) > > Een hele tijd geleden (

Re: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Wichert Akkerman
> On 07 Nov 2014, at 16:46, Paul Moore wrote: > > I'm in the process of developing an automated solution to allow users > to quickly set up a Windows box so that it can be used to compile > Python extensions and build wheels. While it can obviously be used by > Windows developers who want to qui

Re: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Wichert Akkerman
> On 07 Nov 2014, at 16:46, Paul Moore wrote: > > I'm in the process of developing an automated solution to allow users > to quickly set up a Windows box so that it can be used to compile > Python extensions and build wheels. While it can obviously be used by > Windows developers who want to qui

Re: [Repoze-dev] [Pyramid-checkins] Broken: Pylons/pyramid#1123 (master - ba0593a)

2014-11-05 Thread Wichert Akkerman
> On 05 Nov 2014, at 17:55, Tres Seaver wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 11/05/2014 10:44 AM, Wichert Akkerman wrote: >> >>> On 05 Nov 2014, at 15:57, Tres Seaver >>> wrote: Unicode literals are a no-no for 3.2-

Re: [Repoze-dev] [Pyramid-checkins] Broken: Pylons/pyramid#1123 (master - ba0593a)

2014-11-05 Thread Wichert Akkerman
> On 05 Nov 2014, at 15:57, Tres Seaver wrote: > Unicode literals are a no-no for 3.2-compatibility: How important is 3.2 compatibility? Wichert. ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org https://lists.repoze.org/mailman/listinfo/repoze

Re: [Distutils] Pypi to enforce wheel, python3 - is it possible?

2014-11-04 Thread Wichert Akkerman
> On 04 Nov 2014, at 21:08, Evgeny Sazhin wrote: > > Hello, > > It seems that according to the > https://python-packaging-user-guide.readthedocs.org/en/latest/current.html > it is more or less settled that the setuptools/pip/wheel is the way to > go forward. > One of the problems though is that

[issue2504] Add gettext.pgettext() and variants support

2014-11-03 Thread Wichert Akkerman
Wichert Akkerman added the comment: Bump. Python 3 is still not on my radar, but I'll happily do a backport for Py2 and drop that on PyPI once this gets resolved. -- versions: +Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tr

Re: [pylons-discuss] Strange overlaps in independent Pyramid projects

2014-10-30 Thread Wichert Akkerman
> On 30 Oct 2014, at 11:30, Laurent DAVERIO wrote: > Overlap #1: SQLAlchemy maps the wrong class to the returned data : > > I assume this is because the classes bear the same names (or aliases) in the > two distinct projects : > > $ cd foo > $ pshell development.ini > > In [1]: from foo.model

Re: [python-nl] Summaries PUN 22 October 2014

2014-10-22 Thread Wichert Akkerman
> On 22 Oct 2014, at 22:45, Dirkjan Ochtman wrote: > > On Wed, Oct 22, 2014 at 9:11 PM, Maurits van Rees wrote: >> My summaries of this evenings's talks: >> http://maurits.vanrees.org/weblog/archive/2014/10/pun > > Thanks for the notes! > > To be honest, I find it too bad that these meetings

Re: [pylons-discuss] Pyramid + ZODB persistent registry

2014-10-13 Thread Wichert Akkerman
> On 14 Oct 2014, at 04:25, Tres Seaver wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/13/2014 09:54 PM, Chris Rossi wrote: >> My naive first take is just write a utility method: >> >> def find_sitemanager(context): """ Find nearest site manager, walking >> back up the tr

Re: [Distutils] PEP 470, round 4 - Using Multi Repository Support for External to PyPI Package File Hosting

2014-10-03 Thread Wichert Akkerman
> On 03 Oct 2014, at 16:24, Nick Coghlan wrote: > 2. Easily allow package authors to tell PyPI "my releases are hosted > " and have that advertised in such a way that tools can clearly > communicate it to users, without silently introducing unexpected > dependencies on third party services. I h

Re: [sqlalchemy] Handling detached instances

2014-09-30 Thread Wichert Akkerman
On 30 Sep 2014, at 23:18, tonthon wrote: > I didn't knew merge was supposes to be used in such a case, it works like a > charm. > Following that tip, I've added this decorator : > > >>> def cache_wrapper(func): > >>> """ ensure a model returned from a cached function is a

Re: [Distutils] Immutable Files on PyPI

2014-09-30 Thread Wichert Akkerman
> On 30 Sep 2014, at 17:35, Barry Warsaw wrote: > > On Sep 30, 2014, at 11:06 AM, M.-A. Lemburg wrote: > >> Installers and PyPI would then regard "3.1.4-1" as belonging to >> release "3.1.4", but being a more current build as a distribution >> file carrying "3.1.4" in its file name. > > Please

Re: [Distutils] Immutable Files on PyPI

2014-09-29 Thread Wichert Akkerman
On 29 Sep 2014, at 15:21, Donald Stufft wrote: > On September 29, 2014 at 8:54:26 AM, Wichert Akkerman (wich...@wiggy.net) > wrote: >> On 29 Sep 2014, at 13:58, Nick Coghlan wrote: >>> Right, this is my perspective as well. The point that the wheel format >>

Re: [Distutils] Immutable Files on PyPI

2014-09-29 Thread Wichert Akkerman
On 29 Sep 2014, at 13:58, Nick Coghlan wrote: > Right, this is my perspective as well. The point that the wheel format > already includes a build ordering field was significant because that file > naming scheme has an official specification. > > Other commands like bdist_egg, bdist_dumb and bdi

Re: [sqlalchemy] too many SQL variables in "in_"

2014-09-13 Thread Wichert Akkerman
> On 13 Sep 2014, at 11:25, pyArchInit ArcheoImagineers > wrote: > > Il giorno giovedì 11 settembre 2014 18:39:24 UTC+2, Jonathan Vanasco ha > scritto: > i once thought about extending SqlAlchemy to handle this issue behind the > scenes, but each database treats `IN()` differently. for examp

Re: [pylons-discuss] Turning arbitrary query string into IMultiDict?

2014-09-08 Thread Wichert Akkerman
On 08 Sep 2014, at 16:04, pyramidX wrote: > In Python 3 what is the best way to turn a string that's a URL querystring > (gotten from anywhere, not necessarily current request) into an IMultiDict? > Is it urllib.parse or is there a more Pyramid specific way of doing this? I > tried to look in

Re: [pylons-discuss] setup.py's requires vs development.ini's pyramid.includes vs __init__.py's config.include

2014-09-07 Thread Wichert Akkerman
On 07 Sep 2014, at 13:07, pyramidX wrote: > In what cases would you add something you've put in setup.py into one of > pyramid.includes or config.include()? I see that my sample applications work > fine even though some of the things specified in setup.py haven't been > 'included' (relatively

Re: [pylons-discuss] setup.py's requires vs development.ini's pyramid.includes vs __init__.py's config.include

2014-09-06 Thread Wichert Akkerman
> On 06 Sep 2014, at 14:20, pyramidX wrote: > > I'm not sure what the difference is between the requires statement in > setup.py and the pyramid.includes statement in development.ini and the > config.include("...") in __init__.py. The requires statement in setup.py tells the Python packaging

Re: [pylons-discuss] RFC: Pyramid tutorial at PyCon

2014-09-04 Thread Wichert Akkerman
On 04 Sep 2014, at 12:35, Paul Everitt wrote: > > tl;dr Should I submit a slightly different kind of PyCon tutorial proposal? > > Although this isn't necessarily the target audience, I thought I'd open it up > for discussion here. At the last two PyCons I did a half-day intro to Pyramid > un

Re: [sqlalchemy] Committing/flushing DBSession explicitly

2014-08-23 Thread Wichert Akkerman
On 23 Aug 2014, at 17:05, alchemy1 wrote: > I've been following the pattern of (in Pyramid webapps) doing DBSession.add > then letting the web framework flush/commit the DBSession at the end of the > web request rather than doing it explicitly. > > Are there cases where doing it this way coul

Re: [pylons-discuss] Mako templates with Deform

2014-08-22 Thread Wichert Akkerman
On 22 Aug 2014, at 10:39, pyramidX wrote: > I'm using Mako templates and have tried using Deform and it seems to work > even though I haven't converted any widget templates to Mako from chameleon. > Why is that? I am guessing deform renders the widget templates itself, so the template langua

Re: [pylons-discuss] Localized URL schema using chameleon

2014-08-20 Thread Wichert Akkerman
cts_view(): > ... > return dict(products=_(u'products')) > > HTH, > Kamal > > > On Aug 20, 2014, at 4:13 PM, Oscar Curero <mailto:flext...@gmail.com>> wrote: > >> >> >> On Wednesday, August 20, 2014 7:28:28 PM UTC+2, Wich

Re: [sqlalchemy] How can I make a rollback in a sequence?

2014-08-20 Thread Wichert Akkerman
> On 20 Aug 2014, at 20:02, Rafael Henrique da Silva Correia > wrote: > > Hi ! > > I have a block of code similar to this I made to test: > > def TEST(): > teste = Test(descricao=str('wololo')) > > try: > db.session.add(wololo) > db.session.commit() > db.sessi

Re: [pylons-discuss] Localized URL schema using chameleon

2014-08-20 Thread Wichert Akkerman
> On 20 Aug 2014, at 19:21, Oscar Curero wrote: > > Hi, > > I'm building my first application using pyramid and chameleon and I'm having > problems with the localized URL schema. It's something like this: > > /en/products > /es/productos > /ca/productes > > The problem starts when I need to

Re: [pylons-discuss] See authentication headers with DummyRequest

2014-08-20 Thread Wichert Akkerman
On 20 Aug 2014, at 12:33, pyramidX wrote: > Thanks, that clarifies things. You're right that an integration test is more > the way to go rather than trying to unit test this. > > What is the most straightforward way to run integration tests that span > multiple requests? I could do 1 DummyReq

Re: [pylons-discuss] See authentication headers with DummyRequest

2014-08-20 Thread Wichert Akkerman
On 20 Aug 2014, at 10:09, pyramidX wrote: > On Wednesday, August 20, 2014 8:21:05 AM UTC+2, Wichert Akkerman wrote: >> On 19 Aug 2014, at 23:13, pyramidX wrote: >> >> I'm using DummyRequest in my tests to test authentication, this is what I >> return f

Re: [pylons-discuss] See authentication headers with DummyRequest

2014-08-19 Thread Wichert Akkerman
> On 19 Aug 2014, at 23:13, pyramidX wrote: > > I'm using DummyRequest in my tests to test authentication, this is what I > return from the view when login succeeds > > headers = remember(request, email) > return HTTPFound(location=next, headers=headers) > > > > This

Re: [pylons-discuss] Multilingual Pyramid applications

2014-08-18 Thread Wichert Akkerman
> On 18 Aug 2014, at 21:24, Kamal Gill wrote > Note that we're on Pyramid 1.4 due to our deployment target, so we're still > using Lingua and Babel, but we hope to switch to Pyramid 1.5 or later in an > upcoming release. You can use Lingua 2 with Pyramid 1.4 as well. I would still use Babel fo

Re: [pylons-discuss] Multilingual Pyramid applications

2014-08-18 Thread Wichert Akkerman
> On 18 Aug 2014, at 20:52, Mike Orr wrote: > Are there other significant multilingual Pyramid applications out > there? There's generic things like Kotti but I'm thinking more of > concrete applications. We have a bunch of sites that run in Dutch, English, German, Simplified and Traditional Ch

Re: [pylons-discuss] Can sessions be used if using AuthTktAuthenticationPolicy instead of SessionAuthenticationPolicy?

2014-08-18 Thread Wichert Akkerman
On 18 Aug 2014, at 12:46, pyramidX wrote: > So when using AuthTkt auth policy I'm setting 2 cookies and making a network > round trip to the session srver (assuming session server and web server are > on different machines) only when the request uses the session? Yes. I'm not sure what you me

Re: [sqlalchemy] Trying to get tables to be created by unit tests

2014-08-12 Thread Wichert Akkerman
Hi, > On 12 Aug 2014, at 13:26, alchemy1 wrote: > > I've tried to simplify the code but it still isn't working: You may want to look at pyramid_sqlalchemy (https://pyramid-sqlalchemy.readthedocs.org/en/latest/ ), which includes a Databa

Re: [python-nl] Verzoek om offerte

2014-07-28 Thread Wichert Akkerman
Damn, reply-to over het hoofd gezien :( On 28 Jul 2014 09:16, Wichert Akkerman wrote: > > Hoi Dirkjan, > > dit klinkt zeker als het soort project dat ik doe. Ik doe dit soort projecten > niet alleen: voor de ux en design werk ik meestal samen met Cornelis Kolbach; > hij is

Re: [python-nl] Verzoek om offerte

2014-07-28 Thread Wichert Akkerman
Hoi Dirkjan, dit klinkt zeker als het soort project dat ik doe. Ik doe dit soort projecten niet alleen: voor de ux en design werk ik meestal samen met Cornelis Kolbach; hij is een fulltime ux-er en freelance designer en kan dat veel beter dan ik ooit zou kunnen. Groeten, Wichert. > On 26 Jul

Re: [pylons-discuss] Per user connection using SQLAlchemy ORM

2014-07-25 Thread Wichert Akkerman
> On 25 Jul 2014, at 09:44, Lele Gaifax wrote: >url = config['sqlalchemy.url'] > >if username is None: >url = url.replace(u'username:password@', u'') >else: >url = url.replace(u'username', username) >

Re: [Distutils] Other ideas from today's packaging meetup at EuroPython

2014-07-25 Thread Wichert Akkerman
> On 26 Jul 2014, at 00:08, Nick Coghlan wrote: > > > On 26 Jul 2014 05:56, "Donald Stufft" wrote: > > > > On July 25, 2014 at 3:50:30 PM, Wichert Akkerman (wich...@wiggy.net) wrote: > >> Will that guarantee the OS-provided Python was used? Or is t

Re: [Distutils] Other ideas from today's packaging meetup at EuroPython

2014-07-25 Thread Wichert Akkerman
> On 25 Jul 2014, at 21:44, Donald Stufft wrote: > > On July 25, 2014 at 3:42:48 PM, Wichert Akkerman (wich...@wiggy.net) wrote: >> >>> On 25 Jul 2014, at 21:06, Donald Stufft wrote: >>> >>> On July 25, 2014 at 2:37:58 PM, Richard Jones (r1chardj0..

Re: [Distutils] Other ideas from today's packaging meetup at EuroPython

2014-07-25 Thread Wichert Akkerman
> On 25 Jul 2014, at 21:06, Donald Stufft wrote: > > On July 25, 2014 at 2:37:58 PM, Richard Jones (r1chardj0...@gmail.com) wrote: >> Linux wheels are generally not compatible in a non-local sense, so it's >> unlikely those will be distributable through PyPI. That would also mean it's >> proba

Re: [pylons-discuss] [pyramid] testing views with models sqlalchemy

2014-07-22 Thread Wichert Akkerman
On 22 Jul 2014, at 08:28, Kiss György wrote: > py.test style rewrite: > > # conftest.py > from pyramid import testing > import pytest > import transaction > from pokerherd.models import DBSession > > > @pytest.fixture > def req(): > """Pyramid DummyRequest.""" > return testing.DummyRequ

Re: [pylons-discuss] beginner: route_url param

2014-07-20 Thread Wichert Akkerman
> On 20 Jul 2014, at 21:15, Michael wrote: > > hi all, how do I properly create a param with route_url ? when I do > > return HTTPFound(location=request.route_url('user_recent', > username=auth.username, page='1'), headers=headers) Use the _query parameter for route_url: url = request.rout

Re: [Distutils] 503 backend read error on PyPI

2014-07-18 Thread Wichert Akkerman
On 18 Jul 2014, at 09:14, Wichert Akkerman wrote: > This seems to happen consistently after a 30 second timeout. The Guru > Meditation error style seems to vary; I just got "XID: 1384941053”. > > Interestingly deleting my cookies seems to have fixed the errors. I managed to d

Re: [Distutils] 503 backend read error on PyPI

2014-07-18 Thread Wichert Akkerman
On 18 Jul 2014, at 09:06, Wichert Akkerman wrote: > Just seen on https://pypi.python.org/pypi from a Dutch IP: > > Error 503 backend read error > > backend read error > > Guru Mediation: > > Details: cache-iad2132-IAD 1405663962 2954825964 > This seems to

[Distutils] 503 backend read error on PyPI

2014-07-18 Thread Wichert Akkerman
Just seen on https://pypi.python.org/pypi from a Dutch IP: Error 503 backend read error backend read error Guru Mediation: Details: cache-iad2132-IAD 1405663962 2954825964 Wichert.___ Distutils-SIG maillist - Distutils-SIG@python.org https://mail

Re: [Distutils] PyPI not rendering ReST long_description

2014-07-15 Thread Wichert Akkerman
> On 15 Jul 2014, at 11:22, Richard Jones wrote: > > Hi, I just want to note that I'm aware of this issue and I have "do something > about it" in my long TODO. > > That link is malformed in any case - docutils just passes it on through and > you're just lucky that browsers will guess that it

Re: [python-nl] rest-toolkit release

2014-07-15 Thread Wichert Akkerman
> On 14 Jul 2014, at 13:32, Martijn Faassen wrote: > > Hoi, > > 2014-07-14 12:32 GMT+02:00 Wichert Akkerman : >>> Pyramid doet toch alleen traversal naar models met views erop? Routes >>> gaan in Pyramid toch direct naar views? Voegt rest-toolkit dan

Re: [pylons-discuss] How does one use SQLAlchemy Events with Pyramid?

2014-07-14 Thread Wichert Akkerman
On 14 Jul 2014, at 09:29, Seth wrote: > Hello, > > I'd like to use SQLAlchemy events > (http://sqlalchemy.readthedocs.org/en/rel_0_9/orm/events.html) to be able to > fire off a task when a particular model is updated. For example, say someone > updates their UserProfile model via a form or a

Re: [python-nl] rest-toolkit release

2014-07-14 Thread Wichert Akkerman
> On 14 Jul 2014, at 12:24, Martijn Faassen wrote: > > Hoi, > > Ik beweer niet dat Morepath of Rest-toolkit nieuw zijn, alleen dat > dezelfde ideeen rondspoken. Routing naar models bijvoorbeeld, zoals je > bij traversal al hebt. Daarom noem ik dat parallele evolutie. Ah, ok. In dat geval klopt

Re: [python-nl] rest-toolkit release

2014-07-14 Thread Wichert Akkerman
On 14 Jul 2014, at 11:42, Martijn Faassen wrote: > Hoi, > > Parallele evolutie! > > rest-toolkit lijkt nogal op Morepath; route naar models met dan views > erop. Doet het nog iets aan link generatie, zoals Morepath? Het concept van routes naar models met views erop is niet nieuw; pyramid doet

Re: [Distutils] PyPI not rendering ReST long_description

2014-07-14 Thread Wichert Akkerman
On 13 Jul 2014, at 18:04, Wichert Akkerman wrote: > I just uploaded a new pyramid_sqlalchemy package to PyPI. Looking at the > distribution page at https://pypi.python.org/pypi/pyramid_sqlalchemy PyPI is > not rendering ReST. I can’t figure out why though: according to bot

Re: [Distutils] PyPI not rendering ReST long_description

2014-07-13 Thread Wichert Akkerman
> On 13 Jul 2014, at 23:06, Donald Stufft wrote: > Currently PyPI has no method to report that it has failed except to fail the > upload with a message. This isn’t acceptable because we don’t mandate ReST > and some people want to just have plain text uploads. With PyPI/Metadata 2.0 > this is

Re: [Distutils] PyPI not rendering ReST long_description

2014-07-13 Thread Wichert Akkerman
> On 13 Jul 2014, at 21:36, Chris Jerdonek wrote: > > On Sun, Jul 13, 2014 at 9:04 AM, Wichert Akkerman wrote: >> I just uploaded a new pyramid_sqlalchemy package to PyPI. Looking at the >> distribution page at https://pypi.python.org/pypi/pyramid_sqlalchemy PyPI is >

[issue15266] Perform the same checks as PyPI for Description field

2014-07-13 Thread Wichert Akkerman
Wichert Akkerman added the comment: Éric is not quite correct: I currently have a package where "python setup.py check" does not show any error, but PyPI still refuses to format my long description. Likewise "python setup.py --long-description | rst2html-2.7.py > /dev/n

[python-nl] rest-toolkit release

2014-07-13 Thread Wichert Akkerman
Op de laatste PUN heb ik kort wat vertelt over een REST library waar ik mee bezig was. Bij deze even een korte update: ondertussen heb ik een paar releases gemaakt, en volgende week gaat de eerste site die rest_toolkit gebruikt in productie. De documentatie is (nog steeds) te vinden op http://

[Distutils] PyPI not rendering ReST long_description

2014-07-13 Thread Wichert Akkerman
I just uploaded a new pyramid_sqlalchemy package to PyPI. Looking at the distribution page at https://pypi.python.org/pypi/pyramid_sqlalchemy PyPI is not rendering ReST. I can’t figure out why though: according to both “python setup.py check” and "python setup.py --long-description | rst2html-2.

Bug#752343: VCS and homepage links are incorrect

2014-06-22 Thread Wichert Akkerman
Package: pam Version: 1.1.8-3 The VCS link (as seen on https://packages.debian.org/source/sid/pam) points to http://bzr.debian.org/bzr/pkg-pam/debian/sid/, which is a 404. The homepage is specified as http://pam.sourceforge.net/, which appears to be outdated. As far as I can see the current hom

Re: [Distutils] PyPI lost IPv6 support?

2014-06-10 Thread Wichert Akkerman
On 10 Jun 2014, at 15:47, Nick Coghlan wrote: > On 10 June 2014 23:22, Wichert Akkerman wrote: >> >> If I remember correctly there are some mobile networks in Asia who only do >> IPv6 internally. Gandi offers IPv6-only servers that are cheaper than >> servers with

Re: [Distutils] PyPI lost IPv6 support?

2014-06-10 Thread Wichert Akkerman
On 10 Jun 2014, at 15:09, Nick Coghlan wrote: > On 10 June 2014 22:59, Donald Stufft wrote: >> On Jun 10, 2014, at 7:44 AM, Daniele Sluijters >> wrote: >>> PyPi not being available over IPv6 anymore is not "we're not willing >>> to do extra work to enable it", it's a regression. I understand

[Distutils] PyPI lost IPv6 support?

2014-06-10 Thread Wichert Akkerman
I just noticed that my uploads to PyPI are now using IPv4 instead of IPv6. Looking closer it looks like PyPI is not reachable over IPv6 at all anymore, which is somewhat disappointing. Was dropping IPv6 a deliberate choice, or an unfortunate side-effect of switching to Fastly’s CDN? Regards, Wi

Bug#319652: is this bug still relevant?

2014-06-09 Thread Wichert Akkerman
Hi Ryan, it’s been years since I’ve used OpenLDAP, so I can’t give you much useful feedback I’m afraid. I agree with you that it’s likely to be fixed by now, so feel free to close this report. Regards, Wichert. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subjec

Re: [Distutils] "ImportError: No module named mkdocs" but I can import it

2014-06-06 Thread Wichert Akkerman
On 06 Jun 2014, at 21:30, edbran...@gmail.com wrote: > When I run "python setup.py install", it installs the mkdocs module to > lib/site-packages/mkdocs and I can import it from a Python shell, but when I > run the "mkdocs" command I get this error: > > C:\>mkdocs > Traceback (most recent call l

Re: [Distutils] PyPI down again

2014-05-19 Thread Wichert Akkerman
On 19 May 2014, at 13:20, Donald Stufft wrote: > Can you perhaps reproduce this and check the headers? Look for a X-Served-By > header. I want to make sure that we don't have a cache with a bad config > loaded. I can’t reproduce it - it was a single failing request as far as I could see. I’ll l

Re: [Distutils] PyPI down again

2014-05-19 Thread Wichert Akkerman
On 14 May 2014, at 20:51, Donald Stufft wrote: > I'll take a look at this. We might need to increase the number of allowed > failures on the health checks. FWIW I just got another varnish error (on https://pypi.python.org/pypi/FormAlchemy/1.4.3 ). A page reload worked correctly. Is there a

Re: [Distutils] PyPI down again

2014-05-14 Thread Wichert Akkerman
On 14 May 2014, at 19:49, Paul Moore wrote: > On 14 May 2014 18:37, Wichert Akkerman wrote: >> PyPI is down again for me (from .nl): when I go to >> https://pypi.python.org/pypi I am greeted with a "You've reached the static >> mirror of https:/

[Distutils] PyPI down again

2014-05-14 Thread Wichert Akkerman
PyPI is down again for me (from .nl): when I go to https://pypi.python.org/pypi I am greeted with a "You've reached the static mirror of https://pypi.python.org” message. http://status.python.org/ does not show any problems though. Wichert. ___ Distu

Re: [Distutils] PyPI down?

2014-05-12 Thread Wichert Akkerman
On 10 May 2014, at 21:10, Donald Stufft wrote: > Hm, it’s working here. It works correctly now, but it was down for me at the time I send that mail about 13 hours ago. > Can you tell me where about in the world you are? The Netherlands. For routing purposes: AS 3265. Wichert. ___

[Distutils] PyPI down?

2014-05-10 Thread Wichert Akkerman
I am getting a 503 backend read error (XID: 3216482461) on all PyPI I’m trying. Is there a problem? Wichert. ___ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig

Re: [python-nl] Next PUN? Next django meeting?

2014-04-25 Thread Wichert Akkerman
On 25 Apr 2014, at 01:11, Reinout van Rees wrote: > Is there any Django meeting planned in Amsterdam? Or some other date I should > avoid? Otherwise I'm proposing 20 June. 20 juni lijkt me uitstekend! Gr, Wichert. ___ Python-nl mailing list Python-n

  1   2   3   4   5   6   7   8   9   10   >