Re: [pylons-discuss] Pyramid packaging

2021-01-26 Thread Jason Madden
> Am Di., 26. Jan. 2021 um 11:43 Uhr schrieb Thierry Florac : >> >> Well... >> It seems that the last release of zc.buildout is not compatible with the >> last setuptools release! >> I downgraded setuptools to 50.3.2 and everything seems OK... >> zc.buildout 3.0a2 should be compatible with

Re: [pylons-discuss] RelStorage transaction description

2019-11-13 Thread Jason Madden
the documentation for this at https://github.com/zodb/relstorage/issues/112 Jason > On Nov 13, 2019, at 06:02, Thierry Florac wrote: > > Hi, > > Transaction API (ITransaction interface) allows to store user and description > (at least the matching request URL) into a given tran

[pylons-discuss] Re: Pyramid app with multiple ZODB Mountpoints

2016-06-29 Thread Jason Madden
e is that you have a single traversal tree. (One of my apps does this, and I can confirm it works well.) The downside is that you're dealing with a ZODB multi-database and cross-database references. As Tres notes, both can be complex to manage. (One of my apps does this, and I can confirm

[pylons-discuss] Re: uWSGI lazy-apps opinion

2016-01-12 Thread Jason
some graceful reloading setups that need to take into consideration lazy-apps vs forking which you can read about at http://uwsgi-docs.readthedocs.org/en/latest/articles/TheArtOfGracefulReloading.html#preforking-vs-lazy-apps-vs-lazy -- Jason -- You received this message because you are subscri

[pylons-discuss] Re: Pyramid + uwsgi auto reload on source change

2016-01-12 Thread Jason
nd that the during development there are very rarely changes any of the uwsgi server configuration and it's much faster to get setup if you don't have the dependency on uWSGI. -- Jason -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group.

Re: [pylons-discuss] Re: Pyramid and namespaces

2014-10-27 Thread Jason Madden
the subscribers in `zope.site`). This may be overkill for many use cases, but for anyone interested I've posted a hastily extracted copy at https://gist.github.com/jamadden/c11ef9cb6be8f6794261#file-traversal-py Jason On Thursday, October 16, 2014 6:40:18 AM UTC-5, Thierry Florac wrote: Hi

Re: Derive from pyramid.view.view_config

2013-06-17 Thread Jason
.__call__ into my class' __call__ method. It's only about 20 lines, so I'm not too concerned about the maintainability of the workaround. -- Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To unsubscribe from this group and stop

Re: How to Debug Pyramid 1.4 application in PyCharm

2013-06-17 Thread Jason
-configurations.html You pretty much just enter what you would enter on the command line. -- Jason -- 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

Re: Possible bug with mako renderers when using defs

2013-03-28 Thread Jason
On Tuesday, March 26, 2013 4:39:32 PM UTC-4, Jason wrote: On Tuesday, March 26, 2013 4:33:40 PM UTC-4, Michael Merickel wrote: You have request and context switched in your view signature. Is this a paste-bug? Yes. (I'm actually using pyramid handlers, but nobody else seems

Re: Possible bug with mako renderers when using defs

2013-03-27 Thread Jason
On Tuesday, March 26, 2013 5:00:36 PM UTC-4, Michael Merickel wrote: Please reply to the mailing list and not me directly. :-) I thought I had, I'm using the Google Groups interface. Is this also a direct reply? -- Jason -- You received this message because you are subscribed

Re: Changing content-type on renderer response

2013-03-27 Thread Jason
a matchdict parameter to determine the response content-type in the subscriber. -- Jason -- 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

Possible bug with mako renderers when using defs

2013-03-26 Thread Jason
and investigate the code around rendering mako defs, but any insights about this would be nice. It will be easy enough for me to use a regex to find all the places I am calling mako defs using the old syntax. Thanks, Jason -- You received this message because you are subscribed to the Google Groups

Re: Possible bug with mako renderers when using defs

