Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Jonathan Ellis <jonathan@ut...> - 2006-12-18 21:21:20
Here's how you do it:
0) put your .spi in the tags/ directory generated by spyceProject
1) add your .spi to the globaltags list
globaltags.append((None, 'myRender.spi', 'myrender'))
2) change login and loginrequired renders to yours
login_render = 'myrender:login'
loginrequired_render = 'myrender:login_required'
3) you probably also want to change the default validator, look for
login_defaultvalidator in spyceconf.py and read the comments above it
On 12/18/06, Wolfgang Reiser <w-reiser@...> wrote:
> Hi Jonathan!
> I have a little problem, I want to make a customized login_required handler and don't know
> how. I have written a customized .spi file named myRender.spi where do I have to put it
> and how do I have to edit my config.py?
> You have written in your blog that it is easy to cutomize such things in spyce, could you please
> explain how?
From: Jonathan Ellis <jonathan@ca...> - 2006-12-19 14:08:36
> Hi there!
> Thank you for your fast relpy. It still does not work and the funny thing is
> that spyceProject does not create a tags directory.So I created a tags folder and
> copy my file into the myProject/tags folder but I get an error like this:
Oops, I thought spyceProject configures a tags dir but you're right, it
doesn't. You just need to add your new directory to the tags path now,
> I also tried to copy my file into spyce-2.1/tags but then I get an even longer error
That probably means you have a bug in your tag, because I imagine that
fixed the unable-to-find-tag problem.
C++ is history repeated as tragedy. Java is history repeated as farce. --Scott McKay