Re: [Myghty-users] config problem? (and questions)
Brought to you by:
zzzeek
From: Michael B. <mi...@my...> - 2005-11-22 06:56:04
|
the full set of files is listed here: http://www.myghty.org/source/htdocs/examples/components/index its also in the "examples" directory of the Myghty distribution, which can be run via the demo runner, i.e. "python tools/run_docs.py" and go to http://localhost:8000/examples/components/index.myt . for the config thing, apache directives can achieve everything youre looking for....consider using multiple <Location> or <LocationMatch> tags to match just certain file patterns, such as in http://www.myghty.org/docs/ configuration.myt#configuration_mod_python_multiple - mike On Nov 22, 2005, at 1:09 AM, DK Smith wrote: > Hi, > > Does anyone know if this example <http://www.myghty.org/examples/ > components/> > requires additional files? I saw only one file. Am I supposed to > have a > autohandler installed somewhere before running the "./components/ > index.myt" > file? When running the example with radio button "plain" selected, > I see the > following error. Any suggestions of what this indicates? > > This pathname is mentioned: "/myghty/Components/component.myt" > Might it indicate that I continue to have a configuration problem? > > Does anyone have a working config they can share? I'd like to > have a config that that did not process every file through the > myghty handler, and instead performed normal apache processing > on other files and directories... Where, the "myghty" directory is > used for more than one project, such that each sub-directory is a > separate "document root", so to speak, for a different myghty project. > Is this possible? > > Cheers! > DK > > #### > > Myghty Template Error > Error: ComponentNotFound: Cant locate component > /myghty/Components/component.myt (resolvefile:, > /var/www/localhost/htdocs/myghty/Components/component.myt) > File: /var/www/localhost/htdocs/myghty/Components/index.myt line 26 > Context: 23: <div style="border:1px solid;margin:20px;padding:10px;"> > 24: <%python> > 25: if call_type=='plain': > 26: m.comp('component.myt') > 27: elif call_type=='subrequest': > 28: m.subexec('component.myt') > 29: elif call_type=='soft': > Traceback: /var/www/localhost/htdocs/myghty/Components/index.myt:26 > /usr/lib/python2.4/site-packages/mod_python/apache.py:299 > > Original Stack Trace: > Error: ComponentNotFound: Cant locate component > /myghty/Components/component.myt (resolvefile:, > /var/www/localhost/htdocs/myghty/Components/component.myt) > File: /usr/lib/python2.4/site-packages/Myghty-0.99-py2.4.egg/ > myghty/resolver.py > line 734 > Context: 731: return iterator.next().do(uri, > iterator, > resolution_detail, **params) > 732: except StopIteration: > 733: if raise_error: > 734: raise exception.ComponentNotFound("Cant > locate > component %s" % uri, resolution_detail) > 735: else: > 736: return None > 737: except exception.ComponentNotFound, cf: > Traceback: > /usr/lib/python2.4/site-packages/Myghty-0.99-py2.4.egg/myghty/ > resolver.py:734 > /usr/lib/python2.4/site-packages/Myghty-0.99-py2.4.egg/myghty/ > interp.py:182 > /usr/lib/python2.4/site-packages/Myghty-0.99-py2.4.egg/myghty/ > interp.py:173 > /usr/lib/python2.4/site-packages/Myghty-0.99-py2.4.egg/myghty/ > request.py:535 > /usr/lib/python2.4/site-packages/Myghty-0.99-py2.4.egg/myghty/ > request.py:490 > /usr/lib/python2.4/site-packages/Myghty-0.99-py2.4.egg/myghty/ > request.py:321 > /usr/lib/python2.4/site-packages/Myghty-0.99-py2.4.egg/myghty/ > request.py:299 > /var/www/localhost/mycache/obj/main//myghty/Components/index.myt.py:75 > /usr/lib/python2.4/site-packages/Myghty-0.99-py2.4.egg/myghty/ > component.py:124 > /usr/lib/python2.4/site-packages/Myghty-0.99-py2.4.egg/myghty/ > request.py:388 > /usr/lib/python2.4/site-packages/Myghty-0.99-py2.4.egg/myghty/ > request.py:248 > /usr/lib/python2.4/site-packages/Myghty-0.99-py2.4.egg/myghty/ > exception.py:73 > /usr/lib/python2.4/site-packages/Myghty-0.99-py2.4.egg/myghty/ > request.py:269 > /usr/lib/python2.4/site-packages/Myghty-0.99-py2.4.egg/myghty/http/ > HTTPHandler.py:147 > /usr/lib/python2.4/site-packages/Myghty-0.99-py2.4.egg/myghty/http/ > ApacheHandler.py:29 > /usr/lib/python2.4/site-packages/mod_python/apache.py:299 > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > _______________________________________________ > Myghty-users mailing list > Myg...@li... > https://lists.sourceforge.net/lists/listinfo/myghty-users |