Re: Custom Authkit permission

2008-09-07 Thread Gael Pasgrimaud
Hi, 2008/9/7 Jordi Fernández [EMAIL PROTECTED]: Hi, I'm using AuthKit-0.4.1dev_r143 with Pylons 0.9.6.2 like this: http://wiki.pylonshq.com/display/pylonscookbook/AuthKit+0.4+UsersFromDatabase+with+SQLAlchemy+0.4+and+SQLAlchemyManager It works fine, but now I need to validate that an user

Re: webhelpers.paginate+mako ajax

2008-11-05 Thread Gael Pasgrimaud
Hi ben, request.is_xhr is true if the request is an ajax request AFAIK So you can do something like this in your base template: %if not request.is_xhr: header stuff %endif ${self.body()} %if not request.is_xhr: footer stuff %endif Hope this help -- Gael 2008/11/5 ben adam [EMAIL PROTECTED]:

Re: auth and auth

2008-11-23 Thread Gael Pasgrimaud
2008/11/23 Dalius Dobravolskas [EMAIL PROTECTED]: Hello, All, I will rise old AuthAuth problem in Pylons. I have written some middlewares and here is the reason why I have done that: http://trac.sandbox.lt/auth/wiki/WhyWsgiMiddleware What I need now is your opinion. Have I chosen the

Re: auth and auth

2008-11-25 Thread Gael Pasgrimaud
2008/11/25 Dalius Dobravolskas [EMAIL PROTECTED]: Hello, On Tue, Nov 25, 2008 at 1:47 PM, Gustavo Narea [EMAIL PROTECTED] wrote: You can add multiple middlewares. The problem is when middlewares or plugins conflict with each other (e.g. because of lack of options). repoze.who does not

Re: auth and auth

2008-11-25 Thread Gael Pasgrimaud
2008/11/25 Dalius Dobravolskas [EMAIL PROTECTED]: By the way, you can set the repoze.who cookie name to wathever you want. That's OK. Problem is different. The only complication is that you must say hey, my class is an authentifier. Is it really complicated ? There is more actually. I need

Re: serving up generated images

2008-12-08 Thread Gael Pasgrimaud
Hi, You can also have a look at this: http://pypi.python.org/pypi/iw.thumbs -- Gael On Mon, Dec 8, 2008 at 11:23 PM, jerry [EMAIL PROTECTED] wrote: Hi, You should find this thread helpful --

Re: mycompany.myapp instead of myapp as base package ?

2008-12-12 Thread Gael Pasgrimaud
Hi, I think that the only things needed is to have a valid entry point for each apps. in setup.py: [paste.app_factory] app1 = mycompany.app1.config.middleware:make_app app2 = mycompany.app2.config.middleware:make_app Then edit your .ini file to something like: [app:main] use

Re: Using pylons.decorators inside controllers

2009-01-15 Thread Gael Pasgrimaud
On Thu, Jan 15, 2009 at 12:46 PM, mk mrk...@gmail.com wrote: mk wrote: So the question is, how can I do that? Do I have to inherit from BaseController in the code in lib/ just to use pylons decorators? Unfortunately it doesn't work either: from helloworld.lib.base import BaseController

Re: Using pylons.decorators inside controllers

