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

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

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

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

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

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

Re: [pylons-discuss] Handling hTTP OPTIONS request

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: [pylons-discuss] Mako templates with Deform

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

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

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

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

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

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

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

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

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

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

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

Re: [pylons-discuss] Multilingual Pyramid applications

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

Re: [pylons-discuss] Multilingual Pyramid applications

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

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

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

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

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

Re: [pylons-discuss] beginner: route_url param

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

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

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

Re: Returning a file object from an action

2010-07-21 Thread Wichert Akkerman
it already? Wichert. -- Wichert Akkerman wich...@wiggy.net It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send

Re: Paste 1.7.4, security fix for XSS hole

2010-06-24 Thread Wichert Akkerman
On 6/24/10 09:07 , Ian Bicking wrote: I believe the changes to 1.7.4 are limited and upgrading will have a low impact. Is there a changelog somewhere? The paste website still lists 1.7.3 as the last release and the pypi page has no changelog information. If I look at

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

2010-06-10 Thread Wichert Akkerman
needed. Wichert. -- Wichert Akkerman wich...@wiggy.net It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email

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

2010-06-10 Thread Wichert Akkerman
On 6/10/10 13:19 , daniel wrote: thank you Wichert appreciate your help this is exactly what I did. My problem actually is how to import the _ function to use it within the translate_incoming(environ, match_dict) function You can't easily do that: at the time routing.py is run there is no

Re: Pylons and images from database

2010-02-21 Thread Wichert Akkerman
options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en. -- Wichert Akkerman wich...@wiggy.net It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. -- You received this message because you are subscribed to the Google

Re: Can an app be debugged without constantly reloading the server?

2010-02-16 Thread Wichert Akkerman
On 2/16/10 08:26 , Jamie wrote: I know that the answer is probably no, but I wanted to ask it anyhow. I'm trying to find an IDE that works well with Pylons and currently evaluating both Wing and Komodo. I was spoiled years ago by Visual Studio's awesome debugging features and was hoping to get

Re: Lazy Registration

2010-01-25 Thread Wichert Akkerman
On 1/25/10 09:57 , Matt Woolnough wrote: The answer doesn't need to be pylons specific. I just happen to be using this framework, so this group seemed like a good place to start. I'm looking to store info thats a bit more complex than just a item number, so I'm considering storing temporary

Re: Can't get pylons to log in mod_python mode..

2009-12-09 Thread Wichert Akkerman
for buildout does that for you. Wichert. -- Wichert Akkerman wich...@wiggy.net It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group

Re: Calling a controllers method from another method? Is there a 'safe' way without redirecting?

2009-12-08 Thread Wichert Akkerman
. -- Wichert Akkerman wich...@wiggy.net It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-disc

Re: Python 3.1

2009-11-03 Thread Wichert Akkerman
On 11/2/09 16:00 , Mario Ruggier wrote: On Nov 2, 2009, at 3:41 PM, Wichert Akkerman wrote: On 11/2/09 15:28 , Mario Ruggier wrote: The (big) gain... is that Evoque can be sandboxed (i.e. let your untrusted user modify the template source!), a feature that no other templating system had

Re: Python 3.1

2009-11-02 Thread Wichert Akkerman
On 11/2/09 15:28 , Mario Ruggier wrote: The (big) gain... is that Evoque can be sandboxed (i.e. let your untrusted user modify the template source!), a feature that no other templating system had *designed-in* from the start. You mean like Zope PageTemplates since its creation about 10 years

Re: pylons with chameleon?

2009-09-26 Thread Wichert Akkerman
templates. Wichert. -- Wichert Akkerman wich...@wiggy.net It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons

Re: pylons with chameleon? unescaping HTML

2009-09-26 Thread Wichert Akkerman
/em!) Wichert. -- Wichert Akkerman wich...@wiggy.net It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons

Re: pylons with chameleon?

2009-09-26 Thread Wichert Akkerman
:) Wichert. -- Wichert Akkerman wich...@wiggy.net It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group

Re: pylons with chameleon?

