[pylons-discuss] Re: [off-topic] The Case Against Python 3

2016-11-24 Thread wilk
I think Python 3 is a good language also, but the decision to update all my legacy code made me look at others languages. I found Go a better investment, specially that i found the design of the web server api very close to what i do with Pyramid. -- William -- You received this message beca

[pylons-discuss] resource and data with zodb

2015-07-25 Thread wilk
Hi, I'll try to explain my question (sorry for my english)... I use zodb like the wiki example to store my pages, supages and so on. The tree is in root['app_root'] Now i would like to store data to the same zodb database, users, customers. Where and how should i put them ? I think in root['

[pylons-discuss] Re: manage.py equivalent?

2015-06-01 Thread wilk
On 01-06-2015, Chris Withers wrote: > Hi All, > > Trying to get back into Pyramid, got a number of projects I want to use > it for, so expect plenty of silly questions, please feel free to punt me > at urls... > > First up: does Pyramid have a "management command framework" like > Django's manag

[pylons-discuss] Re: Which Pyramid based "Development Environment"/Framework should I be considering?

2015-05-21 Thread wilk
On 18-05-2015, Randy Syring wrote: > I've typically leaned towards Flask and friends in the past, but due > to the way releases are being handled, I'm shopping. Just out of curiosity what is this way ? -- William -- You received this message because you are subscribed to the Google Group

[pylons-discuss] Re: Best way to specify renderer at runtime

2015-05-21 Thread wilk
On 20-05-2015, juha wrote: > --=_Part_1143_229633732.1432165172186 > Content-Type: multipart/alternative; > boundary="=_Part_1144_426020065.1432165172186" > > --=_Part_1144_426020065.1432165172186 > Content-Type: text/plain; charset=UTF-8 > > Jonathan - that's what I originally c

[pylons-discuss] Re: Which Pyramid based "Development Environment"/Framework should I be considering?

2015-05-21 Thread wilk
On 18-05-2015, Randy Syring wrote: > --=_Part_793_1541699878.1431980742515 > Content-Type: multipart/alternative; > boundary="=_Part_794_1959648491.1431980742515" > > --=_Part_794_1959648491.1431980742515 > Content-Type: text/plain; charset=UTF-8 > > I've always rolled my own fra

[pylons-discuss] Re: trypyramid.com and python 2.x

2015-05-11 Thread wilk
On 10-05-2015, Steve Piercy wrote: > On 5/10/15 at 3:29 PM, ch...@simplistix.co.uk (Chris Withers) pronounced: > >>Slight word of caution: in the UK, at least, artisan has been >>abused to be applied to many things, particularly bread, just >>to inflate the price and is now commonly understood to

[pylons-discuss] Re: trypyramid.com and python 2.x

2015-05-10 Thread wilk
On 10-05-2015, Mike Orr wrote: > I don't know what ""by artisans" is supposed to mean. It sounds like a > vacuous phrase, especially in regard to web development. We use better > oil paints? More intricate decorations? Not mass produced? I don't know what it means for you, but in french artisan so

[pylons-discuss] Re: trypyramid.com and python 2.x

2015-05-07 Thread wilk
framework, it's a big win for me ! So I just want to say that to get more people to Python 3 it's also important to know that it will work on both versions. Don't know if it'll help... > >> On May 7, 2015, at 12:23, wilk wrote: >> >> Hi, >> >

[pylons-discuss] trypyramid.com and python 2.x

2015-05-07 Thread wilk
Hi, On trypyramid.com, I don't know if it's wanted but we can think that pyramid run only on python 3 (and not python 2). I like a lot "by artisans for artisans". -- William -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe

[pylons-discuss] Re: CMS, user authentication, admin and personalisation

2015-03-24 Thread wilk
Hi, You can start looking at this tutorial : http://docs.pylonsproject.org/docs/pyramid/en/latest/tutorials/wiki/index.html It will give you an idea how it can be easy and fun to build a cms from ground with pyramid + zodb. Then you will know what you prefer to find prebuild. On 23-03-2015, J

[pylons-discuss] html renderer [was Re: pattern for caching views ?]

2015-03-15 Thread wilk
In gmane.comp.web.pylons.general, you wrote: > > OK that's a different issue, yep. It would be great if you could > currently do this: > > @view_config(renderer='string') > def myview(request): > request.response.content_type = 'text/html' > return 'Hi' > > But you can't. It's a bit