2009-01-15 Thread Gael Pasgrimaud
On Thu, Jan 15, 2009 at 1:10 PM, mk mrk...@gmail.com wrote: Gael Pasgrimaud wrote: _py_object is not defined at this this. __init__ is a special case. You can only use @jsonify on a controller action. Try: class JsonController(BaseController): @jsonify def data(self

Re: Using pylons.decorators inside controllers

2009-01-15 Thread Gael Pasgrimaud
On Thu, Jan 15, 2009 at 2:31 PM, Dalius Dobravolskas dalius.dobravols...@gmail.com wrote: On Thu, Jan 15, 2009 at 2:49 PM, mk mrk...@gmail.com wrote: Gael Pasgrimaud wrote: This work if you call the url http://localhost/data Again, this decorator can *only* be used on a controller

Re: Is Django more popular than Pylons?

2009-01-18 Thread Gael Pasgrimaud
Maybe you can have a look at the archive: http://groups.google.com/group/pylons-discuss/browse_thread/thread/8fbf7e2037d1a53c -- Gael On Mon, Jan 19, 2009 at 1:05 AM, walterbyrd walterb...@iname.com wrote: And if so, why? --~--~-~--~~~---~--~~ You

Re: Redirect with additional headers for ajax

2009-01-19 Thread Gael Pasgrimaud
Hi, You can do what you want with the response. In pylons, both request and response are webob objects (http://pythonpaste.org/webob/reference.html#id3) from pylons import response response.headers['Blah'] = 'blah' Regards, -- Gael On Mon, Jan 19, 2009 at 2:12 PM, Tomasz Narloch

Re: best ways to deal with bool values in config ?

2009-01-21 Thread Gael Pasgrimaud
If you mean what is the best practise to convert bools, PasteDeploy provide a few helpers: from paste.deploy.converters import asbool I also have this in helpers.py (don't know why I can't find something similar in the paste namespace): class Params(dict): def __getattr__(self, attr):

Re: Is Django more popular than Pylons?

2009-01-28 Thread Gael Pasgrimaud
Hi, I use zc.buildout to install/deploy my pylons apps. Are you guys interested in a how to install Pylons with zc.buildout ? -- Gael On Wed, Jan 28, 2009 at 7:14 PM, Ben Bangert b...@groovie.org wrote: On Jan 27, 2009, at 10:20 PM, Eric Lemoine wrote: I agree that it'd be good to have

Re: WebHelpers home page moved?

2009-01-29 Thread Gael Pasgrimaud
The doc has moved: http://pylonshq.com/docs/en/0.9.7/thirdparty/webhelpers/ On Thu, Jan 29, 2009 at 2:54 PM, Stephen Emslie stephenems...@gmail.com wrote: http://pylonshq.com/WebHelpers/ seems to be missing. Has it moved, or perhaps been lost in the upgrade? If it has moved, it is still set

Re: Is Django more popular than Pylons?

2009-01-29 Thread Gael Pasgrimaud
, Wyatt Baldwin wyatt.lee.bald...@gmail.com wrote: On Jan 28, 10:31 am, Gael Pasgrimaud g...@gawel.org wrote: Hi, I use zc.buildout to install/deploy my pylons apps. Are you guys interested in a how to install Pylons with zc.buildout ? Yes, please. Ditto. Buildout has not gotten the usage

Re: Is Django more popular than Pylons?

2009-01-29 Thread Gael Pasgrimaud
On Thu, Jan 29, 2009 at 10:15 PM, Mike Orr sluggos...@gmail.com wrote: On Thu, Jan 29, 2009 at 12:55 PM, Gael Pasgrimaud g...@gawel.org wrote: Here it is: http://www.gawel.org/howtos/howto-install-pylons-with-buildout Don't know if this doc have a place on pylonshq since the official way

Re: Is Django more popular than Pylons?

2009-01-30 Thread Gael Pasgrimaud
On Fri, Jan 30, 2009 at 12:27 PM, Wichert Akkerman wich...@wiggy.net wrote: Previously Gael Pasgrimaud wrote: Here it is: http://www.gawel.org/howtos/howto-install-pylons-with-buildout It might be useful to document using collective.recipe.modwsgi as well. That makes it trivial to use

Re: FormAlchemy results in mako template

2009-01-30 Thread Gael Pasgrimaud
In pylons 0.9.6 you need this: ${ form.render() | n} On Fri, Jan 30, 2009 at 4:59 PM, Suha Onay suhao...@gmail.com wrote: Hi, I am using FormAlchemy to create html codes of forms, tables etc. in integration with SqlAlchemy in a Pylons project. Controller: c.userTable =

Re: options h.select in webhelpers

2009-04-04 Thread Gael Pasgrimaud
You can use xrange: options=[('%02i' % i, '%02i' % i) for i in xrange(1,100)] On Sat, Apr 4, 2009 at 8:12 PM, menshikoval...@gmail.com menshikoval...@gmail.com wrote: Hello How to make dynamicly range of 01..99 in options ${h.select(val, 01, options=[(01, 01), (02, 02).(99, 99)] )}

Re: Plugin architecture

2009-04-26 Thread Gael Pasgrimaud
On Sun, Apr 26, 2009 at 10:19 PM, Kless jonas@googlemail.com wrote: Does Pylons is going to build a plugin system for that can be easily shared/re-used the applications? As is made in Django. You can already plug any wsgi application/middleware to pylons. see

Re: Plugin architecture

2009-04-28 Thread Gael Pasgrimaud
On Tue, Apr 28, 2009 at 12:01 AM, Mike Orr sluggos...@gmail.com wrote: It works, but that's a pain if you need to put your Pylons authorization system around it. It's not a real pain if you use repoze.who/what As JonathanV said, Pylons is not really structured to plug in mini-apps the way

Re: Plugin architecture

2009-04-28 Thread Gael Pasgrimaud
On Wed, Apr 29, 2009 at 12:19 AM, Wichert Akkerman wich...@wiggy.net wrote: Previously Ben Bangert wrote: On Apr 28, 2009, at 2:43 PM, Wichert Akkerman wrote: If you decide to use zope.component a controller could be a named utility. You could then register it like so: class

Re: Auth - django-authopenid alternative

2009-05-10 Thread Gael Pasgrimaud
Hi, You can have a look at http://pypi.python.org/pypi/repoze.who.plugins.openid I havent test it, if you have some feedback... 2009/5/10 Julio Napurí Carlos juli...@gmail.com: Hi I like to use this [1]. Obviously in Pylons. Somebody know a django-authopenid alternative for Pylons ?

Re: Django-style automatic admin interface

2009-05-25 Thread Gael Pasgrimaud
Hi, On Mon, May 25, 2009 at 11:39 PM, Joshua Ball joshbb...@gmail.com wrote: Hi all, What does Pylons have in the way of automatic admin interface generation, ala Django? Some quick googling reveals the following: http://adminpylon.devjavu.com/ http://pypi.python.org/pypi/FormAlchemy

Re: Apache as a reverse proxy for Pylons

2009-06-20 Thread Gael Pasgrimaud
Hi On Sat, Jun 20, 2009 at 10:56 PM, jim jmpmcma...@gmail.com wrote: Hi - I set up Pylons as a proxy to Apache, as described in the cookbook and The Definitive Guide to Pylons.  I set the Pylons application to be available at the root (i.e, /) of the domain.  The Pylons application is

Re: WebHelpers Documentation

2009-07-16 Thread Gael Pasgrimaud
Hi, On Thu, Jul 16, 2009 at 3:39 PM, franzafra...@rpi.edu wrote: Hi, I'm trying to find the docs for WebHelpers.  The Pylons wiki (http://wiki.pylonshq.com/display/pylonsdocs/Home) and even Wikipedia's article on Pylons link to http://pylonshq.com/docs/en/0.9.7/helpers.html however I get

Re: paster shell and new ipython0.10 problem

2009-08-13 Thread Gael Pasgrimaud
On Thu, Aug 13, 2009 at 2:59 PM, Martin Steinmstein.m...@googlemail.com wrote: Hi all, On August 6th a new version of ipython (0.10) was released. When I use paster shell with that version, I get a strange error: In [1]: for i in range(4): ERROR: 'dict' object has no attribute 'len' It

Re: paster shell and new ipython0.10 problem

2009-08-13 Thread Gael Pasgrimaud
On Thu, Aug 13, 2009 at 6:22 PM, Gael Pasgrimaudg...@gawel.org wrote: On Thu, Aug 13, 2009 at 2:59 PM, Martin Steinmstein.m...@googlemail.com wrote: Hi all, On August 6th a new version of ipython (0.10) was released. When I use paster shell with that version, I get a strange error: In

Re: paster shell and new ipython0.10 problem

2009-08-13 Thread Gael Pasgrimaud
Seems that the exec statement add a __builtins__ key to the locs dictionnary and IPython don't like it. Adding locs.pop('__builtins__') before shell initialization fix the problem: In pylons/command.py at line ~=512: shell.set_banner(shell.IP.BANNER + '\n\n' + banner)

Re: DistributionNotFound problem

2009-08-27 Thread Gael Pasgrimaud
On Thu, Aug 27, 2009 at 1:23 PM, anuraguni...@yahoo.comanuraguni...@yahoo.com wrote: I have installed sqlalchemy and can import it from python prompt e.g. Python 2.5.4 (r254:67916, Mar  6 2009, 12:13:15) [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2 Type help, copyright, credits or

Adding routes on the fly

2009-09-29 Thread Gael Pasgrimaud
Hi, I wonder if there is a way to add routes after initialization time Here is my use case. I've created a rest controller[1] in FormAlchemy to generate a CRUD interface for a model (SA mapper or whatever). I like to use this controller for more than one model. The goal is to generate an admin

Re: Adding routes on the fly

2009-09-30 Thread Gael Pasgrimaud
On Wed, Sep 30, 2009 at 1:51 AM, Mike Orr sluggos...@gmail.com wrote: On Tue, Sep 29, 2009 at 4:17 PM, Gael Pasgrimaud g...@gawel.org wrote: Hi, I wonder if there is a way to add routes after initialization time Here is my use case. I've created a rest controller[1] in FormAlchemy

Re: paster stop daemon issues

2009-10-01 Thread Gael Pasgrimaud
Maybe you can try to force the filename: --pid-file=FILENAME Save PID to file (default to paster.pid if running in daemon mode) On Thu, Oct 1, 2009 at 10:24 AM, Weixi Yen weixi...@gmail.com wrote: I'm running a server and I want to stop the daemon. paster serve

Re: Pylons and pagination

2009-10-11 Thread Gael Pasgrimaud
On Sun, Oct 11, 2009 at 10:23 PM, Jason S. jas...@tuffmail.com wrote: The query() and filter() functions both return query objects, not result lists. This is very useful because you can chain together multiple filters, order_bys, etc, but at the end you need to call .all () to get a list (or

Re: WebHelpers status

2009-11-24 Thread Gael Pasgrimaud
Hi Mike, On Tue, Nov 24, 2009 at 8:43 PM, Mike Orr sluggos...@gmail.com wrote: Thanks to everyone who has posted WebHelpers bugfixes the past few days.  As soon as I feel up to it (I'm currently home sick), I'll put them in. I'd still like to communicate with everybody who uses

Re: call setup.py programmatically

2009-12-11 Thread Gael Pasgrimaud
On Fri, Dec 11, 2009 at 3:56 PM, Lea Haensenberger baerne...@gmail.com wrote: I really need to create language catalogues automatically. Can somebody help me? On Dec 8, 11:47 am, Lea Haensenberger baerne...@gmail.com wrote: Hi all, I'd like to call 'python setup.py extract_messages' within a

Re: Where is the right place to initialize couchdbkit objects?

2009-12-15 Thread Gael Pasgrimaud
Hi, On Tue, Dec 15, 2009 at 3:20 PM, Metin Akat akat.me...@gmail.com wrote: Thanks for this. It will certainly be quite useful in some setups. I had a look in the project code generated by shabti_couchdbkit. As far as I can see, this template tries to be compatible with sqlalchemy way of

Re: Calling external web services from controller

2010-01-21 Thread Gael Pasgrimaud
Hi, If you want to play with JSON services you can have a look at restkit: http://bytebucket.org/benoitc/restkit/wiki/docs/index.html -- Gael On Fri, Jan 22, 2010 at 5:22 AM, eoc moz...@gmail.com wrote: Mariano and Wyatt, thank you for your thoughts, this gives me some leads. On Jan 21,

Re: Big file upload progress bar

2010-01-27 Thread Gael Pasgrimaud
Hi, On Wed, Jan 27, 2010 at 4:15 PM, morellik enrico.more...@gmail.com wrote: Dear all, I'm writing a pylons application to permit to our users to upload very big files (hundred of MB). During upload I would display a progress bar to check the uploading status. I'm searching for some tools

Re: Big file upload progress bar

2010-01-27 Thread Gael Pasgrimaud
On Wed, Jan 27, 2010 at 5:04 PM, morellik enrico.more...@gmail.com wrote: On Jan 27, 4:39 pm, Gael Pasgrimaud g...@gawel.org wrote: Hi, On Wed, Jan 27, 2010 at 4:15 PM, morellik enrico.more...@gmail.com wrote: Dear all, I'm writing a pylons application to permit to our users to upload

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,

Re: Big file upload progress bar

2010-01-28 Thread Gael Pasgrimaud
On Thu, Jan 28, 2010 at 12:58 PM, morellik enrico.more...@gmail.com wrote: hm... don't know. What append if you try a 600Mb upload with a standard form ? I didn't tried. You can try to turn the log level of the root logger to DEBUG to get more info in the pylons console and use firebug

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

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

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

  1   2   >