paster shell seems not to work in msys/mingw32 environment

2007-10-14 Thread Eric Ongerth
I've been using msys/mingw32 as a poor-man's-Linux-like shell on my Windows box, and thus far it's served well enough in my study of Pylons... except I just found that the command paster shell doesn't work properly in it. Seems to work fine in a Windows XP command shell, gives access to my model

request.params... passing None vs. u'None'

2008-02-14 Thread Eric Ongerth
Newbie here, but getting somewhere. But I just hit this one problem, the straightening out of which will hopefully also cure me of some related misconceptions or poor assumptions. In one of my mako templates, I have something like the following. The trouble I am having is with passing the

Re: request.params... passing None vs. u'None'

2008-02-16 Thread Eric Ongerth
. Pylons can't interpret the u'None' value for you because it is ambiguous - did the user type in 'None' and submit, or is this 'None' the actual python None. hth, Chris On Feb 14, 3:53 pm, Eric Ongerth [EMAIL PROTECTED] wrote: Newbie here, but getting somewhere. But I just hit this one problem

Hint: In case you are looking for button_to_remote

2008-02-17 Thread Eric Ongerth
This held up my pursuit of AJAX for a few frustrating hours. Nobody's fault but mine; however, I'm posting about it in case the following can be useful in anyone else's learning process. The following may sound like it's written for idiots if you are well versed in AJAX or at least Javascript.

Re: Hint: In case you are looking for button_to_remote

2008-02-18 Thread Eric Ongerth
results lead them to read this thread might be just as early in the process of grasping AJAX as I was yesterday. Thanks for the CSS idea too. On Feb 18, 9:38 am, Cliff Wells [EMAIL PROTECTED] wrote: On Sun, 2008-02-17 at 13:06 -0800, Eric Ongerth wrote: So, you're thinking, OK, we have

paster process immortal?

2008-02-22 Thread Eric Ongerth
While learning to use Pylons, on occasion I've noticed that my site in development still responds to http even after I have pressed Ctrl-C in the shell window in which I was running paster serve --reload development.ini. At first I figured that it was just a result of caching behavior...

Re: paster process immortal?

2008-02-23 Thread Eric Ongerth
, it would be helpful to know which browser you're using and its version. Chris On Feb 22, 11:32 am, Eric Ongerth [EMAIL PROTECTED] wrote: While learning to use Pylons, on occasion I've noticed that my site in development still responds to http even after I have pressed Ctrl-C

Re: problems with observe_field when form is inside of an update_element_function

2008-02-24 Thread Eric Ongerth
, two more fields need to be added to the form. If there's that much delay it's definitely not the smoothness for which I sought Ajax. Should I try changing this one operation to synchronous? More thanks. Eric On Feb 24, 3:48 pm, Eric Ongerth [EMAIL PROTECTED] wrote: Two cases... one works

problems with observe_field when form is inside of an update_element_function

2008-02-24 Thread Eric Ongerth
Two cases... one works, one does not, and the difference seems to be that in Case 2 (non-working) the form is displayed in the view only after the user clicks a button that triggers an update_element_function to show the form. So there seems to be something I'm not understanding -- maybe about

Re: paster process immortal?

2008-02-24 Thread Eric Ongerth
it inside of my Windows workstation, and I'm sure a lot of things will be clearer then. Eric On Feb 23, 9:14 am, Eric Ongerth [EMAIL PROTECTED] wrote: It's not 100% accurate to say I'm running Unix. I'm currently on a Windows XP box, running MSys, a tiny Unix uh, subset? - developed mainly

show_button is not defined -- error in prototype.js?

2008-02-25 Thread Eric Ongerth
I searched for show_button and found no related posts, so here goes. I frequently get the following error when working with my project, using Firebug in Firefox: show_button is not defined prototype.js(line 273) and the following error content: show_button is not defined

Re: show_button is not defined -- error in prototype.js?

2008-02-26 Thread Eric Ongerth
argument that contains script tag with show_button('extra_data_text', 'text version') as its text. Most likely it is coming from Web server response to Ajax request. On Feb 26, 2:47 am, Eric Ongerth [EMAIL PROTECTED] wrote: I searched for show_button and found no related posts, so here goes. I

Re: problems with observe_field when form is inside of an update_element_function

2008-02-26 Thread Eric Ongerth
Ok, I'll put this here for anyone else searching for the same subjects. If anyone feels I could or should have figured this out by reading the proper documents, I would like to hear that too, with specifics. Instead I didn't hook up a working version until I dug through discussions on this

Re: Route, h.url_for and url parameters

2008-03-08 Thread Eric Ongerth
Here's what I want to be able to do with Routes. I do want to be able to take advantage of the following cases of minimization, but I want to be able to explicitly call controller/action/id when the defaults i've set up are not enough.I'm curious how my scenario compares to the above

Re: Pylons Sprint in Northern California (In May or June)

2008-03-26 Thread Eric Ongerth
Ben, Is there a minimum experience level? On Mar 25, 1:52 pm, Ben Bangert [EMAIL PROTECTED] wrote: I'm looking at times to hold a Pylons Sprint, and thought I'd throw 2 dates out to see what works best for those interested in attending (and to ensure its not conflicting with some other big

Re: Auth and Auth

2008-03-27 Thread Eric Ongerth
Wow, that's great. I'm just reaching the stage of adding login/ authorization to my project, and your approach looks just like what I had in mind, but with all the unknowns filled in. Thanks for sharing. On Mar 27, 9:42 am, Wolverine [EMAIL PROTECTED] wrote: Yannick Gingras pisze: Greetings

Re: Auth and Auth

2008-04-16 Thread Eric Ongerth
John, thanks for writing and sharing your Zero-to-Sixty. I read the whole thing, and it makes Authkit look much easier to integrate and get working than what the rumors seem to indicate I look forward to reading part 3. My one suggestion: your blog-format code windows are narrow and they don't

Re: how to build template with ajax-powered select box

2008-04-21 Thread Eric Ongerth
Accessing the current value of an input field and doing something with that data is one of the exact things for which Javascript is the natural tool. You may have a valuable intuition pointing in the direction of keeping things more high-level / modular / D.R.Y. by trying to get as much done

Re: how to build template with ajax-powered select box

2008-04-21 Thread Eric Ongerth
On Apr 21, 9:58 am, Mike Orr [EMAIL PROTECTED] wrote: %include is mainly useful when the included section changes much more frequently than the surrounding template, or if you have to dynamically choose which file to include at runtime (if that even works in Mako). See related thread dynamic

Re: The Pylons Book

2008-07-11 Thread Eric Ongerth
Hi James, Visually: looks great! Good work. Typos: I saw seven typos, spelling and/or punctuation errors in under three minutes. Might want to keep the 2nd draft open for more than a week to allow time to catch more of them. I will gladly try to review as much as I can and submit some typos

Re: ***CRITICAL*** error in the Pylons / SQLA tutorial

2008-10-26 Thread Eric Ongerth
The following location needs to be updated to reflect the transactional - autocommit change too: http://docs.pylonshq.com/models.html#main-model-module It still quotes/recommends a code example containing 'transactional=true'. And paster gives a deprecation warning for this; one would hope

go-pylons.py broken on Python 2.6 in Windows?

2008-11-09 Thread Eric Ongerth
Forgive me, I'm running Windows XP at the moment, my Xubuntu-fied laptop was recently stolen. I've cleaned up my windows environment, removed Python 2.5 and everything associated with it, then installed Python 2.6. I then used ez_setup.py to get setuptools 0.6c9. I downloaded go-pylons.py from

Re: go-pylons.py broken on Python 2.6 in Windows?

2008-11-10 Thread Eric Ongerth
-virtualenv/browse_thread/thread/ffa736e7a0a9146d Cheers. On Nov 9, 4:12 pm, Eric Ongerth [EMAIL PROTECTED] wrote: Forgive me, I'm running Windows XP at the moment, my Xubuntu-fied laptop was recently stolen. I've cleaned up my windows environment, removed Python 2.5 and everything associated

Re: go-pylons.py broken on Python 2.6 in Windows?

2008-11-11 Thread Eric Ongerth
Yes, as I posted above, I'm now running Pylons cleanly on Python 2.6 with no issues. I just had to avoid the go-pylons script and set up my own virtualenv using the latest virtualenv 1.3. On Nov 11, 2:00 pm, Ben Bangert [EMAIL PROTECTED] wrote: On Nov 11, 2008, at 7:38 AM, Alex Marandon

Re: Pylons and Python 2.6 (Was: Re: go-pylons.py broken on Python 2.6 in Windows?)

2008-11-17 Thread Eric Ongerth
Neither Pylons nor Paste install correctly at this time on the Win32 platform using easy_install, whether in a virtualenv or even in a system-wide install to a clean system. Just about everything goes fine until somewhere in the installation of Paste, where an error described only as None

Re: Pylons and Python 2.6 (Was: Re: go-pylons.py broken on Python 2.6 in Windows?)

2008-11-17 Thread Eric Ongerth
 pm, Eric Ongerth [EMAIL PROTECTED] wrote: Neither Pylons nor Paste install correctly at this time on the Win32 platform using easy_install, whether in a virtualenv or even in a system-wide install to a clean system.  Just about everything goes fine until somewhere in the installation of Paste

Re: mixing authorised/unauthorised contents from controller actions

2008-11-23 Thread Eric Ongerth
Hi Lorenzo, The following can give you a lot of good ideas about the process even if you're not using AuthKit. http://pylonsbook.com/alpha1/authentication_and_authorization On Nov 23, 4:53 pm, lorenzo [EMAIL PROTECTED] wrote: Hi all,         I'm a pylons newbie, and I'm trying to wrestle

Re: Pyjamas : Python - JS

2008-12-05 Thread Eric Ongerth
I have heard that the more you try to make Javascript behave like Python, the more you end up hating Javascript -- but that says nothing about Javascript itself. Javascript is really a different language, with different strengths. Perhaps the best plan is to use Javascript for its strongest

simplejson workaround for Pylons 0.9.7 on Windows, Python 2.6

2008-12-06 Thread Eric Ongerth
I know there are still a number of Pylonistas out there in Windows land who are stuck with a Python 2.5 installation because of the current problem with simplejson. Here is a workaround that ended up succeeding, without recourse to old versions or really anything too suboptimal (except it

Re: simplejson workaround for Pylons 0.9.7 on Windows, Python 2.6

2008-12-07 Thread Eric Ongerth
to your virtualenv folder instead. Then run the installer. Then, of course, change the registry back. Anyway... just sayin'. On Dec 6, 7:08 pm, Eric Ongerth [EMAIL PROTECTED] wrote: I know there are still a number of Pylonistas out there in Windows land who are stuck with a Python 2.5

Re: templ_context / c variable getting reset after first request

2010-10-10 Thread Eric Ongerth
On Oct 6, 10:57 am, Matt H matt2...@gmail.com wrote: One thing: Why was c only being assigned once in my original code? Marius answered that when he wrote: You're doing this assignment once, when wrapping the function (i.e. at module import time). You need to do this for every request,

Re: pyramids and pylons

2010-11-06 Thread Eric Ongerth
I'm glad to see (vis a vis this discussion thread) that the elephant in the room now has a bright light shining on it. As soon as I caught wind of repoze.bfg and now pyramid, I put a couple of hours into reading through the docs. To me it was apparent even at first look that the new ontology is

Re: Notes on Pylons 1.x code-base and the Pylons Framework

2010-11-06 Thread Eric Ongerth
Ev, Surely you read enough of the docs to see that all declarative configuration in Pyramid is optional? The option to configure everything nearly the same as Pylons currently does it is right there and it is given equal treatment. Why do you describe the current plans as killing Pylons when

Re: pyramids and pylons

2010-11-06 Thread Eric Ongerth
Jeff, Pyramid allows you to mount an existing Pylons app and serve it right through without modification. Having done so, you are then free to convert the app page by page, or handler by handler or however you wish to proceed ... or leave it unchanged. Eric On Nov 6, 10:46 am, Jeff Tchang

Re: Rendering a javascript file

2010-11-11 Thread Eric Ongerth
Check the mako docs here: http://www.makotemplates.org/docs/filtering.html#filtering_expression_turning ... and also the full filtering section above that subsection. On Nov 11, 12:01 am, cropr ruben.dec...@gmail.com wrote: I am trying to dynamically modify  javascript files using

Re: Will Pyramid switch to Python 3?

2011-02-07 Thread Eric Ongerth
I searched for discussions relating webob to python 3, and this came up: http://groups.google.com/group/paste-users/browse_thread/thread/95320c9aaa571b79 That's two years out of date, so hopefully it's not all there is about this. Just what came up prominently on a quick peek. The digest of it

Re: wiki pages error

2011-02-13 Thread Eric Ongerth
It has been discussed on Freenode IRC channel when some of the devs were around, but I don't know what is being done or planned about it. On Feb 13, 2:31 pm, Guillermo Cruz webjunki...@gmail.com wrote: Hi guys,   Has anyone noticed that the wiki pages at pylonshq.com do not work, is it just

Re: some thoughts on pyramid

2011-02-15 Thread Eric Ongerth
On Feb 14, 6:02 pm, Jonathan Vanasco jonat...@findmeon.com wrote: 3. i haven't figured out yet if its possible to handle multiple db connections in pyramid.  in pylons i have sqlalchemy.write.url and sqlalchemy.read.url and handle multiple databases due to master/ slave clustering.  in order

Re: Pyramid + OWL SMW

2011-03-15 Thread Eric Ongerth
Brian, I'm very interested in this and might be able to help out in a year or two. But to be clear about the stage I'm at currently, I'm involved in a project that is more of a special case and is pursuing its own restricted semantic toolkit built on a sqlalchemy setup that is in some case

Re: Pyramid + OWL SMW

2011-03-16 Thread Eric Ongerth
Interesting, the system seems to have lost my reply sent yesterday. Did I 'reply to author' by mistake? I wanted to signal great interest in this topic, and potentially some willingness to participate and help out. However, I am currently (and probably for the next year, roughly) deeply engaged

Re: Akhet 1.0b1 released

2011-03-19 Thread Eric Ongerth
Mike, thanks for all your hard work on this! I've been using pyramid_sqla for about a month with good results. I suppose I should move over to Akhet; can you briefly summarize what would change? From reading the docs it doesn't look like much, except that SQLA was spun off, but I'd like to be

Re: Akhet 1.0b1 released

2011-03-20 Thread Eric Ongerth
to upgrade a pyramid_sqla app. There are too many name changes throughout the metadata files. On Sat, Mar 19, 2011 at 4:08 PM, Eric Ongerth ericonge...@gmail.com wrote: Mike, thanks for all your hard work on this! I've been using pyramid_sqla for about a month with good results.  I suppose I

Re: Pyramid vs. Akhet difference re: mako.strict_undefined

2011-06-13 Thread Eric Ongerth
I definitely agree that strict_undefined should be encouraged, and I have been refactoring to achieve that in my own stuff. My emphasis was just on avoiding a 'gotcha' for some. On Jun 12, 12:43 pm, Mike Orr sluggos...@gmail.com wrote: On Sun, Jun 12, 2011 at 8:08 AM, Eric Ongerth ericonge

Re: Deform and Mako

2011-06-23 Thread Eric Ongerth
+1 for humor on hardcore forking action. On Jun 23, 8:05 am, Joe Dallago jd.dall...@gmail.com wrote: P.S.  e-mail me some github usernames, and I can give you guys permission to push to the fork. On Thu, Jun 23, 2011 at 9:16 AM, Joe Dallago jd.dall...@gmail.com wrote: I would  like

Re: using declarative base in pylons project

2011-06-25 Thread Eric Ongerth
Consider using sqlahelper for this. It was made for exactly this purpose. You import it to both model.__init__.py and project.__init__.py. It can keep track of your base, engine, and session. https://bitbucket.org/sluggo/sqlahelper/overview In case you are also using Mako for templating and

Maybe should update Google Groups heading for pylons-discuss

2011-07-04 Thread Eric Ongerth
I noticed when the pylons-discuss is referred to by Google Groups, for example when it comes up in a sidebar as a suggestion under other groups you might like to read based on what you're subscribed to, we still have this as the description attached to the group name: Pylons is a Python Web

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

2011-07-04 Thread Eric Ongerth
Yeah, seems like that type of auto-replacement doesn't usually turn out to be the best way forward. I'm not using webhelpers, though, so I guess that's only a -0.02 from me on that. On Jul 3, 5:20 pm, Matt Feifarek matt.feifa...@gmail.com wrote: On Sun, Jul 3, 2011 at 7:00 PM, Mike Orr

Re: Pyramid 1.1b1 released

2011-07-12 Thread Eric Ongerth
Really happy about the convenience of the http_cache view configuration parameter. Thanks a bunch for all the hard work. E On Jul 9, 10:16 pm, Chris McDonough chr...@plope.com wrote: Pyramid 1.1b1 has been released. Here are the changes: Features - It is now possible to invoke

Re: webhelpers.html.tags.select and disabled

2011-07-19 Thread Eric Ongerth
Any reason why just passing **kwargs through wouldn't fit the need? That's exactly what I did in my own home-cooked helpers. On Jul 19, 7:34 pm, Mike Orr sluggos...@gmail.com wrote: On Tue, Jul 19, 2011 at 3:20 PM, Ross Vandegrift r...@kallisti.us wrote: Hi all, Any reason why select()

Re: Pylons can be confusing to Pyramid

2012-01-30 Thread Eric Ongerth
+1 here, even from myself who had some legacy Pylons apps lying around. On Jan 27, 6:50 pm, Jemes Hsu jemes...@gmail.com wrote: Pyramid is carrying a lot of old baggage. Reading about Pyramid, you are reading the history about repoze, ZOPE and Pylons and about Pylons projects. One needs to

Re: are there any book about pyramid?

2012-04-22 Thread Eric Ongerth
Here's where you can find the docs in PDF or e-pub format for printing or e-reading. Or a zipped HTML too. http://readthedocs.org/projects/pylons/downloads/ On Apr 22, 8:17 pm, Israel Barba israelb.ace...@gmail.com wrote: Hello everybody Do you know if there are any book about pyramid?   I

Re: Can't display the login view when the permission is bound with the view using json render

2012-05-30 Thread Eric Ongerth
Try having Firebug or Chromebug open and on its Net tab when you do this. It should see the request from the AJAX post button, and I think it will probably show you that your view tries to redirect, but in the context of an AJAX request, the page you redirect to becomes the response body of the

Re: Pyramid Google group ?

2012-06-02 Thread Eric Ongerth
FYI, On IRC there are distinct channels #pylons and #pyramid, though their content often overlaps. But overall, the organization is the Pylons Project, it still hosts the (no longer in active development, but still with plenty of users) Pylons framework, and its current main offering is the

Re: Compiling Python

2012-06-14 Thread Eric Ongerth
Seems unnecessarily scary to newcomers to mention compiling your own Python early in the docs, even if we know it's no big deal. Particularly when the main concern at hand (that many people's system instance of python tends to be a poor choice for their Pyramid development) is easily and almost

Re: happy weekend, and welcome to my RTFM question about view_config and permissions

2012-06-23 Thread Eric Ongerth
+1 to Mike's 6/21 post. I really couldn't say any of that better; 90% of it is things that have occurred to me in my own work; I can't really think of anything to add to the discussion. I'm not sure there's any great and terrible need to change anything, but it would be very good to keep the