Debugging a Pyramid web application with Python Tools for Visual Studio

2013-09-13 Thread Tjelvar
Dear all, My collegue Murray has written up some instructions on how to set up Visual Studio in order to be able to develop and debug Pyramid applications with it. https://pytools.codeplex.com/discussions/456661 Cheers, Tjelvar -- You received this message because you are subscribed

Documentation high risk website blocked message

2013-09-09 Thread Tjelvar
Dear all, Trying to access the Pyramid documentation results in a High risk website blocked. The details given: Access has been blocked to api.grokthedocs.com as 'Mal/HTMLGen-A' has been found at this website. Anyone know what is going on? Kind regards, Tjelvar -- You received

Re: Documentation high risk website blocked message

2013-09-09 Thread Tjelvar
Hi Tres, Thank you for your quick reply. I get the same warning when I paste those URLs into my web-browser. Tjelvar On Monday, September 9, 2013 1:30:15 PM UTC+1, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/09/2013 07:58 AM, Tjelvar wrote: Dear all

Re: Should ✔ be truthy?

2013-04-17 Thread Tjelvar
this on wikipedia: http://en.wikipedia.org/wiki/Tick_(check_mark)#International_differences Tjelvar On Wednesday, April 17, 2013 6:54:39 PM UTC+1, Sontek wrote: Hello my fellow aliens! Recently I was setting up configuration for a new project and was trying to do the obvious thing in my .ini

Re: Is it possible to inherit views from a view_default base calss?

2013-04-03 Thread Tjelvar
Michael, thank you for all your help. I will experiment with the solution you proposed over the next week or so. All the best, Tjelvar On Monday, April 1, 2013 5:34:24 PM UTC+1, Michael Merickel wrote: This isn't tested, but should basically handle what you've been asking for, I think

callbacks added to DummyRequest using add_finished_callback not called when running tests

2013-04-03 Thread Tjelvar
Dear all, I'm not sure if this is the expected behaviour or not. In the documentation it states that DummyRequests implement add_finished_callback. http://docs.pylonsproject.org/projects/pyramid/en/latest/whatsnew-1.2.html However, to me it seems like the added callbacks never get called when

Re: callbacks added to DummyRequest using add_finished_callback not called when running tests

2013-04-03 Thread Tjelvar
Thank you for your clear answer Michael, much appriciated. I re-factored the tests making use of mockers instead of real calls to the database. Will try to create some functional test using WebTest in the near future. Kind regards, Tjelvar On Wednesday, April 3, 2013 4:00:06 PM UTC+1

Re: Is it possible to inherit views from a view_default base calss?

2013-04-01 Thread Tjelvar
the code below does not work? Tjelvar ... def base_views(): def wrapper(klass): def _options(): Return OPTIONS response. return Response(allow=['HEAD', 'GET', 'OPTIONS']) def callback(context, name, ob): config

Re: Changing content-type on renderer response

2013-03-28 Thread Tjelvar
/xml') def ... Anyway, just another option for you. This was written without the docs so expect an error somewhere! On Wed, Mar 27, 2013 at 11:56 AM, Tjelvar tjelvar...@gmail.comjavascript: wrote: Jason and Joel - thank you for your suggestions. I managed to get it to work using

Is it possible to inherit views from a view_default base calss?

