Re: [pylons-discuss] pymongo + pyramid: [InvalidDocument] Cannot encode object

2013-10-31 Thread Jasper van den Bosch
': ['example.com']} Thanks anyway! Jasper On 30 October 2013 00:05, Bert JW Regeer xiste...@0x58.com wrote: Could you please provide a full stack trace? Running within waitress should be like running an one-off python script… Bert On Oct 29, 2013, at 11:29 AM, Jasper jap...@gmail.com wrote: Hi

[pylons-discuss] pymongo + pyramid: [InvalidDocument] Cannot encode object

2013-10-29 Thread Jasper
I do this if pymongo is listed as a requirement in my setup.py? Background discussion: https://groups.google.com/forum/#!topic/mongodb-user/bwjBHs94mDc Thanks for any tips! Jasper -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To unsubscribe

Context within exception view?

2013-05-26 Thread Jasper
, request): self.request = request @view_config(context=Exception, renderer='error.mak') def all_exception(self): raise self.request.context This will complain that Root is not an exception. How should I get the exception object in this case? Thanks Jasper

Re: mako override default filters

2013-04-10 Thread Jasper
Excellent, thanks! On Tuesday, April 9, 2013 9:47:21 AM UTC+1, aodag wrote: Hi, Jasper You can override the filters at .ini. Check the document, http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/narr/environment.html#mako-default-filters. Regards 2013/4/9 Jasper van den

mako override default filters

2013-04-09 Thread Jasper van den Bosch
, Jasper -- 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...@googlegroups.com. To post to this group, send email to pylons-discuss

Re: only running specific unit tests ?

2013-01-24 Thread Jasper
My setup is very similar to yours, I think it works well. If you want to share code between the suites, have your tests inherit from superclasses which contain the necesarry setups. I.e MyApp.myapp. ControllerTestcase import ControllerTestcase UserControllerTestcase(ControllerTestcase)

Re: Designing tests for a complex scientific site

2012-12-07 Thread Jasper
+1 for Jesaja's answer On Friday, December 7, 2012 8:56:05 AM UTC+1, Jesaja Everling wrote: I think you should have a look at Selenium. http://seleniumhq.org/ It remote-controls real web-browsers, thus you can use it to test things like the JavaScript lightboxes that are displayed in your

Velruse Traversal

2012-10-06 Thread Jasper van den Bosch
this a lot to create links in my application's site-wide menu. Have any of you run into this and how would you solve it? One option of course would be to have the 'login_complete_view' redirect to another page, but this seems a 'workaround'. Thanks for your thoughts, Jasper -- You received this message

managing asynchronous jobs from pyramid; module-level variables and wsgi

2012-05-17 Thread Jasper van den Bosch
correct that I would need some database or filesystem-based approach to manage the jobs globally? How did others solve this? Thanks, Jasper http://ilogue.com jas...@ilogue.com -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group

Re: Mixing data and interface in RESTful app

2012-05-08 Thread Jasper
I don't think its short-sighted, in fact I use this approach, and it fits very nicely with traversal. Having a static versioned API is not a necessity. You only break the (RESTful) API when you remove members from your resources. If you plan to do this you can always warn your clients in time.

traversal: resource vs domain model?

2012-03-05 Thread Jasper van den Bosch
and BlogResource) B seems to be the cleaner version if you have a non-http API as well, but A is clearly simpler. Thanks for sharing your experience. Jasper -- jas...@ilogue.com http://ilogue.com/jasper I'd love to see your attachment, but please use OpenDocument, not a proprietary format like docx

Re: trying to create a pdf version of the pyramid cookbook...

2012-02-26 Thread Jasper
Another option would be to use rst2pdf, than merge the pdfs. On Feb 25, 10:34 pm, Mike Orr sluggos...@gmail.com wrote: On Sat, Feb 25, 2012 at 1:42 PM, Chris McDonough chr...@plope.com wrote: On Sat, 2012-02-25 at 13:25 -0800, Mike Orr wrote: There are other reasons to go through the HTML

Re: SQLAHelper 1.0 released, and a proposal

2011-12-29 Thread Jasper
On Dec 29, 12:26 am, Michael Merickel mmeri...@gmail.com wrote: I hate to be posting this without an awesome solution, but I'd like someone to convince me that this is actually a good idea. I have not yet heard of a good use-case I'd have to agree with Michael M here, as a user of pyramid and

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

2011-09-20 Thread Jasper
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: http://stackoverflow.com/questions/2413707/stream-a-file-to-the-http-response-in-pylons (see last response) docs:

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

2011-09-20 Thread Jasper van den Bosch
Thanks! On 20 September 2011 15:42, Gael Pasgrimaud g...@gawel.org wrote: 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