Re: Upgrading from v1 to v2
"Jonathan Ellis" <[email protected]>
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 18 May 2006 10:27:45 +0100, "Colin Gillespie" <c.gillespie-pyHcBy/D9uhaa/[email protected]> said: > Dear All, > > I've just upgraded and I'm running into some problems. > > I use the include command: > > [[.import name=include]] > [[.include file="/home/me/menus/sideMenuIndex.spi"]] > > However, the when I view the page I get this: > > Spyce syntax error at index2.spy:5 - unable to open included file: > /usr/share/spyce/www/home/me/menus/sideMenuIndex.spi > > 1. How do I fix this error. .include in 2.0 is relative to your document root, which is apparently /usr/share/spyce/www/. So you need to move /home/me/menus in there somewhere, say, /usr/share/spyce/www/menus, and adjust the .include directive appropriately. (.include /menus/sideMenuIndex.spi, for instance.) (However, /usr/share/spyce/www/ looks like the default Spyce docroot; I suggest pointing it somewhere else first.) > 2. Should I still have a config file in /etc/ You can, but I think it makes more sense closer to the rest of your app. Try creating a test project with spyceProject for an example of how I like to organize things. > 3. Are there any other problems I should watch out for. Anything marked with "*" in CHANGES.txt denotes possible backwards incompatibility. -J -- C++ is history repeated as tragedy. Java is history repeated as farce. --Scott McKay ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642