2009-09-24 Thread Wichert Akkerman
On 2009-9-24 07:53, Iain Duncan wrote: In Sat, 2009-09-19 at 09:40 +0200, Wichert Akkerman wrote: On 2009-9-16 21:06, Iain Duncan wrote: Hi folks, I have not built enough pylons to be know how to switch templating languages beyond mako and genshi, but I'm interested in using Chameleon. Has

Re: pylons with chameleon?

2009-09-19 Thread Wichert Akkerman
languages. Wichert. -- Wichert Akkerman wich...@wiggy.net It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons

Re: Enabling logging for collective.recipe.modwsgi

2009-08-07 Thread Wichert Akkerman
Hi Phil, On 8/7/09 10:31 , Kershaw, PJ (Philip) wrote: Hi Wichert, I've been making use of your modwsgi buildout recipe for sometime now - thanks :) ... but have been wondering about the best way to integrate logging capability into the WSGI script that's generated. Looking at:

Re: Launching a background process

2009-07-27 Thread Wichert Akkerman
On 7/27/09 8:40 AM, Graham Dumpleton wrote: On Jul 27, 2:07 pm, Dave Forgactylerd...@gmail.com wrote: I am trying to write an application that will allow a user to launch a fairly long-running process (5-30 seconds). It should then allow the user to check the output of the process as it is

Re: Authkit vs repoze.who for openid

2009-07-19 Thread Wichert Akkerman
were that stupid so they have not thought about secure cookies ;-) It's a prefectly valid thing to do, and I do not see why you should not do that. The standard python openid implementation encourages this type of approach by making the store pluggable. Wichert. -- Wichert Akkerman wich

Re: Authkit vs repoze.who for openid

2009-07-19 Thread Wichert Akkerman
implementation ? http://openidenabled.com/python-openid/ Wichert. -- Wichert Akkerman wich...@wiggy.net It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message

Re: Logging example in Windows (lama)

2009-05-27 Thread Wichert Akkerman
Previously durumdara wrote: Can I get some callback that starts at/before every requests where I can log everything what I need? Write a tiny bit of WSGI middleware? Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net

Re: deploying to production?

2009-05-20 Thread Wichert Akkerman
and PasteScript, so don't list them here. You will need to use dependent-scripts = true to get bin/paster generated. If you want to deploy using mod_wsgi you can use the collective.recipe.modwsgi buildout recipe. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http

Re: using buildout with pylons

2009-05-19 Thread Wichert Akkerman
prevent that. As a workaround you can move those dependencies to install_requires. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You

Re: using buildout with pylons

2009-05-19 Thread Wichert Akkerman
Previously Chris Withers wrote: Wichert Akkerman wrote: BUT, one thing I have noticed so far is that after running buildout, I end up with eggs for Paste, PasteDeploy and PasteScript in pylons_buildout/myproject, which is wrong. Everything in setup_requires and test_requires

Re: app engine - state of play - 0.9.7

2009-05-11 Thread Wichert Akkerman
Previously Wichert Akkerman wrote: Previously Ben Bangert wrote: On May 3, 2009, at 7:42 AM, Wichert Akkerman wrote: And it's not limited to GAE; interactive traceback hasn't work for me for a month or so. It hasn't? What is happening instead? I click on the + and get

Re: app engine - state of play - 0.9.7

2009-05-06 Thread Wichert Akkerman
Previously Ben Bangert wrote: On May 3, 2009, at 7:42 AM, Wichert Akkerman wrote: And it's not limited to GAE; interactive traceback hasn't work for me for a month or so. It hasn't? What is happening instead? I click on the + and get a javascript error. Wichert. -- Wichert Akkerman

Re: app engine - state of play - 0.9.7

2009-05-06 Thread Wichert Akkerman
Previously Ben Bangert wrote: On May 6, 2009, at 12:54 AM, Wichert Akkerman wrote: I click on the + and get a javascript error. What type of environment? What wsgi server? I can see why it wouldn't work under GAE, since there's no guarantee you'll get back to the same process

Re: app engine - state of play - 0.9.7

