[pylons-discuss] WebTest 3.0.0 has been released

2021-08-19 Thread Gael Pasgrimaud
WebTest 3.0.0 has been released. Here are the changes: - Dropped support for Python 2.7 and 3.5. - Added support for Python 3.9. - Clean up dependencies and requirements. - Switch from Travis to GitHub Actions for building and testing. - Prevent PytestCollectionWarning for TestApp You can

[pylons-discuss] WebTest 2.0.35 has been released

2020-04-27 Thread Gael Pasgrimaud
WebTest 2.0.35 has been released. Here are the changes: - python3.8 compat - Remove use of deprecated splittype and splithost You can install it via PyPI: pip install WebTest==2.0.35 Enjoy, and please report any issues you find to the issue tracker at

[pylons-discuss] WebTest 2.0.34 has been released.

2020-01-29 Thread Gael Pasgrimaud
WebTest 2.0.34 has been released. Here are the changes: - Fix the test ``length == 0`` in ``check_content_type``. - Treat like . - Handle query parameters for the ``head`` method. You can install it via PyPI: pip install WebTest==2.0.34 Enjoy, and please report any issues you

[pylons-discuss] WebTest 2.0.33 has been released.

2019-02-09 Thread Gael Pasgrimaud
WebTest 2.0.33 has been released. Here are the changes: - Fixed #210. Allow to reset select multiple with `field.value = []` - Support for PYTHONOPTIMIZE=2, fix tests on PYTHONOPTIMIZE=1, 2 - Fixed #196. Fix deprecation warnings for ``collections`` to use ``collections.abc`` for ``Iterable``

[pylons-discuss] WebTest 2.0.32 has been released.

2018-10-05 Thread Gael Pasgrimaud
Here are the changes: - py33 is no longer supported. It may works but has been removed from tox config - Fixed #205: Use empty string as default value for submit and button - tests use pytest - docs use the standard Pylons template on RTD You can install it via PyPI: pip install

Re: [pylons-discuss] Reading a Zope ZODB from Pyramid?

2018-07-30 Thread Gael Pasgrimaud
Hi, On Mon, Jul 30, 2018 at 06:01:54PM +0200, Laurent DAVERIO wrote: > Hello list, > > this may be a very silly question, and if so I apologize in advance, but > I'm not sure what to google. > > Is it reasonable to try and read data from the ZODB of a Zope/CMF > instance directly from Pyramid,

Re: [pylons-discuss] WebTest 2.0.30 has been released.

2018-06-23 Thread Gael Pasgrimaud
Hi, On Sat, Jun 23, 2018 at 11:00:00AM -0700, Mike Orr wrote: > On Sat, Jun 23, 2018 at 5:57 AM, Gael Pasgrimaud wrote: > > WebTest 2.0.30 has been released. > > > > Here are the changes: > > > > - Add ``Email`` class for input fields with type "email&

[pylons-discuss] WebTest 2.0.30 has been released.

2018-06-23 Thread Gael Pasgrimaud
WebTest 2.0.30 has been released. Here are the changes: - Add ``Email`` class for input fields with type "email". - Documentation bearer token and JWT authorization You can install it via PyPI: pip install WebTest==2.0.30 Enjoy, and please report any issues you find to the issue tracker at

[pylons-discuss] WebTest 2.0.29 has been released.

2017-10-21 Thread Gael Pasgrimaud
WebTest 2.0.29 has been released. Here are the changes: - Bugfix: Preserve submit order for radio inputs. - Fixed #186: avoid UnicodeDecodeError in linter with py2 when a header contain non ascii chars You can install it via PyPI: pip install WebTest==2.0.29 Enjoy, and please report any

[pylons-discuss] WebTest 2.0.27 is out

2017-03-15 Thread Gael Pasgrimaud
Hi, A quick mail to announce a bugfix release of WebTest. This release fix two issues: - resp.json no longer raise when charset is not specified by the response - app.set_cookie() now works even if HTTP_HOST is set in extra_environ See

[pylons-discuss] Re: Distinguish between pserve and pshell in main

2015-07-29 Thread Gael Pasgrimaud
On Wednesday, July 29, 2015 at 2:06:29 PM UTC+2, Martin Stein wrote: Hi all, is there an elegant way in the central main(..)-function to determine if the application was started from pserve or pshell? Don't know if it's elegant but sys.argv[0].endswith('pshell') is true when you are

[pylons-discuss] Re: Hook for serialization to JSON with marshmallow schemas

2015-06-07 Thread Gael Pasgrimaud
On Sunday, June 7, 2015 at 12:48:15 AM UTC+2, Martin Stein wrote: @Gael: Interesting idea, I hadn't thought about that. Though the no-arguments aspect might be a bit of a problem. The approach of attaching the schema to the request in the view-function: request.marshmallow_schema =

[pylons-discuss] Re: Hook for serialization to JSON with marshmallow schemas