[pylons-discuss] Re: deciding on zodb

2014-12-16 Thread wilk
On 11-12-2014, Chris Rossi wrote: > --f46d0434c0baf928a70509f0bfe4 > Content-Type: text/plain; charset=UTF-8 > > Ok, less snarky version--one doesn't know the future, but the community > around Pyramid is cohesive enough that it should endure for some time to > come. Enough businesses are using it

[pylons-discuss] Re: Who uses Pyramid?

2014-12-13 Thread wilk
/latest/promote/logos.html > > However we're slowly moving away from all things orange and > black, to those on: > http://trypyramid.com/ I didn't found the font... I think the logo and font of trypyramid will be fine on a badge. > > --steve > > > On 12/12/14 at 8:43 A

[pylons-discuss] Re: Who uses Pyramid?

2014-12-12 Thread wilk
Is there a gif like that : http://seps.flibuste.net/images/nginx-inside.png http://seps.flibuste.net/images/PythonPowered.gif -- William -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails

[pylons-discuss] Re: pyramid - building plug-ins?

2014-12-10 Thread wilk
On 08-12-2014, Lukasz Szybalski wrote: > --047d7bfcfd4c2eb5990509ad1c2e > Content-Type: text/plain; charset=UTF-8 > > Hello, > Over many years now, I've have been writing programs that do certain > things. One gets some raw data, converts and and displays it, one servers > as main site, and other d

[pylons-discuss] Re: Issues of Pyramid

2014-09-07 Thread wilk
On 06-09-2014, Steve Piercy wrote: > I agree that the distinction between the two lists is not very > clear and it could be better. Here are a couple of things to note. > > Compare descriptions. > https://groups.google.com/forum/#!aboutgroup/pylons-discuss > https://groups.google.com/forum/#!abou

[pylons-discuss] Re: Issues of Pyramid

2014-09-06 Thread wilk
Hi, Maybe we could remove one mailing-list, there is pylons-discuss and pylons-devel but with very few posts. Often i don't know where to write, irc, github issue, pylons-discuss or pylons-devel. When Nicolas Chauvat announced the port of cubicweb to pyramid it was no answer. devpi-server has

[pylons-discuss] Re: pyramid_redis_sessions and alternate serializers

2014-08-01 Thread wilk
Hi, Did look at pyramid_pluggable_session ? Maybe more code to write but easier... -- William -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss

[pylons-discuss] New event/callback after_view inside tween ?

2014-06-27 Thread wilk
Hi, When i did the diag : https://github.com/Pylons/pyramid/issues/1367 i was surprise that response_callback was outside tweens. Then we loose all the features of tweens : debug, dbsession... Can i suggest to add a new event and a new callback after view but inside tween ? It will be more symm

[pylons-discuss] Re: Working with an existing MS Access database

2014-05-23 Thread wilk
On 23-05-2014, tonthon wrote: > Hi, > > One of our customers is using an access database with a desktop > application as an internal solution. > We'd like to provide him a web access handling the same datas, but he's > tied to his desktop app. > > How would you handle this situation ? I use pyodbc

[pylons-discuss] Re: order of events/callbacks/tweens

2014-05-07 Thread wilk
On 07-05-2014, Laurence Rowe wrote: > --=_Part_5208_31847681.1399448222738 > Content-Type: text/plain; charset=UTF-8 > > > > On Tuesday, 6 May 2014 13:08:23 UTC-7, Jonathan Vanasco wrote: >> >> This doesn't make much sense to me. >> >> Wouldn't there be much more utility to have the response_ca

[pylons-discuss] Re: order of events/callbacks/tweens

2014-05-07 Thread wilk
On 06-05-2014, Michael Merickel wrote: > --f46d043c7f30786d0f04f8c04040 > Content-Type: text/plain; charset=UTF-8 > > I'm a little confused. We already accepted your PR > https://github.com/Pylons/pyramid/pull/1335 to clarify that the order is > consistent and acceptable as tweens -> callbacks -> n

[pylons-discuss] order of events/callbacks/tweens

