Re: [pylons-discuss] Poetry and Pyramid

2020-12-13 Thread Matt Feifarek
visit > https://groups.google.com/d/msgid/pylons-discuss/ED50998D-5172-4F12-9674-B7E8028D76BE%40gmail.com > <https://groups.google.com/d/msgid/pylons-discuss/ED50998D-5172-4F12-9674-B7E8028D76BE%40gmail.com?utm_medium=email_source=footer> > . > -- *Matt Feifarek* (he/him/his) +1.60

Re: [pylons-discuss] pyramid_mako ribbon obscures docs

2013-11-08 Thread Matt Feifarek
Make your browser more narrow, and the thing jumps up to supa-size. On Wed, Nov 6, 2013 at 5:41 PM, Michael Merickel mmeri...@gmail.com wrote: All I see is the normal github sash. Sounds like a browser/your computer issue. On Wed, Nov 6, 2013 at 5:38 PM, Mike Orr sluggos...@gmail.com

Re: need your help to overhaul docs

2012-02-06 Thread Matt Feifarek
On Fri, Feb 3, 2012 at 9:53 PM, Chris McDonough chr...@plope.com wrote: Can you convince your company to donate US $1K to this effort? The money would be collected by Agendaless and transfered to Graham as soon as we reached our goal. I'm an indie, so no, but I can personally pledge $100,

using route_path to generate without slash prefix

2011-09-25 Thread Matt Feifarek
I want to use pyramid's request.route_path() to make links that are relative... ie, that do not start with /. My route is declared thus: config.add_route('render_page', '/{page}.html') My view: @view_config(route_name='render_page') def render_template(request): page =

Re: Calling another view callable

2011-08-13 Thread Matt Feifarek
On Sat, Aug 13, 2011 at 11:59 AM, kes schue...@gmail.com wrote: I am looking for a way to call another view callable from one of my views and have it return a Response object, without the caller needing to know how it was rendered. I don't think that it should be anything special; they're

Re: Pyramid transactions and other request lifecycle events

2011-08-04 Thread Matt Feifarek
On Thu, Aug 4, 2011 at 12:44 AM, Mike Orr sluggos...@gmail.com wrote: The transaction should fail when the update query is run, not when it commits. So you shouldn't set the 'authenticated' flag until the query finishes without error. Good advice, but not possible in this case; I'm using

Re: Pyramid transactions and other request lifecycle events

2011-08-04 Thread Matt Feifarek
On Thu, Aug 4, 2011 at 12:06 PM, Chris McDonough chr...@plope.com wrote: I kinda feel like there is still a larger question here, though... using transaction manager, code that is executed in a view callable doesn't *really* finish till after the users' function is over... so there's no

Re: Pyramid transactions and other request lifecycle events

2011-08-04 Thread Matt Feifarek
On Thu, Aug 4, 2011 at 1:37 PM, Chris McDonough chr...@plope.com wrote: when using transactions, how all-in does one have to go? I guess in a sense the answer is none and a lot at the same time. The transaction machinery provides a hook to do something based on the commit status. If the

Re: Pyramid transactions and other request lifecycle events

2011-08-03 Thread Matt Feifarek
On Tue, Aug 2, 2011 at 11:48 PM, Michael Merickel mmeri...@gmail.comwrote: Ben was investigating the idea of tying pyramid_beaker to a transaction, but I'm not sure if anything ever came of it. Maybe we should resurrect the idea. It seems to make sense. In fact, an argument could be made

Re: Pyramid transactions and other request lifecycle events

2011-08-03 Thread Matt Feifarek
On Wed, Aug 3, 2011 at 1:12 PM, Chris McDonough chr...@plope.com wrote: In fact, an argument could be made that if a transaction fails, the entire contents of the view callable should not execute... We don't know whether the transaction failed until the view callable is called. The

Pyramid transactions and other request lifecycle events

2011-08-01 Thread Matt Feifarek
I am using tm2 in my Pyramid application, and both ZODB and pyramid_mailer are hooking into that. However, other events related to the request lifecycle are not aware of transactions and are thusly causing suprising behavior that might be worth discussion. For example, I create a new object from

Re: Pyramid transactions and other request lifecycle events

2011-08-01 Thread Matt Feifarek
On Mon, Aug 1, 2011 at 11:19 AM, Carlos de la Guardia carlos.delaguar...@gmail.com wrote: You can register a callback that is called after the transaction ends, so that the logging can be done there. See this page, near the end o That's interesting, but kinda defeats the purpose of logging

Re: FormBuild text returns #34;text#34

2011-07-29 Thread Matt Feifarek
I don't know formbuild, but if it's using webhelpers, it appears that webhelpers might be escaping parts of the tag... 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