2015-06-06 Thread Gael Pasgrimaud
If the renderer name contain a dot then pyramid will use the extension to get the renderer. So you can create a schema renderer and use it with something like: @view_config(renderer='your.module.UserOutputSchema.schema') Then resolve the dotted name to get the class and instanciate your schema

[pylons-discuss] Re: Running setup.py develop for pyramid application overwrites bin folder scripts created by buildout and installs second set of dependencies in site-packages folder

2015-04-23 Thread Gael Pasgrimaud
If you're using [buildout] develop = . then buildout will run python setup.py develop for you On Thursday, April 23, 2015 at 1:18:36 PM UTC+2, Jo G wrote: I'm not sure if this is the best place to ask this question so please point me elsewhere if it isn't. I am using a buildout script to

[pylons-discuss] Re: WebTest: Testing for Pyramid HTTPExceptions with WebTest and AppError

2014-12-13 Thread Gael Pasgrimaud
On Sunday, December 14, 2014 12:27:23 AM UTC+1, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/12/2014 08:15 PM, Kevin Engle wrote: Is there a better way to ensure my application is throwing an HTTPBadRequest? Pass 'expect_errors' to the app method in

[pylons-discuss] Re: login django app . CSRF verification failed

2014-09-23 Thread Gael Pasgrimaud
Hi, On Tuesday, September 23, 2014 6:54:19 AM UTC+2, Artem B wrote: Hi , i'm trying use webtest for simple login, got: AppError: Bad response: 403 FORBIDDEN. CSRF verification failed could you help me please. Where my mistake ? class AuthTest(unittest.TestCase): def

Re: [pylons-discuss] Pyramid translation do Brazilian Portuguese

2014-08-18 Thread Gael Pasgrimaud
On Monday, August 18, 2014 8:06:53 PM UTC+2, Chris McDonough wrote: On 08/18/2014 02:03 PM, Ivan Neto wrote: Hi (sorry for the crossposting), I am part of the Pyramid Brazilian community, and we are planning to translate Pylons project docs, starting with Pyramid, to Brazilian

Re: [pylons-discuss] Workaround for forward slashes in URL

2014-05-08 Thread Gael Pasgrimaud
Hi, On Thu, May 08, 2014 at 01:22:13PM -0700, Achim Domma wrote: Hi, I have the following two routes in my application: /{base_id}/{sub_id}/{some_text} /{base_id}/{sub_id} Obviously I assume that none of these parts contains a slash, which has just proven to be wrong. ;-) I have

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

2014-04-16 Thread Gael Pasgrimaud
Hi, I've made a few changes. Looks good to me On Sat, Apr 12, 2014 at 01:24:10PM -0700, Simon Georges wrote: I would be happy to write one. I started one on linuxfr. Is it ok if i base my depeche on the what's new page ? Thanks -- You received this message because you are subscribed to

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

2014-04-12 Thread Gael Pasgrimaud
Hi, On Sat, Apr 12, 2014 at 06:57:20AM +, wilk wrote: 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. I'll be happy to

Re: [pylons-discuss] suppress data on debugtoolbar ?

2013-11-13 Thread Gael Pasgrimaud
Hi, On Wed, Nov 13, 2013 at 11:11:57AM -0800, Jonathan Vanasco wrote: I have a few dict and dict-like objects attached to my request. they tend to have huge amounts of data on them , and complicate the debugtoolbar. does anyone have a good idea on how I can hide them from rendering, or

Re: [pylons-discuss] Testing using webtest and pyramid_mailer

2013-11-09 Thread Gael Pasgrimaud
Hi, On Fri, Nov 08, 2013 at 08:06:09PM -0800, Kristian wrote: I'm using webtest to test a functionality that send an email. I want to catch the email in my unittest and get a url in the mail to further test. Only problem, is I can't find how to get the mailer while using a webtest. In my

Re: [pylons-discuss] Re: Fanstatic options issue

2013-11-08 Thread Gael Pasgrimaud
On Wed, Nov 06, 2013 at 02:23:31PM -0800, Mike Orr wrote: Further problems. File /home/mikeorr/.virtualenvs/p2/local/lib/python2.7/site-packages/pyramid_fanstatic/__init__.py, line 63, in __call__ result = needed.render_topbottom_into_html(response.body) AttributeError:

Re: can't make my jsonp working

2013-09-08 Thread Gael Pasgrimaud
Hi, On Sun, Sep 08, 2013 at 11:28:49PM +0800, george hu wrote: Hello everyone, I can't figure out how to make jsonp request work, my view callable is like this: @view_config(route_name=get_server_status, renderer='jsonp') def get_server_status(request): return {george:hello} and

Re: Get path from response object

2013-03-24 Thread Gael Pasgrimaud
On 24/03/2013 20:03, Jeffrey O'Neill wrote: Hello, I've been using webtest for a couple of years with Google App Engine, and the latest GAE update broke part of my testing code. A typical sequence in my testing code goes like this: response = form.submit(...) response =

Re: client side set and get cookies in python code