2013-03-26 Thread Jason
On Tuesday, March 26, 2013 4:33:40 PM UTC-4, Michael Merickel wrote: You have request and context switched in your view signature. Is this a paste-bug? Yes. (I'm actually using pyramid handlers, but nobody else seems to these days). -- You received this message because you are

Re: search for view_callables

2013-03-20 Thread Jason
On Monday, March 18, 2013 11:12:13 AM UTC-4, cropr wrote: Sometimes I am having issues with pyrmid finding the right view_callable. Is there a best practice to debug the search process for a view_callable? Can I see somewhere in a logfile or setting why a certain view_callable is

How to reflect a table

2013-01-06 Thread jason . leach
Hi, How does one go about reflecting a table. I'd like to keep it in my models.py file if I can, and just: class PropertyParcel(Base): __tablename__ = 'property_parcel_polygons' __table_args__ = {'schema': 'property_parcel_polygons', 'autoload': True} But I end up with the exception:

Re: How to reflect a table

2013-01-06 Thread jason . leach
January 2013 00:57:48 UTC+7, jason...@fullboar.ca wrote: sqlalchemy.exc.UnboundExecutionError: No engine is bound to this Table's MetaData. Pass an engine to the Table via autoload_with=someengine, or associate the MetaData with an engine via metadata.bind=someengine It looks like I need to do

Re: can't find the exact header for sending ods file as a downloadable file

2012-12-26 Thread Jason
On Friday, December 21, 2012 2:49:37 PM UTC-5, kk.gnu wrote: Hello all. I wish to send across an ods (spreadsheet) file from my pylons controller in such a way that the browser should ask the user to download the file (by presenting the usual download dialog of course ). Can some one

Re: can't find the exact header for sending ods file as a downloadable file

2012-12-21 Thread Jason
On Friday, December 21, 2012 2:49:37 PM UTC-5, kk.gnu wrote: Hello all. I wish to send across an ods (spreadsheet) file from my pylons controller in such a way that the browser should ask the user to download the file (by presenting the usual download dialog of course ). Can some one

Re: Best way to add dynamic default argument to view_config

2012-08-29 Thread Jason
') on the handler classes. -- Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/a6GrJeLF1nQJ. To post to this group, send email to pylons-discuss

Re: writing testable view code

2012-08-24 Thread Jason
). To get this setup I build the database in the setup and I roll it back in the tearDown so none of the changes are kept. -- Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com

Re: pyramid_mailer exception handling

2012-06-27 Thread Jason
in a ordered way... How I can do this? Greetings Then you will run into the problem of having the mail already sent out if the database transaction fails to commit. -- Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view

Re: Queries on Pyramid API

2012-06-25 Thread Jason
= LegacyView(pylonsapp) config.add_view(context='pyramid.exceptions.NotFound', view=legacy_view, permission=NO_PERMISSION_REQUIRED) Of course you could make a route and view like you normally would, but just specify that LegacyView instance as the view parameter to add_view. -- Jason -- You

Re: Distinguishing between view names

2012-06-15 Thread Jason
in request.matchdict['action'] -- at least if you are using urldispatch. -- jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/_fJXwMj4oKkJ. To post to this group

Re: Need help on caching, background jobs manual ORM cache refresh (Pyramid project)

2012-06-07 Thread Jason
On Thursday, June 7, 2012 12:56:56 PM UTC-4, mike bayer wrote: For caching, I'd use dogpile.cache: https://bitbucket.org/zzzeek/dogpile.cache/ Which is specifically the replacement for Beaker caching. It is much simpler and more performant. SQLAlchemy 0.8 will convert the beaker

Re: Need help on caching, background jobs manual ORM cache refresh (Pyramid project)

