Re: Odd deployment problem with mod_python
On Mar 18, 8:33 pm, Jamie [EMAIL PROTECTED] wrote: Ok, I'm going on hour four of pulling out my hair.. time to ask for some help here. I'm attempting to deploy a Pylons app using mod_python 3.3.1 under CentOS 4 and Apache 2.0.52, using Pylons 0.9.4.1 and Python 2.5. However, this is the traceback that I am getting in my Apache log when I attempt to access the application. return loadobj(APP, uri, name=name, **kw)\n File /usr/local/lib/python2.5/site-packages/PasteDeploy-1.1- py2.5.egg/paste/deploy/loadwsgi.py, line 213, in loadobj\n global_conf=global_conf)\n File /usr/local/lib/python2.5/site-packages/PasteDeploy-1.1- py2.5.egg/paste/deploy/loadwsgi.py, line 237, in loadcontext\n global_conf=global_conf)\n File /usr/local/lib/python2.5/site-packages/PasteDeploy-1.1- py2.5.egg/paste/deploy/loadwsgi.py, line 264, in _loadconfig\n loader = ConfigLoader(path)\n File /usr/local/lib/python2.5/site-packages/PasteDeploy-1.1- py2.5.egg/paste/deploy/loadwsgi.py, line 328, in __init__\n File %s not found % filename)\n OSError: File /home/my_username/my_project/development.ini not found\n This error clearly tells me that it can't find my development.ini file. However, I am certain that it exists at that path; I can copy- and-paste the filename directly from the error log. The permissions don't seem to be the problem either. Any recommendations? Use mod_proxy? I found it to be much easier to deal with than mod_python. __wyatt --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: POST showing up as GET
On Mar 17, 2007, at 6:28 PM, vga wrote: I've managed to get the toscawidgets 0.1a2dev_r2777 demo running under pylons 0.9.4.1 (well with minor changes to use myghty). But I've encountered a weird bug. The POST request from the demo form shows up as GET on the server side, which cause the @validate to never execute. Obviously this causes an exception due to nonexistent form_result. I've verified with ethereal that the browser is actually sending a POST request to the server, but it shows up as GET in the server request dict. Here is the TCP stream reassembled by ethereal: (snip) This is weird indeed. I've managed to reproduce the problem with unchanged PylonsTWSample though I haven't tracked down the source. The problem, however, doesn't manifest itself in other Pylons apps I've written (I would have noticed that long time ago... :) so I guess it must be some stupid bug in the sample. I'll probably rewrite that sample app soon with 0.9.4.1 and new helper code based on http:// tinyurl.com/26zyk9. Alberto --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: POST showing up as GET
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19 Mar 2007, at 12:51, Alberto Valverde wrote: I'll probably rewrite that sample app soon with 0.9.4.1 and new helper code based on http:// tinyurl.com/26zyk9. FWIW: I just checked this - I used the twsample app as-is and adjusted my 0.9.4.1/trunk set-up to follow the example described in http://tinyurl.com/26zyk9. TWSample works exactly as expected. 's looking nice, Alberto. Cheers, Graham. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iQCVAgUBRf6S3lnrWVZ7aXD1AQKp1QQAgHalIhwU/G7r5opU/yIqzJImv4EVSI+h r7NMJM64UYWOJSkjOMWvPGOGJITDyDjmw5RFbufAXETDAjT7aRh5Ry+uprlouOGt LxlxIQhxt+hsMZcDoDyH81IGr68M4hflD2JfpOQ0IQpM9XkU8iEzKA7n3L+AZmMt D6UeGajwq/o= =iozK -END PGP SIGNATURE- --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: ANN: Documentation Wiki Launched
On Mar 18, 9:55 pm, Ben Bangert [EMAIL PROTECTED] wrote: On Mar 18, 2007, at 9:08 PM, primco wrote: So why the abbreviation pys for pylons? It was confusing when i saw the url and thought it was some other python project. I just don't understand why you have to shorten it -- specially on something that needs to be newbie friendly. Is it too late to change it to something like pylonscookbook? It seemed like an 'ok' abbreviation for pylonscookbook. I didn't think it'd cause any problems to abbreviate it slightly. But yet, at this point it does appear to late to change it, though its fairly easy to move pages between Spaces... so perhaps we can change it. well, i'd like to know what others think. seems like a critical place to be un-obscure. davep --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: ANN: Documentation Wiki Launched
primco wrote: On Mar 18, 9:55 pm, Ben Bangert [EMAIL PROTECTED] wrote: On Mar 18, 2007, at 9:08 PM, primco wrote: So why the abbreviation pys for pylons? It was confusing when i saw the url and thought it was some other python project. I just don't understand why you have to shorten it -- specially on something that needs to be newbie friendly. Is it too late to change it to something like pylonscookbook? It seemed like an 'ok' abbreviation for pylonscookbook. I didn't think it'd cause any problems to abbreviate it slightly. But yet, at this point it does appear to late to change it, though its fairly easy to move pages between Spaces... so perhaps we can change it. well, i'd like to know what others think. seems like a critical place to be un-obscure. It's a weird acronym to me. pylonscb would be more reasonable, or pcookbook, or pylonscooking, or something... there's no decent way to abbreviate pylons. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: ANN: Documentation Wiki Launched
Fellow Pylons Enthusiasts, On Sun, Mar 18, 2007 at 02:10:00PM +, James Gardner wrote: I'm pleased to announce the launch of a new wiki for Pylons documentation where we would encourage you to contribute any articles or information which you would usually post on the current Pylons Trac-based wiki. I'm very happy to see some additional Pylons documentation. I've been trying out both TurboGears and Pylons. There are a few things I like better about Pylons than TurboGears but I've been working mostly with TurboGears because of the available TG documentation and for TG widgets. It looks like Pylons is improving in both areas. There are a couple of things I'm wondering about: Is choosing a J2EE based wiki really a good way to promote python web development? Wouldn't a python based wiki be a better choice? And, if primarily for Pylons wouldn't a Pylons based wiki be an even better choice? I get the Pylons name and logo but am I the only one that immediately thinks of Land of the Lost instead of electricity when I hear the term Pylons? Kevin http://www.RawFedDogs.net http://www.WacoAgilityGroup.org Bruceville, TX Si hoc legere scis nimium eruditionis habes. Longum iter est per praecepta, breve et efficax per exempla!!! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: ANN: Documentation Wiki Launched
On 3/19/07, Kevin Monceaux [EMAIL PROTECTED] wrote: Fellow Pylons Enthusiasts, On Sun, Mar 18, 2007 at 02:10:00PM +, James Gardner wrote: I'm pleased to announce the launch of a new wiki for Pylons documentation where we would encourage you to contribute any articles or information which you would usually post on the current Pylons Trac-based wiki. I'm very happy to see some additional Pylons documentation. I've been trying out both TurboGears and Pylons. There are a few things I like better about Pylons than TurboGears but I've been working mostly with TurboGears because of the available TG documentation and for TG widgets. It looks like Pylons is improving in both areas. There are a couple of things I'm wondering about: Is choosing a J2EE based wiki really a good way to promote python web development? Wouldn't a python based wiki be a better choice? And, if primarily for Pylons wouldn't a Pylons based wiki be an even better choice? I get the Pylons name and logo but am I the only one that immediately thinks of Land of the Lost instead of electricity when I hear the term Pylons? My first association with Pylons is always with Starcraft. The Protoss race builds Pylons.. and without having a Pylon first you can't build *anything*. Pylons provide the necessary power (Psi) to all of the infrastructure around them. http://www.battle.net/images/battle/scc/protoss/pix/general/basic02.jpg -bob --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: ANN: Documentation Wiki Launched
On Mar 19, 2007, at 7:59 PM, Kevin Monceaux wrote: Fellow Pylons Enthusiasts, On Sun, Mar 18, 2007 at 02:10:00PM +, James Gardner wrote: I'm pleased to announce the launch of a new wiki for Pylons documentation where we would encourage you to contribute any articles or information which you would usually post on the current Pylons Trac-based wiki. I'm very happy to see some additional Pylons documentation. I've been trying out both TurboGears and Pylons. There are a few things I like better about Pylons than TurboGears but I've been working mostly with TurboGears because of the available TG documentation and for TG widgets. It looks like Pylons is improving in both areas. There are a couple of things I'm wondering about: Is choosing a J2EE based wiki really a good way to promote python web development? Wouldn't a python based wiki be a better choice? And, if primarily for Pylons wouldn't a Pylons based wiki be an even better choice? Well, I guess it all boils down to the choice of a tool for a job. If the tool fits well it's purpose and it's already developed and usable, then who cares what technology is powering it behind the scenes? Something positive can be said for Python for sure: how nicely it integrates with most languages. The syntax coloring is powered by pygments running under Jython :) Alberto --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: ANN: Documentation Wiki Launched
Kevin Monceaux wrote: Fellow Pylons Enthusiasts, On Sun, Mar 18, 2007 at 02:10:00PM +, James Gardner wrote: I'm pleased to announce the launch of a new wiki for Pylons documentation where we would encourage you to contribute any articles or information which you would usually post on the current Pylons Trac-based wiki. I'm very happy to see some additional Pylons documentation. I've been trying out both TurboGears and Pylons. There are a few things I like better about Pylons than TurboGears but I've been working mostly with TurboGears because of the available TG documentation and for TG widgets. It looks like Pylons is improving in both areas. There are a couple of things I'm wondering about: Is choosing a J2EE based wiki really a good way to promote python web development? Wouldn't a python based wiki be a better choice? And, if primarily for Pylons wouldn't a Pylons based wiki be an even better choice? I'm not psyched about a closed-source wiki, but I think worrying about self-hosting is largely a distraction. Pylons isn't a wiki project, and it's not a documentation project. It's a project that needs documentation. Worrying about promotion in every tool used is a good way to get hopelessly distracted. Good docs are way more important for Pylons and all the associated projects than self-hosting; and actually using other products is a good way to keep people from being distracted with tool building, which is easy to do when you are trying to document something, especially if you don't love writing docs. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: ANN: Documentation Wiki Launched
On Mar 19, 2007, at 11:59 AM, Kevin Monceaux wrote: I'm very happy to see some additional Pylons documentation. I've been trying out both TurboGears and Pylons. There are a few things I like better about Pylons than TurboGears but I've been working mostly with TurboGears because of the available TG documentation and for TG widgets. It looks like Pylons is improving in both areas. There are a couple of things I'm wondering about: Is choosing a J2EE based wiki really a good way to promote python web development? Wouldn't a python based wiki be a better choice? And, if primarily for Pylons wouldn't a Pylons based wiki be an even better choice? Sure, and we'd love to see one. But between my full-time job, family, contract work, and open-source work on Pylons code itself I personally have zero additional time to launch a Pylons wiki-project. Using Confluence has given me some time to reflect on exactly the feature-set I do want in a wiki-type system, so someday when I do have time to work on such a project I'll know exactly what to put in. The TurboGears folks launched a project called Docudu with a similar goal of providing documentation, a wiki of sorts, etc. which apparently ran out of steam as there weren't enough people willing to commit time to develop it. Given the choice of working on a project and it not going anywhere fast, vs having something that works *now*, we choose now. The primary features I wanted were almost possible with MoinMoin, but would require a decent amount of footwork which no one had the time to do. If someone else wants to do all the work and setup a system I'll be happy to go over the requirements, but I doubt we'll have the resources to commit to such an endeavor at the moment. I did make sure that Confluence has enough Export options so that when such a Python/Pylons based system come into existence, we can switch to it. On a side-note, thanks to some herculean effort by Phil Jenvey, we have a Python based syntax highlighter (Pygments) running under Jython in Confluence. I get the Pylons name and logo but am I the only one that immediately thinks of Land of the Lost instead of electricity when I hear the term Pylons? Not sure, I didn't realize Land of the Lost references Pylons? Cheers, Ben --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Odd deployment problem with mod_python
On 3/18/07, Jamie [EMAIL PROTECTED] wrote: Ok, I'm going on hour four of pulling out my hair.. time to ask for some help here. I'm attempting to deploy a Pylons app using mod_python 3.3.1 under CentOS 4 and Apache 2.0.52, using Pylons 0.9.4.1 and Python 2.5. However, this is the traceback that I am getting in my Apache log when I attempt to access the application. return loadobj(APP, uri, name=name, **kw)\n File /usr/local/lib/python2.5/site-packages/PasteDeploy-1.1- py2.5.egg/paste/deploy/loadwsgi.py, line 213, in loadobj\n global_conf=global_conf)\n File /usr/local/lib/python2.5/site-packages/PasteDeploy-1.1- py2.5.egg/paste/deploy/loadwsgi.py, line 237, in loadcontext\n global_conf=global_conf)\n File /usr/local/lib/python2.5/site-packages/PasteDeploy-1.1- py2.5.egg/paste/deploy/loadwsgi.py, line 264, in _loadconfig\n loader = ConfigLoader(path)\n File /usr/local/lib/python2.5/site-packages/PasteDeploy-1.1- py2.5.egg/paste/deploy/loadwsgi.py, line 328, in __init__\n File %s not found % filename)\n OSError: File /home/my_username/my_project/development.ini not found\n This error clearly tells me that it can't find my development.ini file. However, I am certain that it exists at that path; I can copy- and-paste the filename directly from the error log. The permissions don't seem to be the problem either. Any recommendations? I'm using the deployment procedure and WSGI bridge described at the bottom of http://pylonshq.com/project/pylonshq/wiki/ModPython. CentOS is an offshoot of Red Hat Server, and I've noticed that Red Hat has ACLs that sometimes cause the system to pretend as if a file doesn't exist. Try temporarily turning them off to see if it fixes your problem. It's in security settings or something like that. Best Regards, -jj -- http://jjinux.blogspot.com/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: ANN: Documentation Wiki Launched
On Mon, Mar 19, 2007 at 11:24:00AM -0700, Ben Bangert wrote: On Mar 19, 2007, at 11:59 AM, Kevin Monceaux wrote: I get the Pylons name and logo but am I the only one that immediately thinks of Land of the Lost instead of electricity when I hear the term Pylons? Not sure, I didn't realize Land of the Lost references Pylons? Pylons were an integral part of the Land of the Lost. They controlled just about everything from the weather to time. Oddly, I wasn't able to find a good picture of a Pylon on the 'net. The only one I could find is at: http://en.wikipedia.org/wiki/Land_of_the_Lost_(1974_TV_series)_geography_and_technology#Pylons One can find a picture and a little info on Pylons at the link above. The picture is not very good. Kevin http://www.RawFedDogs.net http://www.WacoAgilityGroup.org Bruceville, TX Si hoc legere scis nimium eruditionis habes. Longum iter est per praecepta, breve et efficax per exempla!!! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
formbuild questions
Hi, Is there a way to easily configure things in formbuild so that when calling form.layout.entry(content=,), where is a call to a field (eg form.field.dropdown(...)), an additional read-only field would get created containing the original default value of the field? This is so you can create a form for editing values with each pristine value adjacent to the widget for editing that value. Thanks! David --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Odd deployment problem with mod_python
On Mar 19, 3:00 pm, Shannon -jj Behrens [EMAIL PROTECTED] wrote: On 3/18/07, Jamie [EMAIL PROTECTED] wrote: OSError: File /home/my_username/my_project/development.ini not found\n This error clearly tells me that it can't find my development.ini file. However, I am certain that it exists at that path; CentOS is an offshoot of Red Hat Server, and I've noticed that Red Hat has ACLs that sometimes cause the system to pretend as if a file doesn't exist. Probably not ACLs, but rather It is almost certainly SELinux. You can tell if you look in your syslogs (/var/log/messages) and see things like avc: denied. Also try running the command selinuxenabled, or id -Z, which will complain if SELinux is NOT enabled. With SELinux enabled, Apache is locked down using mandatory access controls so that it (or any of it's sub-processes) can not possibly access any objects/files which are not marked as being httpd content. This is usually a VERY GOOD thing. The quickest (but not the most secure way) is to disable SELinux (see file /etc/selinux/config). Or *better* is to allow your files to be read by Apache, something like, chcon -r -t httpd_sys_content_t /home/my_username/my_project/ Deron Meranda --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: ANN: Documentation Wiki Launched
anybody about to take a whack at trac or reStructuredText markup to confluence converter? I found this http://confluence.atlassian.com/display/CONFEXT/Trac+Importer It at least has a start with the syntax. Davep --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---