2013-03-18 Thread Gael Pasgrimaud
Hi, On 18/03/2013 08:51, vijay wrote: Hello, We are using Pylons for our portal and we want to use client side cookies to store some information through python. Scenario : When user comes to portal we want to store its location information in cookies and also want to retrieve that

WebTest Paris Sprint

2013-01-14 Thread Gael Pasgrimaud
Hi! A quick mail to let you know that we will have a sprint[1] about WebTest[2] at Bearstech, Paris, end of February. Register yourself on the wiki page[2] if you want to join us! You can add your own topic if you need some features. This will be discussed during the sprint. Feel free to

Re: unauthenticated_userid() doesn't work until round-trip?

2012-11-17 Thread Gael Pasgrimaud
On 17/11/2012 13:23, Zak wrote: I'm trying to get the unauthenticated_userid immediately after calling remember(), but it's always None. Does unauthenticated_userid not get created until a full round-trip request is made with the user? How can I get the unauthenticated_userid immediately? Here

Re: Fallback accept in @view_config

2012-08-14 Thread Gael Pasgrimaud
On 14/08/2012 15:35, Mattias wrote: I have a page that is supposed to answer with json if the caller sends Accept: application/json and with a html page if the accept header is anything else. It sound like I should be able to do something like below according to the documentation

Re: returning 204s for DELETE, webtest complains that there is content

2012-07-27 Thread Gael Pasgrimaud
On 27/07/2012 22:21, Iain Duncan wrote: Hi, I'm implementing a set of views to return json to work with Dojo object stores. From what I can gather, Dojo best wants me to return a 204 status after a successful delete. The view is registered as using the json renderer. It changes the response

Re: returning 204s for DELETE, webtest complains that there is content

2012-07-27 Thread Gael Pasgrimaud
On 27/07/2012 22:30, Iain Duncan wrote: On Fri, Jul 27, 2012 at 1:26 PM, Gael Pasgrimaud g...@gawel.org mailto:g...@gawel.org wrote: On 27/07/2012 22:21, Iain Duncan wrote: Hi, I'm implementing a set of views to return json to work with Dojo object stores. From what I can

Re: How would I do cross domain with Pyramid and Nginx

2012-06-14 Thread Gael Pasgrimaud
Hi, On 14/06/2012 18:36, Mark Huang wrote: So I went to do some self study and realized that Pyramid response object did not support such a header natively. There seemed to be a package called wsgithumbs http://packages.python.org/wsgithumb/index.html that did something like this, only thing

Re: How would I do cross domain with Pyramid and Nginx

2012-06-14 Thread Gael Pasgrimaud
On 14/06/2012 18:51, Michael Merickel wrote: On Thu, Jun 14, 2012 at 11:36 AM, Mark Huangzhengha...@gmail.com wrote: Andi, could you illustrate what your setup was on Pyramid to do this X-Accel thingy? The idea is to send a response that has the X-Accel header.. nginx sees that header in the

Re: Pyramid Google group ?

2012-05-31 Thread Gael Pasgrimaud
On 30/05/2012 15:21, Maxim wrote: Hello everyone, I will soon be starting a new project using the new product from Pylons Project, Pyramid. However, I cannot find the Pyramid Google group. I looked for Pyramid, which obviously did not give me the result I was looking for. Then I looked for

Re: pyramid 1.3 installation

2012-05-03 Thread Gael Pasgrimaud
Hi, On Thu, May 3, 2012 at 2:10 PM, Cem Ikta cemi...@googlemail.com wrote: Has anyone installed pyramid 1.3 with python 3.2.x? ez_setup.py not installed on python 3. File ez_setup.py, line 106 except pkg_resources.VersionConflict, e: how can i install pyramid 1.3 with python 3.2.x any

Re: What about a pyramid collective ?

2012-04-12 Thread Gael Pasgrimaud
On Thu, Apr 12, 2012 at 12:55 PM, Chris McDonough chr...@plope.com wrote: On Thu, 2012-04-12 at 12:46 +0200, kiorky wrote: Hi, i was thinking with Chris Mcdonough about creating something like the plone collective: What's that ? That's may one be the most successful things in the plone

Re: impossible to install pyramid_celery

2012-03-22 Thread Gael Pasgrimaud
On Thu, Mar 22, 2012 at 11:55 AM, Ottavio otta...@campana.vi.it wrote: I think I found a bug in pyramid_celery. I am writing here, because I see Sontek is also here. There is a problem with README.md, pyramid_celery wants to install it but it is not found. By installing with pip I get $

Re: Distribution not found error

2012-02-18 Thread Gael Pasgrimaud
On Sat, Feb 18, 2012 at 6:55 AM, Artur Daschevici a.daschev...@gmail.com wrote: Does anyone else have any other ideas...or any ideas on how to debug this better? Have you tried with the activate_this.py script ? http://pypi.python.org/pypi/virtualenv#using-virtualenv-without-bin-python At

Re: SetCookie on redirect

2012-02-07 Thread Gael Pasgrimaud
On Wed, Feb 8, 2012 at 12:41 AM, Jonathan Vanasco jonat...@findmeon.com wrote: This was driving me crazy for a while.  Finally i realized that Pyramid doesn't send any SetCookie commands when a redirect is called, because the HTTPFound is oblivious to the request. It's not entirely