2014-05-06 Thread wilk
Hi, I try to understand the order of each events, and maybe draw a graph with them. (i began with blockdiag, but it's not easy, i'll show you later...) I've a question about response events and callbacks. In the documentation : http://docs.pylonsproject.org/projects/pyramid/en/master/api/reque

[pylons-discuss] Re: How to store session data server side?

2014-05-01 Thread wilk
On 01-05-2014, Bert JW Regeer wrote: > > --Apple-Mail=_8BFE3C8B-DFF0-491C-A72C-E7137EA10853 > Content-Transfer-Encoding: quoted-printable > Content-Type: text/plain; > charset=iso-8859-1 > > > On May 1, 2014, at 12:39 , wilk wrote: > >> On 30-04-2014, Ber

[pylons-discuss] Re: How to store session data server side?

2014-05-01 Thread wilk
On 30-04-2014, Bert JW Regeer wrote: About _session_id of pyramid_pluggable_session > That is why it has an underscore prepended, this makes it an internal > = > value that can not be relied on, unless you always use my session = > package. The nice thing is that with mine you can keep using it,

[pylons-discuss] Re: How to store session data server side?

2014-04-29 Thread wilk
On 29-04-2014, Bert JW Regeer wrote: > > --Apple-Mail=_80215049-92A3-41FB-982F-7A0CE7A05959 > Content-Transfer-Encoding: quoted-printable > Content-Type: text/plain; > charset=windows-1252 > > So this discussion has been going on for quite some time, and each time = > I saw this email come by

[pylons-discuss] Re: How to store session data server side?

2014-04-28 Thread wilk
Hi, On one hand to write a pyramid_session_foo is not very difficult, on the other hand beaker seems to be impossible to maintain and nobody seems to want to do any pyramid_session_foo. For newcomer it's a little bit ambiguous to see that the recommended session manager are redis or an unmaint

[pylons-discuss] Re: How to store session data server side?

2014-04-24 Thread wilk
On 23-04-2014, Michael Merickel wrote: > --001a11c3f51a5ce90d04f7bc3072 > Content-Type: text/plain; charset=UTF-8 > > On Wed, Apr 23, 2014 at 3:59 PM, wilk wrote: > >> Could you give an example of a serializer object wich will record the >> session on a dict in memory

[pylons-discuss] Re: How to store session data server side?

2014-04-23 Thread wilk
Chris, Somes times ago you said that we can use SignedCookieSessionFactory with a custom serializer to just pass an ID and serialize/deserialize to the backend that we want. For loads, it's ok, the parameter is the ID, we can retrieve our data like we want. But for dumps the parameters are a tu

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

2014-04-21 Thread wilk
On 21-04-2014, Wyatt Baldwin wrote: > --=_Part_5545_3154256.1398103638878 > Content-Type: text/plain; charset=UTF-8 > > On Thursday, April 17, 2014 12:57:34 PM UTC-7, wilk wrote: >> >> >> Hi, >> >> For db connexion I use add_request_method with reify=

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

2014-04-18 Thread wilk
On 17-04-2014, Michael Merickel wrote: > --047d7bfcfc9832ef9104f742b2a6 > Content-Type: text/plain; charset=UTF-8 > > 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

[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] A french news/dépêche on linuxfr.org ?

2014-04-13 Thread wilk
Somebody began, so we can contribute... https://linuxfr.org/redaction/news/publication-de-pyramid-1-5 -- William -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email

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

2014-04-11 Thread wilk
Salut, I wonder if somebody would like to write a french news on linuxfr.org for the 1.5 release ? I don't think i've enough experience with Pyramid to write it alone but i will help if somebody want to take it. -- William -- You received this message because you are subscribed to the Google

[pylons-discuss] Re: autoreload without pserve

2014-04-08 Thread wilk
On 08-04-2014, Kristian Benoit wrote: > > Why does pserve and ini are not fine for your development ? You just > don't > like it or you have a case where it does not suite your need ? I want to upgrade slowly lot of apps from my framework to pyramid, and they currently don't use ini files, so I

[pylons-discuss] autoreload without pserve

2014-04-08 Thread wilk
Hi, I would like to start littles apps without using pserve + ini file. But for development i would like autoreload feature. To now i use the old famous code from Thomas Heller. I wonder if i could and should use the code from pyramid (or paste ?) directly ? And how ? I mean to use an updated co

