Re: Fwd: how 2 install git cheetah in production?
"R. Tyler Ballance" <[email protected]>
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Apr 15, 2009 at 06:03:10PM -0700, [email protected] wrote: > next cheetah > gives me this error > > Traceback (most recent call last): > File "/home/mark/work/common/web/application.py", line 241, in process > return self.handle() > File "/home/mark/work/common/web/application.py", line 232, in handle > return self._delegate(fn, self.fvars, args) > File "/home/mark/work/common/web/application.py", line 411, in _delegate > return handle_class(cls) > File "/home/mark/work/common/web/application.py", line 386, in > handle_class > return tocall(*args) > File "/home/mark/work/pop/user.py", line 262, in proxyfunc > return func(self, *args, **kw) > File "/home/mark/work/pop/pages.py", line 37, in GET > return web.render('newpage.html') > AttributeError: 'module' object has no attribute 'render' I figured I'd share the results of the bug hunt for this with the class. The Web.py module that mobiledreamers@ is using here has the following lines at the bottom: try: import cheetah from cheetah import * except ImportError: pass What effectively was going on was an inadvertant circular import error within Cheetah.Filters that I hadn't noticed, and mobiledreamers' "web" module was queiting the error. This is now fixed in "next" and will be rolled into v2.1.1 > > it does come in the old cheetah > > On Wed, Apr 15, 2009 at 1:13 PM, R. Tyler Ballance <[email protected]> > wrote: > > On Wed, Apr 15, 2009 at 11:16:47AM -0700, [email protected] > wrote: > > for testing does this code work ie get your patches so i can test > it > > As I mentioned in the email that I sent you off-list, you should either > make sure you're switching to the "next" branch, *OR* another option is > to write a script that will download the tagged tarballs (2.1.1rc3 for > example) > > > > t work]$ cat bin/installgitcheetah > > #!/bin/bash > > sudo rm -rf /usr/lib/python2.5/site- > > packages/Cheetah* > > cd ~/cheetah > > git pull > > sudo python setup.py install > > > > > > On Tue, Apr 14, 2009 at 1:58 PM, R. Tyler Ballance > <[email protected]> > > wrote: > > > > I advise waiting until I push the official 2.1.1 release to the > Python > > Package Index > > before you roll it to the production machines. > > > > We're currently evaluating rc3 here at Slide on some of our > internal > > machines (we have over 600 different templates spanning over 3 > years of > > development; it's a real good way to test a Cheetah release :)), > and > > once I'm certain v2.1.1 is gold-standard-ready i'll officially > release > > it. > > > > For production I'd wait just to make sure > > > > On Tue, Apr 14, 2009 at 01:19:24PM -0700, > [email protected] > > wrote: > > > > > > > > > t work]$ cat bin/installgitcheetah > > > #!/bin/bash > > > sudo rm -rf /usr/lib/python2.5/site-packages/Cheetah* > > > cd ~/cheetah > > > git pull > > > sudo python setup.py install > > > > > > Can you tell me if this installs the cheeta with the new > patches > > for > > > production server > > > note that i dont switch to a different branch > > > Thanks > > > > > > -- > > > Bidegg worlds best auction site > > > http://bidegg.com > > > > > > > > ------------------------------------------------------------------------------ > > > This SF.net email is sponsored by: > > > High Quality Requirements in a Collaborative Environment. > > > Download a free trial of Rational Requirements Composer Now! > > > http://p.sf.net/sfu/www-ibm-com > > > _______________________________________________ > > > Cheetahtemplate-discuss mailing list > > > [email protected] > > > > https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss > > > > -- > > -R. Tyler Ballance > > Slide, Inc. > > > > -- > > Bidegg worlds best auction site > > http://bidegg.com > > -- > -R. Tyler Ballance > Slide, Inc. > > -- > Bidegg worlds best auction site > http://bidegg.com -- -R. Tyler Ballance Slide, Inc. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Cheetahtemplate-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAknnnFcACgkQFCbH3D9R4W9czgCdGcbeYVw9ANPYC23kjDZCw7hh sJEAn3cSnim2wXI2dFbFLuPL4pWphQBD =C8Mg -----END PGP SIGNATURE-----