Re: any advantages of using fast cgi over reverce proxy with nginx?

2012-01-30 Thread Gael Pasgrimaud
Hi, On Mon, Jan 30, 2012 at 4:12 PM, Krishnakant Mane krm...@gmail.com wrote: hello all, I am developing a pylons app related to finance. I have decided to go with nginx as my http server. What option will be better, fast cgi or reverce proxy? my pylons app runs on port 8080 and the server

Re: Different static directories for development/production

2012-01-16 Thread Gael Pasgrimaud
Hi! Not really an answer... and also a bit off topic. But are you aware of Fanstatic[1] ? I've wrote a pyramid_fanstatic package to use it as a pyramid tween[2] And a blog post about how to use lesscss with all that stuff[3] May be it can feet your needs... [1]

Re: Cannot add route with variable

2012-01-10 Thread Gael Pasgrimaud
On Wed, Jan 11, 2012 at 1:52 AM, BruceC bruce.co...@hp.com wrote: Hi all, I'm using the 1.3 branch of Pyramid, when I add a url dispatch route such as config.add_route('user_edit', 'user/edit'), I have no issues. But as soon as I add any variable in the the route pattern (eg

Re: Paster package not installing

2011-12-28 Thread Gael Pasgrimaud
On Wed, Dec 28, 2011 at 11:35 PM, sri devanasrika...@gmail.com wrote: Hi,   I am trying to learn pyramid and came to the installation page mentioned in the http://docs.pylonsproject.org/projects/pyramid/en/1.2-branch/tutorials/wiki2/installation.html.   And when i am trying to run

Re: Model validation

2011-12-27 Thread Gael Pasgrimaud
, Dec 19, 2011 at 9:20 AM, Gael Pasgrimaud g...@gawel.org wrote: On Mon, Dec 19, 2011 at 5:35 AM, rihad ri...@mail.ru wrote: On Dec 18, 12:52 am, Gael Pasgrimaud g...@gawel.org wrote: On Sat, Dec 17, 2011 at 9:41 PM, rihad ri...@mail.ru wrote: Is going back to 1.2 the only way to try

Re: Missing Pyramid project templates

2011-12-23 Thread Gael Pasgrimaud
you should try pcreate instead of paster create http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/project.html On Fri, Dec 23, 2011 at 12:27 PM, Eddy eddy.respon...@gmail.com wrote: I'm having trouble creating a new Pyramid project using Paster. paster create --list-templates shows

Re: Cornice 0.6 released

2011-12-23 Thread Gael Pasgrimaud
On Sat, Dec 24, 2011 at 2:02 AM, Wyatt Baldwin wyatt.lee.bald...@gmail.com wrote: On Wednesday, December 21, 2011 2:59:01 PM UTC-8, Gael Pasgrimaud wrote: On Wed, Dec 21, 2011 at 11:18 PM, Tarek Ziadé ziade...@gmail.com wrote: On Wed, Dec 21, 2011 at 11:00 PM, Gael Pasgrimaud ga

Re: CRUD in Pyramid, using Cornice and SQLAlchemy

2011-12-22 Thread Gael Pasgrimaud
On Thu, Dec 22, 2011 at 4:44 PM, Tarek Ziadé ziade.ta...@gmail.com wrote: Hey Gael's idea on using a class to define all methods for a service, gave me another idea: add a light CRUD on the top of SQLAlchemy, in Cornice For me this has nothing to do in cornice. Please keep this stuff backend

Re: Cornice 0.6 released

2011-12-21 Thread Gael Pasgrimaud
Hi, On Wed, Dec 21, 2011 at 11:24 AM, Tarek Ziadé ziade.ta...@gmail.com wrote: We'd love feedback new contributors ! Looks like a clever way to build some APIs. I have a project where I may switch to cornice. But I have a few questions. First, are you planning to add a support for class based

Re: Cornice 0.6 released

2011-12-21 Thread Gael Pasgrimaud
On Wed, Dec 21, 2011 at 11:18 PM, Tarek Ziadé ziade.ta...@gmail.com wrote: On Wed, Dec 21, 2011 at 11:00 PM, Gael Pasgrimaud g...@gawel.org wrote: Hi, On Wed, Dec 21, 2011 at 11:24 AM, Tarek Ziadé ziade.ta...@gmail.com wrote: We'd love feedback new contributors ! Looks like a clever

Re: Model validation

2011-12-19 Thread Gael Pasgrimaud
On Mon, Dec 19, 2011 at 5:35 AM, rihad ri...@mail.ru wrote: On Dec 18, 12:52 am, Gael Pasgrimaud g...@gawel.org wrote: On Sat, Dec 17, 2011 at 9:41 PM, rihad ri...@mail.ru wrote: Is going back to 1.2 the only way to try pyramid_formalchemy out? No, you don't really need a template. You can

Re: Model validation