[pylons-discuss] Re: Pyramid Batteries

2014-03-12 Thread wilk
On 11-03-2014, Whit Morriss wrote: > --_000_B3BA246D4762B2339A5BF221F7A1surveymonkeycom_ > Content-Type: text/plain; charset=ISO-8859-1 > Content-Transfer-Encoding: quoted-printable > > I think this is a great idea. Maybe we could add it to https://github.com/= > sontek/notaliens.com . Good s

[pylons-discuss] Re: Pyramid 1.5b1 released

2014-02-08 Thread wilk
On 08-02-2014, Chris McDonough wrote: > Pyramid 1.5b1 has been released. Here's what happened since the last > release in the 1.5 series (1.5a4): > >Features > > >- We no longer eagerly clear ``request.exception`` and > ``request.exc_info`` in the exception view tween. Th

[pylons-discuss] Re: Error attempting ZODB + Traversal Wiki Tutorial

2014-01-26 Thread wilk
On 25-01-2014, Steve Piercy wrote: > On 1/25/14 at 2:05 PM, w...@flibuste.net (wilk) pronounced: > >>On 24-01-2014, Thomas Grzybowski wrote: >>>--=_Part_815_30592099.1390600126697 >>>Content-Type: text/plain; charset=UTF-8 >>> >>>Oh - I

[pylons-discuss] Re: Error attempting ZODB + Traversal Wiki Tutorial

2014-01-25 Thread wilk
On 24-01-2014, Thomas Grzybowski wrote: > --=_Part_815_30592099.1390600126697 > Content-Type: text/plain; charset=UTF-8 > > Oh - I did not know that we had 1-5-branch tutorials, a mistake. I will > take your advice and start clean again using the up-to-date tutorial. > Thanks, > Tom I don't

[pylons-discuss] Re: request.exception always None

2014-01-19 Thread wilk
On 16-01-2014, Michael Merickel wrote: > --089e0102ef8490b94304f01976ce > Content-Type: text/plain; charset=UTF-8 > > Have you investigated pyramid_tm combined with zope.sqlalchemy's > ZopeTransactionExtension for use with a SQLAlchemy session and eliminated > it as an option? That's by far the mos

[pylons-discuss] Re: request.exception always None

2014-01-16 Thread wilk
On 16-01-2014, Michael Merickel wrote: > --047d7b86df668d6bd104f017b781 > Content-Type: text/plain; charset=UTF-8 > > request.exception is cleared by the exception view which happens before the > finished callbacks. I think you could probably consider this behavior a > bug. I've opened https://gith

[pylons-discuss] request.exception always None

2014-01-16 Thread wilk
, route_name='index') app = config.make_wsgi_app() server = make_server('0.0.0.0', 8080, app) server.serve_forever() START END request.exception=None Traceback (most recent call last): File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run

[pylons-discuss] Re: context, mako and nivecms

2014-01-02 Thread wilk
, such that if "loop" is passed, > pyramid_mako always renames it to "_loop" but at the end of the day that's > up to pyramid_mako what it does. +1 -- Wilk -- You received this message because you are subscribed to the Google Groups "pylons-discuss"

[pylons-discuss] Re: context, mako and nivecms

2013-12-30 Thread wilk
On 30-12-2013, Bert JW Regeer wrote: > > On Dec 29, 2013, at 03:21 , wilk wrote: > >> On 21-12-2013, wilk wrote: >>> On 21-12-2013, Bert JW Regeer wrote: >>>> Yes, I understand that Pyramid uses context as a name, I was merely >>>> suggesting tha

[pylons-discuss] Re: context, mako and nivecms

2013-12-29 Thread wilk
On 21-12-2013, wilk wrote: > On 21-12-2013, Bert JW Regeer wrote: >> Yes, I understand that Pyramid uses context as a name, I was merely >> suggesting that using it in user code may not be the best idea. I’ve taken a >> look at what pyramid_chameleon does with the system va

[pylons-discuss] Re: context, mako and nivecms