Pyramid and ZODB with Blobs

2011-07-12 Thread Matt Feifarek
I'd like to use ZODB Blob support... I found this tutorial for ZEO: http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/zeo.html If one did NOT want to use zeo, and therefore not the zeo.conf, how can we tell Pyramid to use blobs? Perhaps it's a setting on PersistentApplicationFinder()

Re: Pyramid and ZODB with Blobs

2011-07-12 Thread Matt Feifarek
On Tue, Jul 12, 2011 at 4:14 PM, Matt Feifarek matt.feifa...@gmail.comwrote: I'd like to use ZODB Blob support... I found this tutorial for ZEO: http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/zeo.html If one did NOT want to use zeo, and therefore not the zeo.conf, how can we

deform: FileUploadTempStore implementation?

2011-07-12 Thread Matt Feifarek
I'm a little fuzzy on FileUploadTempStore: I understand that the example MemoryTmpStore() is not recommended for production, but it doesn't appear that it actually does anything interesting, as it's just a tiny bit of frosting on a dict. Where does filedata actually go when it's posted? Does some

Re: deform: FileUploadTempStore implementation?

2011-07-12 Thread Matt Feifarek
On Tue, Jul 12, 2011 at 6:57 PM, Chris McDonough chr...@plope.com wrote: How much money would it take for us to not have a conversation about deform tempstores? ;-) $0.00 To be honest, this is a supercomplex feature. I don't think I can really explain it adequately in narrative, at least

Re: Help with Authentication and Authorization

2011-07-11 Thread Matt Feifarek
On Mon, Jul 11, 2011 at 3:12 PM, Raoul Snyman raoul.sny...@gmail.comwrote: I've just spent the better part of the weekend scouring the docs for some mention or example of how to do auth (both authentication and authorisation) from the database, and gave up and decided to roll my own, because

webhelpers: howto send an attribute that is not a valid python identifier

2011-07-03 Thread Matt Feifarek
Hi there. I want to make a tag like this: form action=go accept-charset=utf-8 class=goform Of course, accept-charset is an expression in Python, not a valid identifier. I'm aware that for reserved words, we append an underscore (class - class_) but is there a proper way to send accept-charset?

Re: webhelpers: howto send an attribute that is not a valid python identifier

2011-07-03 Thread Matt Feifarek
On Sun, Jul 3, 2011 at 7:00 PM, Mike Orr sluggos...@gmail.com wrote: Thatt's the proper way. I suppose we could change it to replace '_' in the keyword args with '-', if people think it's a generally good idea. That seems like it might bite you one day in the future. :-) -- You received

Re: Widget oriented

2011-07-01 Thread Matt Feifarek
On Thu, Jun 30, 2011 at 11:02 PM, Eric Rasmussen ericrasmus...@gmail.comwrote: I've been stalling for months on writing a tutorial to demonstrate how you can structure a UI-rich application with Pyramid, partly because it'd rely heavily on YUI for the client-side features, and that's not

Re: deform_mako stab

2011-07-01 Thread Matt Feifarek
On Thu, Jun 30, 2011 at 8:53 PM, Chris McDonough chr...@plope.com wrote: I'd just copy the deformdemo into pyramid_mako and make sure its tests pass after changing the copy to use Mako. Rinse, lather, repeat forever as you maintain pyramid_mako. Roger. Right now I can view all the examples

deform_mako stab