2011-12-18 Thread Gael Pasgrimaud
On Sun, Dec 18, 2011 at 10:04 AM, rihad ri...@mail.ru wrote: On Dec 18, 12:52 am, Gael Pasgrimaud g...@gawel.org wrote: On Sat, Dec 17, 2011 at 9:41 PM, rihad ri...@mail.ru wrote: Is going back to 1.2 the only way to try pyramid_formalchemy out? No, you don't really need a template. You

Re: Model validation

2011-12-17 Thread Gael Pasgrimaud
On Sat, Dec 17, 2011 at 9:41 PM, rihad ri...@mail.ru wrote: Is going back to 1.2 the only way to try pyramid_formalchemy out? No, you don't really need a template. You can add pyramid_formalchemy to a project with only a few extra lines to your __init__.py:

Re: Model validation

2011-12-17 Thread Gael Pasgrimaud
On Sat, Dec 17, 2011 at 10:09 PM, Chris McDonough chr...@plope.com wrote: On Sat, 2011-12-17 at 16:05 -0500, Chris McDonough wrote: On Sat, 2011-12-17 at 12:41 -0800, rihad wrote: Is going back to 1.2 the only way to try pyramid_formalchemy out? That'd be the easiest way, at least until

Re: Serving Images Dynamically

2011-11-21 Thread Gael Pasgrimaud
This also work with Pylons. Except for the decorator. You can replace it with a custom one or by repoze.what But the best way is to use a X-Sendfile (or similar) header: http://www.yiiframework.com/wiki/129/x-sendfile-serve-large-static-files-efficiently-from-web-applications/ (It's about PHP

Re: Form field processing

2011-11-14 Thread Gael Pasgrimaud
Hi, Are you coming from php ? :) WebOb does not handle arrays/hashes and I don't think that this is in the current roadmap. On Mon, Nov 14, 2011 at 7:52 AM, uday gotou...@gmail.com wrote: Hi  all, I think it is more helpful if we can make form fields processing more convenient which can

Re: Form field processing

2011-11-14 Thread Gael Pasgrimaud
...@gmail.com wrote: actually, pylons had this. it was request.params.getall('param') but pyramid does not support this. On Nov 14, 6:12 pm, Gael Pasgrimaud g...@gawel.org wrote: Hi, Are you coming from php ? :) WebOb does not handle arrays/hashes and I don't think that this is in the current roadmap

Re: Form field processing

2011-11-14 Thread Gael Pasgrimaud
this.         It does, actually.  It's a WebOb feature (both Pyramid and         Pylons use         WebOb).         - C                 On Nov 14, 6:12 pm, Gael Pasgrimaud g...@gawel.org wrote:         Hi,                 Are you coming from php

Re: Translation

2011-11-07 Thread Gael Pasgrimaud
it work: https://github.com/Pylons/pyramid/blob/master/pyramid/i18n.py#L192 But using a real request is the best option. On Sat, Nov 5, 2011 at 4:32 AM, Gael Pasgrimaud g...@gawel.org wrote: To be clear, you need to use a translator. Else your TranslationString will act as a standard unicode

Re: Translation

2011-11-05 Thread Gael Pasgrimaud
To be clear, you need to use a translator. Else your TranslationString will act as a standard unicode string. get_localizer(request).translate(_('Client')) Pyramid use some magic to do that for you in chameleon templates. That's why it work in your html pages. On Sat, Nov 5, 2011 at 6:23 AM,

Re: Translation

2011-11-04 Thread Gael Pasgrimaud
Hi, I think you can find some inspiration here: http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/i18n.html On Sat, Nov 5, 2011 at 1:03 AM, Bruce Wade bruce.w...@gmail.com wrote: Hi, We are trying to use translation when generating a PDF file from a request. However for some reason

Re: pyramid.response.Response(app_iter=?)