2013-03-28 Thread Tjelvar
Dear all, Some of my resources will have identical views for some request methods (see below for an example). I would therefore like to be able to inherit these from a base class. However, the code below does not appear to work (e.g. POST returns 404 Not Found rather than 405 Method Not

Re: Changing content-type on renderer response

2013-03-27 Thread Tjelvar
Any suggestions on how one can modify the content-type of a response when using multiple @view_config decorators on the same view? E.g. @view_config(accept='text/html', renderer='html.pt', ...) @view_config(accept='text/xml', renderer='xml.pt', ...) @view_config(accept='application/json'

Re: Pyramid Books Published by O'Reilly

2013-03-27 Thread Tjelvar
Dear all, Just thought that I add my two pence worth. I am not a web-hacker, I'm a scientist. I use Pyramid to expose my science as web apps/services. If I am not a web-hacker then why don't I use something that is simpler than Pyramid. Personally, because the science that I want to expose

Re: pylonsproject.chipin.com set up for docs overhaul pledge collections

2012-02-19 Thread Tjelvar
$50 transferred. Cheers, Tjelvar -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com

What are the files located in the AppName.egg-info used for?

2012-02-18 Thread Tjelvar
Have just run: $ ./env/bin/pcreate --scaffold=starter AppName $ cd AppName $ ./env/bin/python setup.py develop Which resulted in the directory AppName.egg-info being created: $ tree AppName.egg-info/ Taster.egg-info/ ├── dependency_links.txt ├── entry_points.txt ├── not-zip-safe ├── PKG-INFO

Re: What are the files located in the AppName.egg-info used for?

2012-02-18 Thread Tjelvar
: pkg_resources.DistributionNotFound: AppName So would it be correct to say that: The information in the AppName.egg-info directory is required for the pserve, proutes, pshell and ptweens programs to be able to discover and import the application. Regards, Tjelvar -- You received this message because

Re: What are the files located in the AppName.egg-info used for?

2012-02-18 Thread Tjelvar
Dear Mike, Thank you for clarifying that. Tjelvar -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr

Using chameleon templates in a single file app

2012-02-06 Thread Tjelvar
Dear all, I'm trying to use chameleon templates in a single file application (obviously the template is not part of that single file). bash-4.2$ tree . ├── templates │ ├── test.mak │ └── test.pt ├── test_chameleon.py └── test_mako.py However, I get the error message: ... 'Missing template

Re: need your help to overhaul docs

2012-02-06 Thread Tjelvar
or is it just me? Cheers, Tjelvar -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more

Re: Using chameleon templates in a single file app

2012-02-06 Thread Tjelvar
Great, thank you. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more

Can I have two applications using the same sqlite database?

2011-09-22 Thread Tjelvar
I have created an application which simply exposes some data from an underlying database. The application also has functionality for entering new data and editing existing data. It has a primitive login system for allowing people to edit data using AuthKit, with a single user specified in the

Re: Can I have two applications using the same sqlite database?

2011-09-22 Thread Tjelvar
more reassurance, but I don't have the time/ knowledge to do this at the moment. Hence, my proposed workaround. Cheers, Tjelvar On Sep 22, 9:30 am, Keesjan van Bunningen k.vanbunnin...@inter.nl.net wrote: As far as I can tell you are making it way to complicated. Sounds to me like you only

Re: are there still pylons eggs available?

2011-08-09 Thread Tjelvar
Thanks for all the responses. I finally got it to work as well, but it was very slow. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send

are there still pylons eggs available?

2011-08-08 Thread Tjelvar
I'm trying to install Pylons using easy_install, but the installation egg does not seem to be available. bash-4.2$ ./easy_install Pylons=1.0 Searching for Pylons=1.0 Reading http://pypi.python.org/simple/Pylons/ Reading http://www.pylonshq.com/ Download error: [Errno 110] Connection timed out --

Re: FormBuild text returns #34;text#34

2011-07-30 Thread Tjelvar
... in Mako you pipe it though the ${ foobar | n } filter, but we're not in Mako land. But it's the same effect, so I hope that this might give you a clue. On Fri, Jul 29, 2011 at 12:12 AM, Tjelvar tjelvar.ols...@gmail.com wrote: Hi, I'm currently trying to set up a development environment

FormBuild text returns #34;text#34

2011-07-28 Thread Tjelvar
Hi, I'm currently trying to set up a development environment for a pylons project on a new/different machine. However, I'm struggling to get formbuild to work the way it used to on my old/previous machine. Old system: from formbuild import Form form = Form() form.field(label=Test, type=text,

Re: Akhet 1.0b1 released

2011-03-20 Thread Tjelvar
- SQLAHelper] http://sluggo.scrapping.cc/python/Akhet/transaction_manager.html Cheers, Tjelvar -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send

Re: AuthKit with Pylons 1.0

2011-03-20 Thread Tjelvar
Hi, I've had a similar problem, but using Pylons 1.0. The login system (using AuthKit-0.4.5) was working until I upgraded from WebOb-1.0.1 to WebOb-1.0.3. My pragmatic solution to this problem was to simply revert back to WebOb-1.0.1. Cheers, Tjelvar On Mar 14, 8:50 pm, Людмила Третьякова

Re: Akhet status (Pyramid newbies and Carlos d.l.G., read me)

2011-03-12 Thread Tjelvar
to start a project from fresh using the paster pyramid_sqla template and copy and paste functionality from my Pylons project? A tutorial describing how to port a simple Pylons project to Pyramid would be very much appreciated. Kind regards, Tjelvar On Mar 11, 5:41 am, Mike Orr sluggos

Re: Akhet status (Pyramid newbies and Carlos d.l.G., read me)

2011-03-12 Thread Tjelvar
and then copying and pasting functionality from my Pylons project into the Pyramid project? A tutorial on how to port a small python project would be very much appreciated. Kind regards, Tjelvar -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post