2011-06-30 Thread Matt Feifarek
Hi gang. I put up a (fork of jayd3e's) repo for deform_mako templates: https://github.com/mfeif/deform_mako I converted ALL of the templates, and attempted to stay as true to the original as possible (not implementing any style/markup changes from the .pt files). I'm sure I broke a couple of

Re: Deform and Mako

2011-06-26 Thread Matt Feifarek
On Fri, Jun 24, 2011 at 10:02 PM, Chris McDonough chr...@plope.com wrote: Not really. As far as I can tell, adding a css_class to the mix only puts it into the input tag, not any of the containing markup. So, doing something trivial like putting some text-inputs side-by-side is not

Re: Deform and Mako

2011-06-24 Thread Matt Feifarek
On Fri, Jun 24, 2011 at 4:35 PM, Chris McDonough chr...@plope.com wrote: I mean, you sort of already have that capability, or at least it's possible to add classes to do this. Not really. As far as I can tell, adding a css_class to the mix only puts it into the input tag, not any of the

Deform and Mako

2011-06-22 Thread Matt Feifarek
Is there a community project to port the templates in Deform to Mako? If so, is there a repo anywhere, and maybe I can help? I'm liking deform mostly, but I know that I will need to customize some of the layout a bit... and I'm a mako guy. It seems that if you're in for a penny, you're in for a

Looking for advice styling deform forms

2011-06-22 Thread Matt Feifarek
Hi. I'm working with deform. I'm resisting the urge to make my own templates, as my needs are not all that custom; I simply want to do simple things like having radio choices side-by-side rather than stacked up, or having some fields on the left column, some in the right. So, I'm looking at the

Pyramid, traversal, and file-extensions -- not possible?

2011-06-11 Thread Matt Feifarek
I'm interested in making an API for a resource-tree, and in having the URLs qualified in part by file extension (xxx.json). The docs mention discriminating based on XHR and mimetype, which I grok, but it's much easier to debug and view sent data by simply changing the URL. There is some chatter

Pyramid and access to basic useful objects outside of view callables

2011-06-11 Thread Matt Feifarek
Hi there. I'm a relatively long-time Pylons user, starting to work with Pyramid. I like what I see, but am suffering a bit on where to find things. I'm using traversal and a resource tree in my app (zodb template) and am enjoying this pattern... but I can't seem to find ways to hook onto basic

Re: Pyramid and access to basic useful objects outside of view callables

2011-06-11 Thread Matt Feifarek
On Sat, Jun 11, 2011 at 3:36 PM, Danny Navarro j...@dannynavarro.net wrote: I see Pyramid as just an application (a WSGI app) that just takes requests and returns responses. The rest of Pyramid functionality is to configure the application in the way it processes the requests and returns the

Error when following pyramid wiki tutorial.

2011-04-01 Thread Matt Feifarek
Hello. Long-time Pylons user here. I'm just starting to learn Pyramid, and was starting with the wiki tutorial here: http://docs.pylonsproject.org/projects/pyramid/1.0/tutorials/wiki/index.html When I get to the step of running the app for the first time: $paster serve development.ini --reload

Re: Good hosting recommendations?

2011-03-29 Thread Matt Feifarek
Linode is absolutely great. Good deal, too. Their naked installs take some config to get up to speed, at least they did. Some of the new deploy-script stuff (like Silver Lining type things) might help you automate that process, or even making your own .deb that is empty but requires all the stuff

Re: Pyramid book at PyCon

2011-03-26 Thread Matt Feifarek
Thanks; sorry if it was an obtuse question. On Fri, Mar 25, 2011 at 1:21 PM, Chris McDonough chr...@plope.com wrote: Yes... there's only one set of docs and this is a printed edition of the Pyramid documentation... -- You received this message because you are subscribed to the Google

Re: Pyramid book at PyCon

2011-03-25 Thread Matt Feifarek
On Sat, Mar 5, 2011 at 12:03 PM, Chris McDonough chr...@plope.com wrote: FYI, a printed edition of the Pyramid documentation (The Pyramid Web Application Development Framework) will be available at the PyCon bookseller during the conference. The book covers Pyramid 1.0. Is this the same

Re: How do I use pylons on GAE?

2010-06-16 Thread Matt Feifarek
Nope, it's all hacks. It can be done, but it requires some monkeying. GAE does WSGI, but not Paste, an that's the tricky bit. On Wed, Jun 16, 2010 at 1:39 AM, marc marcroy.ol...@gmail.com wrote: I might be missing something(or maybe just being a newbie). But is the only way to get pylons to

Re: Simple POST with JSON as the body of the request.

2010-06-01 Thread Matt Feifarek
This firefox plug-in is nice for this sort of debugging: https://addons.mozilla.org/en-US/firefox/addon/2691/ https://addons.mozilla.org/en-US/firefox/addon/2691/ -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send

Re: __after__() to return response

2010-05-18 Thread Matt Feifarek
On Tue, May 18, 2010 at 12:23 PM, Melih Onvural melih.onvu...@gmail.comwrote: However, it looks as if I do: def __after__(self): return render(/api/apiresponse.xml) It isn't actually pushing it back as the response to the call. Is this possible with Pylons? I think Pylons expects

Re: helpers and link_to

2010-05-17 Thread Matt Feifarek
On Mon, May 17, 2010 at 11:10 AM, gazza burslem2...@yahoo.com wrote: [${h_link_to('review order',h.url_for(controller='client',action='clientorderlist',id=c.id))}] Can't you just to the following? ${h_link_to('review order', 'span%s/span' %

Re: YUI CSS grids deprecated in 3.1?

2010-04-26 Thread Matt Feifarek
On Sat, Apr 24, 2010 at 3:21 PM, JohnWShipman j...@nmt.edu wrote: Should I stay with 2.8.0r4? Can anyone tell me why this package is deprecated, or suggest a suitable alternative that has the features of YUI's CSS Reset stylesheet and a grid layout? First, notice that Reset (and Fonts) has

Re: YUI CSS grids deprecated in 3.1?

2010-04-26 Thread Matt Feifarek
On Mon, Apr 26, 2010 at 1:29 PM, Jens Hoffrichter jens.hoffrich...@gmail.com wrote: We have worked now for a couple of projects with Blueprint, http://www.blueprintcss.org/ - I can really recommend that, it makes I really like the ideas of Blueprint and also the 960 one mentioned earlier.

Re: Advanced/complex form design strategies in Pylons (vs Django)

2010-04-10 Thread Matt Feifarek
On Sat, Apr 10, 2010 at 9:12 AM, Marius Gedminas mar...@gedmin.as wrote: Maybe I'm tilting at windmills here and should just 'go with the flow' - however I'd be interested in hearing feedback from others on this. Are there any specific features of Pylons that improve over this default

Re: DOS attacks

2010-04-07 Thread Matt Feifarek
On Tue, Apr 6, 2010 at 6:45 PM, gazza burslem2...@yahoo.com wrote: I was told to use mod evasive with apache? I dont have any firewall I'm running on a VPS on linux with a pylons web server. If indeed it is small numbers of IPs, don't forget about tcpwrappers (hosts.allow and hosts.deny);

Re: best practices when writing controllers

2010-04-05 Thread Matt Feifarek
On Mon, Apr 5, 2010 at 10:34 AM, Mike Orr sluggos...@gmail.com wrote: Philosophically, the model shouldn't have any structural (WSGI- or HTTP-specific) or UI (HTML-specific) code in it. The input values are coming from POST parameters, which the model shouldn't know about. The model

Re: truncated responses for some browsers?

2010-03-08 Thread Matt Feifarek
On Mon, Mar 8, 2010 at 3:53 PM, joesgroups joes.mailing.li...@gmail.comwrote: This seems like a pretty heinous error, is there really no feedback on it? Is there any additional information I could supply? Again this problem doesn't occur with wget, but occurs with most browsers. To test

Re: truncated responses for some browsers?

2010-03-08 Thread Matt Feifarek
On Sat, Mar 6, 2010 at 8:03 AM, joesgroups joes.mailing.li...@gmail.comwrote: return http://www.google.com/search?test; The result is that in firefox or safari the browser shows, http://m.google.com/se This may be a typo, but you see that those are not just one truncated to the other,

Re: Pylons and images from database

2010-02-24 Thread Matt Feifarek
On Tue, Feb 23, 2010 at 4:08 PM, gazza burslem2...@yahoo.com wrote: I think I've opted to store on disc. I guess there are two camps regarding this. If you're worried about filename integrity (including full path) you can hash the files and store the fingerprints. I've done that before; works

Re: WSGI at PyCon

2010-02-18 Thread Matt Feifarek
On Wed, Feb 17, 2010 at 5:20 PM, Mike Orr sluggos...@gmail.com wrote: I've written up a semi-radical proposal to replace Pylons' WSGI stack with a WebOb-based stack, so this will also be among the discussions. With the impasse on getting WSGI to Python 3, some of us are impatient to just go

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

2010-02-17 Thread Matt Feifarek
I haven't used it with Pylons (yet) but Wing does have that nifty remote debugging feature. Have you tried that? On Tue, Feb 16, 2010 at 8:46 AM, Jamie jjbe...@gmail.com wrote: Thanks, but unfortunately automatic reloading doesn't normally work correctly from within the IDEs I've tested:

Re: Upgraded to Pylons==dev, getting traceback from pkg_resources

2010-01-06 Thread Matt Feifarek
On Wed, Jan 6, 2010 at 12:13 AM, Mike Orr sluggos...@gmail.com wrote: That's what I hate about Paste and entry points and pkg_resources. + 1Jillion. Thanks for your suggestions. I tried all of those things; I even removed the version numbers in my app (from Pylons=0.9.7 to just Pylons) but

Re: How extensible is AuthKit?

2010-01-05 Thread Matt Feifarek
On Mon, Jan 4, 2010 at 11:57 AM, James Gardner ja...@pythonweb.org wrote: One tip though, I now believe using exceptions to trigger the 401 and 403 responses and then intercepting them in WSGI middleware is not a good design pattern. New code I'm working on generates a normal response in the

Upgraded to Pylons==dev, getting traceback from pkg_resources

2010-01-05 Thread Matt Feifarek
I upgraded a working Pylons 0.9.7 app to the new semantics from Pylons 1.0 (via pip install pylons==dev). When I try to run the appserver, I get a traceback: $ paster serve --reload localpylons.ini Traceback (most recent call last): File /home/work/Mayhem/web/pylonsve/bin/paster, line 9, in

Re: Upgraded to Pylons==dev, getting traceback from pkg_resources

2010-01-05 Thread Matt Feifarek
On Tue, Jan 5, 2010 at 11:13 PM, Matt Feifarek matt.feifa...@gmail.comwrote: I upgraded a working Pylons 0.9.7 app to the new semantics from Pylons 1.0 (via pip install pylons==dev). When I try to run the appserver, I get a traceback: Here's an easily reproducible case: *w...@dude

Re: GAE with SDK 1.30

2009-12-28 Thread Matt Feifarek
On Sun, Dec 27, 2009 at 5:32 PM, Ben Bangert b...@groovie.org wrote: The interactive traceback can't work as there's no guarantee the same machine will handle the same request, nor will GAE retain the process between requests with any certainty. Sure, but I'm talking about running on the SDK

GAE with SDK 1.30

2009-12-20 Thread Matt Feifarek
Has anyone tried the new release of the GAE SDK? I am basically following Jason's work here: http://countergram.com/articles/pylons-google-app-engine/ And I can get Pylons to run, but the interactive traceback doesn't work. First, it seems that one has to change the StatusCodeRedirect() line in

Re: Roadmap / 0.10 / 1.0

2009-12-19 Thread Matt Feifarek
On Fri, Dec 18, 2009 at 7:41 PM, Mike Orr sluggos...@gmail.com wrote: There aren't any significant new features in tip from an application perspective, so there's little reason to use it now unless you want to Thanks for the clear, useful answer. -- You received this message because you are

Roadmap / 0.10 / 1.0

2009-12-18 Thread Matt Feifarek
First: I SINCERELY hope that I do not start a round of whining, because I am definitely NOT whining. I am grateful for Pylons and for the support of my betters in this list. I would ask that any responders to my message NOT use this as a jumping-off point for whining or bullying, because it is

Re: Context object list and controllers + html

2009-11-09 Thread Matt Feifarek
On Mon, Nov 9, 2009 at 4:47 PM, gazza burslem2...@yahoo.com wrote: from the c.chosenList: say the list is2,4 INPUT TYPE=hidden NAME=listitems VALUE=${c.chosenList} / Within testController: def test(self,id): locallist = request.params.get(listitems) for index,item in

Re: Syndication

2009-11-05 Thread Matt Feifarek
On Thu, Nov 5, 2009 at 5:39 PM, Mike Orr sluggos...@gmail.com wrote: I've implemented the feeds at http://incidentnews.gov/ , in both RSS and Atom. If somebody could check the HTML and feed XML for errors, I'd be grateful. There are permanent links in the page footer, temporary links in

Re: redirect after download?

2009-11-02 Thread Matt Feifarek
On Mon, Nov 2, 2009 at 9:14 AM, Tim Bock jtb...@daylight.com wrote: I did note Matt's suggestion of the META tag in an earlier email, but a quick google search didn't yield anything that I was able to connect with downloading. But as you've indicated that this is a common If you

Re: New Pylons on AppEngine article in wiki

2009-11-02 Thread Matt Feifarek
On Sun, Nov 1, 2009 at 11:06 AM, Matt Feifarek matt.feifa...@gmail.comwrote: On Thu, Oct 29, 2009 at 3:19 PM, reco r...@nex9.com wrote: just tried the wiki page i got the following probs: File lib/setuptools-0.6c11-py2.5.egg/pkg_resources.py, line 24, in module from os import utime

Re: New Pylons on AppEngine article in wiki

2009-11-01 Thread Matt Feifarek
On Thu, Oct 29, 2009 at 3:19 PM, reco r...@nex9.com wrote: just tried the wiki page i got the following probs: File lib/setuptools-0.6c11-py2.5.egg/pkg_resources.py, line 24, in module from os import utime, rename, unlink, mkdir ImportError: cannot import name mkdir INFO

Re: redirect after download?

2009-11-01 Thread Matt Feifarek
On Fri, Oct 30, 2009 at 1:06 PM, Mike Orr sluggos...@gmail.com wrote: Somehow this issue doesn't come up on other sites. I'm not sure if you have unusual requirements or you're not considering all the UI possibilities. Maybe it's because when people download something, daysyn, don't forget

Re: redirect after download?

2009-11-01 Thread Matt Feifarek
On Sun, Nov 1, 2009 at 1:03 PM, Mike Orr sluggos...@gmail.com wrote: Will that work with downloads? What if the download isn't finished by the refresh timeout? Interesting question. I don't know. Though, people like Sourceforge have been doing this for years. Maybe once the download

Re: redirect after download?

2009-10-29 Thread Matt Feifarek
On Thu, Oct 29, 2009 at 3:12 PM, Mike Orr sluggos...@gmail.com wrote: I would like to be able to redirect the user to another page after the download has been initiated, or at least put up a yay, it's finished page, but that doesn't appear to be possible. So I was What about turning

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

2009-10-28 Thread Matt Feifarek
On Sat, Oct 24, 2009 at 7:58 PM, Jason S. jas...@tuffmail.com wrote: This is a major rework of my GAE/Pylons article, which requires fewer steps now. There's no Paste patch, and it still uses a regular INI Better and better. The more I think about it, the more I would *prefer* to run in the

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

2009-10-28 Thread Matt Feifarek
On Wed, Oct 28, 2009 at 3:46 PM, Mike Orr sluggos...@gmail.com wrote: You can also disable other middlewares you're not using in middleware.py, such as sessions. Sessions are stored in datastore by buffet, right? Wouldn't one want to keep sessions? (I suppose it depends on the app, but most

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

2009-10-28 Thread Matt Feifarek
On Wed, Oct 28, 2009 at 4:44 PM, Mike Orr sluggos...@gmail.com wrote: Not Buffet. render_mako doesn't use Buffet. The older pylons.templating.render used Buffet. But Mako was designed to separate template lookup from rendering, so that you can drop in an alternate TemplateLookup class for

Re: map.connect to convert to GET parameters?

2009-10-23 Thread Matt Feifarek
On Fri, Oct 23, 2009 at 2:48 PM, d2ncal d2n...@gmail.com wrote: However, to get the above working, I will have to change the declaration of view() action in profile controller to accept username as an argument. It already check for username in 'GET'. I want to keep the old method working along

Re: New Pylons on AppEngine article in wiki

2009-10-22 Thread Matt Feifarek
I would love a little feedback on this... Bump ;-) On Fri, Oct 16, 2009 at 8:42 PM, Matt Feifarek matt.feifa...@gmail.comwrote: http://wiki.pylonshq.com/display/pylonscookbook/Pylons+Running+on+Google+AppEngine This how-to tries to get Pylons running on GAE with as little customization

Re: pylons on GAE long wake up time on first request

2009-10-22 Thread Matt Feifarek
On Wed, Oct 21, 2009 at 12:24 PM, Ben Bangert b...@groovie.org wrote: But the sad thing is that its definitely not unusual, nor limited to Pylons. Very good to know; may save some of us some wild goose chasing. --~--~-~--~~~---~--~~ You received this message

Re: Pylons on Google App Engine article

2009-10-16 Thread Matt Feifarek
On Fri, Oct 16, 2009 at 1:04 PM, Ian Bicking i...@colorstudy.com wrote: I remember at some point having a problem with pip installing the Paste packages, and paste/__init__.py was missing. I think I was working on an actual app so I punted and created the file manually, and didn't try to

Re: Pylons on Google App Engine article

2009-10-15 Thread Matt Feifarek
On Thu, Oct 15, 2009 at 12:10 AM, Ian Bicking i...@colorstudy.com wrote: I personally got too annoyed with testing and general interactivity (there's a nose extension though, which I cribbed from -- but I never actually got it to work myself). This process has been EXTREMELY annoying. I've

Re: Pylons on Google App Engine article

2009-10-15 Thread Matt Feifarek
On Thu, Oct 15, 2009 at 12:41 PM, Jason S. jas...@tuffmail.com wrote: I still don't get setuptools. I don't understand namespace packages, or rather their deployment. I don't get why I can't move (for example) paste, and the Paste* items to another directory that is ON sys.path and have it

Re: pylons on GAE long wake up time on first request

2009-10-15 Thread Matt Feifarek
On Wed, Oct 14, 2009 at 8:57 AM, reco r...@nex9.com wrote: I am experimenting with pylons on GAE 1.2.5 following this documentation: http://wiki.pylonshq.com/pages/viewpage.action?pageId=17465426 I wrote that; I also wouldn't follow it at this point ;-) Sorry; it DOES work, but another

Re: Pylons on Google App Engine article

2009-10-15 Thread Matt Feifarek
On Thu, Oct 15, 2009 at 2:21 PM, Mike Orr sluggos...@gmail.com wrote: On Thu, Oct 15, 2009 at 9:59 AM, Matt Feifarek matt.feifa...@gmail.com wrote: This process has been EXTREMELY annoying. I've spent many hours trying to get things to work that I should have been spending working on my

Re: Pylons on Google App Engine article

2009-10-14 Thread Matt Feifarek
Very nice. This seems much better than my own recent work... I think it's a mistake to start with appengine-homedir... better to just start from stock Pylons and hack it till it works on GAE. That's been my discovery over the last few days, but I haven't patched my Pylons Wiki article yet. I'll

Re: Testing controllers on Google AppEngine: can it be done?

2009-10-13 Thread Matt Feifarek
On Sun, Oct 11, 2009 at 4:03 PM, Ian Bicking i...@colorstudy.com wrote: Testing should work fine -- the key is if you use appengine-homedir, it'll setup your data store in sitecustomize.py (automatically on Python startup), then you get your application instance by calling make_app directly.

Re: Pylons on Google App Engine

2009-10-10 Thread Matt Feifarek
This sound really promising. On Sat, Oct 10, 2009 at 9:15 PM, Jason S. jas...@tuffmail.com wrote: I just got a hello-world Pylons app running on GAE without using the appengine-monkey/homedir scripts and using the stock paster template (and an INI file). I'm not sure if I'm going to use GAE

Testing controllers on Google AppEngine: can it be done?

2009-10-09 Thread Matt Feifarek
I've been working on getting Pylons running on GAE and documenting my discoveries. (see thread here: http://groups.google.com/group/pylons-discuss/browse_thread/thread/fa7d8defef1babfa/a16416074cca2660?lnk=raot# ) I seem to have stumped myself as far as running tests with WebTest et al. Since

Re: Pylons on Google App Engine

2009-10-08 Thread Matt Feifarek
Thanks for the answers and clarifications... more below. On Thu, Oct 8, 2009 at 3:03 AM, Mike Orr sluggos...@gmail.com wrote: Feel free to link to it on the other page, or to paste the whole thing into that page. Will-do. And I'll fix the error you pointed out, change the thanks

Re: Pylons on Google App Engine

2009-10-08 Thread Matt Feifarek
On Thu, Oct 8, 2009 at 3:35 AM, Mike Orr sluggos...@gmail.com wrote: An egg is a Python package accompanied by its metadata. An egg can contain more than one package, but always one metadata. There are two file formats for eggs: ... Thanks for all of that. It helps. A lot. I'll look at

Re: Pylons on Google App Engine

2009-10-08 Thread Matt Feifarek
On Thu, Oct 8, 2009 at 3:29 PM, Mike Orr sluggos...@gmail.com wrote: This leads to two questions: 1. Can we simply delete that stuff ? It would make it harder to manage the app going forward. Can we delete what? Sorry; I edited out the part that would have made that more clear. What I

Re: Pylons on Google App Engine

2009-10-08 Thread Matt Feifarek
On Thu, Oct 8, 2009 at 3:29 PM, Mike Orr sluggos...@gmail.com wrote: On Thu, Oct 8, 2009 at 11:32 AM, Matt Feifarek matt.feifa...@gmail.com wrote: I'm not sure I'm up to that task (I use Pylons a lot, but kindof tune-out the parts about PasteDeply/Script, SetupTools, etc. Even if you

Re: Pylons on Google App Engine

2009-10-07 Thread Matt Feifarek
On Wed, Oct 7, 2009 at 1:27 AM, Mike Orr sluggos...@gmail.com wrote: None has been mentioned on the list. The thread you found is the latest. If you have time to figure out the easiest install procedure for Pylons on App Engine and to update the howto, it would be a contribution to Pylons.

Re: Pylons on Google App Engine

2009-10-07 Thread Matt Feifarek
On Wed, Oct 7, 2009 at 1:27 AM, Mike Orr sluggos...@gmail.com wrote: None has been mentioned on the list. The thread you found is the latest. If you have time to figure out the easiest install procedure for Pylons on App Engine and to update the howto, it would be a contribution to Pylons.

Re: Using Django Forms with Pylons (and a successor to @validate?)

2009-10-02 Thread Matt Feifarek
On Fri, Oct 2, 2009 at 11:32 AM, Marcus Cavanaugh marcuscavana...@gmail.com wrote: I've switched to using django.forms with Pylons, and I really like the change so far. I've posted a writeup, and a drop-in module, on using django.forms with Pylons here: This looks great, Marcus. Every now

Re: Does pylons populate the request object when @validate kicks in?

2009-06-26 Thread Matt Feifarek
On Wed, Jun 24, 2009 at 11:08 AM, afrotypa ovuaia...@gmail.com wrote: @restrict('POST') @validate(schema=TestSchema(), form='edit', post_only=False, on_get=True) def save(self, id=None): I'm not following your full question, but right-off, I see a contradiction up there: If you restrict

Sprint at PyCon?

2009-02-17 Thread Matt Feifarek
Hi Gang(s). Will there be any sprint(s) for pylons and pylons-related projects (routes, webhelpers, paste) at PyCon next month? The PyCon website doesn't seem to think so, but it doesn't seem to know much, so I thought I'd ask. Thanks. --~--~-~--~~~---~--~~ You

Re: Sprint at PyCon?

2009-02-17 Thread Matt Feifarek
On Tue, Feb 17, 2009 at 6:28 PM, Mike Orr sluggos...@gmail.com wrote: Will there be any sprint(s) for pylons and pylons-related projects (routes, webhelpers, paste) at PyCon next month? Yes, but what exactly we'll be working on has not been decided. Cool! I plan to attend PyCon, and

Re: monit + pylons under Ubuntu 8

2009-02-06 Thread Matt Feifarek
On Mon, Jun 9, 2008 at 3:18 PM, Jonathan Vanasco jonat...@findmeon.comwrote: I'm new to ubuntu, and their syntax for scripts seems to differ from all the examples i've seen floating in the pylons community ( ie. lots of errors ) One thing that might help, is that by default, Ubuntu isn't

Re: clean up after session finished

2009-02-04 Thread Matt Feifarek
On Wed, Feb 4, 2009 at 3:10 PM, Mike Orr sluggos...@gmail.com wrote: You don't know when the user closes the browser. In fact, you don't know anything after the user's last request, whether you will hear from them again or not. Right, but I've always wanted this... although it is stateless,

Book/donation

2009-01-20 Thread Matt Feifarek
Hi Ben (and Pylons list). I've been thinking of buying The Definitive Guide to Pylons from Apress, but am realizing that I'd rather read it on-screen (syntax-highlighting, search, cut-n-paste, etc.) BUT, I know that writing books is one of the ways that contributors to Free Software can make a

Re: Book/donation

2009-01-20 Thread Matt Feifarek
No, I did not. But anyway, PDF sucks (no color-coding, no download links, hard to read compared to a browser, etc.) I'm hoping for http://pylonsbook.com/ But if Ben's preference is that we should buy the PDF, I might just do that. I'd just rather a more direct approach. But thanks for the tip.

Re: Book/donation

2009-01-20 Thread Matt Feifarek
On Tue, Jan 20, 2009 at 2:14 PM, Wyatt Baldwin wyatt.lee.bald...@gmail.comwrote: I haven't seen the PDF, but there's no reason it couldn't have syntax highlighting or download links is there? Does anyone know if it does? The sample-chapter PDF that they have has no code examples, but there's

Re: Flickr tutorial under 0.9.7?

2008-12-18 Thread Matt Feifarek
On Wed, Dec 17, 2008 at 6:19 PM, Ben Bangert b...@groovie.org wrote: I've updated the front page in the codebase which will soon be up at http://beta.pylonshq.com/, to properly reflect what's in Pylons 0.9.7. Should be deployed there shortly. I'm also getting most of the links fixed up so

Re: Displaying Data in a grid

2008-10-17 Thread Matt Feifarek
On Fri, Oct 17, 2008 at 5:12 AM, Toby Catlin [EMAIL PROTECTED] wrote: I am sure this has been done before but i am having trouble finding any references to existing code. As i don't want to reinvent the wheel i was hoping someone could point me to the right place. I have been building a

Is there some kind of on_shutdown handler for paster serve and/or session?

2008-09-10 Thread Matt Feifarek
I'd like to stick some code somewhere where it will be run right before a graceful shutdown. I realize that this isn't very reliable, as things can crash, but it's for a kind-of hack anyway. I also realize that WSGI isn't really built this way; pylons doesn't assume that it's running as a

Re: Question about session storage and persistence

2008-09-09 Thread Matt Feifarek
On Thu, Sep 4, 2008 at 7:36 PM, Ben Bangert [EMAIL PROTECTED] wrote: Setting a specific expiretime should do it, unfortunately this value needs to be a timedelta or datetime value, so in your projects lib/environment.py, after the config.init function was called, add: from datetime import

Re: Question about session storage and persistence

2008-09-09 Thread Matt Feifarek
On Tue, Sep 9, 2008 at 11:27 AM, Matt Feifarek [EMAIL PROTECTED]wrote: from datetime import timedelta config['beaker.session.cookie_expires'] = timedelta(minutes=20) And that should do the trick. I tried this, but it basically invalidates all session activity. I tried it again on another

Question about session storage and persistence

2008-09-04 Thread Matt Feifarek
I'm having trouble getting sessions to persist across a server up/down. Even when I use: beaker.session.type = file The session data itself (verified by the pickle files on the disk in %(here)s/data) is there past the paster restart, but it gets disconnected from the session itself (the user,

  1   2   >