2011-11-03 Thread Gael Pasgrimaud
On Thu, Nov 3, 2011 at 4:54 PM, jerry jerryji1...@gmail.com wrote: Hi, How does pyramid.response.Response use the (app_iter=) object passed in? I'm interested in the details because it does not work with app_iter=MongoDB's gridfs.grid_file.GridOut object (which supports the usual

Re: Serve a binary/static file from view callable (with paste.fileapp?)

2011-09-20 Thread Gael Pasgrimaud
Hi, On Tue, Sep 20, 2011 at 3:12 PM, Jasper jap...@gmail.com wrote: Hi everyone, I'd like to serve a (sometimes larger) binary file from one of my views. It seems the preferred method of doing this is with paste.fileapp.FileApp:

Re: Basic setup of pyramid-formalchemy

2011-07-15 Thread Gael Pasgrimaud
Hi, First notice that formalchemy has it's own mailing list: http://groups.google.com/group/formalchemy?pli=1 On Wed, Jul 13, 2011 at 6:02 PM, Benjamin Sims benjamins...@gmail.com wrote: Hi, I am currently creating an application using Pyramid. In order to save time, I am interested in using

Re: Chameleon have template inheritance like mako?

2011-06-23 Thread Gael Pasgrimaud
On Thu, Jun 23, 2011 at 10:02 AM, Malthe Borch mbo...@gmail.com wrote: On 22 June 2011 23:13, Bruce Wade bruce.w...@gmail.com wrote: I have used Mako with pylons, now I am trying to rap my head around chameleon for pyramid. How do we keep our templates DRY using chameleon? Does it support

Re: How to use Pyramid/models outside of WSGI/Paster

2011-06-08 Thread Gael Pasgrimaud
Hi, I guess that this thread already contain a reply: http://groups.google.com/group/pylons-discuss/browse_thread/thread/fb1f4c49cf34eee2?hl=en# But I'm agree that this point should be added in the pyramid documentation with a recommended way to do that. It's a common need -- Gael On Tue, Jun

Re: how to access pyramid configuration

2011-05-20 Thread Gael Pasgrimaud
Hi, On Fri, May 20, 2011 at 7:40 PM, Gopalakrishnan S gopalakrishnan.subram...@gmail.com wrote: I am porting pylons project to pyramid. I use the pylons.config for my site domain name, title etc like pylons.config['site_name'] etc.. how to access the ini content in my pyramid project? I

Re: Best Administrative Form Generator

2011-04-05 Thread Gael Pasgrimaud
Hi, On Tue, Apr 5, 2011 at 7:12 AM, Vincent Catalano vinc...@vincentcatalano.com wrote: I'm trying to put together an administration section for a Pylons web project. I'm trying to figure out which form generator would be the best to use. I use FormEncode for some areas of the site but I was

Re: An overview over form libraries

2011-03-24 Thread Gael Pasgrimaud
On Wed, Mar 23, 2011 at 7:57 PM, Mike Orr sluggos...@gmail.com wrote: FormAlchemy  * Pylons: some usage.  * Pyramid: Work just fine with pyramid: http://docs.formalchemy.org/pyramid_formalchemy/  * Philosophy: automatically generate widgets for fields in SQLAlchemy ORM objects. (Not usable

Re: https urls with pyramid

2011-03-17 Thread Gael Pasgrimaud
Hi, You can also use the NewRequest event to set the correct scheme for all new request: http://docs.pylonsproject.org/projects/pyramid/dev/narr/events.html#configuring-an-event-listener-imperatively -- Gael On Thu, Mar 17, 2011 at 1:57 PM, Daniel Holth dho...@gmail.com wrote: Eric, You are

Re: URLDispatch and question mark problem

2011-03-15 Thread Gael Pasgrimaud
On Tue, Mar 15, 2011 at 11:23 PM, Adam Klekotka adam.kleko...@gmail.com wrote: Hello, I'm trying to use Twitter API in my pyramid-based app. I have big problem with authorization of my app. Twitter API is redirecting user back to my site with url:

pyramid_formalchemy 0.1

2011-02-24 Thread Gael Pasgrimaud
Hi, I'm pleased to announce the first public release of pyramid_formalchemy. This package allow you to get a simple CRUD interface in pyramid. Check the documentation: http://docs.formalchemy.org/pyramid_formalchemy/ And the demo: http://docs.formalchemy.org/demo/admin/ Regards, -- Gael --

Re: pyramid_formalchemy 0.1

2011-02-24 Thread Gael Pasgrimaud
/pyramid_formalchemy/blob/master/pyramidapp/pyramidapp/tests.py -- Gael - C On Thu, 2011-02-24 at 10:21 +0100, Gael Pasgrimaud wrote: Hi, I'm pleased to announce the first public release of pyramid_formalchemy. This package allow you to get a simple CRUD interface in pyramid. Check the documentation

Re: Uncertain about traversal and mongodb

2011-02-10 Thread Gael Pasgrimaud
Hi, You can also have a look at this excellent document: http://www.muthukadan.net/docs/zca.html On Thu, Feb 10, 2011 at 8:51 PM, Bobby bobby.chamber...@gmail.com wrote: The answer is to use the adapter pattern. An explanation in Zope http://wiki.zope.org/zope3/ZopeGuideComponents A great

Re: repoze.what and StaticURLParser?

2011-01-25 Thread Gael Pasgrimaud
Hi, On Tue, Jan 25, 2011 at 11:56 AM, Christian Gunning icos.atr...@gmail.com wrote: I just migrated from Authkit to repoze.what.  One thing I can't figure out, though, is how to protect static files.  I'd like to use one auth framework for everything.  I've tried fiddling with config/

Re: paste.progress to monitor file uploads?

2011-01-25 Thread Gael Pasgrimaud
Look like the new jQuery HTML5 file upload rock: http://aquantum-demo.appspot.com/file-upload On Sun, Jan 16, 2011 at 1:21 PM, He Shiming heshim...@gmail.com wrote: On Jan 16, 8:03 pm, Juliusz Gonera jgon...@gmail.com wrote: Gael Pasgrimaud wrote: The problem is that you need the whole

Re: Pyramid and social auth

2011-01-16 Thread Gael Pasgrimaud
Hi, On Sun, Jan 16, 2011 at 3:16 PM, Adam Klekotka adam.kleko...@gmail.com wrote: Hello, I'm new to Pyramid and I'm developing an app in which I want to use twitter and facebook connect for user auth. I think the repoze.what with plugins would be the best way to do that. Is there any tutorial

Re: Pyramid for Pylons users guide

2011-01-15 Thread Gael Pasgrimaud
On Sat, Jan 15, 2011 at 3:12 PM, Eric Lemoine eric.lemo...@camptocamp.com wrote: On Sat, Jan 15, 2011 at 4:53 AM, Mike Orr sluggos...@gmail.com wrote: Hi all, I'm starting an article on Pyramid for Pylons 1 users, focusing on the differences between the frameworks and how to do familiar things

Re: paste.progress to monitor file uploads?

2011-01-15 Thread Gael Pasgrimaud
Hi, On Sun, Jan 16, 2011 at 2:59 AM, He Shiming heshim...@gmail.com wrote: On Jan 16, 1:14 am, Juliusz Gonera jgon...@gmail.com wrote: If you plan to use Paster in production, you can use gp.fileupload:http://pypi.python.org/pypi/gp.fileupload/ If e.g. you plan to use uWSGI, Nginx and

Re: Any sample applications for Pyramid?

2010-11-11 Thread Gael Pasgrimaud
Hi, On Thu, Nov 11, 2010 at 12:17 PM, Gopalakrishnan Subramani gopalakrishnan.subram...@gmail.com wrote: Do you have any sample application using Pyramid, Sqlalchemy, Mako and Authentication and Authorization? I have done sites using Pylons and looking forward to learn Pyramid and convert

Re: Display 404/500 page without redirection

2010-11-10 Thread Gael Pasgrimaud
Hi, On Wed, Nov 10, 2010 at 10:04 PM, ilias iliasthechamp...@gmail.com wrote: Hello, Pylons uses StatusCodeRedirect which redirects to other page. I would like to return text/html instead of redirection like http://www.google.com/asdsadsa. Which middleware can do this? Other page ? Which

Re: encoding problem with POST body

2010-10-22 Thread Gael Pasgrimaud
On Fri, Oct 22, 2010 at 2:34 PM, Adrien adrien.sala...@gmail.com wrote: Hi, I found a workaround by creating a wsgi middleware that stores wsgi.input before it gets altered by one of the Pylons components. It works for me but does not solve the real problem. For what I understand when a

Re: Batch process multiple app requests

2010-10-22 Thread Gael Pasgrimaud
On Fri, Oct 22, 2010 at 3:47 PM, andres and...@octopart.com wrote: Hi, This is a bit difficult to explain... I need to make an app request from within the app itself. The purpose is to allow for batch processing of multiple http requests into one server call: class

Re: Batch process multiple app requests

2010-10-22 Thread Gael Pasgrimaud
set an environ var in your controller then get it in resp.environ if you need to share other data than the controller output but I think that resp.body is enough -Andres On Oct 22, 10:09 am, Gael Pasgrimaud g...@gawel.org wrote: On Fri, Oct 22, 2010 at 3:47 PM, andres and...@octopart.com

Re: How to redirect to an absolute URL

2010-10-04 Thread Gael Pasgrimaud
Hi, Have you tried with a static route ? http://routes.groovie.org/generating.html#generation-only-routes-aka-static-routes then: redirect(url('google')) -- Gael On Mon, Oct 4, 2010 at 11:14 PM, Ryan ryan.mckil...@gmail.com wrote: This: redirect('http://www.website.com') Will redirect

Re: jsonify

2010-07-28 Thread Gael Pasgrimaud
On Wed, Jul 28, 2010 at 11:03 AM, Eric Lemoine eric.lemo...@camptocamp.com wrote: Hello Does anyone know why jsonify does response.headers[Content-Type] = application/json instead of response.content_type = application/json Is there a good reason for that? I don't think. That's two way

Re: Usage of FileApp

2010-06-17 Thread Gael Pasgrimaud
On Thu, Jun 17, 2010 at 2:51 PM, Petr Kobalíček kobalicek.p...@gmail.com wrote: Hi devs, is there somewhere usage guide for FileApp. I used it in past and I'm now getting one minor issue, if I want to serve file that not exists, I get 500 (Internal Server Error) instead of 404 (Not Found).

Re: OT -- odd mac issue - pylons stopped serving

2010-06-16 Thread Gael Pasgrimaud
On Wed, Jun 16, 2010 at 7:14 PM, Jonathan Vanasco jonat...@findmeon.com wrote: this just happened today, its driving me crazy all of my (local) pylons apps won't respond on my mac.  the browser pause for a few seconds, and then i see: RTSP/1.0 404 Not Found Content-Length: 0 Look like you

Re: can I use webhelpers.paginate with formalchemy? how?

2010-06-14 Thread Gael Pasgrimaud
On Mon, Jun 14, 2010 at 6:57 PM, snfct...@sacfoodcoop.com snfct...@sacfoodcoop.com wrote: Can i still use FA with webhelpers.paginate? Yes, you can. As I remember this should work: grid = Grid(instances=page) in template: page.pager() grid.render() That's what we do in the admin ui:

Re: Mapping Real field PostGreSQL.

2010-06-14 Thread Gael Pasgrimaud
On Mon, Jun 14, 2010 at 6:18 PM, Marcio brambilla.mar...@gmail.com wrote: Hello, I'm using Pylons and PostgreSQL, I'm difficulty in mapping in pylons fields that are in Postgres defined like type Real. SA provides some backend specific types. I guess you can use this one:

Re: Pylons and Internal server error

2010-06-13 Thread Gael Pasgrimaud
Look like you encounter the problem described here: http://groups.google.com/group/pylons-discuss/browse_thread/thread/ede16f830f41fa1/672ea3c58291ec25?hl=enlnk=gst On Sun, Jun 13, 2010 at 12:23 PM, Francesco Mazzoli e.imho...@gmail.com wrote: I am writing a pylons application, using couchdb as

Re: Is there a possible way to get a translator working into routing.py ?

2010-06-09 Thread Gael Pasgrimaud
On Wed, Jun 9, 2010 at 6:35 PM, daniel daniel...@orange.fr wrote: Hello I'm working on an i18n project with pylons. I would need using _ function from within routing.py If trying the following import into routing.py: from pylons.i18n.translation import _ I get an error upon a browser

Re: Long-running requests in Pylons?

2010-05-31 Thread Gael Pasgrimaud
From pep333: If the iterable returned by the application has a close() method, the server or gateway must call that method upon completion of the current request, whether the request was completed normally, or terminated early due to an error. You can write an iterator to run your task on

Re: [pylons-discuss] How can I custom my cache_dir dynamically in controller?

2010-04-30 Thread Gael Pasgrimaud
On Fri, Apr 30, 2010 at 9:27 PM, macm moura.ma...@gmail.com wrote: Hi Folks I am newbie in pylons and python How can I custom my cache_dir dynamically in controller? So I dont want use development.ini cache_dir = %(here)s/data I want add in my controller something like that

Re: any good tutorial for formalchemy?

2010-04-23 Thread Gael Pasgrimaud
On Fri, Apr 23, 2010 at 4:32 PM, Krishnakant Mane krm...@gmail.com wrote: Hello all, I have been lerking around reading the thread on django.forms to be incorporated for pylons. I wanted to know out of curiosity, is formalchemy good enough for a typicle application where forms are closely

Re: New Pylons Project packages

2010-04-11 Thread Gael Pasgrimaud
On Sun, Apr 11, 2010 at 10:53 PM, cd34 mcd...@gmail.com wrote: When you start a Pylons project, what packages do you usually start with in your software stack? I think I'm one of the few using ToscaWidgets - if I didn't have so much developed in TG2 before I switched to Pylons, I think I

FormAlchemy/fa.jquery demo site

2010-04-11 Thread Gael Pasgrimaud
Hi, You can find a demo site here: http://demo.formalchemy.org/ The demo use fa.jquery. A set of jquery widgets for formalchemy and a custom RESTFull controller include in formalchemy.ext.pylons (in fact his subclass in fa.jquery.pylons) The controller support .json/.xhr format to get datas/forms

Re: Having problem installing 0.9.7 pylons on host server

2010-03-11 Thread Gael Pasgrimaud
On Thu, Mar 11, 2010 at 8:41 PM, Mike Orr sluggos...@gmail.com wrote: On Thu, Mar 11, 2010 at 10:59 AM, Gael Pasgrimaud g...@gawel.org wrote: Hi, On Thu, Mar 11, 2010 at 7:35 PM, gazza burslem2...@yahoo.com wrote: Hiya, I am installing on the production server and hit the below: Installed

Re: Temporary directory

2010-02-09 Thread Gael Pasgrimaud
Hi, On Tue, Feb 9, 2010 at 12:43 PM, morellik enrico.more...@gmail.com wrote: Dear all, I wrote an application where users  can upload files up to 1GB. I noticed that Pylons use /tmp like temporary directory before write the file on the correct location. More times this behaviour fill my

Re: Big file upload progress bar

2010-01-28 Thread Gael Pasgrimaud
On Thu, Jan 28, 2010 at 5:47 AM, Graham Higgins gjhigg...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 27 Jan 2010, at 20:24, Graham Higgins wrote: Okay, dokey, I'll give it a spin and confirm back that it does. Yes, it does. I needed to make one or two simple

Re: Big file upload progress bar

2010-01-28 Thread Gael Pasgrimaud
On Thu, Jan 28, 2010 at 11:07 AM, morellik enrico.more...@gmail.com wrote: Look like I've forget to sync the repo from bitbucket. Latest log entry is now upgrade sample pylons to 0.9.7http://www.gawel.org/docs/gp.fileupload/rev/53aa46a39a7e So it should work. Thanks seems to work. But,

  1   2   >