2013-12-21 Thread wilk
> > Please check out the bugfix.context-rename > (https://github.com/Pylons/pyramid_mako/tree/bugfix.context-rename) branch > and test if this solves your issues. It solve my issue, thanks ! I can continue my investigations around all the possibilities of nive-cms (a killer on pyr

[pylons-discuss] Re: context, mako and nivecms

2013-12-19 Thread wilk
27;context', None) if context is not None: system['_context'] = context If i log the call, i can see that context is both in value and system and is the same. I will ask the author of nive, maybe i didn't do it correctly. > > On Dec 19, 2013, at

[pylons-discuss] context, mako and nivecms

2013-12-19 Thread wilk
ontext'] = context Or is there a more elegant solution ? -- Wilk -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...

Re: stable and security upgrade

2013-08-05 Thread wilk
On 05-08-2013, Jonathan Vanasco wrote: > --=_Part_2536_2351262.1375718004634 > Content-Type: text/plain; charset=ISO-8859-1 > > Production and Development should really always be done on a virtualenv. > > I'll second the requriements.txt > > Debian & Ubuntu's `apt` system tends to be seriously

Re: stable and security upgrade

2013-08-05 Thread wilk
On 05-08-2013, Tom Lazar wrote: > Basically there are two popular approaches: either pip + requirements.txt or > buildout + versions.cfg. pip + requirements.txt will give me stability but not security upgrade isn't it ? -- William Dodé Informaticien Indépendant -- You received this message

stable and security upgrade

2013-08-05 Thread wilk
Hi, I'm testing pyramid with success and now would like to deploy it in production. To now i only used debian apt to install and upgrade my packages, i wonder how it works with virtualenv ? I mean, how to make an upgrade just for security, without taking the risk of a non compatible upgrade of

Re: Do I need Pyramid for my [maybe, possibly big] project?

2013-07-06 Thread wilk
On 06-07-2013, David Andrés Martínez wrote: > --=_Part_7397_23884531.1373097339815 > Content-Type: text/plain; charset=windows-1252 > Content-Transfer-Encoding: quoted-printable > > Thank you very much andi, I will use Python with Pyramid, I'm very fast=20 > with Python and to me it's very easy

deployement and dev with mercurial

2013-06-25 Thread wilk
Hi, I just begin tu use setup.py and virtualenv... To now i've my app and inside somes of my own library as mercurial subrepositories. Like that, i can work on my app and on my libraries in the same time. I push them to put it in production. I wonder how i can do the same with setup.py devel

Re: log by request

2013-06-15 Thread wilk
ect.org/projects/pyramid/en/1.3-branch/api/request.ht= > ml#pyramid.request.Request.add_finished_callback > > Cheers, > Alex > On Jun 15, 2013 5:07 AM, "wilk" wrote: > >> On 13-06-2013, wilk wrote: >> > Hi, >> > >> > Is there a way in pyramid to c

Re: log by request

2013-06-15 Thread wilk
On 13-06-2013, wilk wrote: > Hi, > > Is there a way in pyramid to catch all the log of a request ? I mean > when the view send somes logs during one request, if the app crash i can > send all the logs of this request in one paquet (i send it to > a webservice). > > If it

log by request

2013-06-13 Thread wilk
Hi, Is there a way in pyramid to catch all the log of a request ? I mean when the view send somes logs during one request, if the app crash i can send all the logs of this request in one paquet (i send it to a webservice). If it doesn't exist currently, i did a middleware for this, but i wonde

Re: routes with class based view

2013-06-04 Thread wilk
On 04-06-2013, Chris McDonough wrote: > On Tue, 2013-06-04 at 13:22 -0700, John Anderson wrote: >> >> >> >> On Tue, Jun 4, 2013 at 1:12 PM, wilk wrote: >> On 03-06-2013, tonthon wrote: >> > Hi, >> > >>

Re: routes with class based view

2013-06-04 Thread wilk
On 03-06-2013, tonthon wrote: > Hi, > > you can also use inline view declaration in place of decorators: > > config.add_route('p1', '/p1') > config.add_view(Main, route_name='p1') > > Combining this with the __import__ tool, you may achieve your goal quite > easily. Yes, i can do that, i'll make a

routes with class based view

2013-06-03 Thread wilk
Hi, I use my own framework since more than ten years and see now that it's very similar with pyramid, of course with a lot less features. Now i would like to use a community framework to can share my web applications and stop to reinvent te wheel (wheel that did not exists when i began...). M