2012-06-05 Thread Jason
it later if it is needed. That way you can worry about getting the loaded data displaying correctly (especially since you're data setup is a little more complex) before having to figure out a caching system. -- Jason -- You received this message because you are subscribed to the Google Groups

Akhet 2.0 does not allow permissions

2012-05-28 Thread Jason
and the source code on bit bucket doesn't show the same code as the installed version from pypi. I'm going to stop using Akhet (it's so small that I might as well make my own static view overlay), so this is just an FYI. --Jason -- You received this message because you are subscribed to the Google

Re: Memory profiling a Pyramid app

2012-05-17 Thread Jason
the references to a specific instance as well. You can also set a baseline and then see how many items of each type are created after that baseline. -- Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit

Re: Allowing authentication to work over multiple subdomains?

2012-05-17 Thread Jason
On Wednesday, May 16, 2012 4:25:19 PM UTC-4, Jason wrote: On Wednesday, May 16, 2012 3:36:15 PM UTC-4, Iain Duncan wrote: Thanks Jason. If you don't mind sharing how you did it, that would be great. thanks! Iain -- You received this message because you are subscribed

Re: Allowing authentication to work over multiple subdomains?

2012-05-17 Thread Jason
On Thursday, May 17, 2012 9:13:17 AM UTC-4, Jason wrote: On Wednesday, May 16, 2012 4:25:19 PM UTC-4, Jason wrote: On Wednesday, May 16, 2012 3:36:15 PM UTC-4, Iain Duncan wrote: Thanks Jason. If you don't mind sharing how you did it, that would be great. thanks! Iain Ugh

Re: Allowing authentication to work over multiple subdomains?

2012-05-16 Thread Jason
on .example.com (notice leading dot). I had to create a custom authentication policy to do this. There is a closed pull request that outlines the required changes, see the pylons-devel thread about it at https://groups.google.com/forum/?fromgroups#!topic/pylons-devel/Z8sUxc9QOaM -- Jason -- You

Re: Is there a templating system for generating PDFs?

2012-04-09 Thread Jason
://www.xhtml2pdf.com/ ) and it works well with simple templates. For more advances layouts I create the PDF imperatively using reportlab, but its much easier to use xhtml2pdf. I'm planning to try using a ReST to PDF converter like whatever is used in Sphinx, but I haven't gotten there yet. -- Jason

Re: Add_route as a decorator

2012-04-04 Thread Jason
On Tuesday, April 3, 2012 8:10:35 PM UTC-4, Zak wrote: Instead of using something like config.add_route('Index', '/') in my main, I want to add a route as a decorator which will be positioned next to the relevant view. Something like @view_addRoute(route'=/index)

I don't know what I did to the logs

2012-02-24 Thread Jason
I have no idea how I did this but my log is now outputting many lines that are similar to this when I start paster: F300 F256 F1 F256 F60 F256 F3600 Any ideas what I did? It doesn't seem to affect anything else Thanks, Jason -- You received this message because you are subscribed

Re: cache user groups

2012-02-22 Thread Jason
to access a now forbidden area for a short time. -- Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/OGVWi6ZyFi4J. To post to this group, send email

Re: need opinions for dependencies for some Pyramid related code

2012-02-10 Thread Jason
are using obscure dependencies that may disappear without warning. I don't think you need to change anything -- even if you change the dependency, people that have problems with dependencies will still dislike the fact that it's there. -- Jason -- You received this message because you are subscribed

Re: subrequests in pyramid

2012-02-07 Thread Jason
You can turn that result dict into the rendered content using pyramid.renderers.render: return Response(htmlfill.render( render('/template.mako', self.view(), request=self.request) ) ) self.view is an @action method The only problem with render() is that you have to specify the template name

Testing with SQL Alchemy and sqlahelper

2012-01-26 Thread Jason
in tearDown. Has anyone successfully setup testing with SQLAlchemy without rebuilding an entire database on every test? Thanks, Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https

Re: pyramid_exclog exception in exception view

2012-01-18 Thread Jason
Ahh yes, I just read that the exception view is implemented using a tween. So I probably have to explicitly order them to get what I want. -- Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit

Re: Logging Configuration

2012-01-16 Thread Jason
which raises a non-http exception. It seems weird that the Tween gets called between the two views instead of at the end of the request. Maybe logging exceptions is best done in WSGI Middleware. --Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss

Re: Logging Configuration

2012-01-16 Thread Jason
I just looked at the Tween documentation again and realized the exception handling view is implemented as a Tween as well. It could be that I have them ordered incorrectly and the exclog Tween is before the exception view Tween. --Jason -- You received this message because you are subscribed

pyramid_exclog exception in exception view

2012-01-10 Thread Jason
, but any clarification about why the exclog tween doesn't work would be greatly appreciated. --Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/f8XF

Logging Configuration

2012-01-09 Thread Jason
it wasn't propagating by default, but that did not change anything. Thanks for the help, Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/2wIBlPOCoucJ

Re: Logging Configuration

2012-01-09 Thread Jason
I did include pyramid_exclog using pyramid.includes = pyramid_exclog in the the app section. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit

Re: get_appsettings() equivalent under Pyramid 1.2?

2012-01-09 Thread Jason
I think you can use the method described here http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/commandline.html#writing-a-script -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit

Re: beaker configuration

2011-11-21 Thread Jason
I had already started using beaker 1.6 and it seem to work fine as long as I included a key_length key for each region definition: cache.short_term.expire = 60 cache.short_term.key_length = 256 -- You received this message because you are subscribed to the Google Groups pylons-discuss group.

beaker configuration

2011-11-14 Thread Jason
overlooking, this is all the setup that I have seen required in the pyramid_beaker and beaker documentation. Thanks, Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons

Re: beaker configuration

2011-11-14 Thread Jason
You're absolutely right. Caching instance methods with the cache_region decorator is only supported in Beaker 1.6 and higher. I'm using 1.5.4 (thanks for debug toolbar letting me easily see the versions). -- Jason -- You received this message because you are subscribed to the Google Groups

Redirect to HTTPS

2011-09-23 Thread Jason
When using ssl_pem parameter in the server:main section, is there a way to forward any http connections to https automatically instead of returning an error? Thanks, Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view

Re: Redirect to HTTPS

2011-09-23 Thread Jason
I can dig it, I was hoping to use only Paste though. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/Z93l8k7UffcJ. To post to this group, send email to

Re: Virtual Hosting routes using composite application

2011-09-22 Thread Jason
I have figured out the problem. urlmap sets the script name appropriately and then I was using PrefixMiddleware in the application pipeline that was resetting the script name environment variable to '/'. --Jason -- You received this message because you are subscribed to the Google Groups

Re: Composite application configuration

2011-09-07 Thread Jason
automatically anyway. The DEFAULT config does not end up in the settings (I tried that first). -- Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss

Re: Composite application configuration

2011-09-06 Thread Jason
it in the global_conf. -- Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/rTKTIjC5v3AJ. To post to this group, send email to pylons-discuss

Virtual Hosting routes using composite application

2011-09-02 Thread Jason
/modules/urlmap.html) but I don't see how to do that in the config file. Thanks for the help, Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss

Re: Virtual Hosting routes using composite application

2011-09-02 Thread Jason
to specify the application, but it will work. Rumour has it I will also have to include the ProxyPreserveHost directive in my Apache config (I'm using mod proxy in the production deployment). --Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group

Re: Routing requested based on presence of query params

2011-09-02 Thread Jason
Could you write a custom route predicate (https://docs.pylonsproject.org/projects/pyramid/dev/narr/urldispatch.html#custom-route-predicates) that checks for your requirements? -- Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view

Composite application configuration

2011-09-01 Thread Jason
the http://pythonpaste.org/deploy/ documentation to no avail. Thanks, Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/djjZV6jDgoEJ. To post

Re: Composite application configuration

2011-09-01 Thread Jason
Wyatt is correct, I would like some sort of include functionality. My composite configuration works fine (and I am using pipelines and such), but there is a lot of duplication in the app sections. -- You received this message because you are subscribed to the Google Groups pylons-discuss

Re: Composite application configuration

2011-09-01 Thread Jason
I used [DEFAULT] in Pylons for this sort of thing, but it does not work in Pyramid. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/CV8GOvoplkwJ. To

Re: Composite application configuration

2011-09-01 Thread Jason
I have found that I can do this: [DEFAULT] testkey_default = TEST [app:app1] testkey = %(testkey_default)s [app:app2] testkey = %(testkey_default)s It causes even more duplication of the config, but it means maintaining the values in a single section. -- You received this message because you

Unicode value

2011-08-11 Thread Jason
this should be u'Test Unicod\xe9' if it was properly decoded to utf-8. Is there somewhere I need to specify Pyramid to decode the posted values as UTF-8? Thanks, Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion

Re: Unicode value

2011-08-11 Thread Jason
though: class RequestWithUser(Request): def __init__(self, *args, **kwargs): Request.__init__(self, *args, **kwargs) self.charset = 'utf-8' And I had to switch to using webhelpers.util.html_escape instead of webhelpers.html.escape. -- Jason -- You received this message

Re: Pyramid, authentication and userid

2011-08-11 Thread Jason
Actually I misunderstood your post, but perhaps you could use a similar pattern for saving it in the session instead of the request? -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit

Re: dot in route pattern

2011-07-20 Thread Jason
My mistake; I had a route pattern with just /{action} above the one containing a dot. So it matched the action as being the entire string before getting to the pattern with the dot in it. --Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss

dot in route pattern

2011-07-19 Thread Jason
in route matching, the documentation, or my understanding? Thanks, Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/U7FPh17wn7oJ. To post

ownership authorization

2011-06-17 Thread Jason
owns the object (each object would have a separate custom predicate). Is there a similar analog using Pyramid's authorization? Alternatively: has anyone started work on a repoze.what authorization policy? Thanks, Jason -- You received this message because you are subscribed to the Google

how to add middleware

2011-06-17 Thread Jason
How do I add custom middleware to Pyramid. I have a function add_auth(app) in myapp.lib.auth and I have tried setting my [pipline:main] section to: [pipeline:main] pipeline = egg:WebError#evalerror egg:myapp.lib.auth.add_auth sales I also tried egg:myapp.lib.auth:add_auth,

Re: how to add middleware

2011-06-17 Thread Jason
] pipeline = egg:WebError#evalerror auth sales [filter:auth] paste.filter_factory = sales.lib.auth:auth_filter_factory Any additional keys under [filter:auth] will be sent to auth_filter_factory as keyword arguments -- Jason -- You received this message because you are subscribed to the Google

Re: ownership authorization

2011-06-17 Thread Jason
wonder if there is a way to get the request from the context, or assign the request to the default root factory somewhere? --Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d

File Upload

2011-06-16 Thread Jason
I have tried printing out all the keys in the request, but I cannot find the file anywhere. Thanks, Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons

Re: File Upload

2011-06-16 Thread Jason
It was a problem with my form (being submitted by jquery) -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/1bEbkNjqa88J. To post to this group, send email

Re: issue to deploy pylons application under mod_wsgi

2011-06-14 Thread Haulyn Jason
Sorry, I have tried many ways, even remove this line, always the same error. I am tired for pylons. Regards, Haulyn Jason Founder, http://domix.in Rm. 807, Qilu Software Tower, Qilu Software Park 1 Shunhua Rd., High-Tech Development Zone Jinan, Shandong 250101, P. R. China Tel: +86 158 5410

Re: issue to deploy pylons application under mod_wsgi

2011-06-11 Thread Haulyn Jason
nobody met this issue? or, any reference, analysis all welcome. Didn't solve the problem. Regards, Haulyn Jason Founder, http://domix.in Rm. 807, Qilu Software Tower, Qilu Software Park 1 Shunhua Rd., High-Tech Development Zone Jinan, Shandong 250101, P. R. China Tel: +86 158 5410 3759 Website

Re: issue to deploy pylons application under mod_wsgi

2011-06-11 Thread Haulyn Jason
I am just trying to solve problem, no matter the line application = ErrorMiddleware(application, debug=True) existed or not, the issue always here. Thanks. Regards, Haulyn Jason Founder, http://domix.in Rm. 807, Qilu Software Tower, Qilu Software Park 1 Shunhua Rd., High-Tech Development Zone

issue to deploy pylons application under mod_wsgi

2011-06-09 Thread Haulyn Jason
, start_response) Module pylons.middleware:164 in __call__ start_response(status, headers, exc_info) Module paste.exceptions.errormiddleware:197 in __call__ self.start_response(*args) TypeError: start_response() argument 3 must be tuple, not None Any suggestions? Regards, Haulyn Jason Founder, http

multiple escape filters for mako

2011-06-09 Thread Jason
' is not defined This only happens when I add , none_escape to the default filters line. It works with just h and the above imports line. Is this a bug I should be submitting, or am I missing something trivial here? Thanks, Jason -- You received this message because you are subscribed

Re: multiple escape filters for mako

2011-06-09 Thread Jason
confirmed both the h filter and my none_escape were being used. -- Jason -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/MJ8rXF07neYJ. To post

Re: multiple escape filters for mako

2011-06-09 Thread Jason
I believe it is patched to use the html filter by default, but not escape None to an empty string. Since I am overwriting the default_filters setting I needed to speciy that I want h filter and my own filter. -- Jason -- You received this message because you are subscribed to the Google

Need help to deploy pylons app under wsgi and apache

2011-06-05 Thread Haulyn Jason
application works well with $paster serve development.ini and listen to port 5000. Is there something I forget? I have pylons and dependencies global via #easy_install. Regards, Haulyn Jason Founder, http://domix.in Rm. 807, Qilu Software Tower, Qilu Software Park 1 Shunhua Rd., High-Tech

Re: Need help to deploy pylons app under wsgi and apache

2011-06-05 Thread Haulyn Jason
now i got this TypeError: start_response() argument 3 must be tuple, not None Regards, Haulyn Jason Founder, http://domix.in Rm. 807, Qilu Software Tower, Qilu Software Park 1 Shunhua Rd., High-Tech Development Zone Jinan, Shandong 250101, P. R. China Tel: +86 158 5410 3759 Website: http

Re: Logging failed login attempts

2011-04-18 Thread Jason McKellar
is never instantiated. This will be the case during a bruteforce when many common usernames are attempted. -- Jason -- 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

Re: Pylons OSX Paster create?

2011-03-29 Thread Jason Ross
Your installation is using Paste-1.7.3, which does not include desired_matches (checked the source file). Try updating your install to = Paster-1.7.5, which includes desired_matches. To install with easy_install drop into your virtual env and issue easy_install -- upgrade Paste in the terminal.

Re: Pylons OSX Paster create?

2011-03-29 Thread Jason Ross
, Jason Ross wrote: Your installation is using Paste-1.7.3, which does not include desired_matches (checked the source file). Try updating your install to = Paster-1.7.5, which includes desired_matches. To install with easy_install drop into your virtual env and issue easy_install -- upgrade

WSGI callable in action

2011-02-28 Thread Jason McKellar
with request.environ['paste.parsed_formvars'] in that how-to were for file upload, but my request.environ never has that dictionary key. Is this for an older version of Pylons? Has anyone gotten a WSGI callable application working in Pylons 1.0 with file uploads as well? Thanks, Jason -- You received

Content-length is being mangled

2011-02-11 Thread Jason McKellar
header is changed to more than double what it is supposed to be when it is returned. Any ideas on how to go about debugging or fixing this issue? I would rather not change my deployment method, but I could use mod_wsgi or mod_proxy with paste if I have to. Thanks, Jason -- You received this message

Re: Content-length is being mangled

2011-02-11 Thread Jason McKellar
On Fri, Feb 11, 2011 at 12:34 PM, Jason McKellar ja...@deadtreepages.comwrote: I have deployed Pylons using mod_fcgi behind Apache using flup. I have an action that returns a small binary file (after setting the headers for content-type, content-disposition, and content-length). This works

Re: Repoze.what and Pylons

2011-01-05 Thread Jason McKellar
On Wed, Jan 5, 2011 at 4:02 PM, Jason McKellar ja...@deadtreepages.comwrote: On Wed, Jan 5, 2011 at 3:56 PM, Wyatt Baldwin wyatt.lee.bald...@gmail.com wrote: We might need to see some code to give you an answer. My first thought is: what is the order of your middleware in middleware.py

Re: How to redirect to an absolute URL

2010-10-05 Thread Jason Ross
For Pylons 1.0 the following should work - I'm assuming a controller action. If this is the case you can set-up the following imports in the controller file from pylons import url from pylons.controllers.util redirect Then within the controller action return the redirect def

Re: How to redirect to an absolute URL

2010-10-05 Thread Jason Ross
With Pylons 1.0 the following should work: Note: The imports below should be set in the controller file or in another module such as, say, helpers.py .. from pylons.controllers.util import redirect from pylons import url ... def testController(BaseController): def

Re: How to redirect to an absolute URL

2010-10-05 Thread Jason Ross
For pylons 1.0 and a redirect executed in a controller action the following should work- Note: make sure you set the imports below in the controller file or in some other module such as, say, helpers.py from pylons.controllers.util import redirect from pylons import url def

Re: Installing Pylons without an Internet connection

2010-02-06 Thread Jason S.
, assuming all the packages have been copied over: pip install --no-deps -E $VENV $PKGDIR/* -- Jason -- 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...@googlegroups.com. To unsubscribe from this group

Multiple domains with Routes

2010-01-20 Thread Jason S.
I've been experimenting with ways of handling multiple domains inside a single Pylons app (as opposed to an app for each domain). Routes has subdomain support built-in, but mapping domains to subdomains just leads to problems with generating URLs. So I wrote a bit of alpha code today to implement

Re: How do I install dlls and exes for libtidy and others?

2009-11-05 Thread Jason S.
://int64.org/projects/tidy-binaries/ Kevin, Glad it's working. Are you on 64-bit Windows then, or did you find one of the patched versions on that site to work on 32-bit Windows? I'll add a link to that site to the pytidylib docs. Jason --~--~-~--~~~---~--~~ You received

Re: New Pylons on AppEngine article in wiki

2009-11-01 Thread Jason S.
or something. Jason --~--~-~--~~~---~--~~ 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

Re: Giving Google App Engine another go (fewer workarounds)

2009-10-29 Thread Jason S.
work, try going back to the article and see if the steps there work for you. Thanks, Jason On Oct 29, 12:40 pm, reco r...@nex9.com wrote: hi there, i am trying the new attachment. when loading the root i get this traceback:http://paste.pocoo.org/show/147719

Giving Google App Engine another go (fewer workarounds)

2009-10-24 Thread Jason S.
(test) datastore outside of the GAE engine, which I haven't attempted yet. Jason --~--~-~--~~~---~--~~ 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

Re: Error in nosetest with SA mapper

2009-10-19 Thread Jason S.
I ran into this too. I think it's the same issue. See: http://pylonshq.com/project/pylonshq/ticket/620 On Oct 19, 4:24 pm, Mariano Mara mariano.m...@gmail.com wrote: I'm building a data warehouse front end with pylons and for this, I found very useful SqlAlchemy's reflection feature. I place

Re: auth, getting rid of global-uniqueness

2009-10-16 Thread Jason S.
/functions to check permissions, but you create your own model, so you could implement your org_id, or multi-factor auth, etc., rather than just taking whatever username/password schema you're given. Jason --~--~-~--~~~---~--~~ You received this message because you

Re: Pylons on Google App Engine article

2009-10-15 Thread Jason S.
of paster serve, because then all the GAE- specific libs should be provided without moving anything. Can you use datastore, etc, locally without the SDK? I didn't need to patch paste like Jason did, but maybe I'm missing something. I'll be writing up my new recipe asap. Interesting. Maybe

Re: Pylons on Google App Engine article

2009-10-15 Thread Jason S.
unless it's added to the path somehow. BTW, I don't think GAE uses .pth files, which is why sys.path manipulation is necessary. It *seems *like this isn't true. If I omit pth files when uploading to GAE, my app is failing with a 500 error. But I wouldn't trust that yet... can you do a

Re: static installation from SCM checkout

2009-10-13 Thread Jason S.
On Oct 13, 12:04 pm, Mike Orr sluggos...@gmail.com wrote: I would hesitate to put the entire virtualenv into version control because the Python executable is a binary, there are symlinks from the lib directory to the system Python, and also .so files (binary) in the lib directory.  These all

  1   2   >