[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()

[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

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

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) >>

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 <guettl...@thomas-guettler.de> 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 Pytho

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

[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 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

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 <m...@egenix.com> wrote: > > On 31.08.2015 11:05, Wichert Akkerman wrote: >> On 31 Aug 2015, at 10:44, M.-A. Lemburg <m...@egenix.com> wrote: >>> >>> There's also another difference: Linux repos are

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 <p.f.mo...@gmail.com> wrote: > > On 31 August 2015 at 10:43, Wichert Akkerman <wich...@wiggy.net> wrote: >> I just wanted to add a bit of context, since your statement seemed to >> reflect a slightly different reality

Re: [python-nl] Volgende PUN

2015-08-20 Thread Wichert Akkerman
On 11 Aug 2015, at 14:31, Wichert Akkerman wich...@wiggy.net wrote: On 10 Aug 2015, at 14:53, Reinout van Rees rein...@vanrees.org 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

Re: [python-nl] Volgende PUN

2015-08-11 Thread Wichert Akkerman
On 10 Aug 2015, at 14:53, Reinout van Rees rein...@vanrees.org 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

[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 rein...@vanrees.org 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

Re: [python-nl] python27, windows 8.1

2015-05-15 Thread Wichert Akkerman
On 14 May 2015, at 23:38, Jochem Oosterveen joc...@oosterveen.net 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

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 robe...@robertcollins.net wrote: On 22 April 2015 at 22:13, Christoph Schmitt dev-maili...@gongy.de 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

[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

Re: [Distutils] setup_requires for dev environments

2015-03-18 Thread Wichert Akkerman
On 18 Mar 2015, at 17:49, Paul Moore p.f.mo...@gmail.com wrote: On 18 March 2015 at 16:02, Ionel Cristian Mărieș cont...@ionelmc.ro 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

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 marioidi...@gmail.com 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

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

2015-01-25 Thread Wichert Akkerman
On 25 Jan 2015, at 07:37, Adam Morris adam.mor...@igbis.edu.my 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

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

2015-01-25 Thread Wichert Akkerman
On 25 Jan 2015, at 14:40, Adam Morris adam.mor...@igbis.edu.my 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

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

2014-12-23 Thread Wichert Akkerman
On 23 Dec 2014, at 18:43, Paul Moore p.f.mo...@gmail.com wrote: On 22 December 2014 at 20:44, Marcus Smith qwc...@gmail.com wrote: it would fail. you'd need 1.7.0 On Mon, Dec 22, 2014 at 12:36 PM, James Bennett ubernost...@gmail.com wrote: So, if PyPI has foo-1.7 and foo-1.7.1, does

Re: [pylons-discuss] Handling hTTP OPTIONS request

2014-12-13 Thread Wichert Akkerman
On 13 Dec 2014, at 19:52, Raja Naresh rajanares...@gmail.com 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

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

2014-12-10 Thread Wichert Akkerman
On 10 Dec 2014, at 13:27, Rosciuc Bogdan rosciuc.bog...@gmail.com 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

[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 johnnydeb...@gmail.com 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 13:29, Reinout van Rees rein...@vanrees.org 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 userspython-nl-+zn9apsxkcednm+yrof...@public.gmane.org wordt

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

2014-11-26 Thread Wichert Akkerman
On 26 Nov 2014, at 16:03, Guido Wesdorp johnnydeb...@gmail.com 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

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 p.f.mo...@gmail.com 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

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 p.f.mo...@gmail.com 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

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 tsea...@palladion.com 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

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 tsea...@palladion.com 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 tsea...@palladion.com wrote: Unicode literals are a no-no for 3.2-compatibility

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 eug...@sazhin.us 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

[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 tracker rep

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

2014-10-30 Thread Wichert Akkerman
On 30 Oct 2014, at 11:30, Laurent DAVERIO ldave...@gmail.com 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

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

2014-10-13 Thread Wichert Akkerman
On 14 Oct 2014, at 04:25, Tres Seaver tsea...@palladion.com 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

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 ncogh...@gmail.com wrote: 2. Easily allow package authors to tell PyPI my releases are hosted here and have that advertised in such a way that tools can clearly communicate it to users, without silently introducing unexpected dependencies on third party

Re: [sqlalchemy] Handling detached instances

2014-10-01 Thread Wichert Akkerman
On 30 Sep 2014, at 23:18, tonthon tontho...@gmail.com 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

Re: [Distutils] Immutable Files on PyPI

2014-09-30 Thread Wichert Akkerman
On 30 Sep 2014, at 17:35, Barry Warsaw ba...@python.org 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 13:58, Nick Coghlan ncogh...@gmail.com 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,

Re: [Distutils] Immutable Files on PyPI

2014-09-29 Thread Wichert Akkerman
On 29 Sep 2014, at 15:21, Donald Stufft don...@stufft.io 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 ncogh...@gmail.com wrote: Right, this is my perspective as well. The point that the wheel format already

Re: [sqlalchemy] too many SQL variables in in_

2014-09-13 Thread Wichert Akkerman
On 13 Sep 2014, at 11:25, pyArchInit ArcheoImagineers pyarchi...@gmail.com 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()`

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

2014-09-08 Thread Wichert Akkerman
On 08 Sep 2014, at 16:04, pyramidX veerukrish...@hotmail.com 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

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 veerukrish...@hotmail.com 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

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 veerukrish...@hotmail.com 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

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

2014-09-05 Thread Wichert Akkerman
On 04 Sep 2014, at 12:35, Paul Everitt paulwever...@gmail.com 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

Re: [pylons-discuss] Mako templates with Deform

2014-08-22 Thread Wichert Akkerman
On 22 Aug 2014, at 10:39, pyramidX veerukrish...@hotmail.com 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,

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

2014-08-21 Thread Wichert Akkerman
, 2014, at 4:13 PM, Oscar Curero flext...@gmail.com mailto:flext...@gmail.com wrote: On Wednesday, August 20, 2014 7:28:28 PM UTC+2, Wichert Akkerman wrote: On 20 Aug 2014, at 19:21, Oscar Curero flex...@gmail.com javascript: wrote: Hi, I'm building my first application

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

2014-08-20 Thread Wichert Akkerman
On 19 Aug 2014, at 23:13, pyramidX veerukrish...@hotmail.com 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,

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

2014-08-20 Thread Wichert Akkerman
On 20 Aug 2014, at 12:33, pyramidX veerukrish...@hotmail.com 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?

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

2014-08-20 Thread Wichert Akkerman
On 20 Aug 2014, at 19:21, Oscar Curero flext...@gmail.com 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

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 rafaelhenr...@gmail.com 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()

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 veerukrish...@hotmail.com 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.

Re: [pylons-discuss] Multilingual Pyramid applications

2014-08-18 Thread Wichert Akkerman
On 18 Aug 2014, at 20:52, Mike Orr sluggos...@gmail.com 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

Re: [pylons-discuss] Multilingual Pyramid applications

2014-08-18 Thread Wichert Akkerman
On 18 Aug 2014, at 21:24, Kamal Gill designbyka...@gmail.com 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

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 wich...@wiggy.net 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 een

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

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

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 don...@stufft.io 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

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 ncogh...@gmail.com wrote: On 26 Jul 2014 05:56, Donald Stufft don...@stufft.io 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 there still a risk

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 w2lk...@gmail.com 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

Re: [pylons-discuss] beginner: route_url param

2014-07-20 Thread Wichert Akkerman
On 20 Jul 2014, at 21:15, Michael taomaili...@gmail.com 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:

[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

Re: [Distutils] 503 backend read error on PyPI

2014-07-18 Thread Wichert Akkerman
On 18 Jul 2014, at 09:06, Wichert Akkerman wich...@wiggy.net 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 happen consistently after

Re: [Distutils] 503 backend read error on PyPI

2014-07-18 Thread Wichert Akkerman
On 18 Jul 2014, at 09:14, Wichert Akkerman wich...@wiggy.net 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 dig up

Re: [Distutils] PyPI not rendering ReST long_description

2014-07-15 Thread Wichert Akkerman
On 15 Jul 2014, at 11:22, Richard Jones rich...@python.org 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

Re: [python-nl] rest-toolkit release

2014-07-15 Thread Wichert Akkerman
On 14 Jul 2014, at 13:32, Martijn Faassen faas...@startifact.com wrote: Hoi, 2014-07-14 12:32 GMT+02:00 Wichert Akkerman wich...@wiggy.net: Pyramid doet toch alleen traversal naar models met views erop? Routes gaan in Pyramid toch direct naar views? Voegt rest-toolkit dan niet routing

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 seedifferen...@gmail.com 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

Re: [Distutils] PyPI not rendering ReST long_description

2014-07-14 Thread Wichert Akkerman
On 13 Jul 2014, at 23:06, Donald Stufft don...@stufft.io 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

Re: [Distutils] PyPI not rendering ReST long_description

2014-07-14 Thread Wichert Akkerman
On 13 Jul 2014, at 18:04, Wichert Akkerman wich...@wiggy.net 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 both

Re: [python-nl] rest-toolkit release

2014-07-14 Thread Wichert Akkerman
On 14 Jul 2014, at 11:42, Martijn Faassen faas...@startifact.com 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

Re: [python-nl] rest-toolkit release

2014-07-14 Thread Wichert Akkerman
On 14 Jul 2014, at 12:24, Martijn Faassen faas...@startifact.com 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

[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 |

Re: [Distutils] PyPI not rendering ReST long_description

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

[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

[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/null also does not reveal

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

[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,

Re: [Distutils] PyPI lost IPv6 support?

2014-06-10 Thread Wichert Akkerman
On 10 Jun 2014, at 15:09, Nick Coghlan ncogh...@gmail.com wrote: On 10 June 2014 22:59, Donald Stufft don...@stufft.io wrote: On Jun 10, 2014, at 7:44 AM, Daniele Sluijters daniele.sluijt...@gmail.com wrote: PyPi not being available over IPv6 anymore is not we're not willing to do extra

Re: [Distutils] PyPI lost IPv6 support?

2014-06-10 Thread Wichert Akkerman
On 10 Jun 2014, at 15:47, Nick Coghlan ncogh...@gmail.com wrote: On 10 June 2014 23:22, Wichert Akkerman wich...@wiggy.net 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

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

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 last):

Re: [Distutils] PyPI down again

2014-05-19 Thread Wichert Akkerman
On 14 May 2014, at 20:51, Donald Stufft don...@stufft.io 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

Re: [Distutils] PyPI down again

2014-05-19 Thread Wichert Akkerman
On 19 May 2014, at 13:20, Donald Stufft don...@stufft.io 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

[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. ___

Re: [Distutils] PyPI down again

2014-05-14 Thread Wichert Akkerman
On 14 May 2014, at 19:49, Paul Moore p.f.mo...@gmail.com wrote: On 14 May 2014 18:37, Wichert Akkerman wich...@wiggy.net 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://pypi.python.org

Re: [Distutils] PyPI down?

2014-05-12 Thread Wichert Akkerman
On 10 May 2014, at 21:10, Donald Stufft don...@stufft.io 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: [sqlalchemy] Session.execute() calls aren't committing...

2014-04-17 Thread Wichert Akkerman
On 17 Apr 2014, at 04:43, Chip Kellam blackroomd...@gmail.com wrote: I have an application in which I primarily rely on MySQL/InnoDB and using the SQLAlchemy ORM and leveraging the transaction python module. Everything is good. My problem is that, try as I might, using code similar to

Re: [sqlalchemy] celery and race conditions

2014-04-15 Thread Wichert Akkerman
On 15 Apr 2014, at 01:12, Jonathan Vanasco jonat...@findmeon.com wrote: i've got that now as a stopgap; i was hoping someone has better ideas. i don't like the idea of a post-commit hook, because i fear requesting the celery task request will create an error. I really don't want to build

Re: [sqlalchemy] defining a relationship with IS NOT

2014-04-15 Thread Wichert Akkerman
On 15 Apr 2014, at 13:25, Richard Gerd Kuesters rich...@humantech.com.br wrote: interesting, i didn't knew that :D i was using shomething like (for softwares such as st2, which has pep8 checking): ## variables NULL = None # f**k pep-8 TRUE = True # f**k pep-8 FALSE = False #

Re: [sqlalchemy] query returns sqlalchemy.util._collections.KeyedTuple. not a maped class instance

2014-04-15 Thread Wichert Akkerman
On 15 Apr 2014, at 13:06, robert rob...@redcor.ch wrote: Hi there, I m using SQLAlchemy V. 8.6 together with geomalcheny 2.4a second I get a call I have a a mapped class: # tblKey2goGdataLocation # #

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2014-03-27 Thread Wichert Akkerman
Wichert Akkerman added the comment: I can reproduce this on Both OSX 10.9 and Ubuntu 12.04: import mimetypes mimetypes.guess_extension('image/jpeg') '.jpe' mimetypes.init() mimetypes.guess_extension('image/jpeg') '.jpeg' The same thing happens for Python 3.4: Python 3.4.0rc3 (default, Mar

[issue1043134] Add preferred extensions for MIME types

2014-03-27 Thread Wichert Akkerman
Wichert Akkerman added the comment: Here is a related question on SO: http://stackoverflow.com/questions/352837/how-to-add-file-extensions-based-on-file-type-on-linux-unix -- nosy: +wichert ___ Python tracker rep...@bugs.python.org http

Re: [C++-sig] How to wrap class enums

2014-03-11 Thread Wichert Akkerman
On 10 Mar 2014, at 16:42, Liam Herron her...@ellington.com wrote: Here is an example: // c++ code class A { public: enum ATypes { ONE, TWO, THREE }; }; That is an enum in a class, which is an entirely different beast. Class enums are a

[Pytest-commit] Issue #472: skipif documentation has broken example using pytest.config (hpk42/pytest)

2014-03-04 Thread Wichert Akkerman
New issue 472: skipif documentation has broken example using pytest.config https://bitbucket.org/hpk42/pytest/issue/472/skipif-documentation-has-broken-example Wichert Akkerman: The [skip and xfail](https://pytest.org/latest/skipping.html) documentation has an example at the end of the page

Re: [sqlalchemy] SQLAlchemy 0.9.1 released

2014-01-07 Thread Wichert Akkerman
On 08 Jan 2014, at 01:26, limodou limo...@gmail.com wrote: But I don't know why make this decision. Because where NULL will get nothing. And in 0.8.X version, I need to combine multiple condition according user input to one condition, so my code just like: cond = None for c in

Re: [sqlalchemy] PostgreSQL: interval columns, values measured in months or years

2013-12-25 Thread Wichert Akkerman
On 25 Dec 2013, at 00:27, David Bolen db3l@gmail.com wrote: Sibylle Koczian nulla.epist...@web.de writes: Exactly, that's it. The stackoverflow discussion was very instructive, thank you! I'll try out psycopg2-dateutils. I'm a big fan of dateutil. If you do use it, you may also

  1   2   3   4   5   6   7   8   9   10   >