2009-05-03 Thread Wichert Akkerman
, whatever broke is something recent, because the interactive traceback was working on App Engine a few months ago. And it's not limited to GAE; interactive traceback hasn't work for me for a month or so. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http

Re: Plugin architecture

2009-04-28 Thread Wichert Akkerman
already registered controllers or remove controller registrations. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message

Re: Plugin architecture

2009-04-28 Thread Wichert Akkerman
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 BaseController(object): This is the standard Pylons base controller class

Re: updating database schema

2009-04-22 Thread Wichert Akkerman
. :) Unless you change a constraint or index. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because you

Re: best ways to test ?

2009-04-10 Thread Wichert Akkerman
python tests. I haven't tried it, but at the concept is very interesting. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received

Re: What I've learned deploying pylons

2009-03-31 Thread Wichert Akkerman
Previously Wyatt Baldwin wrote: Questions: Which versions of supervisor and Python are ya'll using together? Should I go for supervisor 2.1 or 2.2b1 or 3.0a6 or ...? Everyone is running 3.0a6 as far as I know. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things

Re: CMS/CMF on top of Pylons

2009-03-22 Thread Wichert Akkerman
supposedly embed Plone as a WSGI application but I don't know anybody who has tried it. I think OpenPlans is doing that. You can run Plone 3 as a WSGI application using Repoze, and Plone trunk is WSGI by default. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http

pylonshq issue tracker disappeared

2009-03-09 Thread Wichert Akkerman
I'm not sure if anyone already noticed, but at the risk of repeating the message: the issue tracker on pylonshq.com no longer works. All relevant URLs return a 404. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard

Beaker repeats every get

2009-03-09 Thread Wichert Akkerman
Beaker can't roll has_value and get_value in one call? Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message

Re: Sqlalchemy: querying table in different functions gives different results

2009-02-17 Thread Wichert Akkerman
is the second function looking at a stale version of the table? Because you haven't flushed the changes to the database. This is well documented in the SQLAlchemy documentation. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net

Caching in auth middleware

2009-02-13 Thread Wichert Akkerman
missing? Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Caching in auth middleware

2009-02-13 Thread Wichert Akkerman
Previously Wichert Akkerman wrote: I have what I suspect is a reasonably common setup with a repoze.who middleware for authentication, followed by transaction, routes, session, cache, registry manager and pylons middlewares. In some cases you want to use a cache in authentication

changes from rc4 to rc5

2009-02-12 Thread Wichert Akkerman
Is there a summary of the changes between rc4 and rc5? Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message

Re: changes from rc4 to rc5

2009-02-12 Thread Wichert Akkerman
Previously Ben Bangert wrote: - Beaker has been updated since the last release to fix several bugs involving memcached, and how it stores session data Does that mean that it is now possible to use memcache for beaker sessions? Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple

Re: beaker_cache query_args when duplicate queries are in

2009-02-11 Thread Wichert Akkerman
actions) again. That has not yet made it into a release though. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message

Re: beaker_cache query_args when duplicate queries are in

2009-02-11 Thread Wichert Akkerman
. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group

Re: beaker_cache query_args when duplicate queries are in

2009-02-11 Thread Wichert Akkerman
On 2/11/09 11:12 PM, Philip Jenvey wrote: The class's name and module name are used for the cache's namespace, which'll prevent clashes. For normal functions just the function's module name is used for the namespace. Looking at this again maybe the class name should be in the key instead

Re: beaker_cache query_args when duplicate queries are in

2009-02-09 Thread Wichert Akkerman
=create_func, expiretime=expire, starttime=starttime) return decorator(wrapper) -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple

Re: is there a way to call render with string teamplates?

2009-02-06 Thread Wichert Akkerman
=auto) instances is quite interesting. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because you

Re: Is Django more popular than Pylons?

2009-01-30 Thread Wichert Akkerman
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 pylons with mod_wsgi from a buildout environment. Wichert. -- Wichert

Re: FormEncode and International Languages

2009-01-27 Thread Wichert Akkerman
people are handling validating different form elements with these shortcomings. Without concrete examples of things that break there is little we can tell you. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make

Re: FormEncode and International Languages

