Re: struggling with traversal

2013-09-04 Thread AM
My internal understanding of this may not be very helpful or complete but think of it this way: for any request there is - context - the rendered view What you are doing in get_root is saying that if someone requests: /a/b/c/c/ - the context is the very last Resource in the get_root expres

Re: Use others projects Pyramid

2013-09-04 Thread Mário Idival
Thanks John, i think with you help me in IRC :) Mário Idival *Twitter *: *@marioigd* *Facebook*: *mario.idival* *User Linux : **#554446* Skype*: marioidival* *Blog: *https://conconcus.wordpress.com 2013/9/4 John Anderson > > > > On Wed, Sep 4, 2013 at 8:07 AM, Mário Idival wrote: > >> Hello,

Re: Use others projects Pyramid

2013-09-04 Thread John Anderson
On Wed, Sep 4, 2013 at 8:07 AM, Mário Idival wrote: > Hello, > I New in Pyramid an have a question: > > How i can use others Pyramid projects inside other? > e.g > > I'm create a project with mongobd, have other with management users and > permissions using postgresql and i want use this two proj

Re: How to add the version number for the static file?

2013-09-04 Thread Ravi Gidwani
Here is what we do in pylons 1.0 ( not pyramid ) but I am sure you can apply similar approach to pyramid. 1) introduce media_URL in your development.INI. set it to say /media ( or whatever context you use for getting to these static files) 2) write a URL helper in your helpers.py e.g def media_u

Use others projects Pyramid

2013-09-04 Thread Mário Idival
Hello, I New in Pyramid an have a question: How i can use others Pyramid projects inside other? e.g I'm create a project with mongobd, have other with management users and permissions using postgresql and i want use this two projects in a third project... How i can do this? Thanks, Mario

How use others pyramid projects in one.

2013-09-04 Thread Mário Idival
Hello, I'm create a project with mongobd, have other with management users and permissions using postgresql and i want use this two projects in a third project. How i can this? -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe

struggling with traversal

2013-09-04 Thread Chung WONG
Hi all, I have read all the docs available on pyramid's website, however I still don't really understand how to get a basic traversal app working. The hello world example is good but I am not able to extend it. The ZODB wiki is good too but it is a bit too much information to me with auth and z

Re: How to add the version number for the static file?

2013-09-04 Thread Michael Merickel
On Wed, Sep 4, 2013 at 1:10 PM, Jonathan Vanasco wrote: > > This works but it's not utilizing pyramid's url generation facilities (static_url/static_path), so I wouldn't consider it a best practice. It's actually very easy to write your own cache buster in a similar vein by adding a pregenerat

Re: puzzling " kombu.transport.sqlalchemy.models.Message' is not mapped "

2013-09-04 Thread Jonathan Vanasco
kombu is Celery's messaging framework. You probably have something wrong in your celery config double-check: BROKER_URL CELERY_RESULT_BACKEND CELERY_RESULT_DBURI i'm not sure how pyramid_celery integrates the config info, but if you're using regular celery thats what you'd look at -- You re

Re: How to add the version number for the static file?

2013-09-04 Thread Jonathan Vanasco
I do something slightly different. I have a cache attribute available on every request. On production it's the build#, on dev it's time.now() then I just write out the attribute as a querystring : On Wednesday, September 4, 2013 10:53:32 AM UTC-4, Chris McDonough wrote: > > On 09/04/201

Re: How to add the version number for the static file?

2013-09-04 Thread Chris McDonough
On 09/04/2013 05:02 AM, luthur wrote: something like Tornado's static_url, the assets' url would be xxx.xxx?v=123 https://github.com/maisano/pyramid_cachebust - C -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this g

puzzling " kombu.transport.sqlalchemy.models.Message' is not mapped "

2013-09-04 Thread James Carroll
What does this mean? I recently changed my celery install to use postgres instead of MySQL, and I may have been trying to send an email from a celery task... when this happened. 2013-09-03 21:56:47,917 ERROR [waitress][Dummy-3] Exception when serving /api/user Traceback (most recent call last

Re: problems using < in chameleon with i18m

2013-09-04 Thread Robson Roberto Souza Peixoto
The PHPTAL[1], based on ZPT, are using the operators LT, GT, LE, ... Try it 1 - http://phptal.org/manual/en/split/conditional.html On Wed, Sep 4, 2013 at 1:47 AM, Marius Gedminas wrote: > On Tue, Sep 03, 2013 at 03:58:28PM -0700, Iain Duncan wrote: > > Well, I'm solving it for now with the ug

How to add the version number for the static file?

2013-09-04 Thread luthur
something like Tornado's static_url, the assets' url would be xxx.xxx?v=123 -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegr