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

2012-06-22 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

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 tri

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 Pyrami

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 AJ

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 wrote: > Hello everybody > > Do you know if there are any book about pyramid?   I dont want the > tutor

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 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 understand Pylons w

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 wrote: > On Tue, Jul 19, 2011 at 3:20 PM, Ross Vandegrift wrote: > > Hi all, > > > Any reason why select() doesn't support taking disabled as

Re: Pyramid 1.1b1 released

2011-07-11 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 wrote: > Pyramid 1.1b1 has been released. > > Here are the changes: > > Features > > > - It is now possible to invoke ``paster

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 wrote: > On Sun, Jul 3, 2011 at 7:00 PM, Mike Orr wrote: > > Thatt's the proper w

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 Fra

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 UR

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 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 wrote: > > I would  like to help with this, if you gu

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 wrote: > On Sun, Jun 12, 2011 at 8:08 AM, Eric Ongerth wrote: >

Pyramid vs. Akhet difference re: mako.strict_undefined

2011-06-12 Thread Eric Ongerth
@Sluggo et al.: Hi Mike, It's my own responsibility for not noticing the difference in settings, but I stumbled around for a while last night trying to figure out why I was getting NameErrors in templates that used to have none. I should have immediately thought of the config setting "mako.strict

Re: Akhet 1.0b1 released

2011-03-20 Thread Eric Ongerth
this would be very slow with all of Pyramid's > dependencies to install. I use a pip "download-cache" to mitigate > this, but it still checks the latest versions on PyPI.) > > > > On Sat, Mar 19, 2011 at 7:22 PM, Mike Orr wrote: > > I was going to write an

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 su

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 i

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 triple-

Re: some thoughts on pyramid

2011-02-15 Thread Eric Ongerth
On Feb 14, 6:02 pm, Jonathan Vanasco 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 to get widespr

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 wrote: > Hi guys, > >   Has anyone noticed that the wiki pages at pylonshq.com do not work, > is it just me or am I missing

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: 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 wrote: > I am trying to dynamically modify  javascript files using > mako_templates. > Because the

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 w

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 P

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 m

Re: templ_context / c variable getting reset after first request

2010-10-10 Thread Eric Ongerth
On Oct 6, 10:57 am, Matt H 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, i.e. when f gets >

Re: Pylons vs Thundercats

2009-02-01 Thread Eric Ongerth
But Vegita, what does the scanner say about Pylons' power level? Over NINE THOUSAND? But that's impossible! On Jan 30, 1:37 pm, Tycon wrote: > Cool cast !  Looks like Wolverine left the X-Men to join the > ThunderCats ? > > On Jan 30, 11:37 am, Walter Cruz wrote: > > > Pylons don't have a c

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

2008-12-07 Thread Eric Ongerth
ion to point 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

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 forfeit

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 poin

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: 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 t

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" occur

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 wro

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

2008-11-10 Thread Eric Ongerth
oup/python-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 environmen

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: ***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 (mi

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 f

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 threa

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 with

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: 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:> Greetin

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

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 discussi

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 group

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

2008-02-26 Thread Eric Ongerth
lement.update() with > second 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]&g

"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: problems with observe_field when form is inside of an update_element_function

2008-02-25 Thread Eric Ongerth
ly. Is it Firebug's fault that I seem to see the observation events fired very late sometimes and right away other times? Again, my processor is doing very little else, and this is all on localhost. On Feb 24, 4:04 pm, Eric Ongerth <[EMAIL PROTECTED]> wrote: > Update. Usually

Re: paster process immortal?

2008-02-24 Thread Eric Ongerth
ct instead of faking 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,

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

2008-02-24 Thread Eric Ongerth
ving this field is, if the user enters certain values, 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, Er

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 fi

Re: paster process immortal?

2008-02-23 Thread Eric Ongerth
the IP address you expect it to > - Hold down shift while you click the refresh button in your browser. > This should force it to download a new version of the page. > - Try restarting your browser and connecting again. > > If all of this fails, and you can still access the pages, it wo

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... although

Re: Hint: In case you are looking for button_to_remote

2008-02-18 Thread Eric Ongerth
rs whose search 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,

Re: Hint: In case you are looking for button_to_remote

2008-02-17 Thread Eric Ongerth
Sorry, that tag in there was unintended. --~--~-~--~~~---~--~~ 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, se

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: request.params... passing None vs. u'None'

2008-02-16 Thread Eric Ongerth
correctly on the > server side. > > 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

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 value

"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 mode