2009-01-27 Thread Wichert Akkerman
have an open ticket in a project related to that. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because you

Re: console tools

2009-01-23 Thread Wichert Akkerman
this: entry_points= [paste.paster_command] controller = pylons.commands:ControllerCommand restcontroller = pylons.commands:RestControllerCommand mycommand = myapp.commands:MyExampleCommand You can now call it like this: paster mycommand development.ini Wichert. -- Wichert Akkerman

Re: Webtest doesn't like 204 response with Content-Type header

2009-01-22 Thread Wichert Akkerman
and some browsers will spin forever waiting for data to arrive. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message

Re: running a controller method outside wsgi app

2009-01-20 Thread Wichert Akkerman
Previously Roberto Allende wrote: Wichert Akkerman escribió: Previously Dalius Dobravolskas wrote: Hello, On Mon, Jan 19, 2009 at 7:44 AM, Roberto Allende ro...@menttes.com wrote: My motivation is to write a unit testing but even in other cases it could have sense

Re: running a controller method outside wsgi app

2009-01-19 Thread Wichert Akkerman
Previously Dalius Dobravolskas wrote: On Mon, Jan 19, 2009 at 9:34 AM, Wichert Akkerman wich...@wiggy.net wrote: Previously Dalius Dobravolskas wrote: Hello, On Mon, Jan 19, 2009 at 7:44 AM, Roberto Allende ro...@menttes.com wrote: My motivation is to write a unit testing

Re: running a controller method outside wsgi app

2009-01-18 Thread Wichert Akkerman
): init_model(meta.engine) meta.metadata.create_all(meta.engine) def tearDown(self): meta.Session.remove() meta.metadata.drop_all(meta.engine) and if you need both just inherit from both classes (and call setUp from both). Wichert. -- Wichert Akkerman wich

Re: Unicode routes

2009-01-02 Thread Wichert Akkerman
for them. It would be awesome if routes supported this natively, even if only as an option, because lots of international URL's are much cleaner with it than they would be without it. If you work with Asian companies it's pretty much a hard requirement these days. Wichert. -- Wichert

Unicode routes

2008-12-30 Thread Wichert Akkerman
unicode strings. This contradicts the routes manual (http://routes.groovie.org/manual.html#unicode) which appears to say this should work fine. Is anyone using unicode routes succesfully? Is there a trick that I'm missing somewhere? Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple

Re: Unicode routes

2008-12-30 Thread Wichert Akkerman
there everything is encoded to utf-8 and then breaks. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because

Re: category support for flash

2008-12-20 Thread Wichert Akkerman
Previously Mike Orr wrote: On Fri, Dec 19, 2008 at 11:57 AM, Wichert Akkerman wich...@wiggy.net wrote: Often it is very useful to have flash/status messages of several different types, for example to be able to differentiate between informational messages, warnings and errors. To do

Re: category support for flash

2008-12-20 Thread Wichert Akkerman
) -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group

Re: Opinion sought on example.com/username

2008-12-20 Thread Wichert Akkerman
defenitions so any static routes would be matched first. What if at some point in the future you need a new static route and a user already registered with that username? Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net

Re: Flickr tutorial under 0.9.7?

2008-12-19 Thread Wichert Akkerman
getting most of the links fixed up so the site can be ready for launch with 0.9.7 final rather soon. Wow, Ben, the new site looks GREAT! Well done. Indeed. And curious wants to know: is that a Pylons-powered CMS? It looks like one.. Wichert. -- Wichert Akkerman wich...@wiggy.net

category support for flash

2008-12-19 Thread Wichert Akkerman
backwards compatible, so if you do not need categories you will never notice them. Patch attached. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple

Re: category support for flash

2008-12-19 Thread Wichert Akkerman
Previously Mike Orr wrote: On Fri, Dec 19, 2008 at 11:57 AM, Wichert Akkerman wich...@wiggy.net wrote: Often it is very useful to have flash/status messages of several different types, for example to be able to differentiate between informational messages, warnings and errors. To do

Re: sqlalchemy objects in beaker cache

