2015Re: [Cheetahtemplate-discuss] #include source=template.tmpl problem
- Apr 7 4:00 PMHi Michael,
sorry for taking so long to get back to you. I've fixed this caching in the
cvs version now. Thanks for reporting it.
On Wednesday 02 April 2003 10:12, Michael Engelhart wrote:
> Hi all,
> Just FYI, since I'm in a bind I did a "quick fix" although I have no
> idea what the repercussions are as I haven't really done any meddling
> with the Cheetah source but here's what I did:
> In Template.py I changed in the _includeCheetahSource() method, this:
> if not _includeID:
> _includeID = srcArg
> _includeID = srcArg
> This appears to "force" the current template being passed into that
> method to be used rather than a cached version? As I said I don't
> even know what the includeID is but it seems to have fixed my issues
> with Cheetah not doing a dynamic #include when running in Webware.
> BTW, this was an issue with all versions of Cheetah that I've tried
> since 0.9.15a2 so it wasn't a Webware problem at all. I had mistakenly
> assumed it was working when it wasn't.
> On Saturday, March 29, 2003, at 11:36 AM, Tavis Rudd wrote:
> > Hi Michael,
> > just a quick note to acknowledge that I've read this. I'm working to a
> > deadline right now and won't have a chance to look into it further for
> > a few
> > days. Has anyone else reading this experienced similar problems?
> > Cheers,
> > Tavis
> > On Saturday 29 March 2003 06:06, Michael Engelhart wrote:
> >> Hi,
> >> I recently posted this to the Webware list but didn't get any
> >> responses
> >> so I'm checking here.
> >> I recently upgraded to Webware 0.8 and as soon as I did the only that
> >> that stopped working in my current project was a cheetah template.
> >> My site handles user preference templates that allow users to have
> >> custom pages displayed based on their settings.
> >> I do this by having a line like:
> >> #include source=$prefs.customerTemplate
> >> which loads in a snippet of HTML template code that gets parsed by
> >> cheetah and displayed to the user. In Webware 0.7 this worked fine.
> >> I could log in to the system as one user and his pages would look like
> >> he wanted to and then log out and log in as another user and the site
> >> would change to match his preferences.
> >> But since upgrading to Webware 0.8, when I log in and then back out
> >> again, the template that gets displayed is always the initial template
> >> that gets shown for the first customer who logged in since the
> >> AppServer was started. I hope that makes sense :-)
> >> So what appears to be happening is that the per-user templates that
> >> are
> >> stored in a users preferences get cached by either Cheetah or Webware
> >> and then for all subsequent users they see the initial users web
> >> settings.
> >> I've use in-Memory Sessions only and have modified the
> >> SessionMemory.py
> >> file to comment out the storeSessions() method so that sessions only
> >> stay in memory and never get written to disk (which is how I think it
> >> should be). I've also tried switching browsers, computers and OS's
> >> so
> >> it's definitely occuring with the app server framework/cheetah
> >> framework but I have no idea where or why this would happen only upon
> >> upgrading to Webware 0.8.
> >> If anyone has any pointers as to what part of the code could be the
> >> culprit I'd greatly appreciate it.
> >> Michael
> >> Michael Engelhart
> >> http://www.eztrip.com/
> >> Why not take it easy?
> >> -------------------------------------------------------
> >> This SF.net email is sponsored by:
> >> The Definitive IT and Networking Event. Be There!
> >> NetWorld+Interop Las Vegas 2003 -- Register today!
> >> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> >> _______________________________________________
> >> Cheetahtemplate-discuss mailing list
> >> Cheetahtemplate-discuss@...
> >> https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> Cheetahtemplate-discuss mailing list
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
Cheetahtemplate-discuss mailing list
- << Previous post in topic Next post in topic >>