2008-12-17 Thread Wichert Akkerman
. See http://www.sqlalchemy.org/docs/05/session.html#merging Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message

Re: buildout vs virtualenv for pylons and/or other wsgi apps?

2008-12-15 Thread Wichert Akkerman
dependency in setup.py and re-run buildout. This has the advantage of guaranteeing that your dependencies are declared correctly: buildout will happily install everything you need and uninstall everything you do not need to keep the system as clean as possible. Wichert. -- Wichert Akkerman wich

Re: Deploying Pylons project

2008-12-11 Thread Wichert Akkerman
environment using collective.recipe.modwsgi. That gives me an easy to manage and predictable setup. Wichert. -- Wichert Akkerman [EMAIL PROTECTED]It is simple to make things. http://www.wiggy.net/ It is hard to make things simple

Re: Django or Pylons - comparison details

2008-12-09 Thread Wichert Akkerman
on the backend only doing decoding and validation. Wichert. -- Wichert Akkerman [EMAIL PROTECTED]It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because you

Re: Django or Pylons - comparison details

2008-12-08 Thread Wichert Akkerman
, but it is shaping up to be another excellent candidate as well. Wichert. -- Wichert Akkerman [EMAIL PROTECTED]It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because

Re: Django or Pylons - comparison details

2008-12-08 Thread Wichert Akkerman
Previously Ian Bicking wrote: Wichert Akkerman wrote: Previously Alex Marandon wrote: 2008/12/6 zunzun [EMAIL PROTECTED]: Seems like I should use Django? Or should it be Pylons instead? Here is the advice of an average programmer with no emotional involvement in any

Re: Pyjamas : Python - JS

2008-12-06 Thread Wichert Akkerman
. -- Wichert Akkerman [EMAIL PROTECTED]It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post

Re: Pyjamas : Python - JS

2008-12-06 Thread Wichert Akkerman
. Wichert. -- Wichert Akkerman [EMAIL PROTECTED]It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss

Re: simplejson install error, need help

2008-11-25 Thread Wichert Akkerman
available at that point. It works with source eggs since that python is run during dependency determination, and for binary eggs since those are python version-specific. Wichert. -- Wichert Akkerman [EMAIL PROTECTED]It is simple to make things. http://www.wiggy.net/ It is hard

Re: Pylons and Python 2.6 (Was: Re: go-pylons.py broken on Python 2.6 in Windows?)

2008-11-19 Thread Wichert Akkerman
for easy_install to know the dependency is not needed. It can: setup.py is just python, so you can put conditional code in there that checks the python version and modifies install_requires accordingly. You need to do the same thing for the uuid module as well. Wichert. -- Wichert Akkerman [EMAIL

Re: Putting DELETE's params into request.POST

2008-10-17 Thread Wichert Akkerman
to a simple wsgi app that echoes back wsgi.input. Probably because that was just easier. I can not imagine what the semantics for a body for DELETE would be. What information would you want to send to something that you are deleting? Wichert. -- Wichert Akkerman [EMAIL PROTECTED]It is simple

Re: Freezing a Pylons app

2008-10-10 Thread Wichert Akkerman
Previously Christopher Barker wrote: So, is there a way to turn off the use of pkg_resources in paste? No, paste relies on it to handle entry points in various places. That is a very popular pattern that more and more things are starting to use. Wichert. -- Wichert Akkerman [EMAIL PROTECTED

Beaker info

2008-10-10 Thread Wichert Akkerman
def expensive_stuff(): The result of this function is cached during this request only, with the function and its argument as cache keys. as far as I can see there is no direct alternative for beaker, is that correct? Wichert. -- Wichert Akkerman [EMAIL PROTECTED]It is simple

Re: Freezing a Pylons app

2008-10-10 Thread Wichert Akkerman
Previously Mike Orr wrote: On Thu, Oct 9, 2008 at 11:23 PM, Wichert Akkerman [EMAIL PROTECTED] wrote: Previously Christopher Barker wrote: So, is there a way to turn off the use of pkg_resources in paste? No, paste relies on it to handle entry points in various places

  1   2   >